/*
Theme Name:		Theatrum Kuks
Theme URI:		https://www.theatrumkuks.cz
Author:			Petr Šabach
Author URI:		https://sabach.studio
Version:		2026
*/

* {
  box-sizing: border-box;
}

a {
	color: inherit;
	text-decoration: none;
}
img, video {
	display: block;
	max-width: 100%;
	height: auto !important;
}
ul, li, dl, dd, dt, figure, figcaption {
	margin: 0;
	padding: 0;
}
button {
	background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	font-size: 1rem;
	cursor: pointer;
	outline: inherit;
	display: inline-block;
	line-height: 1;
}
h1, h2, h3, h4, h5, strong {
	font-weight: 400;
}

.btn {
	display: inline-block;
	padding: 1em;
	border: 3px solid;
	cursor: pointer;
	font-size: inherit;
}
#main .btn {
	background: #000;
	color: #fff;
	border: 0;
	font-family: dystopian, sans-serif;
	letter-spacing: 1px;
	text-transform: uppercase;
	font-size: 1rem;
	margin: 1.25em 0;
}
.hl {
	font-family: dystopian, sans-serif;
	font-feature-settings: "salt";
	font-weight: 900;
	font-size: clamp(2rem, 5vw, 4rem);
	margin: 0;
}
.sc, .main > h3, .tab > h3 {
	font-family: dystopian, sans-serif;
	letter-spacing: 1px;
	text-transform: uppercase;
	font-weight: 700;
	margin: 0 0 3rem;
	font-size: 1rem;
}
.main > h3, .tab > h3 {
	margin: 2.5rem 0 0;
	font-weight: 900;
}
.main > h3:first-child {
	margin: 0;
}
.main ul {
	margin: 1rem 0 1rem 1.5rem;
	list-style: square;
}
.lead {
	font-family: dystopian, sans-serif;
	font-feature-settings: "salt";
	font-weight: 700;
	font-size: clamp(1.25rem, 5vw, 1.875rem);
}
.lead p {
	margin: 0 0 1em;
}
.lead:first-child {
	margin-top: 1.75em;
}

body {
	scroll-behavior: smooth;
	font-family: poppins, sans-serif;
	font-feature-settings: "ss02", "liga", "clig";
	font-weight: 500;
	font-style: normal;
	font-size: 1em;
}
strong, b {
	font-weight: 700;
}

.wrap {
	width: 100%;
	max-width: 78rem;
	padding: 0 1.5rem;
	margin: 0 auto;
}

.menu li {
	list-style: none;
}

#head {
	padding: 1.5rem;
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: center;
}
#head * {
	margin: 0;
	padding: 0;
}
#head ul {
	display: flex;
	align-items: center;
	margin-left: auto;
}
#head ul, #head .cta {
	display: none;
}
#head.alt {
	position: absolute;
	z-index: 100;
	left: 0;
	top: 0;
	right: 0;
	color: #fff;
}
#head .flex {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	position: relative;
	top: -12px;
}

#home {
	max-width: 50%;
	position: relative;
}
#home::after {
	transform: scale(80%) translateY(-15%);
	content: '';
	position: absolute;
	z-index: -1;
	aspect-ratio: 1 / 1;
	top: 0;
	left: 85%;
	width: 100%;
	background: url(img/tagline.2404.svg) center/cover;
}

#menu {
	position: relative;
	top: 0;
    width: 3rem;
    height: 3rem;
    display: inline-block;
	border-color: transparent;
}
#head.alt #menu {
	background: none;
}
#head.alt #menu span,
#head.alt #menu::before,
#head.alt #menu::after {
	background: #fff;
}
#menu span {
    text-indent: -100em;
    position: absolute;
    height: 3px;
    background: #000;
    overflow: hidden;
    width: 36px;
    left: 4px;
    top: 21px;
}
#menu::before, #menu::after {
    content: '';
    height: 3px;
    background: #000;
    position: absolute;
    width: 36px;
    left: 4px;
    top: 9px;
}
#menu::after {
    top: 33px;
}

#menu:active,
#exit:active {
	transition: .2s ease;
	transform: scale(90%);
}

#head #menu.scroll {
	background: #fff;
	position: fixed;
	top: 1.5rem;
}
#head #menu.scroll span,
#head #menu.scroll::before,
#head #menu.scroll::after {
	background: #000;
}
#head #menu:hover {
	background: #000;
}
#head #menu:hover span,
#head #menu:hover::before,
#head #menu:hover::after {
	background: #fff;
}

#nav {
	position: fixed;
	z-index: 999;
	background: #000;
	color: #fff;
	flex-direction: column;
	display: flex;
	width: 100%;
	top: 0;
	right: -100%;
	bottom: 0;
	transition: .4s right ease-out;
}
body.menu {
	overflow-y: hidden;
}
.menu #nav {
	right: 0;
}
#nav .head {
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem; 
}
#nav .body {
	padding: 1.5rem; 
	overflow-y: scroll;
}
#nav .sc {
	margin: 0;
	padding-right: 1rem;
	font-size: clamp(.8125rem, 4vw, 1.125rem);
}
#nav .hl, #foot .hl {
	margin-top: 2rem;
	font-size: clamp(1.125rem, 8vw, 2.5rem);
}
#nav li, #foot li {
	margin: 1.25em 0;
	list-style: none;
}
#nav .foot, #foot .foot {
	line-height: 1.5;
	margin: 4rem 0 0;
}
#nav .foot p, #nav .foot li,
#foot .foot p, #foot .foot li {
	margin: 1em 0 0;
}
#nav .cta, #foot .cta {
	line-height: 1;
}
#nav .cta::after,
#foot .cta::after {
	content: url(img/call.svg);
	display: inline-block;
	vertical-align: middle;
	margin-left: 1rem;
	transform: scale(80%);
}

#foot {
	background: #c08e3f;
	color: #fff;
	padding: 1.5rem; 
}

#exit {
    width: 3rem;
    height: 3rem;
    background: none;
    display: inline-block;
    position: relative;
	border-color: #fff;
	flex: 0 0 3rem;
	align-self: flex-start;
}
#exit span {
   display: none;
}
#exit::before, #exit::after {
    content: '';
    height: 3px;
    background: #fff;
    position: absolute;
    width: 36px;
    left: 3.5px;
    top: calc(50% - 1px);
	transform: rotate(-45deg);
}
#exit::after {
    transform: rotate(45deg);
}

#sub {
	/*
	background: #000;
	color: #fff;
	*/
	border-bottom-style: solid;
	border-bottom-width: clamp(6px, 1vw, 12px);
	overflow-x: scroll;
}
#sub .menu {
	display: inline-flex;
	flex-wrap: nowrap;
	padding: 1.5rem 0;
	gap: 2rem;
}
#sub .menu a {
	white-space: nowrap;
	line-height: 1;
}
#sub .menu .active a,
#sub .menu .current-menu-item a {
	font-weight: 700;
}

#hero {
	position: relative;
	z-index: 0;
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-end;
	background: #000;
	color: #fff;
	height: 100vh;
}
#hero .wrap {
	max-width: none;
	position: relative;
	z-index: 5;
	padding: 1.5rem;
}
#hero .sc {
	margin: 2em 0 0;
}
#hero > img {
	max-width: none;
	width: 100%;
	height: 100% !important;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	object-fit: cover;
	opacity: .65;
	pointer-events: none;
}

#head a:hover,
#nav a:hover,
#main a:hover,
#foot a:hover {
	text-decoration: underline;
}

.blocks {
	padding: 10vh 0;
	line-height: 1.5;
}
.blocks .wrap, .table .wrap {
	max-width: 35rem;
}
.blocks .img {
	margin-bottom: 1.5rem;
}
.blocks p {
	margin: 0 0 1em;
}
.blocks .sc, .table .sc {
	font-size: 1rem;
	margin: 0 0 2em;
}
.blocks .hl {
	font-size: 1.875rem;
	line-height: 1;
	margin: 0 0 .75em;
}
.blocks .grid {
	display: grid;
	gap: 3rem;
}

#theme {
	padding: 10vh 0;
	background: #C08E3F;
	color: #fff;
	text-align: center;
	font-family: dystopian, sans-serif;
	font-feature-settings: "salt";
	font-size: 1.125rem;
	line-height: 1.5;
}
#theme .hl {
	margin: 0 0 1em;
	line-height: 1;
}
#theme p {
	margin: 1.75em 0;
}

#page {
	padding: 10vh 0;	
}
#page .main {
	line-height: 1.5;
}

.side .hl {
	line-height: 1;
}
.side p,
.side ul {
	margin: 1em 0;
}
.side .menu li {
	display: inline-block;
	margin-right: 1em;
}

#diary {
	padding: 10vh 0;
	background: #000;
	color: #fff;
}
#diary .side,
.list .side,
.tabs .side {
	margin-bottom: 3rem;
}
#diary .item, 
.list .item,
.tabs .item {
	line-height: 1;
}
#diary .item:first-child,
.list .item:first-child,
.tabs .item:first-child {
	border-top: 2px solid;
}
#diary .item,
.list .item,
.tabs .item {
	border-bottom: 2px solid;
}
#diary .item .hl,
.list .item .hl,
.tabs .item .hl {
	margin: .5em 0;
	font-size: 1.5rem; 
}
#diary .item .sm,
.list .item .sm {
	display: inline-block;
	margin: 0 0 1em;
	font-size: 1rem;
	text-transform: lowercase;
}
.tabs .item .hl span {
	font-weight: 700;
}

.main .list {
	padding-top: 1.5rem;
}

#video {
	padding: 10vh 0 0;
}
#video .sc {
	margin: 0 0 1em;
}
#video .head {
	margin: 0 0 1rem;
}

.embed {
	position: relative;
	aspect-ratio: 16/9;
}
.embed > :first-child {
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
}

.table .grid {
    display: grid;
    gap: 1.5rem;
}
.table .item {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 5px 1rem;
}
.table .item * {
	margin: 0;
}
.table .item .img {
	grid-column: 1;
	order: 2;
}
.table .item .txt {
	order: 2;
	grid-column: span 2;
}
.table .item .time {
	order: 1;
}
.table .item .info {
	order: 4;
}
.table .item .time,
.table .item .info {
	font-size: .875rem;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-column: span 3;
	gap: 0 1rem;
}
.table .item .time span,
.table .item .info span {
	grid-column: span 2;
}
.table .hl {
	font-size: clamp(1.25rem, 5vw, 1.875rem);
	line-height: 1;
	word-wrap: break-word;
}
.table .hl span {
	font-weight: 700;
}
.table .wrap > .sc {
	margin: 3em 0 1em;
}

.wrap > .hl {
	margin: 10vh 0 5vh;
}
#hero .wrap > .hl {
	margin-bottom: 0;
}
#hero .sc {
	font-size: 1.5rem;
}

.tab {
	max-height: 0;
	overflow: hidden;
	line-height: 1.5;
}
.tabs .item .hl {
	position: relative;
	padding-left: 2rem;
	cursor: pointer;
	user-select: none;
}
.tabs .item .hl::before {
	position: absolute;
	left: 0;
	content: '\00d7';
	transform: rotate(45deg);
	transition: .2s ease;
}
.tabs .open .hl::before {
	transform: rotate(0deg);
}
.tabs .open .tab {
	max-height: none;
}

#main {
	padding-bottom: 8vh;
}

@media (min-width: 60rem) {
	.wrap > .hl {
		margin: 8vh 0 4vh;
	}
	
	#home::after {
		left: 85%;
		top: 0;
	}
	
	.lead:first-child {
		margin-top: 0;
	}
	
	#head .sc, #nav, .blocks .sc, #main .btn, #video .sc, #foot, .side .sc, .table .sc {
		font-size: 1.125rem;
		line-height: 1;
	}
	.side .sc {
		line-height: 1.2;
	}
	.blocks .txt, #diary .item .sm, .list .item .sm, #page .main, .main > h3, .tab > h3, #sub, .table .item .time,
	.table .item .info {
		font-size: 1.125rem;		
	}
	.blocks .hl, #diary .item .hl, .list .item .hl, .tabs .item .hl {
		font-size: 2rem;
	}
	#theme {
		padding: 9vw 0;
		font-size: 1.875rem;
	}
	
	#head ul {
		display: grid;
		grid-template-columns: repeat(4, auto);
		gap: 3vw;
		position: relative;
		top: -12px;
	}
	
	#nav .body {
		flex: 1;
		padding: 0;
		overflow-y: auto;
		display: flex;
		flex-direction: column;
	}
	#nav .grid, #foot .grid {
		margin: auto;
		align-self: center;
		padding: 1.5rem;
		width: 100%;
		max-width: 78rem;
		display: grid;
		gap: 1.5rem;
		grid-template-columns: repeat(3, 1fr);
	}
	#nav .foot, #foot .foot {
		display: grid;
		grid-template: repeat(2, 1fr) / repeat(2, 1fr);
		grid-auto-flow: column;
		align-items: center;
		padding: 1.5rem;
	}
	#nav .foot {
		margin-top: auto;		
	}
	#nav .foot *, #foot .foot * {
		margin: 0;
		padding: 0;
	}
	#nav .foot .menu,
	#foot .foot .menu {
		display: flex;
		gap: 2rem;
	}
	#nav .hl {
		margin: 0;
	}
	#nav .foot .hl, #nav .foot .menu,
	#foot .foot .hl, #foot .foot .menu {
		justify-self: flex-end;
	}
	
	#sub {
		overflow-x: auto;
		text-align: left;
	}
	#sub .menu {
		gap: 0 3rem;
	}
	
	.blocks {
		padding: 12vh 0 10vh;
	}
	.blocks .wrap, .table .wrap {
		max-width: 78rem;
	}
	.table .grid {
		gap: 2.5rem;
	}
	.blocks .grid {
		gap: 8.625rem;
	}
	.blocks .item {
		position: relative;
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 5.75rem;
		align-items: center;
	}
	.blocks .item:nth-child(even) .img {
		order: 1;
	}
	.blocks .item .hl a::after {
		content: '';
		position: absolute;
		left: 0;
		top: 0;
		right: 0;
		bottom: 0;
	}
	.blocks .img {
		margin: 0;
	}
	
	#diary .grid, #page .grid {
		display: grid;
		grid-template-areas: "side side side side . main main main main main main main";
		grid-template-columns: repeat(12, 1fr);
	}
	#diary .side, #page .side {
		grid-area: side;
	}
	#diary .main, #page .main {
		grid-area: main;
	}
	#diary .side,
	.list .side,
	.tabs .side {
		margin: 0;
	}
	
	#video {
		padding: 10vh 0 5vh;
	}
	#video .head {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
	}
	
	#page {
		padding: 8vh 0 9vh;
	}
	#page + .blocks {
		padding-top: 0;
	}
	
	.table .item {
		grid-template-columns: repeat(6, 1fr);
		gap: 2rem;
		align-items: center;
	}
	.table .item .img {
		grid-column: 1;
		order: inherit;
	}
	.table .item .time,
	.table .item .info {
		display: flex;
		flex-direction: column;
		order: inherit;
	}
	.table .item .time {
		grid-column: 2;
	}
	.table .item .info {
		grid-column: 6;
		text-align-last: right;
	}
	.table .item .txt {
		grid-column: 3 / span 3;
		order: inherit;
	}
	
	#hero {
		font-size: 1.125rem;
	}
	#hero .wrap {
		padding: 4vw 5vw;
	}
	#hero .hl {
		max-width: 20em;
	}
	
	#foot {
		padding: 1.5rem 0 0; 
	}
}

@media (min-width: 75rem) {	
	#head .cta {
		position: relative;
		display: inline-block;
		margin-right: 6rem;
	}
	#head .cta::after {
		position: absolute;
		content: url(img/call.svg);
		margin-left: 1rem;
	}
}
	
@media (min-width: 78rem) {
	#home:hover::after {
		transform: scale(100%) rotate(-360deg);
	}
	#home::after {
		transition: 1s transform ease;
		transform: scale(80%);
		left: 80%;
		top: -20%;
	}
	
	#head #menu.scroll {
		top: calc( 4vw + 1rem );
	}
	
	#head {
		padding: 4vw 5vw;
	}
	#nav .head {
		padding: 1rem 0;
		margin: 4vw 5vw;
	}
	#nav .grid, #foot .grid {
		padding: 0 5vw;
	}
	#nav .foot {
		padding: 0 5vw 1rem;
	}
	#foot .foot {
		padding: 0 5vw 1rem;		
	}

}