/**
 * Végel László theme — layout, components, reading room.
 * Palette from theme.json: paper #F7F3EA, diary #F2ECD9, contrast #1E1E1E, accent #cd2122.
 */

/* -------------------------------------------------------------------------
   CSS variables (mirror theme.json for non-block surfaces)
   ------------------------------------------------------------------------- */
:root {
	--vl-paper: #ffffff;
	--vl-diary: #f2ecd9;
	--vl-contrast: #1e1e1e;
	--vl-accent: #cd2122;
	--vl-burgundy: #7a1f2b;
	--vl-border: #e8e2d2;
	--vl-muted: #78716c;
	--vl-wide: 1280px;
	--vl-content: 760px;
	--vl-header-z: 50;
	--vl-font-display: "Cormorant Garamond", Georgia, serif;
	--vl-font-body: Literata, Georgia, "Times New Roman", serif;
	--vl-font-sans: Inter, system-ui, sans-serif;
	--vl-space-xs: 0.35rem;
	--vl-space-sm: 0.75rem;
	--vl-space-md: 1.25rem;
	--vl-space-lg: 2rem;
	--vl-space-xl: 3.5rem;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--vl-font-sans);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--vl-contrast);
	background: var(--vl-paper);
	-webkit-font-smoothing: antialiased;
}

::selection {
	background: var(--vl-burgundy);
	color: #fff;
}

*::selection {
	background: var(--vl-burgundy);
	color: #fff;
}

body.nav-open {
	overflow: hidden;
}

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

a {
	color: var(--vl-burgundy);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
	color: var(--vl-accent);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -100%;
	z-index: 1000;
	background: var(--vl-contrast);
	color: var(--vl-paper);
	padding: 0.65rem 1rem;
	border-radius: 2px;
	text-decoration: none;
}

.skip-link:focus {
	top: 1rem;
}

/* -------------------------------------------------------------------------
   Alignwide / alignfull (classic + hybrid pages)
   ------------------------------------------------------------------------- */
.alignwide {
	max-width: var(--vl-wide);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--vl-space-md);
	padding-right: var(--vl-space-md);
}

.site-main .alignwide {
	padding-left: 0;
	padding-right: 0;
}

.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* -------------------------------------------------------------------------
   Header — sticky, two-row: language bar + primary nav
   ------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: var(--vl-header-z);
	background: color-mix(in srgb, var(--vl-paper) 92%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--vl-border);
}

.site-header__lang-bar {
	border-bottom: 1px solid var(--vl-border);
	background: var(--vl-paper);
}

.site-header__inner {
	max-width: var(--vl-wide);
	margin: 0 auto;
	padding-left: var(--vl-space-md);
	padding-right: var(--vl-space-md);
}

.site-header__inner--lang {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	min-height: 2rem;
	font-size: 0.75rem;
	color: var(--vl-muted);
}

.site-header__main {
	background: inherit;
}

.site-header__inner--main {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--vl-space-md);
	padding-top: var(--vl-space-lg);
	padding-bottom: var(--vl-space-md);
}

.site-branding {
	display: flex;
	gap: var(--vl-space-md);
	align-items: center;
}

.site-branding__logo .custom-logo-link {
	display: inline-flex;
}

.site-branding__titles .site-title {
	font-family: var(--vl-font-display);
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	margin: 0;
	line-height: 1.15;
}

.site-branding__titles .site-title a {
	color: var(--vl-contrast);
	text-decoration: none;
}

.site-branding__titles .site-description {
	margin: 0.2rem 0 0;
	font-size: 0.85rem;
	color: var(--vl-muted);
	max-width: 32ch;
}

/* Language switcher */
.lang-switcher__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
}

.lang-switcher__item {
	margin: 0;
}

.lang-switcher__sep span {
	color: color-mix(in srgb, var(--vl-muted) 45%, transparent);
}

.lang-switcher__link {
	color: var(--vl-muted);
	text-decoration: none;
	font-family: var(--vl-font-sans);
}

.lang-switcher__link:hover {
	color: var(--vl-burgundy);
}

.lang-switcher__current {
	font-weight: 500;
	color: var(--vl-contrast);
	font-family: var(--vl-font-sans);
}

/* Primary nav */
.site-header__menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: auto;
	border: 1px solid var(--vl-border);
	background: var(--vl-paper);
	border-radius: 4px;
	padding: 0.4rem 0.55rem;
	cursor: pointer;
}

.site-header__menu-icon {
	width: 1.25rem;
	height: 2px;
	background: var(--vl-contrast);
	position: relative;
}

.site-header__menu-icon::before,
.site-header__menu-icon::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--vl-contrast);
}

.site-header__menu-icon::before {
	top: -6px;
}

.site-header__menu-icon::after {
	top: 6px;
}

.primary-nav {
	flex: 1 1 auto;
	justify-content: flex-end;
}

.primary-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--vl-space-sm) var(--vl-space-lg);
	justify-content: flex-end;
	align-items: center;
}

.primary-nav__list .menu-item a {
	color: var(--vl-contrast);
	text-decoration: none;
	font-size: 0.95rem;
	letter-spacing: 0.01em;
	padding-bottom: 0.25rem;
	border-bottom: 1px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.primary-nav__list .menu-item a:hover {
	color: var(--vl-burgundy);
}

.primary-nav__list .current-menu-item > a,
.primary-nav__list .current_page_item > a,
.primary-nav__list .current-menu-ancestor > a {
	color: var(--vl-contrast);
	border-bottom-color: var(--vl-contrast);
	font-weight: 500;
}

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

.footer-nav a:hover {
	color: #fff;
}

@media (max-width: 782px) {
	.site-header__menu-toggle {
		display: inline-flex;
	}

	.primary-nav {
		flex-basis: 100%;
		display: none;
		background: var(--vl-paper);
		border-top: 1px solid var(--vl-border);
		padding: var(--vl-space-md) 0;
	}

	.primary-nav.is-open {
		display: block;
	}

	.primary-nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--vl-space-sm);
	}
}

@media (min-width: 783px) {
	.site-header__menu-toggle {
		display: none;
	}

	.primary-nav {
		display: block !important;
	}
}

/* -------------------------------------------------------------------------
   Main column / reading width
   ------------------------------------------------------------------------- */
.site-main {
	max-width: var(--vl-content);
	margin: 0 auto;
	padding: var(--vl-space-xl) var(--vl-space-md) var(--vl-space-xl);
}

.site-main--tw {
	max-width: none;
	padding: 0;
}

.site-main--wide {
	max-width: var(--vl-wide);
}

.site-main--home {
	max-width: var(--vl-wide);
}

.site-main--reading .reading-article {
	font-family: var(--vl-font-body);
	font-size: 1.08rem;
}

.page-header {
	margin-bottom: var(--vl-space-lg);
	border-bottom: 1px solid var(--vl-border);
	padding-bottom: var(--vl-space-md);
}

.page-title {
	font-family: var(--vl-font-display);
	font-size: clamp(2rem, 4vw, 2.75rem);
	margin: 0 0 var(--vl-space-sm);
	line-height: 1.1;
}

.page-intro,
.archive-description {
	margin: 0;
	color: var(--vl-muted);
	max-width: 54ch;
}

.page-kicker {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.75rem;
	color: var(--vl-muted);
	margin: 0 0 var(--vl-space-xs);
}

/* -------------------------------------------------------------------------
   Home hero — two column portrait
   ------------------------------------------------------------------------- */
.home-hero {
	margin-top: 0;
	margin-bottom: var(--vl-space-xl);
}

.home-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
}

@media (max-width: 900px) {
	.home-hero__grid {
		grid-template-columns: 1fr;
	}
}

.home-hero__kicker {
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--vl-burgundy);
	margin: 0 0 var(--vl-space-xs);
}

.home-hero__title {
	font-family: var(--vl-font-display);
	font-size: clamp(2.6rem, 6vw, 4rem);
	margin: 0 0 var(--vl-space-md);
	line-height: 1.02;
}

.home-hero__lead {
	font-size: 0.98rem;
	line-height: 1.65;
	max-width: 54ch;
	margin: 0 0 var(--vl-space-lg);
	color: var(--vl-muted);
}

.home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--vl-space-sm);
}

.home-hero__img {
	display: block;
	width: 100%;
	height: auto;
}

.home-hero__figure {
	margin: 0;
	justify-self: end;
	max-width: 460px;
	width: 100%;
	border-radius: 0;
	overflow: hidden;
	box-shadow: 0 14px 40px rgba(30, 30, 30, 0.14);
	border: 0;
}

/* -------------------------------------------------------------------------
   Home sections
   ------------------------------------------------------------------------- */
.home-section {
	margin-bottom: var(--vl-space-xl);
}

.home-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--vl-space-md);
	margin-bottom: var(--vl-space-md);
}

.home-section__title {
	font-family: var(--vl-font-display);
	font-size: 1.85rem;
	margin: 0;
}

.home-section__more {
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-decoration: none;
	color: var(--vl-burgundy);
	white-space: nowrap;
}

.home-bibliography {
	background: var(--vl-contrast);
	color: var(--vl-paper);
	padding: var(--vl-space-xl) var(--vl-space-md);
	margin-top: var(--vl-space-xl);
}

.home-bibliography__inner {
	max-width: var(--vl-wide);
	margin: 0 auto;
	text-align: center;
}

.home-bibliography__title {
	font-family: var(--vl-font-display);
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	margin: 0 0 var(--vl-space-sm);
}

.home-bibliography__text {
	margin: 0 auto var(--vl-space-lg);
	max-width: 46ch;
	color: color-mix(in srgb, var(--vl-paper) 85%, var(--vl-muted));
}

/* -------------------------------------------------------------------------
   Diary band — warm strip
   ------------------------------------------------------------------------- */
.diary-band {
	background: var(--vl-diary);
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	width: 100vw;
	max-width: 100vw;
	padding: calc(var(--vl-space-xl) + 0.25rem) var(--vl-space-md);
	border-top: 1px solid var(--vl-border);
	border-bottom: 1px solid var(--vl-border);
}

.diary-band__wrap {
	max-width: var(--vl-wide);
	margin: 0 auto;
}

.diary-band__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--vl-space-md);
	margin-bottom: calc(var(--vl-space-md) + 0.25rem);
}

.diary-band__title {
	font-family: var(--vl-font-display);
	font-size: 1.1rem;
	margin: 0;
}

.diary-band__more {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-decoration: none;
	color: var(--vl-burgundy);
	white-space: nowrap;
}

.diary-band__inner {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.25rem, 2.8vw, 2.25rem);
}

.diary-band__inner--home {
	background: transparent;
	margin: 0;
	padding: 0;
	border: 0;
	width: auto;
	max-width: none;
}

@media (max-width: 900px) {
	.diary-band__inner {
		grid-template-columns: 1fr;
	}
}

.diary-card {
	background: #fff;
	border: 1px solid color-mix(in srgb, var(--vl-border) 80%, transparent);
	border-radius: 0;
	padding: var(--vl-space-md);
	min-height: 100%;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	box-shadow: 0 10px 22px rgba(30, 30, 30, 0.06);
	max-width: 340px;
	justify-self: center;
}

.diary-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 26px rgba(30, 30, 30, 0.08);
}

.diary-card__link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.diary-card__meta {
	margin: 0 0 var(--vl-space-xs);
	display: flex;
	align-items: baseline;
	gap: 0.45rem;
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--vl-muted);
}

.diary-card__sep {
	opacity: 0.75;
}

.diary-card__tag {
	white-space: nowrap;
}

.diary-card__date {
	display: inline;
}

.diary-card__title {
	font-family: var(--vl-font-display);
	font-size: 1.05rem;
	margin: 0 0 var(--vl-space-xs);
	line-height: 1.2;
}

.diary-card__excerpt {
	margin: 0;
	color: color-mix(in srgb, var(--vl-contrast) 78%, var(--vl-muted));
	font-size: 0.95rem;
}

/* -------------------------------------------------------------------------
   Book grids / archive rows
   ------------------------------------------------------------------------- */
.book-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--vl-space-lg);
}

.book-card-grid--small {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 960px) {
	.book-card-grid,
	.book-card-grid--small {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.book-card-grid,
	.book-card-grid--small {
		grid-template-columns: 1fr;
	}
}

.book-card {
	border: 1px solid var(--vl-border);
	border-radius: 10px;
	overflow: hidden;
	background: var(--vl-paper);
	display: flex;
	flex-direction: column;
}

.book-card__link {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.book-card__cover {
	aspect-ratio: 2 / 3;
	background: var(--vl-diary);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.book-card__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.book-card__body {
	padding: var(--vl-space-md);
	flex: 1;
}

.book-card__title {
	font-family: var(--vl-font-display);
	font-size: 1.2rem;
	margin: 0 0 var(--vl-space-xs);
}

.book-card__subtitle {
	margin: 0;
	color: var(--vl-muted);
	font-size: 0.92rem;
}

.book-card__meta {
	margin: var(--vl-space-xs) 0 0;
	font-size: 0.8rem;
	color: var(--vl-muted);
}

.book-archive-rows {
	display: flex;
	flex-direction: column;
	gap: var(--vl-space-lg);
}

.book-row {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: var(--vl-space-lg);
	align-items: start;
	padding-bottom: var(--vl-space-lg);
	border-bottom: 1px solid var(--vl-border);
}

@media (max-width: 640px) {
	.book-row {
		grid-template-columns: 1fr;
	}

	.book-row__cover {
		max-width: 160px;
	}
}

.book-row__title {
	font-family: var(--vl-font-display);
	font-size: 1.5rem;
	margin: 0 0 var(--vl-space-xs);
}

.book-row__title a {
	text-decoration: none;
	color: var(--vl-contrast);
}

.book-row__meta {
	font-size: 0.9rem;
	color: var(--vl-muted);
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-bottom: var(--vl-space-sm);
}

.book-single__layout {
	display: grid;
	grid-template-columns: minmax(200px, 280px) 1fr;
	gap: var(--vl-space-xl);
	align-items: start;
}

@media (max-width: 840px) {
	.book-single__layout {
		grid-template-columns: 1fr;
	}
}

.book-single__cover img {
	border-radius: 8px;
	border: 1px solid var(--vl-border);
}

.book-single__meta {
	display: grid;
	grid-template-columns: 7rem 1fr;
	gap: var(--vl-space-xs) var(--vl-space-md);
	font-size: 0.95rem;
	margin: var(--vl-space-md) 0 var(--vl-space-lg);
	padding-bottom: var(--vl-space-md);
	border-bottom: 1px solid color-mix(in srgb, var(--vl-border) 85%, transparent);
}

.book-single__meta dt {
	margin: 0;
	color: var(--vl-muted);
	font-weight: 500;
}

.book-single__meta dd {
	margin: 0;
}

.related-books {
	margin-top: var(--vl-space-xl);
	padding-top: var(--vl-space-lg);
	border-top: 1px solid var(--vl-border);
}

.related-books__title {
	font-family: var(--vl-font-display);
	font-size: 1.5rem;
}

/* -------------------------------------------------------------------------
   Reading article (posts, pages, events)
   ------------------------------------------------------------------------- */
.reading-article .entry-header {
	margin-bottom: var(--vl-space-lg);
}

.entry-title {
	font-family: var(--vl-font-display);
	font-size: clamp(2rem, 4vw, 2.6rem);
	margin: 0 0 var(--vl-space-sm);
	line-height: 1.12;
}

.entry-meta {
	font-size: 0.9rem;
	color: var(--vl-muted);
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.entry-media {
	margin: 0 0 var(--vl-space-lg);
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--vl-border);
}

.entry-media img {
	width: 100%;
}

.entry-content {
	font-family: var(--vl-font-body);
	font-size: 1.06rem;
	line-height: 1.7;
}

.book-single__main .entry-content {
	margin-top: var(--vl-space-lg);
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content p {
	margin: 0 0 1rem; /* mb-4 */
}

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

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5 {
	font-family: var(--vl-font-display);
	font-weight: 500;
	color: var(--vl-contrast);
}

.entry-content h1 {
	font-size: 3rem;
	line-height: 1.1;
	margin-top: 3rem; /* mt-12 */
	margin-bottom: 1rem; /* mb-4 */
}

.entry-content h2 {
	font-size: 2rem;
	line-height: 1.2;
	margin-top: 3rem; /* mt-12 */
	margin-bottom: 1rem; /* mb-4 */
}

.entry-content h3 {
	font-size: 1.5rem;
	line-height: 1.3;
	margin-top: 2rem; /* mt-8 */
	margin-bottom: 1rem; /* mb-4 */
}

.entry-content h4 {
	font-size: 1.25rem;
	line-height: 1.35;
	margin-top: 1.5rem;
	margin-bottom: 0.75rem;
}

.entry-content h5 {
	font-size: 1.125rem;
	line-height: 1.4;
	margin-top: 1.25rem;
	margin-bottom: 0.5rem;
}

/* Restore list markers: Tailwind preflight sets list-style:none on all ul/ol and
   only targets list-style if we override it here (higher specificity than plain ul). */
.entry-content ul,
.entry-content ol,
.entry-content .wp-block-list {
	margin: 0 0 1rem; /* mb-4 */
	padding-left: 1.5rem;
	list-style-position: outside;
}

.entry-content ul,
.entry-content ul.wp-block-list {
	list-style-type: square;
}

.entry-content ol,
.entry-content ol.wp-block-list {
	list-style-type: decimal;
}

.entry-content ul ul {
	list-style-type: circle;
}

.entry-content ul ul ul {
	list-style-type: square;
}

.entry-content ul ul,
.entry-content ol ol,
.entry-content ol ul,
.entry-content ul ol {
	margin-top: 0.35rem;
	margin-bottom: 0.35rem;
}

.entry-content li {
	margin: 0.35rem 0;
}

.entry-content li::marker {
	color: color-mix(in srgb, var(--vl-burgundy) 70%, var(--vl-muted));
}

.entry-content blockquote,
.entry-content .wp-block-quote {
	margin: 2rem 0; /* mt-8 feel */
	padding-left: var(--vl-space-md);
	border-left: 3px solid var(--vl-burgundy);
	color: color-mix(in srgb, var(--vl-contrast) 70%, var(--vl-muted));
	font-style: italic;
}

.entry-content blockquote p,
.entry-content .wp-block-quote p {
	margin-bottom: var(--vl-space-sm);
}

.entry-content blockquote cite,
.entry-content .wp-block-quote cite {
	display: block;
	margin-top: var(--vl-space-xs);
	font-style: normal;
	color: var(--vl-muted);
	font-size: 0.95rem;
}

.entry-content .wp-block-pullquote {
	margin: 3rem 0; /* mt-12 feel */
	padding: var(--vl-space-lg) 0;
	border-top: 1px solid var(--vl-border);
	border-bottom: 1px solid var(--vl-border);
	text-align: center;
}

.entry-content .wp-block-pullquote blockquote {
	border: 0;
	padding: 0;
	margin: 0;
	font-style: italic;
	color: color-mix(in srgb, var(--vl-contrast) 82%, var(--vl-muted));
}

.entry-content .wp-block-pullquote p {
	font-family: var(--vl-font-display);
	font-size: 1.6rem;
	line-height: 1.35;
	margin: 0;
}

.entry-content .wp-block-pullquote cite {
	margin-top: var(--vl-space-sm);
}

.entry-content hr,
.entry-content .wp-block-separator {
	border: 0;
	border-top: 1px solid var(--vl-border);
	margin: var(--vl-space-xl) 0;
}

/* Biography: editorial drop-cap on first paragraph. */
.bio-prose p:first-of-type::first-letter {
	float: left;
	margin-right: 0.75rem;
	margin-top: 0.15rem;
	font-family: var(--vl-font-display);
	font-size: 3.75rem;
	line-height: 1;
	font-weight: 500;
	color: var(--vl-contrast);
}

.entry-terms,
.meta-terms {
	font-size: 0.9rem;
}

.pull-quote {
	font-family: var(--vl-font-display);
	font-size: 1.45rem;
	line-height: 1.35;
	border-left: 3px solid var(--vl-accent);
	padding-left: var(--vl-space-md);
	margin: var(--vl-space-lg) 0;
	color: color-mix(in srgb, var(--vl-contrast) 88%, var(--vl-burgundy));
}

/* -------------------------------------------------------------------------
   Reception
   ------------------------------------------------------------------------- */
.reception-archive {
	display: flex;
	flex-direction: column;
	gap: var(--vl-space-lg);
}

.reception-teaser {
	padding-bottom: var(--vl-space-md);
	border-bottom: 1px solid var(--vl-border);
}

.reception-teaser__title {
	font-family: var(--vl-font-display);
	font-size: 1.35rem;
	margin: 0 0 var(--vl-space-xs);
}

.reception-teaser__title a {
	text-decoration: none;
	color: var(--vl-contrast);
}

.reception-citation {
	font-size: 0.88rem;
	color: var(--vl-muted);
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin: 0 0 var(--vl-space-sm);
}

.reception-citation__link {
	margin-left: 0.25rem;
}

.reception-preview {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--vl-space-md);
}

@media (max-width: 900px) {
	.reception-preview {
		grid-template-columns: 1fr;
	}
}

.reception-preview__item {
	padding: var(--vl-space-md);
	border: 1px solid var(--vl-border);
	border-radius: 8px;
	background: var(--vl-paper);
}

/* -------------------------------------------------------------------------
   Events / media
   ------------------------------------------------------------------------- */
.event-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--vl-space-sm);
}

.event-list__item a {
	display: flex;
	flex-direction: column;
	padding: var(--vl-space-md);
	border: 1px solid var(--vl-border);
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	background: var(--vl-paper);
}

.event-list__title {
	font-family: var(--vl-font-display);
	font-size: 1.2rem;
}

.event-list__meta {
	font-size: 0.88rem;
	color: var(--vl-muted);
}

.media-card-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--vl-space-md);
}

.media-card-grid--dense {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
	.media-card-grid--dense {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.media-card {
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--vl-border);
	background: var(--vl-paper);
}

.media-card__link {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.media-card__thumb {
	aspect-ratio: 16 / 10;
	background: var(--vl-diary);
	overflow: hidden;
}

.media-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.media-card__body {
	padding: var(--vl-space-sm) var(--vl-space-md) var(--vl-space-md);
}

.media-card__title {
	font-family: var(--vl-font-display);
	font-size: 1.05rem;
	margin: 0 0 var(--vl-space-xs);
}

.media-card__type {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--vl-muted);
}

/* -------------------------------------------------------------------------
   Filters (archives)
   ------------------------------------------------------------------------- */
.book-filters,
.media-filters {
	display: flex;
	flex-wrap: wrap;
	gap: var(--vl-space-sm);
	margin-top: var(--vl-space-md);
}

.book-filters select,
.media-filters select {
	font: inherit;
	padding: 0.35rem 0.6rem;
	border: 1px solid var(--vl-border);
	border-radius: 4px;
	background: var(--vl-paper);
	color: var(--vl-contrast);
}

/* -------------------------------------------------------------------------
   Biography two-column
   ------------------------------------------------------------------------- */
.biography-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
	gap: var(--vl-space-xl);
	align-items: start;
	max-width: var(--vl-wide);
	margin: 0 auto;
}

@media (max-width: 960px) {
	.biography-layout {
		grid-template-columns: 1fr;
	}
}

.biography-sidebar {
	position: sticky;
	top: calc(var(--vl-header-z) * 1px + 5rem);
	border: 1px solid var(--vl-border);
	border-radius: 10px;
	padding: var(--vl-space-lg);
	background: linear-gradient(
		160deg,
		color-mix(in srgb, var(--vl-diary) 80%, var(--vl-paper)),
		var(--vl-paper)
	);
}

.biography-sidebar__quote {
	margin: 0;
	font-family: var(--vl-font-display);
	font-size: 1.25rem;
	line-height: 1.35;
}

.biography-sidebar__cite {
	display: block;
	margin-top: var(--vl-space-sm);
	font-size: 0.85rem;
	font-style: normal;
	color: var(--vl-muted);
}

.biography-intro {
	font-size: 1.05rem;
	max-width: 62ch;
}

/* -------------------------------------------------------------------------
   Contact page
   ------------------------------------------------------------------------- */
.contact-page__grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: var(--vl-space-xl);
	margin-top: var(--vl-space-lg);
}

@media (max-width: 780px) {
	.contact-page__grid {
		grid-template-columns: 1fr;
	}
}

.contact-page__vcard {
	border: 1px solid var(--vl-border);
	border-radius: 8px;
	padding: var(--vl-space-lg);
	background: var(--vl-diary);
}

.contact-extra {
	margin-bottom: var(--vl-space-md);
}

/* -------------------------------------------------------------------------
   Archives / search cards
   ------------------------------------------------------------------------- */
.archive-grid,
.search-results {
	display: flex;
	flex-direction: column;
	gap: var(--vl-space-md);
}

.archive-card,
.search-card {
	border: 1px solid var(--vl-border);
	border-radius: 8px;
	padding: var(--vl-space-md);
	background: var(--vl-paper);
}

.archive-card__title,
.search-card__title {
	font-family: var(--vl-font-display);
	font-size: 1.25rem;
	margin: 0 0 var(--vl-space-xs);
}

.archive-card__title a,
.search-card__title a {
	text-decoration: none;
	color: var(--vl-contrast);
}

/* -------------------------------------------------------------------------
   Buttons & pagination
   ------------------------------------------------------------------------- */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1.1rem;
	font: inherit;
	font-size: 0.9rem;
	border-radius: 4px;
	border: 1px solid var(--vl-contrast);
	background: var(--vl-contrast);
	color: var(--vl-paper);
	text-decoration: none;
	cursor: pointer;
}

.button:hover {
	opacity: 0.92;
	color: var(--vl-paper);
}

.button--ghost {
	background: transparent;
	color: var(--vl-contrast);
}

.button--ghost:hover {
	color: var(--vl-burgundy);
	border-color: var(--vl-burgundy);
}

.button--light {
	background: var(--vl-paper);
	color: var(--vl-contrast);
	border-color: var(--vl-paper);
}

.navigation.pagination {
	margin-top: var(--vl-space-xl);
	display: flex;
	justify-content: center;
	gap: var(--vl-space-sm);
}

.navigation.pagination a,
.navigation.pagination span {
	padding: 0.35rem 0.65rem;
	border: 1px solid var(--vl-border);
	border-radius: 4px;
	text-decoration: none;
	color: var(--vl-contrast);
}

.navigation.pagination .current {
	background: var(--vl-contrast);
	color: var(--vl-paper);
	border-color: var(--vl-contrast);
}

/* -------------------------------------------------------------------------
   Footer — dark band
   ------------------------------------------------------------------------- */
.site-footer {
	background: var(--vl-contrast);
	color: color-mix(in srgb, var(--vl-paper) 88%, var(--vl-muted));
	margin-top: var(--vl-space-xl);
}

.site-footer__inner {
	max-width: var(--vl-wide);
	margin: 0 auto;
	padding: var(--vl-space-xl) var(--vl-space-md);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--vl-space-md);
}

.footer-nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--vl-space-sm) var(--vl-space-md);
}

.footer-nav a {
	color: var(--vl-paper);
	text-decoration: none;
	font-size: 0.9rem;
	opacity: 0.9;
}

.footer-nav a:hover {
	opacity: 1;
	color: color-mix(in srgb, var(--vl-paper) 70%, var(--vl-accent));
}

.site-footer__copy {
	margin: 0;
	font-size: 0.85rem;
	opacity: 0.75;
}

/* -------------------------------------------------------------------------
   404 / utilities
   ------------------------------------------------------------------------- */
.not-found {
	text-align: center;
	padding: var(--vl-space-xl) 0;
}

.not-found__home {
	margin-top: var(--vl-space-lg);
}

.label {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--vl-muted);
	margin-right: 0.35rem;
}

.events-preview {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--vl-space-sm);
}

@media (max-width: 720px) {
	.events-preview {
		grid-template-columns: 1fr;
	}
}

.events-preview__item a {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: var(--vl-space-md);
	border-radius: 8px;
	border: 1px solid var(--vl-border);
	text-decoration: none;
	color: inherit;
	background: var(--vl-paper);
	height: 100%;
}

.events-preview__title {
	font-family: var(--vl-font-display);
	font-size: 1.1rem;
}

.events-preview__meta {
	font-size: 0.85rem;
	color: var(--vl-muted);
}
