/* ==========================================================================
   Sovereign Terminal — v10 "Harbor"
   --------------------------------------------------------------------------
   A deep harbour-green field, one mint accent for every action and live
   state, amber as the rare second accent. Bricolage Grotesque for headlines,
   Figtree for reading, JetBrains Mono only for the small readouts — dates,
   reading times, step markers.

   The memorable thing is the hero: a heartbeat trace running through a field
   of contour lines, drawn once on load. Everything else is quiet — hairline
   bordered plates, generous space, no gradients as decoration.
   ========================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
	--bg:        #061317;
	--bg-2:      #081A1F;
	--surface:   #0C2228;
	--surface-2: #102B32;
	--line:      rgba(150, 230, 212, 0.12);
	--line-2:    rgba(150, 230, 212, 0.22);

	--ink:       #EAF3F1;
	--ink-2:     #B7C9C6;
	--muted:     #81999A;

	--mint:      #5EE0C3;
	--mint-2:    #8AEBD6;
	--mint-ink:  #04241D;
	--mint-glow: rgba(94, 224, 195, 0.16);
	--amber:     #F0C35A;

	--font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
	--font-body:    "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	--fs-xs:    0.8125rem;
	--fs-sm:    0.9375rem;
	--fs-base:  1.0625rem;
	--fs-lg:    1.25rem;
	--fs-h3:    clamp(1.2rem, 1.05rem + 0.5vw, 1.4rem);
	--fs-h2:    clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
	--fs-h1:    clamp(2.5rem, 1.6rem + 3.6vw, 4.4rem);
	--fs-hero:  clamp(2.8rem, 1.4rem + 6vw, 6.4rem);

	--r-sm:   10px;
	--r:      16px;
	--r-lg:   22px;
	--r-pill: 999px;

	--wrap:   1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--band:   clamp(4rem, 3rem + 4vw, 7.5rem);
	--header-h: 76px;

	--logo-h: 40px;

	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var(--ink);
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

:focus-visible {
	outline: 2px solid var(--mint);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection { background: var(--mint); color: var(--mint-ink); }

.screen-reader-text {
	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: 16px; top: -60px;
	z-index: 200;
	padding: 0.6rem 1rem;
	border-radius: var(--r-sm);
	background: var(--mint);
	color: var(--mint-ink);
	font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 48px;
	padding: 0.75rem 1.5rem;
	border: 1px solid transparent;
	border-radius: var(--r-pill);
	font-family: var(--font-body);
	font-size: var(--fs-sm);
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn--mint { background: var(--mint); color: var(--mint-ink); }
.btn--mint:hover { background: var(--mint-2); }

.btn--ghost {
	border-color: var(--line-2);
	color: var(--ink);
	background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover { border-color: var(--mint); color: var(--mint); }

.btn--sm { min-height: 40px; padding: 0.55rem 1.1rem; font-size: var(--fs-xs); }

/* ── Small shared pieces ────────────────────────────────────────────────── */

/* The mono readout: date, a short rule, reading time. */
.readout {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.6rem;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--muted);
	letter-spacing: 0;
}
.readout__sep {
	width: 14px;
	height: 1px;
	background: var(--line-2);
}

/* The topic label: a coloured dot and the topic name. */
.topic-tag,
.chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	width: fit-content;
	font-size: var(--fs-xs);
	font-weight: 600;
	color: var(--ink-2);
	transition: color 0.2s var(--ease);
}
.topic-tag::before,
.chip::before {
	content: "";
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--card-accent, var(--chip-bg, var(--mint)));
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--card-accent, var(--chip-bg, var(--mint))) 22%, transparent);
	flex: none;
}
.topic-tag:hover, .chip:hover { color: var(--ink); }

.chip {
	padding: 0.4rem 0.85rem 0.4rem 0.7rem;
	border: 1px solid var(--line-2);
	border-radius: var(--r-pill);
}

/* ── Read progress ──────────────────────────────────────────────────────── */
.read-progress {
	position: fixed;
	inset: 0 0 auto 0;
	height: 3px;
	z-index: 120;
	pointer-events: none;
}
.read-progress__fill {
	width: 0;
	height: 100%;
	background: linear-gradient(90deg, var(--mint), var(--amber));
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid transparent;
	transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.site-header--scrolled {
	background: rgba(6, 19, 23, 0.86);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
	border-bottom-color: var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.masthead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: var(--header-h);
}

.masthead__brand { display: flex; align-items: center; flex: none; min-width: 0; }

/* The Customizer logo is a version drawn for this dark ground, so it sits
   directly on it with no plate. */
.custom-logo-link,
.site-logo {
	display: inline-flex;
	align-items: center;
}
.custom-logo {
	width: auto;
	height: auto;
	max-height: var(--logo-h);
	max-width: min(52vw, 220px);
	object-fit: contain;
}
.site-logo {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.15rem;
	letter-spacing: -0.02em;
	color: var(--ink);
}

.nav-primary { flex: 1; display: flex; justify-content: center; }

.nav-menu { display: flex; align-items: center; }

.nav-list {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	list-style: none;
}
.nav-list a {
	display: block;
	padding: 0.55rem 0.9rem;
	border-radius: var(--r-pill);
	font-size: var(--fs-sm);
	font-weight: 500;
	color: var(--ink-2);
	transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current-cat > a {
	color: var(--ink);
	background: rgba(255, 255, 255, 0.05);
}

.nav-head, .nav-cta { display: none; }

.masthead__util { display: flex; align-items: center; gap: 0.75rem; flex: none; }

.menu-pill {
	display: none;
	align-items: center;
	justify-content: center;
	width: 46px; height: 46px;
	border: 1px solid var(--line-2);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.03);
	cursor: pointer;
}
.menu-pill__bars { display: grid; gap: 5px; }
.menu-pill__bars span {
	display: block;
	width: 18px; height: 2px;
	border-radius: 2px;
	background: var(--ink);
}
.menu-pill__bars span:nth-child(2) { width: 12px; justify-self: end; background: var(--mint); }

.nav-scrim { display: none; }

@media (max-width: 1080px) {
	.menu-pill { display: inline-flex; }
	.masthead__cta { display: none; }

	.nav-primary { flex: 0; }

	.nav-menu {
		position: fixed;
		top: 0; right: 0; bottom: 0;
		z-index: 160;
		width: min(380px, 88vw);
		flex-direction: column;
		align-items: stretch;
		padding: 1.25rem 1.25rem 2rem;
		overflow-y: auto;
		background: var(--bg-2);
		border-left: 1px solid var(--line);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
	}
	.nav-primary.is-open .nav-menu {
		transform: none;
		visibility: visible;
		transition: transform 0.35s var(--ease);
	}

	.nav-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding-bottom: 1rem;
		margin-bottom: 0.75rem;
		border-bottom: 1px solid var(--line);
	}
	.nav-head__title { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }

	.nav-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 42px; height: 42px;
		border: 1px solid var(--line-2);
		border-radius: 12px;
		background: transparent;
		cursor: pointer;
	}
	.nav-close svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }

	.nav-list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav-list li { border-bottom: 1px solid var(--line); }
	.nav-list a {
		padding: 1rem 0.25rem;
		border-radius: 0;
		font-family: var(--font-display);
		font-size: 1.35rem;
		font-weight: 600;
		color: var(--ink);
	}
	.nav-list a:hover { background: none; color: var(--mint); }

	.nav-cta {
		display: grid;
		gap: 0.9rem;
		margin-top: auto;
		padding: 1.25rem;
		border: 1px solid var(--line);
		border-radius: var(--r);
		background: var(--surface);
	}
	.nav-cta__text { color: var(--ink-2); font-size: var(--fs-sm); }
	.nav-cta .btn { width: 100%; }
	.nav-list + .nav-cta { margin-top: 2rem; }

	.nav-scrim {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 150;
		background: rgba(2, 8, 10, 0.6);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
	}
	.nav-scrim.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s var(--ease); }

	body.nav-open { overflow: hidden; }

	/* The header is its own stacking context (sticky + z-index), so the
	   drawer inside it can only clear the scrim if the header itself does.
	   The blur comes off too: backdrop-filter makes the header the containing
	   block for fixed children, which would trap the drawer inside the bar. */
	body.nav-open .site-header {
		z-index: 170;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background: var(--bg);
	}
}

@media (max-width: 480px) {
	:root { --header-h: 66px; }
	.custom-logo { max-height: min(var(--logo-h), 34px); }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
	position: relative;
	margin-top: calc(var(--header-h) * -1);
	padding: calc(var(--header-h) + clamp(3.5rem, 2rem + 6vw, 7.5rem)) 0 clamp(9rem, 6rem + 8vw, 13rem);
	overflow: hidden;
	isolation: isolate;
}

.hero__field { position: absolute; inset: 0; z-index: -1; }
.hero__contours { width: 100%; height: 100%; }
.hero__pulse {
	position: absolute;
	left: 0; right: 0;
	bottom: clamp(0.5rem, 2vw, 2rem);
	width: 100%;
	height: clamp(110px, 8vw + 70px, 160px);
	overflow: visible;
}
.hero__lines path {
	fill: none;
	stroke: var(--mint);
	stroke-opacity: 0.22;
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
}

/* The heartbeat trace: drawn once on load, still after. */
.pulse {
	fill: none;
	stroke: var(--mint);
	stroke-width: 2;
	stroke-linejoin: round;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
	filter: drop-shadow(0 0 6px rgba(94, 224, 195, 0.7));
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: st-draw 2.6s 0.3s var(--ease) forwards;
}
@keyframes st-draw { to { stroke-dashoffset: 0; } }

.hero__inner { text-align: center; }

.hero__claim {
	max-width: 15ch;
	margin-inline: auto;
	font-size: var(--fs-hero);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.012em;
	text-wrap: balance;
}
.hero__mint { color: var(--mint); }
.hero__amber { color: var(--amber); }

.hero__intro {
	max-width: 52ch;
	margin: 1.75rem auto 0;
	font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
	color: var(--ink-2);
	text-wrap: pretty;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 2.25rem;
}

/* ── Figures strip ──────────────────────────────────────────────────────── */
.figures {
	border-top: 1px solid var(--line);
	background: var(--bg-2);
}
.figures__row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}
.figure {
	display: grid;
	gap: 0.3rem;
	padding: 1.6rem 1.5rem;
	border-left: 1px solid var(--line);
}
.figure:first-child { border-left: 0; padding-left: 0; }
.figure__value {
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
	font-weight: 700;
	line-height: 1.1;
	color: var(--mint);
}
.figure--1 .figure__value { color: var(--amber); }
.figure--2 .figure__value,
.figure--3 .figure__value { color: var(--ink); }
.figure__label { font-size: var(--fs-xs); color: var(--muted); }

@media (max-width: 900px) {
	.figures__row { grid-template-columns: repeat(2, 1fr); }
	.figure { padding: 1.25rem 1rem; }
	.figure:nth-child(odd) { border-left: 0; padding-left: 0; }
	.figure:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ── Ribbon ─────────────────────────────────────────────────────────────── */
.ribbon {
	overflow: hidden;
	background: var(--mint);
	color: var(--mint-ink);
}
.ribbon__track {
	display: flex;
	width: max-content;
	animation: st-marquee 48s linear infinite;
}
.ribbon:hover .ribbon__track,
.ribbon:focus-within .ribbon__track { animation-play-state: paused; }
.ribbon__list { display: flex; list-style: none; }
.ribbon__list li { display: flex; align-items: center; }
.ribbon__list li::after {
	content: "";
	width: 7px; height: 7px;
	margin-inline: 1.75rem;
	transform: rotate(45deg);
	background: var(--mint-ink);
	opacity: 0.7;
}
.ribbon__list a {
	display: block;
	padding: 0.95rem 0;
	font-weight: 700;
	font-size: var(--fs-sm);
	white-space: nowrap;
}
.ribbon__list a:hover { text-decoration: underline; text-underline-offset: 3px; }
@keyframes st-marquee { to { transform: translateX(-50%); } }

/* ── Bands ──────────────────────────────────────────────────────────────── */
.band { padding-block: var(--band); }
.band--rule { border-top: 1px solid var(--line); }

.band__head {
	display: grid;
	gap: 0.9rem;
	max-width: 46rem;
	margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem);
}
.band__head--wide {
	max-width: none;
	grid-template-columns: 1fr auto;
	align-items: end;
	column-gap: 2rem;
}
.band__head--wide .band__intro { grid-column: 1; }
.band__title {
	font-size: var(--fs-h2);
	font-weight: 800;
	letter-spacing: -0.035em;
	max-width: 20ch;
	text-wrap: balance;
}
.band__intro { color: var(--ink-2); max-width: 54ch; }
.band__link {
	grid-column: 2;
	grid-row: 1;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding-bottom: 0.35rem;
	font-weight: 600;
	font-size: var(--fs-sm);
	color: var(--mint);
	white-space: nowrap;
}
.band__link::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width 0.2s var(--ease); }
.band__link:hover::after { width: 28px; }

@media (max-width: 700px) {
	.band__head--wide { grid-template-columns: 1fr; }
	.band__link { grid-column: 1; grid-row: auto; }
}

/* ── Lead band ──────────────────────────────────────────────────────────── */
.lead__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 1rem + 2vw, 3rem);
	align-items: start;
}

.feature {
	display: grid;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--surface);
	overflow: hidden;
}
.feature__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.feature__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.feature:hover .feature__img { transform: scale(1.03); }
.feature__body { display: grid; gap: 0.9rem; padding: clamp(1.25rem, 1rem + 1.2vw, 2rem); }
.feature__title { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.2rem); font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
.feature__title a:hover { color: var(--mint); }
.feature__text { color: var(--ink-2); max-width: 60ch; }

.lead__side { display: grid; }
.lead__side .card { padding-block: 1.5rem; border-top: 1px solid var(--line); }
.lead__side .card:first-child { border-top: 0; padding-top: 0; }

@media (max-width: 1000px) {
	.lead__grid { grid-template-columns: 1fr; }
	.lead__side .card:first-child { border-top: 1px solid var(--line); padding-top: 1.5rem; }
}

/* ── Cards ──────────────────────────────────────────────────────────────── */
.cardgrid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 0.6rem + 1.4vw, 1.75rem);
}

.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card__body { display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.card__title { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.02em; line-height: 1.22; }
.card__title a { transition: color 0.2s var(--ease); }
.card__title a:hover { color: var(--mint); }
.card__text { color: var(--ink-2); font-size: var(--fs-sm); }
.card .readout { margin-top: auto; padding-top: 0.5rem; }

.card--photo,
.card--plate {
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--surface);
	overflow: hidden;
	transition: border-color 0.25s var(--ease);
}
.card--photo:hover,
.card--plate:hover { border-color: var(--line-2); }
.card--photo .card__body,
.card--plate .card__body { padding: 1.35rem 1.4rem 1.5rem; }

.card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card--photo:hover .card__img { transform: scale(1.04); }

/* The plate carries its topic colour as a top edge instead of a picture. */
.card--plate { border-top: 3px solid var(--card-accent, var(--mint)); }
.card--plate .card__title { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }

.card--line .card__title { font-size: 1.2rem; }
.card--line .card__text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Archive lead: the first card spans two columns. */
.cardgrid--lead > .card:first-child { grid-column: span 2; }
.cardgrid--lead > .card--photo:first-child .card__media { aspect-ratio: 16 / 8.2; }
.cardgrid--lead > .card:first-child .card__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }

@media (max-width: 1000px) {
	.cardgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.cardgrid { grid-template-columns: 1fr; }
	.cardgrid--lead > .card:first-child { grid-column: auto; }
	.cardgrid--lead > .card--photo:first-child .card__media { aspect-ratio: 16 / 10; }
}

/* ── Topics ─────────────────────────────────────────────────────────────── */
.topicgrid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}
.topiccard {
	position: relative;
	display: grid;
	grid-template-rows: auto auto 1fr auto;
	gap: 0.6rem;
	padding: 1.5rem;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 60%), var(--bg-2);
	transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.topiccard:hover { border-color: color-mix(in srgb, var(--card-accent, var(--mint)) 55%, transparent); }

.topicmark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px; height: 46px;
	margin-bottom: 0.6rem;
	border-radius: 13px;
	color: var(--card-accent, var(--mint));
	background: color-mix(in srgb, var(--card-accent, var(--mint)) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--card-accent, var(--mint)) 30%, transparent);
}
.topicmark svg { width: 22px; height: 22px; }

.topiccard__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.topiccard__text { color: var(--ink-2); font-size: var(--fs-sm); }
.topiccard__count {
	margin-top: 0.6rem;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--card-accent, var(--mint));
}

@media (max-width: 1000px) { .topicgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .topicgrid { grid-template-columns: 1fr; } .topiccard { padding: 1.25rem; } }

/* ── Method steps ───────────────────────────────────────────────────────── */
.steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1rem, 0.5rem + 1.5vw, 2rem);
	list-style: none;
	counter-reset: none;
}
.step {
	display: grid;
	align-content: start;
	gap: 0.6rem;
	padding-top: 1.25rem;
	border-top: 2px solid var(--mint);
}
.step:last-child { border-top-color: var(--amber); }
.step__no { font-family: var(--font-mono); font-size: 0.75rem; color: var(--mint); }
.step:last-child .step__no { color: var(--amber); }
.step__title { font-size: 1.2rem; font-weight: 700; }
.step__text { color: var(--ink-2); font-size: var(--fs-sm); }

@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ── Long reads ─────────────────────────────────────────────────────────── */
.longgrid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 0.6rem + 1.4vw, 1.75rem);
}
.longread {
	--accent: var(--mint);
	position: relative;
	display: grid;
	grid-template-rows: auto auto auto 1fr auto;
	gap: 0.75rem;
	padding: 1.6rem;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%), var(--surface);
}
.longread--amber { --accent: var(--amber); }
.longread__topic { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.longread__figure {
	font-family: var(--font-display);
	font-size: clamp(3rem, 2.4rem + 2.4vw, 4.4rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.05em;
	color: var(--accent);
}
.longread__figure small { margin-left: 0.3rem; font-size: 0.32em; letter-spacing: 0; font-weight: 600; }
.longread__title { font-size: var(--fs-h3); font-weight: 700; }
.longread__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.longread:hover .longread__title a { color: var(--accent); }
.longread__text { color: var(--ink-2); font-size: var(--fs-sm); }
.longread__date { padding-top: 0.9rem; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }

@media (max-width: 900px) { .longgrid { grid-template-columns: 1fr; } }

/* ── Join (newsletter band) ─────────────────────────────────────────────── */
.join { position: relative; overflow: hidden; }
.join::before {
	content: "";
	position: absolute;
	left: -10%; top: 10%;
	width: 60%; height: 80%;
	background: radial-gradient(closest-side, var(--mint-glow), transparent);
	pointer-events: none;
}
.join__grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
	gap: clamp(2rem, 1rem + 4vw, 5rem);
	align-items: center;
}
.join__title { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -0.035em; max-width: 14ch; }
.join__text { margin-top: 1.25rem; color: var(--ink-2); max-width: 46ch; }
.join__list { display: grid; gap: 0.8rem; margin-top: 1.75rem; list-style: none; }
.join__list li { display: flex; gap: 0.9rem; align-items: baseline; color: var(--ink-2); font-size: var(--fs-sm); }
.join__list li::before { content: ""; flex: none; width: 18px; height: 1px; transform: translateY(-4px); background: var(--mint); }

.join__panel {
	padding: clamp(1.4rem, 1rem + 1.5vw, 2rem);
	border: 1px solid var(--line-2);
	border-radius: var(--r-lg);
	background: var(--surface);
	box-shadow: 0 30px 80px -40px rgba(94, 224, 195, 0.35);
}
.join__panelhead {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 1rem;
	margin-bottom: 1.25rem;
	border-bottom: 1px solid var(--line);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--muted);
}
.join__live { color: var(--mint); display: inline-flex; align-items: center; gap: 0.45rem; }
.join__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-glow); }
.join__paneltitle { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1.1rem; }

@media (max-width: 900px) { .join__grid { grid-template-columns: 1fr; } }

/* ── Page heads (archive, page, 404, thank-you) ─────────────────────────── */
.page-head {
	position: relative;
	padding: clamp(3.5rem, 2rem + 5vw, 6.5rem) 0 clamp(2.5rem, 2rem + 2vw, 3.5rem);
}
.page-head--glow { overflow: hidden; isolation: isolate; }
.page-head--glow::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: 50%; top: -40%;
	width: min(1100px, 140vw); height: 140%;
	transform: translateX(-50%);
	background: radial-gradient(closest-side, var(--mint-glow), transparent);
	pointer-events: none;
}
.page-head .container { display: grid; gap: 1rem; }
.page-head__eyebrow { font-family: var(--font-mono); font-size: 0.8rem; color: var(--mint); }
.page-head__title {
	font-size: var(--fs-h1);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1.02;
	max-width: 18ch;
	text-wrap: balance;
}
.page-head__text { max-width: 58ch; color: var(--ink-2); font-size: var(--fs-lg); }
.page-head__count { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }

.page-head--center { text-align: center; }
.page-head--center .container { justify-items: center; }
.page-head--center .page-head__title { margin-inline: auto; }

.listing { padding-top: 0; }

.notice-page { display: grid; gap: 1rem; justify-items: start; padding: 2rem 0; }
.notice-page__title { font-size: var(--fs-h2); }
.notice-page__text { color: var(--ink-2); }
.notice-page__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.page-head--center .notice-page__actions { justify-content: center; }

.thanks__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px; height: 64px;
	border-radius: 50%;
	background: var(--mint);
	color: var(--mint-ink);
	box-shadow: 0 0 0 10px var(--mint-glow);
	margin-bottom: 1rem;
}
.thanks__mark svg { width: 30px; height: 30px; }
.thanks__note { max-width: 52ch; color: var(--muted); font-size: var(--fs-sm); }

/* ── Pagination ─────────────────────────────────────────────────────────── */
.pagination { margin-top: 3rem; }
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px; height: 44px;
	padding: 0 0.9rem;
	border: 1px solid var(--line-2);
	border-radius: var(--r-pill);
	font-family: var(--font-mono);
	font-size: 0.85rem;
	color: var(--ink-2);
}
.pagination a.page-numbers:hover { border-color: var(--mint); color: var(--mint); }
.pagination .page-numbers.current { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); }
.pagination .page-numbers.dots { border: 0; }
.pagination .post-page-numbers { /* wp_link_pages */
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-pill);
}
.pagination .post-page-numbers.current { background: var(--mint); color: var(--mint-ink); }

/* ── Single post ────────────────────────────────────────────────────────── */
.post-head {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0 clamp(2rem, 1.5rem + 2vw, 3rem);
}
.post-head::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: 50%; top: -60%;
	width: min(1100px, 140vw); height: 160%;
	transform: translateX(-50%);
	background: radial-gradient(closest-side, var(--mint-glow), transparent);
}
.post-head__inner { display: grid; gap: 1.25rem; justify-items: start; }
.post-head__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.post-head__title {
	max-width: 22ch;
	font-size: clamp(2.1rem, 1.4rem + 3vw, 3.9rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1.04;
	text-wrap: balance;
}
.post-head__standfirst { max-width: 60ch; color: var(--ink-2); font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); }
.post-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.post-head__updated { font-family: var(--font-mono); font-size: 0.75rem; color: var(--mint); }

.post-hero {
	margin: 0 0 clamp(2rem, 1.5rem + 2vw, 3.5rem);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	overflow: hidden;
	background: var(--surface);
}
.post-hero__img { width: 100%; max-height: 640px; object-fit: cover; }

.layout__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: clamp(2rem, 1rem + 3vw, 4.5rem);
	align-items: start;
	padding-bottom: var(--band);
}
.layout__main { min-width: 0; }

@media (max-width: 1080px) {
	.layout__grid { grid-template-columns: 1fr; }
}

/* ── Article body ───────────────────────────────────────────────────────── */
.entry-content {
	max-width: 70ch;
	font-size: 1.125rem;
	line-height: 1.75;
	color: #D3E1DE;
	overflow-wrap: break-word;
}
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2,
.entry-content h3,
.entry-content h4 { margin-top: 2em; margin-bottom: -0.4em; color: var(--ink); }
.entry-content h2 { font-size: clamp(1.55rem, 1.3rem + 1vw, 2rem); letter-spacing: -0.03em; scroll-margin-top: calc(var(--header-h) + 24px); }
.entry-content h3 { font-size: 1.35rem; }
.entry-content h4 { font-size: 1.15rem; }
.entry-content a {
	color: var(--mint);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.entry-content a:hover { color: var(--mint-2); }
.entry-content strong { color: var(--ink); }
.entry-content ul,
.entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: 0.5em; }
.entry-content li::marker { color: var(--mint); }
.entry-content blockquote {
	margin-inline: 0;
	padding: 0.4rem 0 0.4rem 1.5rem;
	border-left: 3px solid var(--amber);
	font-family: var(--font-display);
	font-size: 1.35rem;
	line-height: 1.45;
	color: var(--ink);
}
.entry-content blockquote cite { display: block; margin-top: 0.75rem; font-family: var(--font-mono); font-size: 0.8rem; font-style: normal; color: var(--muted); }
.entry-content img,
.entry-content figure img { border-radius: var(--r); }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption,
.entry-content .wp-caption-text { margin-top: 0.6rem; font-size: var(--fs-xs); color: var(--muted); }
.entry-content hr { border: 0; height: 1px; background: var(--line-2); margin-block: 2.5em; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); display: block; overflow-x: auto; }
.entry-content th,
.entry-content td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content th { color: var(--ink); background: var(--surface); }
.entry-content code { padding: 0.15em 0.4em; border-radius: 6px; background: var(--surface-2); font-family: var(--font-mono); font-size: 0.88em; }
.entry-content pre { padding: 1.2rem; border-radius: var(--r); background: var(--surface); overflow-x: auto; }
.entry-content iframe,
.entry-content video,
.entry-content embed { max-width: 100%; }
.entry-content .wp-block-image,
.entry-content .wp-block-embed { margin-block: 2em; }
.entry-content .alignwide,
.entry-content .alignfull { max-width: 100%; }

.page-content { margin-inline: auto; padding-bottom: var(--band); }
.page-main .post-hero { max-width: 70ch; margin-inline: auto; }

.single-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.5rem; }
.single-tags a {
	padding: 0.4rem 0.85rem;
	border: 1px solid var(--line-2);
	border-radius: var(--r-pill);
	font-size: var(--fs-xs);
	color: var(--ink-2);
}
.single-tags a::before { content: "#"; color: var(--mint); margin-right: 1px; }
.single-tags a:hover { border-color: var(--mint); color: var(--ink); }

.single-share { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.share-row__label { margin-right: 0.5rem; font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.share-row__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px; height: 42px;
	border: 1px solid var(--line-2);
	border-radius: 12px;
	color: var(--ink-2);
	transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.share-row__link svg { width: 18px; height: 18px; fill: currentColor; }
.share-row__link:hover { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); }

.postnav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-top: 2.5rem;
}
.postnav__item {
	display: grid;
	gap: 0.4rem;
	padding: 1.25rem 1.4rem;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--surface);
	transition: border-color 0.2s var(--ease);
}
.postnav__item:hover { border-color: var(--mint); }
.postnav__item--next { grid-column: 2; text-align: right; }
.postnav__label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--mint); }
.postnav__title { font-family: var(--font-display); font-weight: 600; line-height: 1.3; }

@media (max-width: 600px) {
	.postnav { grid-template-columns: 1fr; }
	.postnav__item--next { grid-column: auto; text-align: left; }
}

/* ── Sidebar widgets ────────────────────────────────────────────────────── */
.sidebar { display: grid; gap: 1.25rem; align-content: start; min-width: 0; }
.sidebar__sticky { display: grid; gap: 1.25rem; }

@media (min-width: 1081px) {
	.sidebar { grid-template-rows: auto auto 1fr; height: 100%; }
	.sidebar__sticky { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
	.admin-bar .sidebar__sticky { top: calc(var(--header-h) + 52px); }
}
@media (max-width: 1080px) {
	.sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sidebar__sticky { grid-column: 1 / -1; order: -1; }
	.widget--toc { display: none; }
}
@media (max-width: 680px) {
	.sidebar { grid-template-columns: 1fr; }
}

.widget {
	padding: 1.4rem;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--bg-2);
	min-width: 0;
}
.widget__title {
	margin-bottom: 1rem;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--muted);
}
.widget__title--lg {
	font-family: var(--font-display);
	font-size: 1.45rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--ink);
	margin-bottom: 0.5rem;
}
.widget__text { margin-bottom: 1.1rem; color: var(--ink-2); font-size: var(--fs-sm); }

.widget--news {
	position: relative;
	overflow: hidden;
	border-color: var(--line-2);
	background: radial-gradient(120% 70% at 100% 0%, rgba(94, 224, 195, 0.14), transparent 60%), var(--surface);
}

/* Contents list */
.toc { list-style: none; display: grid; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
	position: relative;
	display: grid;
	grid-template-columns: 1.8rem 1fr;
	padding: 0.55rem 0 0.55rem 0.9rem;
	border-left: 2px solid var(--line);
	font-size: var(--fs-sm);
	line-height: 1.4;
	color: var(--ink-2);
	transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); padding-top: 0.15rem; }
.toc a:hover { color: var(--ink); }
.toc a.is-current { color: var(--ink); border-left-color: var(--mint); }
.toc a.is-current::before { color: var(--mint); }

/* Topics list */
.topiclist { list-style: none; display: grid; }
.topiclist__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.7rem 0;
	border-top: 1px solid var(--line);
	font-size: var(--fs-sm);
	color: var(--ink-2);
	transition: color 0.2s var(--ease);
}
.topiclist li:first-child .topiclist__link { border-top: 0; padding-top: 0; }
.topiclist__name { display: inline-flex; align-items: center; gap: 0.65rem; }
.topiclist__name::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--card-accent, var(--mint)); }
.topiclist__count {
	min-width: 2.2rem;
	padding: 0.15rem 0.5rem;
	border-radius: var(--r-pill);
	background: rgba(255, 255, 255, 0.04);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	text-align: center;
	color: var(--muted);
}
.topiclist__link:hover { color: var(--ink); }
.topiclist__link:hover .topiclist__count { background: var(--mint); color: var(--mint-ink); }

/* Fresh reads */
.minilist { display: grid; gap: 1rem; }
.minilist__item { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 0.9rem; align-items: center; }
.minilist__item:not(:has(.minilist__media)) { grid-template-columns: 1fr; }
.minilist__media { display: block; width: 68px; height: 68px; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.minilist__img { width: 100%; height: 100%; object-fit: cover; }
.minilist__body { display: grid; gap: 0.3rem; min-width: 0; }
.minilist__title { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; line-height: 1.35; letter-spacing: 0; }
.minilist__title a:hover { color: var(--mint); }
.minilist__meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
	border-top: 1px solid var(--line);
	background: var(--bg-2);
	padding-top: clamp(3rem, 2rem + 3vw, 4.5rem);
}
.footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
	gap: 2.5rem;
	padding-bottom: 3rem;
}
.footer-brand { display: grid; gap: 1.25rem; justify-items: start; align-content: start; }
.footer-brand__text { max-width: 42ch; color: var(--ink-2); font-size: var(--fs-sm); }
.footer-brand .custom-logo { max-width: 200px; max-height: 48px; }

.footer-col__heading {
	margin-bottom: 1rem;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--muted);
}
.footer-links { list-style: none; display: grid; gap: 0.6rem; }
.footer-links a { font-size: var(--fs-sm); color: var(--ink-2); transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--mint); }

.footer-base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	padding: 1.5rem 0 2rem;
	border-top: 1px solid var(--line);
	font-size: var(--fs-xs);
	color: var(--muted);
}
.footer-base a { color: var(--ink-2); }
.footer-base a:hover { color: var(--mint); }

@media (max-width: 860px) {
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 340px) {
	.footer__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Homepage layout "Briefing"
   ========================================================================== */

/* ── Hero: claim left, briefing panel right, on a dot grid ──────────────── */
.brief-hero {
	position: relative;
	margin-top: calc(var(--header-h) * -1);
	padding: calc(var(--header-h) + clamp(2.5rem, 2rem + 4vw, 6.5rem)) 0 clamp(3.5rem, 2.5rem + 4vw, 6rem);
	overflow: hidden;
	isolation: isolate;
}
.brief-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background-image: radial-gradient(rgba(150, 230, 212, 0.16) 1px, transparent 1.2px);
	background-size: 26px 26px;
	-webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.7) 55%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.7) 55%, transparent 100%);
}
.brief-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	right: -12%; top: 4%;
	width: min(760px, 90vw); aspect-ratio: 1;
	background: radial-gradient(closest-side, rgba(94, 224, 195, 0.18), transparent);
	pointer-events: none;
}

.brief-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(2rem, 1rem + 4vw, 5rem);
	align-items: center;
}

.brief-hero__date {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.4rem 0.9rem 0.4rem 0.7rem;
	border: 1px solid var(--line-2);
	border-radius: var(--r-pill);
	font-family: var(--font-mono);
	font-size: 0.78rem;
	color: var(--ink-2);
}
.brief-hero__live {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--mint);
	box-shadow: 0 0 0 4px var(--mint-glow);
}

.brief-hero__title {
	margin-top: 1.5rem;
	font-size: clamp(2.6rem, 1.5rem + 4.6vw, 5.6rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
	max-width: 11ch;
	text-wrap: balance;
}
.brief-hero__mint { color: var(--mint); }

.brief-hero__intro {
	max-width: 50ch;
	margin-top: 1.5rem;
	font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
	color: var(--ink-2);
}

.brief-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.brief-hero__proof {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin-top: 2rem;
	list-style: none;
	font-size: var(--fs-xs);
	color: var(--muted);
}
.brief-hero__proof li { display: inline-flex; align-items: center; gap: 0.5rem; }
.brief-hero__proof li::before {
	content: "";
	width: 12px; height: 7px;
	margin-top: -3px;
	border-left: 2px solid var(--mint);
	border-bottom: 2px solid var(--mint);
	transform: rotate(-45deg);
}

/* The briefing panel */
.briefing {
	position: relative;
	padding: 1.5rem;
	border: 1px solid var(--line-2);
	border-radius: var(--r-lg);
	background: rgba(12, 34, 40, 0.82);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 40px 90px -50px rgba(94, 224, 195, 0.45);
}
.briefing__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--line);
}
.briefing__title { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.briefing__count {
	padding: 0.2rem 0.6rem;
	border-radius: var(--r-pill);
	background: var(--mint);
	color: var(--mint-ink);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-weight: 500;
}
.briefing__list { list-style: none; display: grid; }
.briefing__item {
	position: relative;
	display: grid;
	gap: 0.45rem;
	padding: 1rem 0 1rem 1.1rem;
	border-bottom: 1px solid var(--line);
}
.briefing__item::before {
	content: "";
	position: absolute;
	left: 0; top: 1.1rem; bottom: 1.1rem;
	width: 2px;
	border-radius: 2px;
	background: var(--card-accent, var(--mint));
	opacity: 0.8;
}
.briefing__item .topic-tag::before { display: none; }
.briefing__item .topic-tag { color: var(--card-accent, var(--mint)); font-size: 0.75rem; }
.briefing__link {
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
	transition: color 0.2s var(--ease);
}
.briefing__link:hover { color: var(--mint); }
.briefing__more {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 1.1rem;
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--mint);
}
.briefing__more::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width 0.2s var(--ease); }
.briefing__more:hover::after { width: 28px; }

@media (max-width: 1000px) {
	.brief-hero__grid { grid-template-columns: 1fr; }
	.brief-hero__title { max-width: 14ch; }
}

/* ── Shelf: topic pills ─────────────────────────────────────────────────── */
.shelf {
	border-block: 1px solid var(--line);
	background: var(--bg-2);
}
.shelf__inner {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	padding-block: 1rem;
}
.shelf__label { flex: none; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.shelf__list {
	display: flex;
	gap: 0.5rem;
	min-width: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	padding: 2px;
	margin: -2px;
}
.shelf__list::-webkit-scrollbar { display: none; }
.shelf__pill {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.5rem 0.6rem 0.5rem 1rem;
	border: 1px solid var(--line-2);
	border-radius: var(--r-pill);
	font-size: var(--fs-sm);
	font-weight: 600;
	white-space: nowrap;
	color: var(--ink-2);
	transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.shelf__pill span {
	min-width: 1.8rem;
	padding: 0.1rem 0.45rem;
	border-radius: var(--r-pill);
	background: color-mix(in srgb, var(--card-accent, var(--mint)) 16%, transparent);
	color: var(--card-accent, var(--mint));
	font-family: var(--font-mono);
	font-size: 0.7rem;
	text-align: center;
}
.shelf__pill:hover { border-color: var(--card-accent, var(--mint)); color: var(--ink); }

@media (max-width: 600px) {
	.shelf__label { display: none; }
	.shelf__inner { padding-inline: 0; }
	.shelf__list { padding-inline: var(--gutter); margin: 0; }
}

/* ── Cover: poster + rows ───────────────────────────────────────────────── */
.cover__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
}

.poster {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(420px, 30vw + 220px, 620px);
	border-radius: var(--r-lg);
	overflow: hidden;
	isolation: isolate;
	background: var(--surface-2);
}
.poster__img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--ease);
}
.poster::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(6, 19, 23, 0) 25%, rgba(6, 19, 23, 0.75) 60%, rgba(6, 19, 23, 0.96) 100%);
}
.poster:hover .poster__img { transform: scale(1.03); }
.poster__body { display: grid; gap: 0.9rem; padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); }
.poster .topic-tag { position: relative; z-index: 1; color: var(--ink); }
.poster__title {
	font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.06;
	text-wrap: balance;
}
.poster__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.poster__text { max-width: 54ch; color: var(--ink-2); }
.poster .readout { color: var(--ink-2); }

.cover__rows { display: grid; align-content: space-between; }
.cover__rows .card { padding-block: 1.1rem; border-top: 1px solid var(--line); }
.cover__rows .card:first-child { border-top: 0; padding-top: 0; }
.cover__rows .card:last-child { padding-bottom: 0; }

.card--row {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	gap: 1.1rem;
	align-items: center;
}
.card--row .card__media { aspect-ratio: 1; border-radius: var(--r); }
.card--row .card__body { gap: 0.5rem; }
.card--row .card__title { font-size: 1.1rem; line-height: 1.28; }
.card--row .readout { padding-top: 0.15rem; }
.card--row:hover .card__img { transform: scale(1.05); }

@media (max-width: 1000px) {
	.cover__grid { grid-template-columns: 1fr; }
	.cover__rows .card:first-child { border-top: 1px solid var(--line); padding-top: 1.1rem; }
}
@media (max-width: 480px) {
	.card--row { grid-template-columns: 92px minmax(0, 1fr); gap: 0.9rem; }
	.card--row .card__title { font-size: 1rem; }
	.poster { min-height: 440px; }
}

/* ── Promise: statement + standards ─────────────────────────────────────── */
.promise__statement {
	max-width: 22ch;
	font-size: clamp(2rem, 1.2rem + 3.4vw, 4rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.025em;
	text-wrap: balance;
	background: linear-gradient(100deg, var(--ink) 30%, var(--mint) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.promise__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
	margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
	list-style: none;
}
.promise__item {
	display: grid;
	gap: 0.6rem;
	align-content: start;
	padding: 1.5rem;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--bg-2);
}
.promise__item:last-child { border-color: rgba(240, 195, 90, 0.3); }
.promise__title { font-size: 1.2rem; font-weight: 700; }
.promise__item:last-child .promise__title { color: var(--amber); }
.promise__text { color: var(--ink-2); font-size: var(--fs-sm); }

@media (max-width: 860px) { .promise__list { grid-template-columns: 1fr; } }

/* ── Desks ──────────────────────────────────────────────────────────────── */
.desks__list { display: grid; }
.desk {
	display: grid;
	grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
	gap: clamp(1.25rem, 1rem + 2vw, 3rem);
	padding-block: 1.75rem;
	border-top: 1px solid var(--line);
}
.desk:last-child { border-bottom: 1px solid var(--line); }
.desk__head { display: grid; gap: 0.5rem; align-content: start; justify-items: start; }
.desk__head .topicmark { margin-bottom: 0.25rem; }
.desk__name { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; }
.desk__all { font-size: var(--fs-sm); font-weight: 600; color: var(--card-accent, var(--mint)); }
.desk__all:hover { text-decoration: underline; text-underline-offset: 3px; }
.desk__posts {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 1.25rem;
}
.desk__post {
	position: relative;
	display: grid;
	gap: 0.75rem;
	align-content: space-between;
	padding: 1.15rem 1.2rem;
	border-radius: var(--r);
	background: var(--surface);
	border: 1px solid transparent;
	transition: border-color 0.2s var(--ease);
}
.desk__post:hover { border-color: color-mix(in srgb, var(--card-accent, var(--mint)) 45%, transparent); }
.desk__title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.desk__title a::after { content: ""; position: absolute; inset: 0; }

@media (max-width: 1000px) {
	.desk { grid-template-columns: 1fr; }
	.desk__head { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 0.9rem; }
	.desk__head .topicmark { margin: 0; }
}
@media (max-width: 720px) {
	.desk__posts { grid-auto-flow: row; gap: 0.75rem; }
	.desk__head { grid-template-columns: auto 1fr; }
	.desk__all { grid-column: 2; }
}

/* ── Sunday: centred newsletter panel ───────────────────────────────────── */
.sunday__panel {
	position: relative;
	display: grid;
	justify-items: center;
	text-align: center;
	padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(1.25rem, 1rem + 3vw, 4rem);
	border: 1px solid var(--line-2);
	border-radius: 28px;
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(70% 90% at 50% 0%, rgba(94, 224, 195, 0.16), transparent 70%),
		var(--surface);
}
.sunday__panel::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(rgba(150, 230, 212, 0.12) 1px, transparent 1.2px);
	background-size: 22px 22px;
	-webkit-mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent);
	mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent);
}
.sunday__when {
	padding: 0.35rem 0.85rem;
	border-radius: var(--r-pill);
	background: rgba(240, 195, 90, 0.12);
	color: var(--amber);
	font-family: var(--font-mono);
	font-size: 0.78rem;
}
.sunday__title {
	max-width: 18ch;
	margin-top: 1.25rem;
	font-size: var(--fs-h2);
	font-weight: 800;
	letter-spacing: -0.025em;
	text-wrap: balance;
}
.sunday__text { max-width: 52ch; margin-top: 1rem; color: var(--ink-2); }
.sunday__form { width: 100%; max-width: 30rem; margin-top: 2rem; text-align: left; }

/* ── Index: two-column headline list ────────────────────────────────────── */
.index__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(1.5rem, 1rem + 3vw, 4rem);
	list-style: none;
}
.index__item {
	display: grid;
	grid-template-columns: 4.2rem minmax(0, 1fr);
	gap: 0.35rem 1rem;
	padding-block: 1.1rem;
	border-top: 1px solid var(--line);
}
.index__date { grid-row: span 2; padding-top: 0.2rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.index__title { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.index__title:hover { color: var(--mint); }
.index__item .topic-tag { font-size: 0.75rem; }

@media (max-width: 760px) { .index__list { grid-template-columns: 1fr; } }

/* ── Scroll reveal (opt-in via .reveal) ─────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ── Motion preferences ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
	.pulse { animation: none; stroke-dashoffset: 0; }
	.ribbon__track { animation: none; }
	.ribbon { overflow-x: auto; }
}
