/*
Theme Name: KACU GROUP
Description: Šablona webu KACU GROUP: kurzy s rezervací, služby, galerie, blog a partneři. Vyžaduje plugin KACU Kurzy.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Author: KACU GROUP
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kacu
*/

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */

@font-face {
	font-family: "Sofia Sans";
	src: url("assets/fonts/sofia-sans.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Sofia Sans Extra Condensed";
	src: url("assets/fonts/sofia-sans-extra-condensed.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
	--ground: #1e1f22;
	--surface: #26282c;
	--deep: #17181a;
	--line: #3a3c41;
	--line-soft: #3f4146;
	--line-strong: #5a5c61;
	--field-border: #6b6d72;
	--ink: #f5f1e8;
	--ink-soft: #e4dfd3;
	--muted: #bdb9ae;
	--quiet: #a9a69d;
	--gold: #b8975a;
	--gold-hover: #d4b67c;
	--spent: #8f8c84;
	--display: "Sofia Sans Extra Condensed", "Sofia Sans", "Arial Narrow", sans-serif;
	--sans: "Sofia Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1280px;
	--pad: 40px;
	--section: 96px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--ground);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.55;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

main {
	flex: 1 0 auto;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--gold);
}

a:hover {
	color: var(--gold-hover);
}

:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	line-height: 1.25;
}

p {
	margin: 0 0 1em;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--pad);
}

.muted {
	color: var(--muted);
}

.screen-reader-text,
.skip-link:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100;
	background: var(--gold);
	color: var(--ground);
	padding: 12px 18px;
	font-weight: 700;
}

/* ---------- Type ---------- */

.display {
	font-family: var(--display);
	font-weight: 800;
	text-transform: uppercase;
	line-height: 1;
	font-size: clamp(44px, 5vw, 64px);
}

.display--hero {
	font-size: clamp(56px, 7.6vw, 112px);
	line-height: 0.92;
	letter-spacing: 0.005em;
}

.display--page {
	font-size: clamp(52px, 6vw, 84px);
	line-height: 0.95;
}

.display--small {
	font-size: 44px;
}

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

.display a:hover {
	color: var(--gold-hover);
}

.gold-bar {
	width: 96px;
	height: 3px;
	background: var(--gold);
	margin: 28px 0 24px;
}

/* ---------- Buttons ---------- */

.button,
.wp-block-button__link {
	display: inline-block;
	min-height: 48px;
	padding: 14px 26px;
	border: 1px solid transparent;
	border-radius: 0;
	font: inherit;
	font-weight: 700;
	line-height: 1.15;
	text-decoration: none;
	cursor: pointer;
	text-align: center;
}

.button--primary,
.wp-block-button__link {
	background: var(--gold);
	border-color: var(--gold);
	color: var(--ground);
}

.button--primary:hover,
.wp-block-button__link:hover {
	background: var(--gold-hover);
	border-color: var(--gold-hover);
	color: var(--ground);
}

.button--secondary {
	background: transparent;
	border-color: var(--ink);
	color: var(--ink);
}

.button--secondary:hover {
	border-color: var(--gold-hover);
	color: var(--gold-hover);
}

.button--large {
	padding: 16px 30px;
}

.button--disabled {
	border-color: var(--line-strong);
	color: var(--muted);
	cursor: default;
}

.text-link {
	display: inline-block;
	padding: 12px 0;
	font-weight: 700;
}

/* ---------- Header ---------- */

.site-header {
	border-bottom: 1px solid var(--line);
	position: relative;
	z-index: 20;
}

.home .site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	border-bottom: 0;
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 40px;
	padding-block: 28px;
}

.site-logo {
	display: flex;
}

.site-logo img {
	height: 60px;
	width: auto;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 34px;
	font-size: 16px;
	font-weight: 600;
}

.site-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 34px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__list a {
	display: block;
	padding: 10px 0;
	border-bottom: 2px solid transparent;
	color: var(--ink);
	text-decoration: none;
}

.site-nav__list a:hover {
	color: var(--gold-hover);
}

.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_parent > a,
.site-nav__list .current-menu-ancestor > a {
	color: var(--gold);
	border-bottom-color: var(--gold);
}

.site-nav__cta {
	min-height: 0;
	padding: 13px 22px;
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 10px 16px;
	background: transparent;
	border: 1px solid var(--line-strong);
	border-radius: 0;
	color: var(--ink);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

@media (max-width: 960px) {
	.nav-toggle {
		display: inline-flex;
	}

	.site-nav {
		display: none;
		flex: 1 0 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding-bottom: 8px;
	}

	.site-nav.is-open {
		display: flex;
	}

	.home .site-header.is-open {
		background: var(--ground);
	}

	.site-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.site-nav__list a {
		padding: 14px 0;
		border-bottom: 1px solid var(--line);
	}

	.site-nav__cta {
		margin-top: 16px;
	}
}

/* ---------- Page head ---------- */

.page-head {
	padding-top: 80px;
	padding-bottom: 56px;
}

.page-head__lead {
	max-width: 640px;
	font-size: 20px;
	line-height: 1.5;
	color: var(--ink-soft);
}

.page-head__lead > :last-child {
	margin-bottom: 0;
}

.section {
	padding-block: var(--section);
}

.section--flush-top {
	padding-top: 0;
}

.band {
	background: var(--surface);
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 40px;
	margin-bottom: 36px;
}

.rule-list {
	border-top: 1px solid var(--gold);
}

.rule-list--quiet {
	border-top-color: var(--line-strong);
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	min-height: 780px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	overflow: hidden;
}

.hero__image,
.hero__image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 60% 35%;
}

.hero::before,
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.hero::before {
	background: linear-gradient(90deg, rgba(30, 31, 34, 0.94) 0%, rgba(30, 31, 34, 0.82) 34%, rgba(30, 31, 34, 0.25) 62%, rgba(30, 31, 34, 0.05) 100%);
}

.hero::after {
	bottom: auto;
	height: 180px;
	background: linear-gradient(180deg, rgba(30, 31, 34, 0.85) 0%, rgba(30, 31, 34, 0) 100%);
}

.hero__content {
	position: relative;
	z-index: 2;
	padding-top: 180px;
	padding-bottom: 96px;
}

.hero__title {
	max-width: 760px;
}

.hero__lead {
	max-width: 520px;
	margin: 0;
	font-size: 20px;
	line-height: 1.5;
	color: var(--ink-soft);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 36px;
}

@media (max-width: 700px) {
	.hero {
		min-height: 640px;
	}

	.hero::before {
		background: linear-gradient(180deg, rgba(30, 31, 34, 0.55) 0%, rgba(30, 31, 34, 0.9) 70%);
	}
}

/* ---------- Course rows ---------- */

.month-heading {
	margin: 48px 0 0;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--gold);
	font-size: 17px;
	font-weight: 700;
	color: var(--muted);
}

.month-heading:first-child {
	margin-top: 0;
}

.course-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 36px;
	padding: 28px 0;
	border-bottom: 1px solid var(--line);
}

.course-row__date {
	flex: 0 0 190px;
	display: flex;
	align-items: center;
	gap: 16px;
}

.course-row__day {
	font-family: var(--display);
	font-weight: 800;
	font-size: 76px;
	line-height: 0.9;
	color: var(--gold);
}

.course-row--full .course-row__day {
	color: var(--spent);
}

.course-row__when {
	font-size: 15px;
	line-height: 1.35;
	color: var(--muted);
}

.course-row__month {
	color: var(--ink);
	font-weight: 700;
}

.course-row__thumb {
	flex: 0 0 168px;
}

.course-row__thumb img {
	width: 168px;
	height: 112px;
	object-fit: cover;
}

.course-row__main {
	flex: 1 1 300px;
	min-width: 0;
}

.course-row__title {
	font-size: 24px;
	font-weight: 700;
}

.course-row__title a {
	color: var(--ink);
	text-decoration: none;
}

.course-row__title a:hover {
	color: var(--gold-hover);
}

.course-row__capacity {
	flex: 0 0 180px;
}

.capacity__label {
	font-weight: 700;
}

.capacity__track {
	margin-top: 8px;
	height: 4px;
	background: var(--line);
}

.capacity__fill {
	height: 4px;
	background: var(--gold);
}

.capacity--full .capacity__fill {
	background: var(--spent);
}

.panel .capacity__label {
	color: var(--gold);
}

.panel .capacity--full .capacity__label {
	color: var(--muted);
}

.plain-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 36px;
	padding: 20px 0;
	border-bottom: 1px solid var(--line-soft);
}

.plain-row__date {
	flex: 0 0 190px;
	color: var(--muted);
}

.plain-row__title {
	flex: 1 1 300px;
	min-width: 0;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
}

.plain-row__title a {
	color: var(--ink);
	text-decoration: none;
}

.plain-row__title a:hover {
	color: var(--gold-hover);
}

.empty-note {
	padding: 28px 0;
	color: var(--muted);
	border-bottom: 1px solid var(--line);
}

/* ---------- Split sections (photo + text) ---------- */

.split {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 48px 72px;
}

.split--stretch {
	align-items: stretch;
}

.split__media {
	flex: 1.2 1 440px;
	min-width: 0;
	position: relative;
	min-height: 360px;
}

.split__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.split__media--tall {
	min-height: 460px;
}

.split__body {
	flex: 1 1 400px;
	min-width: 0;
}

.service-list__item {
	padding: 20px 0;
	border-bottom: 1px solid var(--line-soft);
}

.service-list__item h3 {
	font-size: 22px;
	font-weight: 700;
}

.service-list__item p {
	margin: 6px 0 0;
	color: var(--muted);
}

.service {
	padding: 48px 0;
	border-bottom: 1px solid var(--line);
}

.service:nth-child(even) {
	flex-direction: row-reverse;
}

.service__text {
	max-width: 520px;
	margin-top: 20px;
	color: var(--ink-soft);
}

.service__text > :last-child {
	margin-bottom: 0;
}

.service .button {
	margin-top: 24px;
}

.cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 48px;
	padding-block: 72px;
}

.cta p {
	margin: 14px 0 0;
	max-width: 560px;
	color: var(--ink-soft);
}

/* ---------- Photo grids ---------- */

.photo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 12px;
}

.photo {
	display: block;
	overflow: hidden;
}

.photo img {
	width: 100%;
	height: 270px;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.photo:hover img {
	transform: scale(1.03);
}

.photo-link {
	display: block;
}

.photo[hidden] {
	display: none;
}

.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding-bottom: 28px;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--gold);
}

.chip {
	min-height: 48px;
	padding: 12px 20px;
	background: transparent;
	border: 1px solid var(--line-strong);
	border-radius: 0;
	color: var(--ink);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.chip:hover {
	border-color: var(--gold-hover);
}

.chip[aria-pressed="true"] {
	background: var(--gold);
	border-color: var(--gold);
	color: var(--ground);
}

.gallery-foot {
	margin-top: 28px;
	color: var(--muted);
}

.gallery-foot .button {
	margin-top: 16px;
}

/* ---------- Lightbox ---------- */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(23, 24, 26, 0.95);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 72px 96px 32px;
}

.lightbox[hidden] {
	display: none;
}

.lightbox__img {
	max-width: 100%;
	max-height: calc(100vh - 170px);
	width: auto;
	height: auto;
	object-fit: contain;
}

.lightbox__bar {
	width: 100%;
	max-width: 1080px;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 24px;
}

.lightbox__label {
	font-weight: 700;
}

.lightbox__caption,
.lightbox__count {
	color: var(--muted);
}

.lightbox__btn {
	position: absolute;
	width: 52px;
	height: 52px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ground);
	border: 1px solid var(--line-strong);
	border-radius: 0;
	color: var(--ink);
	cursor: pointer;
}

.lightbox__btn:hover {
	border-color: var(--gold-hover);
	color: var(--gold-hover);
}

.lightbox__close {
	top: 16px;
	right: 24px;
}

.lightbox__prev {
	left: 24px;
	top: calc(50% - 26px);
}

.lightbox__next {
	right: 24px;
	top: calc(50% - 26px);
}

@media (max-width: 700px) {
	.lightbox {
		padding: 80px 12px 88px;
	}

	.lightbox__prev,
	.lightbox__next {
		top: auto;
		bottom: 20px;
	}

	.lightbox__prev {
		left: calc(50% - 60px);
	}

	.lightbox__next {
		right: calc(50% - 60px);
	}
}

/* ---------- Course detail ---------- */

.course-head {
	padding-top: 48px;
	padding-bottom: 40px;
}

.course-head h1 {
	max-width: 940px;
	margin-top: 16px;
}

.course-layout {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 48px 56px;
	padding-bottom: var(--section);
}

.course-layout__main {
	flex: 1.5 1 520px;
	min-width: 0;
}

.course-layout__aside {
	flex: 1 1 400px;
	min-width: 0;
}

.course-gallery__main img {
	width: 100%;
	height: 480px;
	object-fit: cover;
}

.course-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 12px;
}

.course-gallery__thumbs img {
	width: 100%;
	height: 140px;
	object-fit: cover;
}

.subhead {
	margin: 56px 0 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--gold);
	font-size: 24px;
	font-weight: 700;
}

.panel {
	background: var(--surface);
	border-top: 3px solid var(--gold);
	padding: 32px 36px 36px;
}

.panel--spent {
	border-top-color: var(--spent);
}

.panel__title {
	margin: 36px 0 20px;
}

.panel__heading {
	margin-bottom: 12px;
	font-size: 24px;
	font-weight: 700;
}

.facts {
	margin: 0;
}

.facts__row {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line-soft);
}

.facts__row:last-child {
	border-bottom: 0;
}

.facts dt {
	color: var(--muted);
}

.facts dd {
	margin: 0;
	font-weight: 700;
	text-align: right;
}

.panel .capacity {
	margin-top: 12px;
}

/* ---------- Booking form (markup comes from the KACU Kurzy plugin) ---------- */

.kacu-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	position: relative;
}

.kacu-form__row {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 16px;
}

.kacu-field {
	flex: 1 1 130px;
	min-width: 0;
}

.kacu-form > .kacu-field {
	flex: 0 0 auto;
}

.kacu-field--wide {
	flex: 2 1 180px;
}

.kacu-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
}

.kacu-field__hint {
	font-weight: 400;
	color: var(--muted);
}

.kacu-field input[type="text"],
.kacu-field input[type="email"],
.kacu-field input[type="tel"],
.kacu-field select,
.kacu-field textarea,
.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content textarea {
	width: 100%;
	padding: 13px 14px;
	background: var(--ground);
	border: 1px solid var(--field-border);
	border-radius: 0;
	color: var(--ink);
	font: inherit;
}

.kacu-field textarea {
	resize: vertical;
}

.kacu-field [aria-invalid="true"] {
	border-color: #e2a08b;
}

.kacu-field__error {
	margin: 6px 0 0;
	font-size: 15px;
	color: #f0b9a8;
}

.kacu-field--check {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 6px 12px;
}

.kacu-field--check input {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin: 2px 0 0;
	accent-color: var(--gold);
}

.kacu-field--check label {
	flex: 1 1 0;
	margin: 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.45;
	color: var(--ink-soft);
}

.kacu-field--check .kacu-field__error {
	flex: 1 0 100%;
}

.kacu-form__alert {
	margin: 0;
	padding: 14px 16px;
	border: 1px solid #e2a08b;
	color: #f6cfc2;
}

.kacu-button,
.kacu-form__submit {
	min-height: 48px;
	padding: 17px 30px;
	background: var(--gold);
	border: 1px solid var(--gold);
	border-radius: 0;
	color: var(--ground);
	font: inherit;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
}

.kacu-form__submit:hover {
	background: var(--gold-hover);
	border-color: var(--gold-hover);
}

.kacu-form__note {
	margin: 0;
	font-size: 15px;
	line-height: 1.45;
	color: var(--muted);
}

/* ---------- Booking received ---------- */

.confirm {
	padding-top: 80px;
	padding-bottom: var(--section);
}

.confirm__lead {
	max-width: 680px;
	margin: 0;
	font-size: 20px;
	line-height: 1.5;
	color: var(--ink-soft);
}

.confirm__panels {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 24px;
	margin-top: 48px;
}

.confirm__panels .panel {
	flex: 1 1 380px;
	min-width: 0;
	max-width: 620px;
	padding-top: 28px;
	padding-bottom: 32px;
}

.confirm__notes {
	max-width: 680px;
	margin-top: 32px;
}

.confirm__notes p:first-child {
	color: var(--ink-soft);
}

.confirm__notes p {
	color: var(--muted);
}

.confirm__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 32px;
}

/* ---------- People, partners ---------- */

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 40px 32px;
}

.person img,
.person__placeholder {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	object-position: center top;
	background: var(--surface);
}

.person h3 {
	margin-top: 18px;
	font-size: 24px;
	font-weight: 700;
}

.person__role {
	margin: 4px 0 0;
	color: var(--gold);
	font-weight: 700;
}

.person__bio {
	margin-top: 8px;
	color: var(--muted);
}

.person__bio > :last-child {
	margin-bottom: 0;
}

.partner-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 40px 24px;
	padding-top: 40px;
	border-top: 1px solid var(--gold);
}

.partner__logo {
	height: 160px;
	padding: 28px;
	background: var(--surface);
	border: 1px solid var(--line);
	display: flex;
	align-items: center;
	justify-content: center;
}

.partner__logo img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	object-fit: contain;
}

.partner h2 {
	margin-top: 16px;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
}

.partner a.text-link {
	padding: 8px 0;
	word-break: break-word;
}

/* ---------- Blog ---------- */

.post-feature {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 36px 64px;
	padding: 48px 0;
	border-top: 1px solid var(--gold);
	border-bottom: 1px solid var(--line);
}

.post-feature__media {
	flex: 1.2 1 480px;
	min-width: 0;
}

.post-feature__media img {
	width: 100%;
	height: 380px;
	object-fit: cover;
}

.post-feature__body {
	flex: 1 1 380px;
	min-width: 0;
}

.post-feature__body h2 {
	margin-top: 8px;
}

.post-feature__body p {
	max-width: 520px;
	margin: 18px 0 0;
	color: var(--ink-soft);
}

.post-feature__body .button {
	margin-top: 24px;
}

.post-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 36px;
	padding: 28px 0;
	border-bottom: 1px solid var(--line);
}

.post-row__thumb {
	flex: 0 0 220px;
}

.post-row__thumb img {
	width: 220px;
	height: 146px;
	object-fit: cover;
}

.post-row__body {
	flex: 1 1 360px;
	min-width: 0;
}

.post-row__date {
	font-size: 15px;
	color: var(--muted);
}

.post-row__body h3 {
	margin-top: 4px;
	font-size: 24px;
	font-weight: 700;
}

.post-row__body h3 a {
	color: var(--ink);
	text-decoration: none;
}

.post-row__body h3 a:hover {
	color: var(--gold-hover);
}

.post-row__body p {
	max-width: 640px;
	margin: 6px 0 0;
	color: var(--muted);
}

.pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 36px;
}

.post-head {
	padding-top: 48px;
	padding-bottom: 48px;
}

.post-head__date {
	margin-top: 20px;
	color: var(--muted);
}

.post-head h1 {
	max-width: 940px;
	margin-top: 8px;
}

.post-head__lead {
	max-width: 720px;
	margin: 24px 0 0;
	font-size: 20px;
	line-height: 1.5;
	color: var(--ink-soft);
}

.post-cover img {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
}

.post-body {
	padding-top: 56px;
	padding-bottom: var(--section);
}

/* ---------- Editor content ---------- */

.entry-content {
	max-width: 720px;
	color: var(--ink-soft);
}

.entry-content > * {
	margin-top: 0;
	margin-bottom: 18px;
}

.entry-content > :last-child {
	margin-bottom: 0;
}

.entry-content h2 {
	margin-top: 40px;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--ink);
}

.entry-content h3 {
	margin-top: 32px;
	font-size: 20px;
	font-weight: 700;
	color: var(--ink);
}

.entry-content h2:first-child,
.entry-content h3:first-child {
	margin-top: 0;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.3em;
}

.entry-content li {
	margin-bottom: 6px;
}

.entry-content li::marker {
	color: var(--gold);
}

.entry-content blockquote {
	margin-inline: 0;
	padding: 4px 0 4px 24px;
	border-left: 3px solid var(--gold);
	color: var(--ink);
	font-size: 20px;
}

.entry-content figure {
	margin-inline: 0;
}

.entry-content figcaption {
	margin-top: 10px;
	font-size: 15px;
	color: var(--muted);
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 12px 8px;
	border-bottom: 1px solid var(--line-soft);
	text-align: left;
}

.entry-content hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin-block: 32px;
}

.entry-content--muted h3 + p {
	color: var(--muted);
}

.alignwide,
.alignfull {
	max-width: none;
}

/* ---------- Footer ---------- */

.site-footer {
	background: var(--deep);
	border-top: 1px solid var(--gold);
}

.site-footer__main {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 40px 80px;
	padding-top: 64px;
	padding-bottom: 40px;
}

.site-footer__brand {
	flex: 0 1 320px;
}

.site-footer__brand img {
	height: 64px;
	width: auto;
}

.site-footer__brand p {
	margin: 20px 0 0;
	color: var(--muted);
}

.site-footer__contact {
	flex: 0 1 260px;
	color: var(--muted);
}

.site-footer__contact h2 {
	margin-bottom: 12px;
	font-size: 17px;
	font-weight: 700;
	color: var(--ink);
}

.site-footer__contact a {
	color: var(--muted);
}

.site-footer__contact a:hover {
	color: var(--gold-hover);
}

.site-footer__nav {
	flex: 0 1 320px;
}

.site-footer__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 2;
	column-gap: 32px;
}

.site-footer__nav a {
	display: block;
	padding: 10px 0;
	color: var(--ink);
	text-decoration: none;
}

.site-footer__nav a:hover {
	color: var(--gold-hover);
}

.site-footer__bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 32px;
	padding-top: 20px;
	padding-bottom: 32px;
	border-top: 1px solid #2e3034;
	font-size: 15px;
	color: var(--quiet);
}

.site-footer__bar a {
	color: var(--quiet);
}

.site-footer__bar a:hover {
	color: var(--gold-hover);
}

/* ---------- Small screens ---------- */

@media (max-width: 700px) {
	:root {
		--pad: 20px;
		--section: 64px;
	}

	.site-logo img {
		height: 48px;
	}

	.page-head {
		padding-top: 48px;
		padding-bottom: 40px;
	}

	.course-row {
		gap: 14px 20px;
	}

	.course-row__date {
		flex-basis: 100%;
	}

	.course-row__day {
		font-size: 60px;
	}

	.course-row__thumb {
		display: none;
	}

	.course-row__capacity {
		flex: 1 1 160px;
	}

	.course-gallery__main img {
		height: 280px;
	}

	.course-gallery__thumbs img {
		height: 90px;
	}

	.panel {
		padding: 24px 20px 28px;
	}

	.plain-row__date {
		flex-basis: 100%;
	}

	.post-row__thumb {
		flex-basis: 100%;
	}

	.post-row__thumb img {
		width: 100%;
		height: 200px;
	}

	.post-feature__media img {
		height: 240px;
	}

	.photo img {
		height: 220px;
	}

	.facts__row {
		gap: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.photo img {
		transition: none;
	}
}
