/*
Theme Name:		Za svobodu!
Theme URI:		https://zasvobodu.pametnaroda.cz
Author:			Petr Šabach
Author URI:		https://sabach.studio
Version:		2026
*/

:root {
	--text: #1D1D1B;
	--col1: #B6D5DE;
	--col2: #F8EABE;
	--col3: #C8E0BA;
	--col4: #EBB0C2;
	--col5: #BAA6D1;
	--sans: 'Roboto', sans-serif;
	--root: 'Roboto Mono', monospace;
}

html {
	scroll-behavior: smooth;
}
html, body {
	min-height: 100%;
}
html.menu body {
	overflow: hidden;
}

body {
	font-size: clamp(.875rem, 1vw, 1rem);
	font-family: var(--root);
	font-weight: 400;
	font-style: normal;
	color: var(--text);
}
body::before {
	content: '';
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	height: 100vh;
	background-image: url(img/ch77.jpg);
	background-size: cover;
	background-blend-mode: multiply;
	background-color: var(--col1);	
	transition: background-color .5s ease-in-out;
	z-index: -1;
}
body.col-1 #menu,
body.col-1::before,
.item[data-color="col-1"] > div.two {
	background-color: var(--col1);
}
body.col-2 #menu,
body.col-2::before,
.item[data-color="col-2"] > div.two {
	background-color: var(--col2);
}
body.col-3 #menu,
body.col-3::before,
.item[data-color="col-3"] > div.two {
	background-color: var(--col3);
}
body.col-4 #menu,
body.col-4::before,
.item[data-color="col-4"] > div.two {
	background-color: var(--col4);
}
body.col-5 #menu,
body.col-5::before,
.item[data-color="col-5"] > div.two {
	background-color: var(--col5);
}

.wrap > .hl {
	font-size: clamp(2rem, 5vw, 3rem);
	font-family: var(--sans);
	font-weight: 600;
	margin: 0;
	scroll-margin-top: 5vw;
}

a {
	text-decoration: none;
	color: inherit;
}

p,
figure {
	margin: 0;
	padding: 0;
}

img, video {
	display: block;
	width: 100%;
	height: auto !important;
}

#head * {
	margin: 0;
	padding: 0;
	font-size: 1em;
	font-weight: 400;
	font-style: normal;
	list-style: none;
}

#logo {
	display: block;
	position: absolute;
	z-index: 10;
	left: 0;
	width: 25vw;
	max-width: 5.25rem;
}

#nav {
	display: none;
	flex-direction: column;
	background: var(--text);
	color: #fff;
	box-sizing: border-box;;
	padding: 1.5rem;
	position: fixed;
	height: 100vh;
	z-index: 99;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}
html.menu #nav {
	display: flex;
}

#nav h1 {
	padding-bottom: 1.5em;
	padding-right: 2.25rem;
	border-bottom: 1px solid;
}
#nav h1 em {
	text-transform: uppercase;
	display: block;
}
#nav h1 + ul {
	flex: 1;
	overflow-y: scroll;
}
#nav li {
	text-transform: uppercase;
	padding: 1.5em 0;
	border-bottom: 1px solid;
}
#nav .sub-menu {
	margin-top: 1.5em;
}
#nav .sub-menu li {
	border: 0;
	padding: .5em 0;
	text-transform: none;
}
#nav a:hover {
	text-decoration: underline;
}
/*
#nav .current-menu-item,
#nav .current-menu-ancestor {
	font-weight: 500;
}
*/
#nav .sub-menu a.active {
	text-decoration: underline;
}

#menu {
	position: fixed;
	right: 1.5rem;
	top: 1rem;
	display: block;
	z-index: 100;
	width: 3rem;
	height: 3rem;
	border: 0;
	outline: inherit;
	font: inherit;
	background: none;
}
#menu span,
#menu::before, #menu::after {
    position: absolute;
	left: .5rem;
	right: .5rem;
    overflow: hidden;
    top: 50%;
	margin-top: -1px;
    text-indent: -100em;
    height: 2px;
    background: var(--text);
}
#menu::before, #menu::after {
    content: '';
    top: 50%;
	transform: translateY(-400%);
}
#menu::after {
	transform: translateY(400%);	
}
html.menu #menu {
	background: none;
}
html.menu #menu span {
	display: none;
}
html.menu #menu::before {
    transform: rotate(-45deg);
	background: #fff;
}
html.menu #menu::after {
    transform: rotate(45deg);
	background: #fff;
}

#main {
	position: relative;
	line-height: 1.5;
}
#main::before {
	position: sticky;
	top: 0;
	display: block;
	content: url(img/hero.svg);
	margin: 0 8%;
	transform: translateY(-10%);
	padding-top: 30vw;
}
#main .wrap {
	position: relative;
	padding: clamp(1.5rem, 5vw, 10rem);
	margin: auto;
	max-width: 80rem;
}
#main .wrap {
	padding-top: 0;
}

.page {
	background: var(--col1);
	padding: clamp(1.5rem, 5vw, 10rem);
}
.page strong {
	font-family: var(--sans);
	font-weight: 600;
	font-size: 1em;
}
.page a {
	text-decoration: underline;
}
.page a:hover {
	text-decoration: none;
}

.item {
	padding: 10vw 0;
}
.item > div {
	background: #fff;
	padding: 1.5rem;
}
.item > div.two {
	background: var(--col1);
}

.item .two {
	position: relative;
	padding-bottom: 100px;
	padding-top: 0;
}
.item .two::after {
	display: block;
	aspect-ratio: 234 / 134;
	content: '';
	width: 20%;
	position: absolute;
	right: 1.5rem;
	bottom: 1.5rem;
	background: url(img/77.png) center/contain no-repeat;
}

.item * {
	margin: 0;
	padding: 0;
}
.item .sh,
.item dt,
.item .hl {
	font-family: var(--sans);
	font-weight: 600;
}
.item .hl span {
	font-family: var(--root);
	font-weight: 400;
}
.page .hl,
.item .hl,
.item .sh {
	font-size: 1em;
	font-weight: 400;
	margin-bottom: 1em;
}
.item p,
.item figcaption {
	margin: 1em 0 0;
}
.page p {
	margin: 1.5em 0 0;	
}
.item figure {
	border-bottom: 1px solid;
	padding-bottom: 1em;
	margin-bottom: 4em;
	border-top: 1px solid;
	padding-top: 2em;
}
.item figure img {
	-webkit-transform: translateZ(0);
	filter: grayscale(1);
	mix-blend-mode: multiply;
}
.item figure img:hover {
	filter: none;
	mix-blend-mode: normal;
}
.item .hl::before {
	content: 'Jméno';
}
.item .hl,
.item dl {
	display: grid;
	grid-template-columns: 1fr 1fr;	
	gap: 1em;
}
.item dl {
	margin-top: 1em;
}
.item dl + .sh {
	margin-top: 2em;
	border-top: 1px solid;
	padding-top: 2em;
}
.item dd + dd {
	grid-column: span 2;
}
.page .hl,
.item blockquote {
	margin: 0;
	padding: 0;
	text-transform: uppercase;
	border-bottom: 1px solid;
	padding-bottom: 2em;
	margin-bottom: 2em;
}
.item blockquote p:first-child::before {
    content: open-quote;
    display: inline;
}
.item blockquote p:last-child::after {
    content: close-quote;
    display: inline;
}
.item blockquote + figure {
	border-top: 0;
	padding-top: 0;
}
.item a {
	display: inline-block;
	border: 1px solid;
	background: #fff;
	color: var(--text);
	padding: 1em;
	text-transform: uppercase;
	line-height: 1;
}
.item a:hover {
	background: var(--text);
	color: #fff;
	border-color: var(--text);	
}

@media only screen and (min-width: 960px) {
	body {
		display: flex;
		min-height: 100vh;
	}
	#head {
		width: fit-content;
	}
	#nav {
		display: flex;
		position: sticky;
		top: 0;
	}
	#nav h1 {
		padding-right: 0;
	}
	#nav h1 + ul {
		overflow-y: auto;
	}
	#main {
		flex: 1;
	}
	#main::before {
		padding: 0;
	}
	#menu {
		display: none;
	}
	
	#logo {
		position: fixed;
		z-index: 999;
		left: auto;
		right: 0;
		width: auto;
		max-width: none;
	}
}

@media only screen and (min-width: 80rem) {
	.item {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}
	.item > div {
		align-self: flex-start;
		transition: transform 1s ease-in-out;
	}
	
	.hl + .item {
		padding-top: 5vw;
	}

	.item .one {
		transform: translateY(-5%);
	}
	.item .two {
		margin-top: 30%;
		transform: translateY(10%);
	}
	.item.active .one, 
	.item.active .two {
		transform: translateY(0);
	}
	.item .two {
		padding-top: 1.5rem;
	}
	.item figure {
		border-top: 0;
		padding-top: 0;
	}
}
