/*
Theme Name:		Gymnázium Paměti národa
Theme URI:		https://www.gymnaziumpn.cz
Author:			Petr Šabach
Author URI:		https://sabach.studio
Version:		2026
*/

:root {
	--fill: #FBEEDA;
	--text: #1D1D1B;
	--col1: #F94C3C;
	--col2: #A6DDF1;
	--col3: #FEFD6F;
	--col4: #50BE71;
	--sans: tablet-gothic, sans-serif;
	--root: abril-text, serif;
}

body {
	font-size: clamp(.875rem, 2vw, 1rem);
	font-family: var(--root);
	font-weight: 400;
	font-style: normal;
	color: var(--text);
	background: var(--fill);
	line-height: 1.25;
}

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

img {
	display: block;
	max-width: 100%;
	height: auto !important;
}
ul, ol, li, dl, dd, dt, figure, figcaption {
	margin: 0;
	padding: 0;
}
button {
	background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
	display: inline-block;
}
em, strong {
	font: inherit;
	font-weight: inherit;
}

h1, h2, h3, h4, h5, strong {
	font-family: var(--sans);
	line-height: normal;
}
em,
.hl i {
	font-family: var(--root);
	font-weight: 400;
	font-style: italic;
}
.sc {
	font-family: var(--sans);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	font-size: clamp(.875rem, 2vw, 1rem);
}
.lead {
	font-size: clamp(1.125rem, 2vw, 1.5rem);
	line-height: 1.5;
}
.lead > :first-child {
	margin-top: 0;
}
.lead li {
	list-style: none;
}

.lead a, .copy a {
	text-decoration: underline;
}
.lead a:hover, .copy a:hover {
	text-decoration: none;
}

.wrap {
	padding: 0 1.25rem;
}

#main {
	margin: 5vw 0 15vw;
}

#head .wrap {
	display: flex;
	justify-content: space-between;
	margin-top: 1.5rem;
}

#home {
	padding: 0;
	margin: 0;
}

#open {
	background: #fff;
	font-family: var(--sans);
	font-size: 1.125rem;
	font-weight: 800;
	align-self: flex-start;
	padding: 12px 20px;
	margin-left: 1.25rem;
}

#top {
	font-size: clamp(.75rem, 2vw, .9375rem);
}
#top ul {
	list-style: none;
	display: inline-flex;
	flex-wrap: wrap;
	gap: clamp(1rem, 2vw, 2rem);
	line-height: 1;
}
#top li:nth-last-child(2)::after {
	content: '|';
	margin-left: clamp(1rem, 2vw, 2rem);
}

#nav {
	position: fixed;
	z-index: 999;
	inset: 0 0 0 0;
	background: #fff;
	padding: 2rem;
	font-family: var(--sans);
	font-weight: 800;
	font-size: 1.25rem;
	display: flex;
	flex-direction: column;
	overflow: auto;
	transform: translateX(-100%);
	transition: transform .5s;
}

body.open {
	overflow-y: hidden; 
}
body.open #nav {
	transform: translateX(0);	
}

#nav * {
	margin: 0;
	padding: 0;
	list-style: none;
}
#nav .sub-menu {
	display: none;
	font-family: var(--root);
	font-weight: 400;
	font-size: clamp(.75rem, 2vw, .9375rem);
}
#nav ul {
	width: 100%;
}
#nav li {
	padding: .5em 0;
}

#menu {
	margin-top: auto;
}
#side {
	margin-bottom: auto;
}
#menu > li:first-child {
	margin-bottom: 1em;
	padding-bottom: 1em;
	border-bottom: 1px solid var(--fill);
}
#side > li:first-child {
	margin-top: 1em;
	padding-top: 1em;
	border-top: 1px solid var(--fill);
}

#more {
	font-family: var(--root);
	font-weight: 400;
	font-size: clamp(.75rem, 2vw, .9375rem);
	display: grid;
	grid-template-columns: 1fr 1fr;
}

#exit {
	position: absolute;
	background: var(--text);
	width: 3rem;
	height: 3rem;
	right: 1.25rem;
	top: 1.25rem;
}
#exit::before,
#exit::after {
	content: '';
	width: 40%;
	height: 1px;
	background: #fff;
	position: absolute;
	inset: 0;
	margin: auto;
	transform: rotate(45deg);
}
#exit::after {
	transform: rotate(-45deg);	
}

#foot {
	background: #000;
	color: #fff;
	line-height: 2;
	padding: 8rem 0 0;
}
#foot .hl {
	font-size: 1.5rem;
	font-weight: 800;
	border-bottom: 4px solid #fff;
	padding-bottom: 4px;
	margin: 0 0 1rem;
}
#foot .col {
	border-top: 1px solid;
	padding: 2rem 0;
}
#foot .hl + .col {
	border: 0;
	padding-top: 0;
}
#foot .col:last-child {
	display: grid;
	grid-template-columns: 1fr 1fr;
}
#foot .col:last-child > ul {
	margin: 0;
}
#foot .col:last-child > ul:last-child {
	margin-top: 2rem;
	grid-column: span 2;
	display: flex;
}
#foot .col:last-child > ul:last-child li {
	flex: 1;
}

#foot .icons {
	display: inline-flex;
	gap: 1rem;
}
#foot p:first-child,
#foot ul:first-child {
	margin-top: 0;
}
#foot p,
#foot ul {
	margin: 2rem 0 0;
}
#foot li {
	list-style: none;
}
#foot a:hover {
	text-decoration: underline;
}
#foot .icons a::after {
	display: none;
}

#quote {
	height: 50vh;
}
#quote .wrap {
	background: url(img/foot.jpg) center/cover no-repeat;
	height: 100%;
	position: relative;
	z-index: -2;
	padding: 0;
}
#quote blockquote * {
	margin: 0;
	padding: 0;
}
#quote .wrap > :first-child {
	max-width: 34rem;
	background: #fff;
	padding: 3rem;
	position: relative;
	top: -3rem;
	margin-left: 5%;
	margin-right: 5%;
}
#quote .wrap > :first-child::before {
	content: '';
	position: absolute;
	z-index: -1;
	left: 2.5vw;
	right: 1.5vw;
	top: -1.25vw;
	bottom: -.5vw;
	background: var(--col3);
}
#quote blockquote {
	margin: 0;
	font-family: var(--sans);
	font-weight: 800;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
}
#quote blockquote em {
	font-family: var(--root);
	font-weight: 400;
	font-style: italic;
}
#quote .sc {
	margin: 1.5em 0 0;
}

.head .list {
	background: #fff;
	padding: 2rem;
}
.head .list li {
	position: relative;
	list-style: none;
	font-size: clamp(1.125rem, 2vw, 1.3125rem);
	font-family: var(--sans);
	font-weight: 800;
	line-height: 1.5rem;
}
.head .list li[data-title] {
	margin-top: 4.5rem;
}
.head .list li[data-title]::before {
	content: attr(data-title);
	font-family: var(--root);
	font-weight: 400;
	font-size: 1rem;
	position: absolute;
	top: -2rem;
	line-height: 1;
}
.head .list li::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1.5rem;
    border: solid black;
    border-width: 0 1px 1px 0;
    padding: 4px;
    transform: translateY(-50%) rotate(-45deg);
}
.head .list li:first-child,
.head .list li[data-title] {
	border-top: 4px solid;
}
.head .list li[data-title]:first-child {
	margin-top: 2rem;
}
.head .list li a {
	display: block;
	padding: 1.5rem 0;
	transition: padding .75s;
	border-bottom: 4px solid;	
}
.head .list li a:hover {
	padding-left: 1rem;
}
.head .list i {
	font-style: normal;
}

#main .body {
	line-height: 1.5;
	margin-top: 10rem;
	font-size: clamp(1rem, 2vw, 1.125rem);
}
#main .body + .body {
	margin-top: 10rem;
}
#main .feed {
	margin-top: 2.5rem;
	display: grid;
	gap: 2rem;
}
#main .feed > h2 {
	font-size: clamp(1.5rem, 2vw, 2.25rem);
	margin: 0;
	font-family: var(--root);
	font-weight: 400;
	font-style: italic;
}
#main .menu {
	list-style: none;
	display: flex;
	gap: 1.5em;
}
#main .menu a:hover {
	text-decoration: underline;
}
#main .grid {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}
#main .grid::before {
    content: '';
    width: 0;
    padding-bottom: 100%;
    grid-row: 1 / 1;
    grid-column: 1 / 1;
}
#main .grid > *:first-child {
    grid-row: 1 / 1;
    grid-column: 1 / 1;
}
#main .grid .news {
	position: relative;
	background: #fff;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 1.5rem;
}
#main .grid .news * {
	margin: 0;
}
#main .grid .hl {
	font-size: clamp(1.5rem, 2vw, 1.875rem);
	line-height: 1.25;
	margin-bottom: 1em;
}
#main .grid .hl a:hover::before {
	content: '';
	position: absolute;
	z-index: -1;
	inset: -1vw -.5vw -.5vw 1vw;
	background: var(--col2);
}
#main .grid .hl a::after {
	content: '';
	position: absolute;
	inset: 0 0 0 0;
}

.card {
	font-size: clamp(.875rem, 2vw, 1rem);
}
.card .name {
	position: relative;
	background: #fff;
	padding: 1.5rem;
	aspect-ratio: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	line-height: 1.25;
}
.card .name button::after {
	content: '';
	position: absolute;
	inset: 0 0 0 0;
}
.card .name button[aria-expanded="true"]::before {
	content: '';
	position: absolute;
	z-index: -1;
	inset: -1vw -.5vw -.5vw 1vw;
	background: var(--col2);
}
@media (hover: hover) {
	.card .name button:hover::before {
		content: '';
		position: absolute;
		z-index: -1;
		inset: -1vw -.5vw -.5vw 1vw;
		background: var(--col2);
	}
}

.card .name * {
	margin: 0;
}
.card .name .img {
	aspect-ratio: 1;
	border-radius: 50%;
	width: 50%;
	margin-bottom: 1rem;
	overflow: hidden;
}
.card .name h3 {
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	font-weight: 800;
	margin-bottom: 1rem;
	line-height: 1.25;
}
.card .name h3 span {
	font-family: var(--root);
	font-style: italic;
	font-weight: 400;
}
.card .txt {
	position: relative;
	font-style: italic;
	padding-top: 1.5rem;
}
.card .txt::after {
	content: '';
	position: absolute;
	top: 0;
	right: 20%;
	width: 0; 
	height: 0; 
	border-left: 20px solid transparent;
	border-right: 20px solid transparent;  
	border-top: 20px solid #fff;
}
.card .mail {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-family: var(--sans);
	font-style: normal;
	font-weight: 700;
}

.txt > :first-child {
	margin-top: 0;
}
.txt > * {
	margin: 1em 0 0;
}
.txt-img {
	background: #fff;
	padding: 3rem;
	margin-left: -1.5rem;
	margin-right: -1.5rem;
	margin-bottom: 6rem;
}
.txt-img .img {
	position: relative;
	top: 6rem;
	margin-top: -3rem;
	margin-right: -3rem;
}
.txt-img:nth-child(even) .img {
	margin-right: 0;
	margin-left: -3rem;
}

#main .copy {
	margin: 5rem 0;
}
#main .copy li {
	list-style: none;
	position: relative;
	padding-left: 1.5rem;
	margin: 0 0 1em;
}
#main .copy li::before {
	content: '—';
	position: absolute;
	left: 0;
}

:not(.tab) + .tab {
	margin-top: 5rem;
}
.tab + .tab {
	margin-top: 1.5rem;;
}
.tab + :not(.tab) {
	margin-top: 5rem;
}
.tab {
	overflow: hidden;
	background: #fff;
}
.tab .hl {
	position: relative;
    margin: 0;
}
.tab .hl button {
    line-height: 1;
    display: inline-block;
    width: 100%;
    text-align: left;
    padding: 1.75rem;
}
.tab .hl button::after {
    content: url(img/plus.svg);
    position: absolute;
    top: 50%;
    right: 1.75rem;
    transform: translateY(-50%);
    transition: transform .5s;
}
.tab .hl button[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(45deg);
}
.tab [role="region"] {
	padding: 0 1.75rem 1.75rem;
}
.tab [role="region"]::before {
	content: '';
	display: block;
	height: 4px;
	background: #000;
	margin-bottom: 1.75rem;
}
.tab [role="region"] > :first-child {
	margin-top: 0;
}
.tab [role="region"] > * {
	margin: 1em 0 0;
}

#main .head .hl {
	margin: 0 0 0.25em;
	font-size: clamp(2.5rem, 8vw, 4.5rem);	
	font-weight: 800;
	line-height: 1;
}
#main .head .hl + .sc {
	margin: 1.5em 0;
}
#main .head .hl + .img {
	margin-top: clamp(1.5rem, 3vw, 3rem);
}
#main .head .img {
	position: relative;
	z-index: -1;
	margin-left: -1.5rem;
	padding-right: 1.5rem;
}
#main .head > .lead {
	position: relative;
	background: #fff;
	padding: 1em;
	margin-top: -2.5em;
}
#main .head > .lead::before {
	content: '';
	position: absolute;
	z-index: -1;
	left: -.5vw;
	right: 1.5vw;
	top: -.25vw;
	bottom: -2.75vw;
	background: var(--col1);
}

#hero {
	position: relative;
	aspect-ratio: 1;
	list-style: none;
	overflow: hidden;
	margin: 2.5rem 0 1.5rem;
}
#hero > *::after {
	content: '';
	z-index: -2;
	opacity: 0;
	transform: translate(-20px, -50px);
}
@media (hover: hover) {
	#hero:hover > *::after {
		transform: translate(-20px, -50px) !important;
	}
}

#hero > *::before {
	content: '';
	z-index: -1;
	opacity: 0;
	transform: translate(50px, 20px);
}
@media (hover: hover) {
	#hero:hover > *::before {
		transform: translate(50px, 20px) !important;
	}

}
#hero img,
#hero > *::after,
#hero > *::before {
	position: absolute;
	inset: 0 0 0 0;
	transition: transform 1s ease-out, opacity .5s ease;
}

#hero img {
	opacity: 0;
	transform: translate(-20px, -10px);
}
@media (hover: hover) { 
	#hero:hover img {
		transform: translate(-20px, -10px) !important;
	}
}

#hero.skola #hero-skola img,
#hero.skola #hero-skola::after, 
#hero.skola #hero-skola::before,
#hero.studium #hero-studium img,
#hero.studium #hero-studium::after, 
#hero.studium #hero-studium::before,
#hero.pro-uchazece #hero-pro-uchazece img,
#hero.pro-uchazece #hero-pro-uchazece::after, 
#hero.pro-uchazece #hero-pro-uchazece::before,
#hero.akademie #hero-akademie img,
#hero.akademie #hero-akademie::after, 
#hero.akademie #hero-akademie::before {
	opacity: 1;
	transform: none;
}

#hero-skola::after {
	background: url(img/hero-skola_a.svg) center / contain no-repeat;
}
#hero-skola::before {
	background: url(img/hero-skola_b.svg) center / contain no-repeat;
}
#hero-studium::after {
	background: url(img/hero-studium_a.svg) center / contain no-repeat;
}
#hero-studium::before {
	background: url(img/hero-studium_b.svg) center / contain no-repeat;
}
#hero-pro-uchazece::after {
	background: url(img/hero-pro-uchazece_a.svg) center / contain no-repeat;
}
#hero-pro-uchazece::before {
	background: url(img/hero-pro-uchazece_b.svg) center / contain no-repeat;
}
#hero-akademie::after {
	background: url(img/hero-akademie_a.svg) center / contain no-repeat;
}
#hero-akademie::before {
	background: url(img/hero-akademie_b.svg) center / contain no-repeat;
}

#main .head .right h1 {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 800;
	margin: 0 0 1em;
	line-height: 1.25;
}
#main .head .right h1 + p {
	margin: 1.5em 0;
}

@media only screen and (min-width: 960px) {
	#head .wrap,
	#foot .wrap {
		margin: auto;
		width: 90%;
	}
	
	#main .wrap {
		width: 90%;
		max-width: 80rem;
		margin: auto;
	}
	#main .copy {
		width: 60%;
		margin: 5rem auto;
	}
	#main .grid.rect {
		grid-auto-rows: 1fr;
	}
	#main .feed {
		grid-template-columns: 20% auto;
		gap: 0;
	}
	#main .menu {
		flex-direction: column;
	}
	/*
	#hero {
		margin: -2.5rem 0 2.5rem;
	}
	*/
	
	#home {
		margin-top: 5rem;
	}
	#menu {
		order: 2;
	}
	#side {
		order: 3;
	}
	#nav #more {
		justify-content: flex-end;
		align-self: flex-start;
		width: 100%;
		order: 1;
		padding: 1.25rem 0;
	}
	#more a:hover {
		text-decoration: underline;
	}
	
	#nav {
		position: static;
		background: none;
		padding: 0;
		font-size: clamp(.9375rem, 1.5vw, 1.125rem);
		overflow: visible;
		transform: none;
		flex: 1;
		flex-direction: row;
		flex-wrap: wrap;
		transition: none;
		align-content: center;
	}
	#nav ul {
		width: auto;
		display: flex;
		white-space: nowrap;
	}
	#nav li {
		position: relative;
		margin: 0 !important;
		padding: 0 !important;
	}
	#nav li:first-child {
		border: none;
	}
	#nav li > a {
		position: relative;
		display: block;
		padding: 12px 1em;
	}
	#nav > ul:not(#more) > li > a:hover::before,
	#nav > ul:not(#more) > .current-menu-item > a::before {
		content: '';
		position: absolute;
		height: 4px;
		background: var(--text);
		left: 1em;
		right: 1em;
		bottom: 0;
	}
	#menu > li:hover {
		background: #fff;
	}
	#nav li .sub-menu {
		position: absolute;
		width: fit-content;
		min-width: 100%;
		background: #fff;
		flex-direction: column;
	}
	#nav li .sub-menu::before {
		content: '';
		position: absolute;
		z-index: -1;
		inset: -.5vw -.5vw -.25vw -.25vw;
		background: var(--col1);
	}
	#nav li .sub-menu.studium::before {
		background: var(--col2);
	}
	#nav li .sub-menu.pro-uchazece::before {
		background: var(--col3);
	}
	#nav li .sub-menu.akademie::before {
		background: var(--col4);
	}
	#nav li:hover .sub-menu {
		display: flex;
	}
	#nav li .sub-menu [data-title]::before {
		content: '';
		background: var(--text);
		height: 1px;
		position: absolute;
		left: 1em;
		right: 1em;
	}
	#nav li .sub-menu li a:hover {
		text-decoration: underline;
	}
	
	#menu {
		margin: auto;
	}
	#side {
		margin: auto 0;
	}
	#menu > li:first-child,
	#open, #exit {
		display: none;
	}
	
	#foot {
		padding-bottom: 10vh;
	}
	#foot .wrap {
		display: grid;
		grid-template-columns: 1fr 2fr 2fr;
	}
	#foot .col {
		border: 0;
		padding: 4rem 1rem 0 0;
	}
	#foot .hl {
		grid-column: span 4;
	}
	#foot .col:last-child {
		padding-top: 0;
	}
	
	#hero {
		margin: 0;
	}
	
	#main .head {
		display: grid;
		grid-template-columns: repeat(10, 1fr);
		align-items: flex-start;
	}
	#main .head .hero {
		grid-row: 1;
		grid-column: 1 / span 5;
	}
	#main .head .left {
		grid-row: 1;
		grid-column: 1 / span 6;
	}
	#main .head .right {
		grid-row: 1;
		grid-column: 6 / span 5;
	}
	#main .head .hl {
		padding-right: 25%;
	}
	#main .head .img {
		margin: 0;
		padding: 0;
	}
	#main .head .lead {
		margin-top: 0;
		grid-row: 1;
		grid-column: 6 / span 5;
	}
	
	.txt-img {
		background: none;
		padding: 0;
		margin-left: 0;
		margin-right: 0;
		margin-bottom: 6rem;
		display: grid;
		grid-template-columns: repeat(10, 1fr);
		align-items: center;
	}
	.txt-img .txt {
		padding: 10% 30% 10% 15%;
		background: #fff;
		grid-column: 1 / span 7;
		grid-row: 1;
	}
	.txt-img .img {
		position: static;
		margin: 0 !important;
		grid-column: 7 / span 3;
		grid-row: 1;
		aspect-ratio: 1;
		display: flex;
		align-items: center;
		justify-content: flex-start;
	}
	.txt-img:nth-child(even) .txt {
		grid-column: 4 / span 7;
		padding: 10% 15% 10% 30%;
	}
	.txt-img:nth-child(even) .img {
		grid-column: 2 / span 3;
		justify-content: flex-end;
	}
	.txt-img img {
		max-height: 100%;
	}
}

