/*
 * Koridor main stylesheet.
 * Section colours (--sec) come from Posts > Categories; the accent (--gold) from the Customizer.
 */

:root {
	--space: #020305;
	--ink: #f4f5f7;
	--muted: #a9b0bc;
	--gold: #f0b45c;
	--line: rgba(255, 255, 255, 0.14);
	--sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
	--serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--gutter: clamp(20px, 4vw, 56px);
	--safe-top: env(safe-area-inset-top, 0px);
	--safe-bottom: env(safe-area-inset-bottom, 0px);
	color-scheme: dark;
}

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

[hidden] { display: none !important; }

html { scroll-padding-top: calc(72px + var(--safe-top)); }

body {
	margin: 0;
	background: var(--space);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

[tabindex="-1"]:focus { outline: none; }

.skip-link { position: fixed; left: 16px; top: -100px; z-index: 70; padding: 10px 14px; background: var(--ink); color: var(--space); font-weight: 700; }

.skip-link:focus { top: calc(var(--safe-top) + 12px); }

.mono { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; line-height: 1.7; text-transform: uppercase; }

.display { margin: 0; font-weight: 800; font-stretch: 125%; line-height: 0.92; letter-spacing: -0.015em; text-transform: uppercase; }

/* Fixed scene behind every view ---------------------------------------------------- */

.scene {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 0;
	width: 100%;
	height: 100vh;
	height: 100lvh;
	background: radial-gradient(120% 90% at 85% 120%, #0d2a55 0%, #071026 38%, #020305 70%);
}



main, .site-footer, .signal { position: relative; z-index: 1; }

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

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 40; padding-top: var(--safe-top); background: linear-gradient(rgba(2, 3, 5, 0.6), rgba(2, 3, 5, 0)); }

.site-header { transition: background-color 0.25s ease, border-color 0.25s ease; border-bottom: 1px solid transparent; }

.site-header.is-solid { background: rgba(4, 5, 7, 0.94); border-bottom-color: var(--line); }

.site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; padding-inline: var(--gutter); }

.menu-button { justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }

.wordmark { display: inline-block; max-width: min(62vw, 760px); margin-right: -0.42em; overflow: hidden; font-size: 19px; font-weight: 400; font-stretch: 125%; line-height: 44px; letter-spacing: 0.42em; text-overflow: ellipsis; text-transform: uppercase; text-decoration: none; white-space: nowrap; }

.wordmark--long { margin-right: -0.18em; font-size: 15px; letter-spacing: 0.18em; }

.header-cta { justify-self: end; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }

.header-cta:hover, .menu-button:hover { color: var(--gold); }

.nav-panel { position: fixed; inset: 0; z-index: 39; display: flex; flex-direction: column; justify-content: center; padding: calc(96px + var(--safe-top)) var(--gutter) calc(32px + var(--safe-bottom)); background: var(--space); }

.nav-panel .menu { margin: 0 0 32px; padding: 0; list-style: none; }

.nav-panel .menu a { display: inline-flex; align-items: center; min-height: 60px; font-size: clamp(28px, 5vw, 60px); font-weight: 800; font-stretch: 125%; line-height: 1.05; text-transform: uppercase; text-decoration: none; }

.nav-panel .menu a:hover, .nav-panel .current-menu-item > a { color: var(--gold); }

.nav-panel .search-form { max-width: 520px; }

@media (max-width: 640px) {
	.menu-button .mono, .header-cta .mono { display: none; }
	.wordmark { font-size: 16px; letter-spacing: 0.32em; margin-right: -0.32em; max-width: 58vw; }
	.wordmark--long { font-size: 12px; letter-spacing: 0.08em; margin-right: -0.08em; }
}

/* Home journey -------------------------------------------------------------------- */

.journey { position: relative; }

.js-animated .journey { height: 520vh; }

.stage { position: relative; }

.js-animated .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

.orbit { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100vh; min-height: 100svh; padding: calc(110px + var(--safe-top)) var(--gutter) clamp(64px, 14vh, 140px); background: linear-gradient(90deg, rgba(2, 3, 5, 0.55), rgba(2, 3, 5, 0) 52%); }

.js-animated .orbit { position: absolute; inset: 0; }

@media (max-width: 760px) { .orbit { background: linear-gradient(0deg, rgba(2, 3, 5, 0.9) 0%, rgba(2, 3, 5, 0.55) 38%, rgba(2, 3, 5, 0) 62%); } }

html:not(.js-animated) .journey .orbit { background: linear-gradient(90deg, rgba(2, 3, 5, 0.8), rgba(2, 3, 5, 0.15) 60%), var(--fallback) center / cover no-repeat; }

.orbit__title { font-size: clamp(34px, 6vw, 104px); text-shadow: 0 0 30px rgba(170, 200, 255, 0.25); }

.orbit__title span, .cat-hero__title span { display: block; }

.orbit__lead { max-width: 56ch; margin: 18px 0 0; color: rgba(244, 245, 247, 0.8); }

.orbit__actions { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 26px; }

.hud-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }

.hud-link::before { content: ""; width: 8px; height: 8px; border: 1px solid var(--gold); transform: rotate(45deg); }

.hud-link:hover { color: var(--gold); }

.scroll-cue { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none; align-items: center; gap: 12px; margin: 0; color: rgba(244, 245, 247, 0.85); pointer-events: none; }

.scroll-cue::before, .scroll-cue::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }

.js-animated .scroll-cue { display: flex; }

@media (max-width: 640px) { .js-animated .scroll-cue { top: auto; bottom: 46%; } }

.hud { position: absolute; top: 0; left: 0; display: none; flex-direction: column; gap: 8px; pointer-events: none; opacity: 0; }

.js-animated .hud { display: flex; }

.hud__name { max-width: calc(100vw - 48px); font-size: clamp(26px, 3.6vw, 58px); font-weight: 800; font-stretch: 125%; line-height: 0.95; text-transform: uppercase; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5); }

.hud .mono { color: rgba(244, 245, 247, 0.88); white-space: nowrap; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }

.hud__rows { display: flex; flex-wrap: wrap; gap: 4px 22px; }

/* Entry paths ------------------------------------------------------------------- */

.paths { position: relative; padding: clamp(72px, 10vw, 128px) var(--gutter); background: #050506; }

.js-animated .paths { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: calc(84px + var(--safe-top)) 0 calc(24px + var(--safe-bottom)); background: none; pointer-events: none; }

.paths__word { font-size: clamp(34px, 4.6vw, 76px); }

.js-animated .paths__word { padding-inline: var(--gutter); }

.paths__word--top { margin-bottom: 20px; }

.paths__word--bottom { margin-top: 20px; }

.rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; margin: 28px 0; padding: 0; list-style: none; }

.js-animated .rail { display: flex; gap: 18px; width: max-content; margin: 0; padding-inline: var(--gutter); will-change: transform; }

.path { pointer-events: auto; }

.js-animated .path { width: min(410px, 80vw); }

.path a {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 100%;
	padding: 12px 12px 20px;
	border: 1px solid rgba(255, 226, 180, 0.16);
	border-bottom-color: rgba(255, 207, 138, 0.42);
	border-radius: 8px;
	background: linear-gradient(165deg, rgba(38, 33, 27, 0.97), rgba(11, 11, 12, 0.98));
	box-shadow:
		inset 0 1px 0 rgba(255, 240, 215, 0.1),
		inset 0 -1px 0 rgba(255, 207, 138, 0.28),
		0 2px 4px rgba(0, 0, 0, 0.5),
		0 18px 36px -12px rgba(0, 0, 0, 0.85),
		0 46px 80px -34px rgba(240, 168, 72, 0.42);
	text-decoration: none;
	transition: border-color 0.2s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Contact shadow on the "floor" under each card, rendered once and moved with the card. */
.path a::after {
	content: "";
	position: absolute;
	left: 10%;
	right: 10%;
	bottom: -30px;
	z-index: -1;
	height: 34px;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
	filter: blur(6px);
	pointer-events: none;
}

/* Stronger glow on hover, faded in by opacity so it stays on the compositor. */
.path a::before {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: 9px;
	box-shadow: 0 0 0 1px rgba(255, 207, 138, 0.55), 0 30px 70px -20px rgba(240, 168, 72, 0.55);
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
}

.path a:hover { transform: translateY(-6px); }

.path a:hover::before { opacity: 1; }

.path img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 8px; border-radius: 4px; }

.path .mono, .path h3, .path p, .path .enter { padding-inline: 8px; }

.path .mono { color: var(--sec, rgba(240, 200, 140, 0.9)); }

.path h3 { margin: 0; font-size: clamp(21px, 1.8vw, 28px); font-weight: 800; font-stretch: 125%; line-height: 1.02; text-transform: uppercase; }

.path p { margin: 0; color: rgba(244, 245, 247, 0.75); font-size: 15px; }

.path .enter { margin-top: auto; padding-top: 8px; color: var(--gold); }

.arc { position: absolute; left: 0; right: 0; bottom: 3%; z-index: 0; display: none; width: 100%; height: 34%; pointer-events: none; }

.rail, .paths__word { position: relative; z-index: 1; }

.js-animated .arc { display: block; opacity: 0; }

@media (max-width: 760px) { .path p { display: none; } .js-animated .path { width: 74vw; } }

/* Sections on solid ground --------------------------------------------------------- */

.solid { position: relative; z-index: 1; background: #060708; }










/* Category pages ------------------------------------------------------------------ */

.cat-hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; min-height: 100vh; min-height: 100svh; padding: calc(110px + var(--safe-top)) var(--gutter) clamp(64px, 12vh, 120px); background: linear-gradient(0deg, rgba(2, 3, 5, 0.75), rgba(2, 3, 5, 0) 55%); }

.cat-hero__back { position: absolute; top: calc(84px + var(--safe-top)); left: var(--gutter); }

.cat-hero__kicker { margin: 0; color: var(--sec, var(--gold)); }

.cat-hero--none { min-height: 64vh; background: radial-gradient(90% 80% at 80% 0%, color-mix(in srgb, var(--sec, var(--gold)) 22%, transparent), transparent 60%); }

.cat-hero__lead p { margin: 0; }

.cat-hero__title { font-size: clamp(38px, 7vw, 124px); text-shadow: 0 0 34px rgba(255, 210, 150, 0.18); }

.cat-hero__lead { max-width: 54ch; margin: 0; color: rgba(244, 245, 247, 0.82); font-size: clamp(17px, 1.3vw, 20px); }

/* Section accents --------------------------------------------------------------------- */

.sec-none { --sec: var(--gold); }

.tag { display: inline-flex; align-items: center; gap: 8px; color: var(--sec, var(--gold)); }

.tag::before { content: ""; width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }

/* Story cards ----------------------------------------------------------------------------- */

.story { position: relative; display: flex; flex-direction: column; gap: 14px; }

.story__media { display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 6px; background: #0d0f13; }

.story__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }

.story:hover .story__media img { transform: scale(1.04); }

.story__body { display: flex; flex-direction: column; gap: 10px; }

.story__kicker { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; color: var(--muted); }

.story__title { margin: 0; font-size: 21px; font-weight: 700; font-stretch: 106%; line-height: 1.22; }

.story__title a { text-decoration: none; }

.story__title a::after { content: ""; position: absolute; inset: 0; }

.story:hover .story__title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.story__dek { margin: 0; color: rgba(244, 245, 247, 0.72); font-size: 16px; line-height: 1.5; }

.story__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; color: var(--muted); }

.story--lead .story__title { font-size: clamp(28px, 3vw, 46px); font-stretch: 112%; line-height: 1.06; letter-spacing: -0.01em; }

.story--lead .story__dek { font-size: clamp(16px, 1.25vw, 19px); }

.story--row { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 18px; align-items: start; }

.story--row .story__media { aspect-ratio: 16 / 10; }

.story--row .story__title { font-size: 18px; }

.story--row .story__dek { display: none; }

@media (max-width: 520px) { .story--row { grid-template-columns: 112px minmax(0, 1fr); } .story--row .story__title { font-size: 16px; } }

/* Home: mixed feed and desks -------------------------------------------------------------- */

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-bottom: 32px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }

.section-head h2 { font-size: clamp(32px, 4vw, 64px); }

.section-head p { margin: 0; color: var(--muted); }

.feed { padding: clamp(72px, 9vw, 120px) var(--gutter) clamp(48px, 6vw, 80px); }

.feed__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px 48px; }

.feed__list { display: flex; flex-direction: column; gap: 24px; }

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

.desks { padding: 0 var(--gutter) clamp(72px, 9vw, 120px); }

.desks__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }

.desk { padding: 26px 28px 30px 0; border-right: 1px solid var(--line); }

.desk + .desk { padding-left: 28px; }

.desk:last-child { border-right: 0; }

.desk__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 20px; }

.desk__name { margin: 0; font-size: 22px; font-weight: 800; font-stretch: 125%; text-transform: uppercase; }

.desk__name::before { content: ""; display: inline-block; width: 9px; height: 9px; margin: 0 12px 4px 2px; background: var(--sec); transform: rotate(45deg); }

.desk__all { white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; color: var(--sec); text-decoration: none; }

.desk__all:hover { text-decoration: underline; text-underline-offset: 4px; }

.desk ol { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; list-style: none; }

.desk li a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }

.desk li strong { font-size: 17px; font-weight: 600; line-height: 1.3; }

.desk li a:hover strong { text-decoration: underline; text-underline-offset: 4px; }

.desk li .mono { color: var(--muted); }

@media (max-width: 900px) {
	.desks__grid { grid-template-columns: 1fr; }
	.desk, .desk + .desk { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* Category listing --------------------------------------------------------------------- */

.listing { padding: clamp(56px, 7vw, 96px) var(--gutter) clamp(72px, 9vw, 120px); }

.listing .section-head h2 { font-size: clamp(28px, 3vw, 48px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip { min-height: 44px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; background: none; color: var(--ink); cursor: pointer; }

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

.chip[aria-pressed="true"] { border-color: var(--sec); background: var(--sec); color: #0a0805; }

.listing__lead { margin-bottom: 56px; }

.listing__lead .story { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 44px; align-items: center; }

@media (max-width: 860px) { .listing__lead .story { grid-template-columns: 1fr; } }

.listing__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 44px 28px; }

/* Article ------------------------------------------------------------------------------ */

.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 45; height: 2px; background: var(--sec, var(--gold)); transform: scaleX(0); transform-origin: 0 50%; }

.article-hero { padding: calc(116px + var(--safe-top)) var(--gutter) 0; }

.article-hero__inner { max-width: 1120px; }

.article-hero__kicker { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 26px 0 0; color: var(--muted); }

.article-hero h1 { margin: 16px 0 0; font-size: clamp(34px, 4.8vw, 76px); font-weight: 800; font-stretch: 112%; line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }

.article-hero__dek { max-width: 60ch; margin: 22px 0 0; color: rgba(244, 245, 247, 0.82); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; }

.article-hero__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; margin-top: 32px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.byline { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; color: var(--muted); }

.byline strong { color: var(--ink); font-weight: 500; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.share a, .share button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 4px; background: none; color: var(--ink); text-decoration: none; cursor: pointer; }

.share a:hover, .share button:hover { border-color: var(--sec); }

.share [role="status"] { color: var(--sec); }

.article-cover { margin: 40px 0 0; padding: 0 var(--gutter); }

.article-cover img { display: block; width: 100%; height: auto; max-height: 76vh; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }

.article-cover figcaption { margin-top: 10px; color: var(--muted); }

.article-body { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 260px); justify-content: space-between; gap: 48px 72px; padding: 56px var(--gutter) 64px; }

.prose { color: #dfe2e8; font-family: var(--serif); font-size: 20px; line-height: 1.72; }

.prose p { margin: 0 0 26px; }

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

.prose h2 { margin: 52px 0 16px; color: var(--ink); font-family: var(--sans); font-size: clamp(24px, 2.2vw, 32px); font-weight: 800; font-stretch: 112%; line-height: 1.15; scroll-margin-top: 96px; }

.prose blockquote { margin: 48px 0; padding: 0; }

.prose blockquote::before { content: ""; display: block; width: 56px; height: 2px; margin-bottom: 18px; background: var(--sec); }

.prose blockquote p { margin: 0; color: var(--ink); font-family: var(--sans); font-size: clamp(26px, 2.6vw, 38px); font-weight: 700; font-stretch: 112%; line-height: 1.18; }

.prose figure { margin: 44px 0; }

.prose figure img { display: block; width: 100%; height: auto; border-radius: 6px; }

.prose figcaption { margin-top: 10px; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; line-height: 1.6; text-transform: uppercase; }

.key-points { margin: 0 0 44px; padding: 26px 28px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 6px; background: linear-gradient(160deg, rgba(36, 31, 26, 0.7), rgba(12, 12, 12, 0.8)); font-family: var(--sans); }

.key-points h2 { margin: 0 0 14px; color: var(--sec); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }

.key-points ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding-left: 20px; color: var(--ink); font-size: 17px; line-height: 1.55; }

.key-points li::marker { color: var(--sec); }

.sources { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 15px; color: var(--muted); }

.sources h2 { margin: 0 0 8px; color: var(--ink); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; font-family: var(--sans); }

.post-tags a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; text-decoration: none; }

.post-tags a:hover { border-color: var(--sec); }

.desk-box { display: flex; align-items: flex-start; gap: 20px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); font-family: var(--sans); }

.desk-box__mark { flex: 0 0 auto; width: 46px; height: 46px; margin: 6px; border: 1px solid var(--sec); transform: rotate(45deg); }

.desk-box strong { display: block; color: var(--ink); font-size: 17px; }

.desk-box p { margin: 6px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

.toc { position: sticky; top: 100px; align-self: start; }

.toc h2 { margin: 0 0 12px; color: var(--muted); }

.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }

.toc a { display: block; margin-left: -1px; padding: 9px 0 9px 16px; border-left: 1px solid transparent; color: rgba(244, 245, 247, 0.7); font-size: 15px; line-height: 1.35; text-decoration: none; }

.toc a:hover, .toc a.is-active { border-left-color: var(--sec); color: var(--ink); }

@media (max-width: 1000px) { .article-body { grid-template-columns: 1fr; } .toc { display: none; } }

@media (max-width: 640px) { .prose { font-size: 18px; } .article-cover { padding: 0; } .article-cover img { border-radius: 0; } .article-cover figcaption { padding-inline: var(--gutter); } }

.related { padding: 0 var(--gutter) clamp(72px, 9vw, 112px); }

.related .section-head { padding-top: 40px; border-top: 1px solid var(--line); }

.related .section-head h2 { font-size: clamp(26px, 2.6vw, 40px); }

.related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }

@media (max-width: 860px) { .related__grid { grid-template-columns: 1fr; } }


/* Newsletter --------------------------------------------------------------------------- */

.signal { position: relative; z-index: 1; padding: clamp(64px, 8vw, 104px) var(--gutter); border-top: 1px solid var(--line); background: radial-gradient(70% 140% at 88% 130%, rgba(240, 180, 92, 0.24), rgba(6, 7, 8, 0) 60%), #060708; }

.signal__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); align-items: end; gap: 32px 64px; }

.signal h2 { font-size: clamp(34px, 4.6vw, 76px); }

.signal__lead { max-width: 46ch; margin: 16px 0 0; color: rgba(244, 245, 247, 0.78); }

.signal form { display: flex; flex-direction: column; gap: 10px; }

.signal__row { display: flex; gap: 8px; }

.signal input { flex: 1; min-width: 0; min-height: 54px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 4px; background: rgba(255, 255, 255, 0.04); color: var(--ink); font: inherit; font-size: 16px; }

.signal input::placeholder { color: rgba(244, 245, 247, 0.45); }

.signal input[aria-invalid="true"] { border-color: #ff9b85; }

.signal button { min-height: 54px; padding: 0 22px; border: 0; border-radius: 4px; background: var(--gold); color: #120c04; font: inherit; font-weight: 700; cursor: pointer; }

.signal__note { margin: 0; color: var(--muted); }

.signal__note.is-error { color: #ffb4a2; }

.signal__note.is-done { color: var(--gold); }

@media (max-width: 860px) { .signal__inner { grid-template-columns: 1fr; } }

@media (max-width: 420px) { .signal__row { flex-direction: column; } }

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

.site-footer { position: relative; z-index: 1; padding: 56px var(--gutter) calc(32px + var(--safe-bottom)); border-top: 1px solid var(--line); background: #050506; color: var(--muted); }

.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px 48px; }

.footer__brand .wordmark { margin-right: 0; }

.footer__brand p { max-width: 34ch; margin: 14px 0 0; font-size: 15px; }

.footer__col h2 { margin: 0 0 10px; color: var(--ink); }

.footer__col ul { margin: 0; padding: 0; list-style: none; }

.footer__col a { display: inline-flex; align-items: center; min-height: 40px; color: rgba(244, 245, 247, 0.72); font-size: 15px; text-decoration: none; }

.footer__col a:hover { color: var(--ink); }

.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }

@media (max-width: 860px) { .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }


/* WordPress ----------------------------------------------------------------------------- */

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; word-wrap: normal !important; }

.skip-link.screen-reader-text:focus { position: fixed !important; width: auto; height: auto; margin: 0; clip: auto; clip-path: none; }

.admin-bar .site-header { top: 32px; }

.admin-bar .nav-panel { top: 32px; }

@media (max-width: 782px) { .admin-bar .site-header, .admin-bar .nav-panel { top: 46px; } }

.custom-logo-link { display: inline-flex; align-items: center; min-height: 44px; }

.custom-logo { width: auto; max-height: 36px; }

.button, .search-form button, .comment-form .submit, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border: 0; border-radius: 4px; background: var(--gold); color: #120c04; font-family: var(--sans); font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; }

.search-form { display: flex; gap: 8px; }

.search-form input { flex: 1; min-width: 0; min-height: 50px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 4px; background: rgba(255, 255, 255, 0.04); color: var(--ink); font: inherit; font-size: 16px; }

.story__placeholder { display: block; width: 100%; height: 100%; background: radial-gradient(80% 90% at 70% 40%, color-mix(in srgb, var(--sec, var(--gold)) 38%, transparent), transparent 70%), #0b0d11; }

.desk__empty, .empty-state { color: var(--muted); }

.empty-state { margin: 0; padding: 24px 0; }

.signal__form .mono, .signal__note { color: var(--muted); }

.signal__form input[type="email"], .signal__form input[type="text"] { width: 100%; min-height: 54px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 4px; background: rgba(255, 255, 255, 0.04); color: var(--ink); font: inherit; font-size: 16px; }

.signal__form button, .signal__form input[type="submit"] { min-height: 54px; padding: 0 22px; border: 0; border-radius: 4px; background: var(--gold); color: #120c04; font: inherit; font-weight: 700; cursor: pointer; }

.footer__brand .custom-logo-link { margin-bottom: 4px; }

.footer__col .menu { margin: 0; padding: 0; list-style: none; }

.archive-header { padding: calc(130px + var(--safe-top)) var(--gutter) 24px; }

.archive-header h1 { font-size: clamp(36px, 5vw, 80px); }

.archive-header__description { max-width: 60ch; margin-top: 16px; color: rgba(244, 245, 247, 0.78); }

.archive-header .search-form { max-width: 560px; margin-top: 24px; }

.page-body { max-width: 720px; padding: 32px var(--gutter) 96px; margin-inline: auto; }

.page-article .article-cover { margin-top: 16px; }

.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 56px; }

.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 4px; font-family: var(--mono); font-size: 13px; text-decoration: none; }

.pagination .page-numbers.current { border-color: var(--sec, var(--gold)); background: var(--sec, var(--gold)); color: #0a0805; }

.chips .chip { display: inline-flex; align-items: center; text-decoration: none; }

.chips .chip[aria-current="page"] { border-color: var(--sec); background: var(--sec); color: #0a0805; }

.entry-content > * { margin-block: 0 26px; }

.entry-content a { color: var(--ink); text-decoration-color: var(--sec, var(--gold)); text-decoration-thickness: 1px; text-underline-offset: 4px; }

.entry-content h3 { margin: 40px 0 12px; color: var(--ink); font-family: var(--sans); font-size: 22px; font-weight: 700; font-stretch: 108%; line-height: 1.2; }

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

.entry-content li + li { margin-top: 0.4em; }

.entry-content img { max-width: 100%; height: auto; border-radius: 6px; }

.entry-content .wp-block-quote, .entry-content .wp-block-pullquote { margin: 48px 0; padding: 0; border: 0; text-align: left; }

.entry-content .wp-block-quote cite, .entry-content .wp-block-pullquote cite { display: block; margin-top: 12px; color: var(--muted); font-family: var(--mono); font-size: 11px; font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; }

.entry-content .wp-block-image figcaption, .entry-content .wp-element-caption, .wp-caption-text { margin-top: 10px; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; line-height: 1.6; text-transform: uppercase; }

.entry-content .wp-block-table { overflow-x: auto; }

.entry-content table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; }

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

.entry-content pre, .entry-content code { font-family: var(--mono); font-size: 0.85em; }

.entry-content pre { overflow-x: auto; padding: 16px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); }

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

.entry-content iframe, .entry-content video { max-width: 100%; }

.alignleft { float: left; margin: 0 24px 16px 0; }

.alignright { float: right; margin: 0 0 16px 24px; }

.aligncenter { display: block; margin-inline: auto; }

.alignwide, .alignfull { margin-inline: 0; }

.sources ul { margin: 0; padding-left: 1.2em; }

.sources a { color: var(--ink); }

.desk-box__avatar { flex: 0 0 auto; border-radius: 50%; }

.desk-box a { color: var(--sec, var(--gold)); text-decoration: none; display: inline-flex; min-height: 40px; align-items: center; }

.page-links { margin: 24px 0; }

.comments { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 16px; }

.comments__title, .comment-reply-title { margin: 0 0 20px; font-size: 22px; font-weight: 800; font-stretch: 112%; }

.comments__list, .comments__list .children { margin: 0; padding: 0; list-style: none; }

.comments__list .children { padding-left: 24px; border-left: 1px solid var(--line); }

.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }

.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--muted); font-size: 14px; }

.comment-meta img { border-radius: 50%; }

.comment-meta a { color: inherit; }

.comment-form p { margin: 0 0 16px; }

.comment-form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }

.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 4px; background: rgba(255, 255, 255, 0.04); color: var(--ink); font: inherit; }

.not-found { min-height: 80vh; padding: calc(140px + var(--safe-top)) var(--gutter) 96px; }

.not-found__code { margin: 0; font-size: clamp(96px, 16vw, 220px); color: var(--gold); }

.not-found h1 { margin: 12px 0; font-size: clamp(30px, 4vw, 56px); }

.not-found p { color: rgba(244, 245, 247, 0.78); }

.not-found .search-form { max-width: 560px; margin: 24px 0; }

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

/* SearchAI accessibility and reading refinements; retain Koridor visual identity. */
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold, #f0b45c);
  outline-offset: 5px;
}
.story:focus-within { outline: 1px solid var(--gold, #f0b45c); outline-offset: 6px; }
.story__title, .desk__name, .entry-content { overflow-wrap: anywhere; }
.entry-content h2, .entry-content h3 { scroll-margin-top: 100px; }
.entry-content a:hover { text-decoration-thickness: 2px; }
@media (max-width: 600px) {
  .entry-content table { display: block; max-width: 100%; overflow-x: auto; }
  .footer__col a { display: inline-flex; align-items: center; min-height: 44px; }
}
