/* Media e Lire, rebuilt frontend (2026-10). One stylesheet, no framework.
   A long-read news magazine: serif for reading, sans for the interface, one brand blue, one
   accent red for kickers. Light and dark follow the visitor's system setting. */

:root {
	--paper: #faf8f4;
	--surface: #ffffff;
	--ink: #17191e;
	--ink-2: #3c414d;
	--muted: #676c78;
	--rule: #e3ded4;
	--rule-strong: #17191e;
	--brand: #1d336b;
	--brand-soft: #e8ecf6;
	--accent: #b3261e;
	--focus: #2f5fd0;
	--placeholder: #e9e4da;
	--footer-bg: #1d336b;
	--footer-ink: #dfe5f5;
	--footer-strong: #ffffff;
	--footer-muted: #b8c3e3;
	--footer-label: #9fb0dc;
	--footer-rule: rgba(255, 255, 255, 0.18);
	--error-bg: #fde7e5;
	--error-ink: #7a1a13;

	--serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
	--sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

	--wrap: 1200px;
	--gutter: 16px;
	--gap: 24px;
	--radius: 4px;
	color-scheme: light;
}

/* Dark theme: the system setting, unless the visitor picked light with the theme button;
   or picked dark. The button sets data-theme on <html> (see base.html and site.js). */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #111318;
		--surface: #181b21;
		--ink: #ebe9e4;
		--ink-2: #c8c5bf;
		--muted: #9a9ea8;
		--rule: #2a2e36;
		--rule-strong: #ebe9e4;
		--brand: #a8bbf3;
		--brand-soft: #1e2638;
		--accent: #ff8f84;
		--focus: #8fb0ff;
		--placeholder: #23272f;
		--footer-bg: #0b0d11;
		--footer-ink: #9a9ea8;
		--footer-strong: #ebe9e4;
		--footer-muted: #9a9ea8;
		--footer-label: #9a9ea8;
		--footer-rule: #2a2e36;
		--error-bg: #3a1d1b;
		--error-ink: #ffc9c3;
		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--paper: #111318;
	--surface: #181b21;
	--ink: #ebe9e4;
	--ink-2: #c8c5bf;
	--muted: #9a9ea8;
	--rule: #2a2e36;
	--rule-strong: #ebe9e4;
	--brand: #a8bbf3;
	--brand-soft: #1e2638;
	--accent: #ff8f84;
	--focus: #8fb0ff;
	--placeholder: #23272f;
	--footer-bg: #0b0d11;
	--footer-ink: #9a9ea8;
	--footer-strong: #ebe9e4;
	--footer-muted: #9a9ea8;
	--footer-label: #9a9ea8;
	--footer-rule: #2a2e36;
	--error-bg: #3a1d1b;
	--error-ink: #ffc9c3;
	color-scheme: dark;
}

@media (min-width: 768px) {
	:root { --gutter: 24px; --gap: 32px; }
}

/* ── Base ─────────────────────────────────────────────────────── */

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.55 var(--sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }

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

h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }

p { margin: 0; }

.visually-hidden {
	position: absolute !important; 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: var(--gutter); top: -100px; z-index: 100;
	padding: 8px 14px; background: var(--brand); color: #fff; font-weight: 600;
}
.skip-link:focus { top: 8px; color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Masthead ─────────────────────────────────────────────────── */

.utility {
	display: none;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0 0;
	font-size: 0.875rem;
	color: var(--muted);
}
.utility nav { display: flex; gap: 20px; }
.utility a:hover { color: var(--ink); }

@media (min-width: 768px) {
	.utility { display: flex; }
}

.masthead { text-align: center; padding: 18px 0 14px; }
@media (min-width: 768px) { .masthead { padding: 6px 0 20px; } }

.wordmark {
	display: inline-block;
	font-family: var(--serif);
	font-weight: 800;
	font-size: clamp(2.125rem, 7vw, 3.75rem);
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--brand);
}
.wordmark:hover { color: var(--brand); }

.tagline {
	margin-top: 8px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
}

/* The section bar sticks to the top while reading. On phones it scrolls sideways: every
   section stays one tap away, with no hamburger menu to open. */
.sections {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--paper);
	border-top: 3px double var(--rule-strong);
	border-bottom: 1px solid var(--rule);
}
.sections .wrap { display: flex; align-items: center; gap: 8px; }

.sections ul {
	display: flex;
	flex: 1;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
	-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
}
.sections ul::-webkit-scrollbar { display: none; }

.sections li a {
	display: block;
	padding: 13px 10px 11px;
	font-size: 0.9375rem;
	font-weight: 600;
	white-space: nowrap;
	color: var(--ink-2);
	border-bottom: 2px solid transparent;
}
.sections li a:hover { color: var(--ink); }
.sections li a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }

.sections li:first-child a { padding-left: 0; }

.nav-search { position: relative; flex: none; }
.nav-search input {
	width: 160px;
	height: 34px;
	padding: 0 34px 0 12px;
	border: 1px solid var(--rule);
	border-radius: 17px;
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	font-size: 0.9375rem;
}
.nav-search input::placeholder { color: var(--muted); }
.nav-search button {
	position: absolute; top: 0; right: 0;
	display: flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; padding: 0;
	border: 0; background: none; color: var(--muted); cursor: pointer;
}
.nav-search-link { display: none; flex: none; padding: 8px; color: var(--ink-2); }

/* Wide screens: the search field fits beside the sections. Narrower: an icon to the search page.
   Autorët and Arkiva sit in the utility bar from 768px up, so the section bar drops them there. */
@media (max-width: 1199px) {
	.nav-search { display: none; }
	.nav-search-link { display: flex; }
}
@media (min-width: 768px) {
	.sections .nav-extra { display: none; }
}

.theme-toggle {
	display: flex; flex: none; align-items: center; justify-content: center;
	width: 36px; height: 36px; padding: 0;
	border: 1px solid var(--rule); border-radius: 50%;
	background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { border-color: var(--brand); color: var(--brand); }
/* Show the moon in light mode (switch to dark), the sun in dark mode. */
.theme-toggle .sun { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
	:root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }

.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Reading progress, on article pages: a hairline along the bottom of the section bar. */
.progress {
	position: absolute; left: 0; bottom: -1px;
	height: 2px; width: 100%;
	background: var(--accent);
	transform-origin: 0 50%;
	transform: scaleX(0);
}

/* ── Building blocks ──────────────────────────────────────────── */

main { display: block; padding: 28px 0 64px; }
@media (min-width: 768px) { main { padding-top: 36px; } }

.kicker {
	display: inline-block;
	margin-bottom: 6px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}
a.kicker:hover { color: var(--ink); }

.meta { font-size: 0.875rem; color: var(--muted); }
.meta > * + *::before { content: "\00b7"; margin: 0 7px; }
.meta a { color: var(--ink-2); font-weight: 600; }
.meta a:hover { color: var(--brand); }

.section-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	margin: 0 0 20px;
	padding-top: 10px;
	border-top: 3px solid var(--rule-strong);
}
.section-head h2 {
	font-family: var(--sans);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.section-head a.more { font-size: 0.875rem; font-weight: 600; color: var(--brand); white-space: nowrap; }
.section-head a.more:hover { color: var(--ink); }

.frame {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--placeholder);
	border-radius: var(--radius);
}
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
a:hover .frame img { transform: scale(1.02); }
.frame--wide { aspect-ratio: 1132 / 670; } /* the editors' crop box ratio */
.frame--card { aspect-ratio: 364 / 250; }
.frame--thumb { aspect-ratio: 222 / 154; }
.frame-empty {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	font-family: var(--serif); font-weight: 800; font-size: 2rem; color: var(--rule);
}

.title-link:hover h2, .title-link:hover h3 { color: var(--brand); }

/* Card: image on top (grids). */
.card { display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 1.25rem; line-height: 1.22; }
.card .dek { font-family: var(--serif); font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.card .meta { margin-top: 2px; }

/* Row: text left, thumbnail right (lists). */
.row {
	display: grid;
	grid-template-columns: 1fr 112px;
	gap: 16px;
	padding: 20px 0;
	border-bottom: 1px solid var(--rule);
}
.row:first-child { padding-top: 0; }
.row h3 { font-size: 1.1875rem; line-height: 1.25; }
.row .dek { display: none; margin-top: 6px; font-family: var(--serif); color: var(--ink-2); line-height: 1.5; }
.row .meta { margin-top: 8px; }
@media (min-width: 640px) {
	.row { grid-template-columns: 1fr 222px; gap: 24px; }
	.row h3 { font-size: 1.4375rem; }
	.row .dek { display: block; }
}

.grid { display: grid; gap: var(--gap); }
@media (min-width: 640px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
	.grid--3 { grid-template-columns: repeat(3, 1fr); }
	.grid--4 { grid-template-columns: repeat(4, 1fr); }
	.grid--4 .card h3 { font-size: 1.125rem; }
}

.block + .block { margin-top: 56px; }

/* Phones: grid cards become compact rows (title left, small image right), so the home page
   reads like a list instead of a column of full-width photos. */
@media (max-width: 639px) {
	.grid { gap: 0; }
	.grid .card {
		display: grid;
		grid-template-columns: 1fr 112px;
		gap: 14px;
		align-items: start;
		padding: 18px 0;
		border-bottom: 1px solid var(--rule);
	}
	.grid .card:first-child { padding-top: 0; }
	.grid .card > a:first-child { order: 2; }
	.grid .card .dek { display: none; }
	.grid .card h3 { font-size: 1.125rem; }
	.top { margin-top: 28px; padding-top: 24px; }
}

/* ── Home ─────────────────────────────────────────────────────── */

.lead { display: grid; gap: 20px; }
.lead h2 { font-size: clamp(1.875rem, 4.2vw, 3rem); line-height: 1.08; }
.lead .dek { margin-top: 14px; font-family: var(--serif); font-size: 1.1875rem; line-height: 1.5; color: var(--ink-2); }
.lead .meta { margin-top: 16px; }
@media (min-width: 960px) {
	.lead { grid-template-columns: 7fr 5fr; gap: 40px; align-items: center; }
}

.top { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--rule); }

.split { display: grid; gap: 56px; }
@media (min-width: 960px) {
	.split { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 56px; }
}

.aside-block + .aside-block { margin-top: 44px; }

.ranked { margin: 0; padding: 0; list-style: none; counter-reset: rank; }
.ranked li {
	display: grid;
	grid-template-columns: 34px 1fr;
	gap: 10px;
	padding: 14px 0;
	border-bottom: 1px solid var(--rule);
	counter-increment: rank;
}
.ranked li:first-child { padding-top: 0; }
.ranked li::before {
	content: counter(rank);
	font-family: var(--serif);
	font-size: 2rem;
	font-weight: 300;
	line-height: 1;
	color: var(--accent);
}
.ranked h3 { font-size: 1.0625rem; line-height: 1.3; }
.ranked .meta { margin-top: 4px; }

.voices { margin: 0; padding: 0; list-style: none; }
.voices li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.voices li:first-child { padding-top: 0; }
.voice { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: start; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--placeholder); }
.avatar--none {
	display: flex; align-items: center; justify-content: center;
	font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--muted);
}
.voice .who { font-size: 0.875rem; font-weight: 700; color: var(--ink-2); }
.voice h3 { margin-top: 2px; font-size: 1.0625rem; line-height: 1.3; font-style: italic; font-weight: 600; }

.archive-box {
	padding: 22px;
	border-radius: var(--radius);
	background: var(--brand-soft);
}
.archive-box strong { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1.1; color: var(--brand); }
.archive-box p { margin-top: 6px; color: var(--ink-2); }
.archive-box .button { margin-top: 14px; }

.button {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 18px;
	border: 1px solid var(--brand);
	border-radius: 20px;
	background: var(--brand);
	color: var(--paper);
	font: 600 0.9375rem/1.2 var(--sans);
	cursor: pointer;
}
.button:hover { background: transparent; color: var(--brand); }
.button--ghost { background: transparent; color: var(--brand); }
.button--ghost:hover { background: var(--brand); color: var(--paper); }

/* ── Article ──────────────────────────────────────────────────── */

.article-head { max-width: 50rem; margin: 0 auto; text-align: center; }
.article-head h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.08; }
.article-head .dek { margin-top: 18px; font-family: var(--serif); font-size: clamp(1.1875rem, 2.2vw, 1.375rem); line-height: 1.45; color: var(--ink-2); }

.byline {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px 14px;
	margin-top: 24px;
}
.byline .avatar { width: 40px; height: 40px; }
.byline .meta { font-size: 0.9375rem; }

.hero { max-width: 832px; margin: 32px auto 0; }
.hero figcaption, .gallery figcaption {
	margin-top: 10px;
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--muted);
}
.hero .frame { border-radius: 0; }
@media (min-width: 768px) { .hero .frame { border-radius: var(--radius); } }

.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade { position: absolute; inset: 0; display: block; }
.video-facade .frame { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.video-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0) 55%); }
.play {
	position: absolute; left: 50%; top: 50%; z-index: 1;
	display: inline-flex; align-items: center; gap: 10px;
	padding: 12px 22px 12px 16px;
	border-radius: 999px;
	background: rgba(12, 14, 18, 0.78);
	color: #fff;
	font: 700 1rem/1 var(--sans);
	transform: translate(-50%, -50%);
	transition: background 0.2s, transform 0.2s;
}
.play svg { width: 26px; height: 26px; fill: currentColor; }
.video-facade:hover .play { background: var(--accent); color: #fff; transform: translate(-50%, -50%) scale(1.04); }

.badge-video {
	position: absolute; left: 8px; bottom: 8px;
	display: inline-flex; align-items: center; gap: 4px;
	padding: 3px 8px 3px 5px;
	border-radius: 3px;
	background: rgba(12, 14, 18, 0.78);
	color: #fff;
	font: 700 0.6875rem/1.2 var(--sans);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.badge-video svg { width: 13px; height: 13px; fill: currentColor; }

.prose-wrap { max-width: 42rem; margin: 40px auto 0; }

/* Article text comes from the admin's rich-text editor, with inline styles (justified text,
   fonts, sizes, colours) that would fight the design and break dark mode: override them. */
.prose {
	font-family: var(--serif);
	font-size: 1.1875rem;
	line-height: 1.72;
	color: var(--ink);
	hyphens: auto;
	-webkit-hyphens: auto;
}
@media (min-width: 768px) { .prose { font-size: 1.25rem; } }
.prose [style] {
	text-align: inherit !important;
	font-family: inherit !important;
	font-size: inherit !important;
	line-height: inherit !important;
	color: inherit !important;
	background: transparent !important;
}
.prose p, .prose div { margin: 0 0 1.1em; }
.prose p:empty { display: none; }
.prose > p:first-of-type::first-letter {
	float: left;
	margin: 0.08em 0.1em 0 0;
	font-size: 3.6em;
	font-weight: 700;
	line-height: 0.82;
	color: var(--brand);
}
.prose a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong, .prose b { font-weight: 700; }
.prose h2, .prose h3, .prose h4 { margin: 1.6em 0 0.6em; font-size: 1.35em; }
.prose blockquote {
	margin: 1.4em 0;
	padding: 0 0 0 1em;
	border-left: 3px solid var(--accent);
	font-style: italic;
	color: var(--ink-2);
}
.prose img, .prose iframe, .prose video { max-width: 100% !important; height: auto; margin: 1.4em auto; border-radius: var(--radius); }
.prose iframe { aspect-ratio: 16 / 9; width: 100% !important; height: auto !important; border: 0; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-family: var(--sans); font-size: 0.85em; }
.prose td, .prose th { padding: 6px 10px; border: 1px solid var(--rule); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }

.source { margin-top: 28px; font-size: 0.9375rem; color: var(--muted); }
.source a { color: var(--brand); font-weight: 600; }

.gallery { display: grid; gap: 24px; margin-top: 40px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.tags a {
	padding: 5px 12px;
	border: 1px solid var(--rule);
	border-radius: 16px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ink-2);
	background: var(--surface);
}
.tags a:hover { border-color: var(--brand); color: var(--brand); }

/* Share links: icons with names in the row under an article, icons only in the rail. Each
   network's own colour on hover. */
.share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 32px;
	padding: 18px 0;
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
}
.share .label { margin-right: 6px; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.share-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 7px 13px 7px 11px;
	border: 1px solid var(--rule);
	border-radius: 18px;
	background: var(--surface);
	color: var(--ink-2);
	font: 600 0.875rem/1.2 var(--sans);
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.share-icon[hidden] { display: none; }
.share-icon svg { width: 17px; height: 17px; fill: currentColor; flex: none; }
.share-icon:hover, .share-icon:focus-visible { color: #fff; border-color: transparent; background: var(--brand); }
.share-icon.facebook:hover, .share-icon.facebook:focus-visible { background: #1877f2; }
.share-icon.x:hover, .share-icon.x:focus-visible { background: #000; }
.share-icon.whatsapp:hover, .share-icon.whatsapp:focus-visible { background: #1fa855; }
.share-icon.telegram:hover, .share-icon.telegram:focus-visible { background: #2a9fd8; }

/* The rail: wide screens only, in the margin left of the text, following the reader down the
   article (sticky below the section bar) and ending with the text. */
.prose-wrap { position: relative; }
.share-rail { display: none; }
@media (min-width: 1200px) {
	.share-rail { display: block; position: absolute; top: 0; bottom: 0; left: -92px; width: 44px; }
	.share-rail-inner { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 10px; }
	.share-rail .share-icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
	.share-rail .share-icon svg { width: 18px; height: 18px; }
}

/* Phones and tablets: one button for the device's own share sheet (site.js shows it where the
   browser supports it). The rail takes over on wide screens. */
.share-native {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 13px 6px 11px;
	border: 1px solid var(--rule);
	border-radius: 16px;
	background: var(--surface);
	color: var(--ink-2);
	font: 600 0.875rem/1.2 var(--sans);
	cursor: pointer;
}
.share-native[hidden] { display: none; }
.share-native svg { width: 16px; height: 16px; }
@media (min-width: 1200px) { .share-native { display: none !important; } }

.author-box {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 18px;
	margin-top: 40px;
	padding: 22px;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--rule);
}
.author-box .avatar { width: 72px; height: 72px; }
.author-box .label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.author-box h2 { margin-top: 2px; font-size: 1.375rem; }
.author-box p { margin-top: 8px; font-family: var(--serif); line-height: 1.55; color: var(--ink-2); }
.author-box ul { margin: 12px 0 0; padding: 0; list-style: none; font-size: 0.9375rem; }
.author-box li { padding: 4px 0; }
.author-box li a { color: var(--brand); font-weight: 600; }

.older-newer { display: grid; gap: 16px; margin-top: 56px; }
@media (min-width: 640px) { .older-newer { grid-template-columns: 1fr 1fr; } }
.older-newer a {
	display: block;
	padding: 18px 20px;
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	background: var(--surface);
}
.older-newer a:hover { border-color: var(--brand); }
.older-newer .label { display: block; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.older-newer strong { display: block; margin-top: 6px; font-family: var(--serif); font-size: 1.0625rem; line-height: 1.3; }
.older-newer .newer { text-align: right; }

.related { margin-top: 64px; }

/* ── Listing pages (category, search, author, archive) ────────── */

.page-head { max-width: 46rem; margin-bottom: 32px; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-head .intro { margin-top: 12px; font-family: var(--serif); font-size: 1.125rem; line-height: 1.5; color: var(--ink-2); }
.page-head .breadcrumb { margin-bottom: 8px; font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.page-head .breadcrumb a { color: var(--brand); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips a {
	display: inline-flex; gap: 6px; align-items: baseline;
	padding: 6px 13px;
	border-radius: 16px;
	background: var(--surface);
	border: 1px solid var(--rule);
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--ink-2);
}
.chips a:hover { border-color: var(--brand); color: var(--brand); }
.chips small { font-size: 0.8125rem; font-weight: 400; color: var(--muted); }

.list { max-width: 860px; }
/* The featured first article of a list page: stacked, the list column is too narrow for the
   home page's side-by-side lead. */
.list .lead { grid-template-columns: 1fr; gap: 18px; }
.list .lead h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }

.feature { margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--rule); }

.search-big { display: flex; gap: 10px; max-width: 40rem; margin-top: 16px; }
.search-big input {
	flex: 1;
	min-width: 0;
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	font-size: 1.125rem;
}
.search-big .button { border-radius: var(--radius); padding: 0 22px; }

.empty { padding: 28px 0; font-family: var(--serif); font-size: 1.125rem; color: var(--ink-2); }

.pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-top: 40px;
	font-weight: 600;
}
.pagination a, .pagination span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 12px;
	border-radius: 20px;
	font-size: 0.9375rem;
}
.pagination a { border: 1px solid var(--rule); background: var(--surface); color: var(--ink-2); }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination [aria-current] { background: var(--brand); color: var(--paper); }
.pagination .gap { min-width: 20px; padding: 0; color: var(--muted); }
.pagination .step { padding: 0 16px; }
@media (max-width: 519px) {
	.pagination .num:not([aria-current]) { display: none; }
	.pagination .gap { display: none; }
}

.author-head { display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: center; }
.author-head .avatar { width: 96px; height: 96px; }
@media (min-width: 768px) {
	.author-head { grid-template-columns: 128px 1fr; }
	.author-head .avatar { width: 128px; height: 128px; }
}

.people { display: grid; gap: 0 var(--gap); }
@media (min-width: 640px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .people { grid-template-columns: repeat(3, 1fr); } }
.person { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.person strong { display: block; font-family: var(--serif); font-size: 1.125rem; line-height: 1.25; }

/* Archive: one row per year, one cell per month with its article count. */
.years { display: grid; gap: 10px; }
.year { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.year > strong { font-family: var(--serif); font-size: 1.25rem; }
.year > strong small { display: block; font-family: var(--sans); font-size: 0.75rem; font-weight: 400; color: var(--muted); }
.months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
@media (min-width: 720px) { .months { grid-template-columns: repeat(12, 1fr); } }
.months a, .months span {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	height: 52px;
	border-radius: var(--radius);
	font-size: 0.75rem;
	line-height: 1.2;
}
.months span { color: var(--rule); background: transparent; border: 1px dashed var(--rule); }
.months a { background: var(--brand-soft); color: var(--ink-2); }
.months a b { font-size: 0.9375rem; color: var(--brand); }
.months a:hover { outline: 2px solid var(--brand); }

.month-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; font-weight: 600; }
.month-nav a { color: var(--brand); }

/* ── Forms (contact) ──────────────────────────────────────────── */

.form { display: grid; gap: 16px; max-width: 36rem; }
.form label { display: grid; gap: 6px; font-size: 0.9375rem; font-weight: 600; }
.form input, .form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--ink);
	font: inherit;
}
.form textarea { min-height: 160px; resize: vertical; }
.form .trap { position: absolute; left: -9999px; }
/* The ALTCHA spam-check widget, in the site's colours (light and dark). */
altcha-widget {
	--altcha-color-base: var(--surface);
	--altcha-color-base-content: var(--ink);
	--altcha-border-color: var(--rule);
	--altcha-color-primary: var(--brand);
	--altcha-max-width: 100%;
	font-family: var(--sans);
}
.notice { padding: 14px 16px; border-radius: var(--radius); background: var(--brand-soft); color: var(--ink); font-weight: 600; max-width: 36rem; }
.notice--error { background: var(--error-bg); color: var(--error-ink); }

.books { margin: 0; padding: 0; list-style: none; max-width: 40rem; }
.books li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.books strong { font-family: var(--serif); font-size: 1.1875rem; }

/* ── Footer ───────────────────────────────────────────────────── */

.site-footer {
	padding: 48px 0 32px;
	background: var(--footer-bg);
	color: var(--footer-ink);
	border-top: 1px solid var(--footer-rule);
}
.site-footer a:hover { color: var(--footer-strong); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 3fr 2fr; } }
.site-footer .wordmark { font-size: 2rem; color: var(--footer-strong); }
.site-footer .tagline { color: var(--footer-muted); }
.site-footer h2 { margin-bottom: 12px; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--footer-label); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { padding: 3px 0; }
.footer-cats { columns: 2; column-gap: 24px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--footer-rule); font-size: 0.875rem; color: var(--footer-muted); }

/* ── Motion preferences and print ─────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
	.utility, .sections, .share, .related, .older-newer, .site-footer, .author-box ul { display: none !important; }
	body { background: #fff; color: #000; }
	.prose { font-size: 12pt; }
}
