/* ==========================================================================
   Custom Theme — main.css  ·  "Poster board"
   --------------------------------------------------------------------------
   A Swiss information poster crossed with a station departure board. One
   stock, one ink, one signal colour; heavy framed cells; numbers set huge in
   a condensed grotesk and turned over on split-flap cells; proportions drawn
   as Isotype pictograms and order-of-magnitude blocks.

   Anton for the big figures and poster headlines, Archivo (condensed and
   black for titles, normal width for reading and the interface), Martian
   Mono for the board, labels and small figures.

   Motion: figures riffle in on flap cells, magnitude blocks stack up,
   pictograms fill in one by one. All of it is off under reduced motion.

   Contents
     1. Tokens              8. Cards
     2. Base                9. Single post
     3. Primitives         10. Sidebar & issue card
     4. Buttons & tags     11. Archive, page, 404, thanks
     5. Board line/header  12. Newsletter band
     6. Footer
     7. Bands             13. Layout voices
                          14. Reveal & reduced motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	/* Base colours — Signal. Overridden per scheme by inc/color-schemes.php. */
	--bg: #F2F0EA;
	--bg-2: #E8E5DC;
	--surface: #FFFFFF;
	--surface-2: #DAD6CB;
	--tint: #0B0B0B;
	--panel: #FFE3D6;
	--field: rgba(255, 255, 255, 0.92);
	--scrim: #0B0B0B;
	--danger: #B3261E;
	--ink: #0B0B0B;
	--ink-2: #2E2E2B;
	--muted: #5C5A53;
	--mint: #FF4D00;        /* the signal colour, as a FILL */
	--mint-2: #B83600;      /* the signal colour as TEXT on the stock */
	--mint-ink: #0B0B0B;    /* text set on the signal fill */
	--mint-on-ink: #FF6A2B; /* the signal colour as text on an ink block */
	--amber: #1F3FD1;
	--shadow-ink: var(--ink);

	/* Resolved copies, for the inverted blocks (see .invert). A custom
	   property's value is resolved where it is declared, so these hold the
	   scheme's real colours even inside a block that swaps --bg and --ink. */
	--bg-c: var(--bg);
	--ink-c: var(--ink);
	--mint-2-c: var(--mint-2);

	/* Derived. */
	--accent: var(--mint);
	--line: color-mix(in srgb, var(--ink) 16%, transparent);
	--line-2: color-mix(in srgb, var(--ink) 30%, transparent);
	--flap-bg: var(--ink);
	--flap-ink: var(--bg);
	--off: color-mix(in srgb, var(--ink) 16%, var(--bg));

	/* Type. */
	--font-display: "Anton", Impact, "Arial Narrow", "Helvetica Neue", sans-serif;
	--font-body: "Archivo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--font-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	/* Space & shape. */
	--wrap: 1320px;
	--gutter: clamp(16px, 3.4vw, 32px);
	--bw: 2px;
	--frame: var(--bw) solid var(--ink);
	--radius: 0px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--header-h: 68px;
	--logo-h: 40px;
}

/* An inverted block: ink becomes the ground, the stock becomes the ink. */
.invert {
	--bg: var(--ink-c);
	--bg-2: var(--ink-c);
	--surface: color-mix(in srgb, var(--ink-c) 90%, var(--bg-c));
	--surface-2: color-mix(in srgb, var(--ink-c) 78%, var(--bg-c));
	--ink: var(--bg-c);
	--ink-2: color-mix(in srgb, var(--bg-c) 86%, var(--ink-c));
	--muted: color-mix(in srgb, var(--bg-c) 70%, var(--ink-c));
	--mint-2: var(--mint-on-ink);
	--line: color-mix(in srgb, var(--bg-c) 20%, transparent);
	--line-2: color-mix(in srgb, var(--bg-c) 34%, transparent);
	--flap-bg: color-mix(in srgb, var(--bg-c) 18%, var(--ink-c));
	--flap-ink: var(--bg-c);
	--off: color-mix(in srgb, var(--bg-c) 22%, var(--ink-c));
	--field: var(--surface);
	--frame: var(--bw) solid var(--bg-c);
	background: var(--bg);
	color: var(--ink);
}

/* Dark schemes: dark form controls, and board cells a step off the ground. */
.scheme-is-dark { color-scheme: dark; --flap-bg: var(--surface-2); --flap-ink: var(--ink); }
.scheme-is-dark img:not(.custom-logo) { filter: brightness(.94) contrast(1.02); }

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: clip; -webkit-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: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	font-variant-numeric: lining-nums;
}

body.nav-open, body.st-modal-open { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1; text-wrap: balance; }
p { margin: 0; }
sup { font-size: .62em; line-height: 0; }

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

.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: 12px; top: -60px; z-index: 300;
	padding: 10px 16px; background: var(--ink); color: var(--bg);
	font-weight: 700; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.site-main { display: block; }

/* The two display voices. */
.display { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .005em; line-height: .92; }
.condensed { font-family: var(--font-body); font-stretch: 72%; font-weight: 800; letter-spacing: -.01em; }

/* 3. Primitives -------------------------------------------------------------- */

/* A small label, mono capitals. */
.label { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }

/* Split-flap figures. The markup carries the plain figure; main.js splits it
   into cells (.flap__c) and riffles each one into place. */
.flap { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .07em; font-family: var(--font-mono); font-weight: 600; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.flap__c {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: .86em;
	height: 1.3em;
	background: var(--flap-bg);
	color: var(--flap-ink);
	overflow: hidden;
}
.flap__c::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: max(1px, .035em); background: color-mix(in srgb, var(--flap-ink) 22%, transparent); }
.flap__c--gap { width: .34em; background: none; }
.flap__c--gap::after { display: none; }
.flap__c.is-turning { animation: flap-turn .07s linear; }
@keyframes flap-turn { from { transform: scaleY(.15); } to { transform: none; } }
.flap--sm { font-size: 12px; }
.flap--lg { font-size: clamp(2rem, 4.6vw, 3.8rem); }

/* Order of magnitude: one block per power of ten. */
.mag { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mag__blocks { display: flex; gap: 3px; }
.mag__blocks i { width: 10px; height: 16px; background: var(--mint); transform-origin: bottom; }
.js .mag[data-inview] i { transform: scaleY(0); transition: transform .35s var(--ease) calc(var(--i) * 60ms); }
.js .mag.is-in i { transform: none; }
.mag--on-accent { color: var(--mint-ink); }
.mag--on-accent .mag__blocks i { background: var(--mint-ink); }

/* The share grid: a hundred squares, the share drawn in the signal colour. */
.isogrid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.isogrid i { aspect-ratio: 1; background: var(--off); }
.isogrid .is-on { background: var(--mint); outline: 2px solid var(--ink); outline-offset: -2px; }
.js .isogrid[data-inview] .is-on { background: var(--off); outline-color: transparent; transition: background-color .25s var(--ease) calc(var(--i) * 30ms), outline-color .25s var(--ease) calc(var(--i) * 30ms); }
.js .isogrid.is-in .is-on { background: var(--mint); outline-color: var(--ink); }

/* A topic pictogram in a framed square with the topic's colour as a bar. */
.topicmark {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 40px; height: 40px;
	border: var(--frame);
	background: var(--surface);
	color: var(--ink);
	flex: none;
}
.topicmark::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: -2px; height: 6px; background: var(--tag, var(--mark-tint, var(--mint))); }
.topicmark svg { width: 22px; height: 22px; margin-top: -4px; }

.countup { font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }

/* Reading progress on single posts. */
.read-progress { position: fixed; inset: 0 0 auto; z-index: 120; height: 5px; pointer-events: none; }
.read-progress__fill { width: 0; height: 100%; background: var(--mint); }

/* 4. Buttons & tags ---------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	min-height: 50px;
	padding: .7rem 1.4rem;
	border: var(--frame);
	background: var(--surface);
	color: var(--ink);
	font-family: var(--font-body);
	font-stretch: 80%;
	font-size: .95rem;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: none; box-shadow: none; }
.btn--accent, .btn--mint { background: var(--mint); color: var(--mint-ink); }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ghost { background: transparent; }
.btn--sm { min-height: 42px; padding: .45rem 1rem; font-size: .85rem; }

/* Topic tag: the topic's colour square, then its name in mono capitals. */
.topic-tag, .chip {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ink-2);
}
.topic-tag::before, .chip::before { content: ""; width: 10px; height: 10px; background: var(--tag, var(--chip-bg, var(--mint))); outline: 1px solid var(--ink); flex: none; }
.topic-tag:hover, .chip:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.readout {
	display: inline-flex;
	align-items: center;
	gap: .7em;
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: .06em;
	color: var(--muted);
	text-transform: uppercase;
	flex-wrap: wrap;
	row-gap: 4px;
}
.readout > * { white-space: nowrap; }
.readout__sep { width: 6px; height: 6px; background: var(--ink); }

/* 5. Board line & header ------------------------------------------------------ */
.boardline { background: var(--ink); color: var(--bg); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; --flap-bg: color-mix(in srgb, var(--bg-c) 18%, var(--ink-c)); --flap-ink: var(--bg-c); }
.scheme-is-dark .boardline { background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); --flap-bg: var(--surface-2); --flap-ink: var(--mint); }
.boardline__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 38px; }
.boardline__count { justify-self: end; }
.boardline__now { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.boardline__label { color: inherit; opacity: 1; }
.boardline__what { max-width: 30ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.boardline__now:hover .boardline__what { text-decoration: underline; }

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--bg);
	border-bottom: var(--frame);
}
.site-header--scrolled { box-shadow: 0 4px 0 color-mix(in srgb, var(--ink) 10%, transparent); }

.masthead { display: flex; align-items: stretch; min-height: var(--header-h); }
.masthead__brand { flex: none; display: flex; align-items: center; padding-right: 24px; }
.custom-logo-link { display: block; }
.custom-logo { width: auto; height: var(--logo-h); max-height: var(--logo-h); }
.site-logo { font-family: var(--font-display); font-size: 1.9rem; text-transform: uppercase; letter-spacing: .01em; }
.site-logo::after { content: ""; display: inline-block; width: .32em; height: .32em; margin-left: .1em; background: var(--mint); }

.nav-primary { flex: 1; display: flex; justify-content: flex-end; min-width: 0; }
.nav-head, .nav-cta { display: none; }
.nav-menu { display: flex; }
.nav-list { display: flex; margin: 0; padding: 0; list-style: none; }
.nav-list li { display: flex; }
.nav-list a {
	display: flex;
	align-items: center;
	padding: 0 16px;
	border-left: var(--frame);
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ink);
}
.nav-list a:hover, .nav-list .current-menu-item > a, .nav-list .current-cat > a { background: var(--ink); color: var(--bg); }

.masthead__util { display: flex; align-items: stretch; }
.masthead__cta {
	display: flex;
	align-items: center;
	padding: 0 22px;
	border-left: var(--frame);
	background: var(--mint);
	color: var(--mint-ink);
	font-stretch: 80%;
	font-weight: 800;
	font-size: .92rem;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.masthead__cta:hover { background: var(--ink); color: var(--bg); }

.menu-pill {
	display: none;
	place-items: center;
	width: 60px;
	border: 0;
	border-left: var(--frame);
	background: var(--bg);
	cursor: pointer;
}
.menu-pill__bars { display: grid; gap: 5px; width: 22px; }
.menu-pill__bars span { height: 3px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s; }
.menu-pill[aria-expanded="true"] .menu-pill__bars span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-pill[aria-expanded="true"] .menu-pill__bars span:nth-child(2) { opacity: 0; }
.menu-pill[aria-expanded="true"] .menu-pill__bars span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-scrim { position: fixed; inset: 0; z-index: 140; background: color-mix(in srgb, var(--scrim) 55%, transparent); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.nav-scrim.is-open { opacity: 1; visibility: visible; }

@media (max-width: 1200px) {
	.menu-pill { display: grid; }
	body.nav-open .site-header { z-index: 160; }
	.nav-primary {
		position: fixed;
		inset: 0 0 0 auto;
		z-index: 150;
		width: min(400px, 90vw);
		display: block;
		padding: 20px 24px 32px;
		background: var(--bg);
		border-left: var(--frame);
		overflow-y: auto;
		transform: translateX(102%);
		visibility: hidden;
		transition: transform .38s var(--ease), visibility .38s;
	}
	.nav-primary.is-open { transform: none; visibility: visible; }
	.nav-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: var(--frame); }
	.nav-head__title { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
	.nav-close { display: grid; place-items: center; width: 44px; height: 44px; border: var(--frame); background: var(--surface); cursor: pointer; }
	.nav-close svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.4; }
	.nav-list { display: block; counter-reset: nav; }
	.nav-list li { display: block; counter-increment: nav; border-bottom: var(--frame); }
	.nav-list a { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-left: 0; font-family: var(--font-display); font-size: 1.9rem; font-weight: 400; letter-spacing: .01em; }
	.nav-list a::before { content: counter(nav, decimal-leading-zero); font-family: var(--font-mono); font-size: 11px; color: var(--mint-2); }
	.nav-list a:hover::before { color: var(--bg); }
	.nav-cta { display: block; margin-top: 28px; padding: 20px; border: var(--frame); background: var(--surface); }
	.nav-cta__text { margin-bottom: 14px; font-stretch: 80%; font-weight: 800; font-size: 1.2rem; line-height: 1.2; }
	.nav-subscribe { width: 100%; }
}
@media (max-width: 700px) {
	.boardline__inner { grid-template-columns: 1fr; justify-items: center; min-height: 40px; }
	.boardline__date, .boardline__count, .boardline__what { display: none; }
}
@media (max-width: 560px) {
	:root { --header-h: 60px; }
	.masthead__cta { display: none; }
	.custom-logo { height: min(var(--logo-h), 32px); }
	.masthead__brand { padding-right: 12px; }
}

/* 6. Footer ------------------------------------------------------------------ */
.site-footer { padding: clamp(56px, 7vw, 88px) 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; border-top: var(--frame); border-left: var(--frame); }
.footer__grid > * { padding: 26px 24px 30px; border-right: var(--frame); border-bottom: var(--frame); }
.footer-brand .custom-logo-link { max-width: 15rem; }
.footer-brand .custom-logo { width: 100%; height: auto; max-height: none; }
.footer-brand__text { max-width: 36ch; margin: 18px 0 22px; font-size: 1rem; line-height: 1.55; color: var(--ink-2); }
.footer-col__heading { margin-bottom: 16px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.footer-links { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.footer-links a { font-stretch: 85%; font-weight: 700; font-size: 1rem; color: var(--ink); }
.footer-links a:hover { color: var(--mint-2); }
.footer-contact { margin-bottom: 12px; font-size: .95rem; color: var(--ink-2); }
.footer-contact__mail { font-family: var(--font-mono); font-size: .8rem; color: var(--mint-2); border-bottom: 2px solid currentColor; word-break: break-all; }
.site-footer > .container { container-type: inline-size; }
.footer__giant { margin: clamp(36px, 5vw, 64px) 0 clamp(24px, 3vw, 40px); font-family: var(--font-display); font-size: min(13rem, calc(100cqi / (var(--len, 23) * .41))); line-height: .86; text-transform: uppercase; letter-spacing: -.005em; color: var(--mint-2); white-space: nowrap; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; padding-top: 20px; border-top: var(--frame); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; color: var(--muted); }
.footer-base a { color: inherit; }
@media (max-width: 1080px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* 7. Section bands (shared) ----------------------------------------------- */
.band { padding: clamp(52px, 7vw, 96px) 0; }
.band--rule { border-top: var(--frame); }
.band--tint { background: var(--bg-2); border-block: var(--frame); }
.band__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px 24px; margin-bottom: clamp(24px, 3.4vw, 40px); padding-bottom: 16px; border-bottom: var(--frame); }
.band__kicker { grid-column: 1 / -1; justify-self: start; padding: 5px 9px 4px; background: var(--ink); color: var(--bg); font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.band__kicker:empty { display: none; }
.band__title { font-family: var(--font-display); font-size: clamp(2.3rem, 5.4vw, 4.6rem); font-weight: 400; line-height: .92; text-transform: uppercase; }
.band__text { grid-column: 1; max-width: 64ch; color: var(--ink-2); font-size: 1.02rem; }
.band__link { grid-row: 2; grid-column: 2; align-self: end; padding: 9px 14px; border: var(--frame); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;  }
.band__link::after { content: " →"; }
.band__link:hover { background: var(--ink); color: var(--bg); }
@media (max-width: 700px) {
	.band__head { grid-template-columns: 1fr; }
	.band__link { grid-row: auto; grid-column: 1; justify-self: start; }
}

/* The number, explained: four framed notes across a row (homes). */
.explained__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: var(--frame); border-left: var(--frame); }
.explained__item { padding: 22px 22px 26px; border-right: var(--frame); border-bottom: var(--frame); background: var(--surface); }
.explained__label { display: inline-block; margin-bottom: 12px; padding: 4px 8px 3px; background: var(--mint); color: var(--mint-ink); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.explained__text { font-size: .98rem; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 960px) { .explained__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .explained__list { grid-template-columns: 1fr; } }

/* Topics as a framed row of pictogram tiles (homes). */
.topicrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; padding: 0; list-style: none; border-top: var(--frame); border-left: var(--frame); }
.topicrow > li { border-right: var(--frame); border-bottom: var(--frame); }
.topictile { display: grid; grid-template-rows: auto 1fr auto; gap: 18px; height: 100%; min-height: 200px; padding: 20px 18px 18px; background: var(--surface);  }
.topictile .topicmark { width: 56px; height: 56px; }
.topictile .topicmark svg { width: 30px; height: 30px; }
.topictile__name { font-family: var(--font-display); font-size: 1.55rem; line-height: .95; text-transform: uppercase; }
.topictile__count { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.topictile:hover { background: var(--ink); color: var(--bg); }
.topictile:hover .topictile__count { color: inherit; }

/* 8. Cards ------------------------------------------------------------------- */
/* A card grid is a sheet of framed cells: the grid draws the top and left
   rules, every cell its right and bottom one. */
.cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); border-top: var(--frame); border-left: var(--frame); }
.cardgrid > * { border-right: var(--frame); border-bottom: var(--frame); min-width: 0; }
.cardgrid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cardgrid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cardgrid--lead > :first-child { grid-column: span 2; }
@media (max-width: 1080px) { .cardgrid--three, .cardgrid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cardgrid--three, .cardgrid--four { grid-template-columns: 1fr; } .cardgrid--lead > :first-child { grid-column: auto; } }

.card { position: relative; display: flex; flex-direction: column; height: 100%; padding: 16px; background: var(--surface);  }
.card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border: var(--frame); background: var(--surface-2); }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__img { transform: scale(1.04); }
.card__badge {
	position: absolute;
	left: -2px; top: -2px;
	padding: 6px 10px 5px;
	background: var(--mint);
	border: var(--frame);
	font-family: var(--font-display);
	font-size: 1.35rem;
	line-height: 1;
	letter-spacing: .01em;
	color: var(--mint-ink);
}
.card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 16px; flex: 1; }
.card__title { font-family: var(--font-body); font-stretch: 72%; font-size: clamp(1.3rem, 1.8vw, 1.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; }
.card__title a { background: linear-gradient(var(--mint), var(--mint)) left 92% / 0 .28em no-repeat; transition: background-size .3s var(--ease); }
.card__title a:hover { background-size: 100% .28em; }
.card__text { font-size: .96rem; line-height: 1.5; color: var(--ink-2); }
.card .readout { margin-top: auto; padding-top: 6px; }

/* Feature: the lead of a section. */
.card--feature .card__media { aspect-ratio: 16 / 10; }
.card--feature .card__title { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
.card--feature .card__text { font-size: 1.05rem; }
.card__bignum { font-family: var(--font-display); font-size: clamp(2.8rem, 5.6vw, 4.8rem); line-height: .9; color: var(--ink); }
.card__bignumlabel { margin-top: -4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mint-2); }
.cardgrid--lead .card--feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 28px; align-items: start; }
.cardgrid--lead .card--feature .card__body { padding-top: 0; }
@media (max-width: 900px) { .cardgrid--lead .card--feature { display: flex; } .cardgrid--lead .card--feature .card__body { padding-top: 16px; } }

/* Plate: a number poster instead of a picture. */
.card__plate { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; aspect-ratio: 4 / 3; padding: 18px 18px 16px; border: var(--frame); background: var(--mint); color: var(--mint-ink); container-type: inline-size; }
.card__figure { font-family: var(--font-display); font-size: clamp(2.6rem, 18cqi, 5.6rem); line-height: .9; letter-spacing: -.005em; overflow-wrap: anywhere; }
.card__figlabel { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.card--ink .card__plate { background: var(--ink); color: var(--bg); }
.card--plate:hover .card__plate { box-shadow: inset 0 -10px 0 var(--ink); }
.card--ink:hover .card__plate { box-shadow: inset 0 -10px 0 var(--mint); }
.cardgrid--lead > :first-child .card__plate { aspect-ratio: 2 / 1; }

/* Row: small square picture beside the headline. */
.card--row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; height: auto; }
.card--row .card__media { aspect-ratio: 1; }
.card--row .card__body { padding-top: 0; gap: 8px; }
.card--row .card__title { font-size: 1.2rem; }
@media (max-width: 480px) { .card--row { grid-template-columns: 88px minmax(0, 1fr); } }

/* Line: a numbered headline row. */
.card--line { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; height: auto; padding: 18px 16px; }
.card__index { font-family: var(--font-display); font-size: 2.6rem; line-height: .9; color: var(--ink); }
.card--line .card__body { padding-top: 0; gap: 8px; }
.card__linenum { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 3px 7px 2px; background: var(--mint); color: var(--mint-ink); }
.card--line .card__title { font-size: 1.3rem; }

/* 9. Single post ------------------------------------------------------------ */
.post-head { padding: clamp(36px, 5vw, 64px) 0 0; }
.post-head__grid { display: grid; gap: 0; border: var(--frame); background: var(--surface); }
.post-head__grid--num { grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); }
.post-head__copy { padding: clamp(22px, 3.6vw, 44px); border-top: 10px solid var(--tag, var(--mint)); }
.post-head__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-bottom: 22px; }
.post-head__day { padding: 4px 8px 3px; background: var(--ink); color: var(--bg); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.post-head__title { max-width: 18ch; font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 5.4rem); font-weight: 400; line-height: .94; text-transform: uppercase; }
.post-head__standfirst { max-width: 56ch; margin-top: 22px; font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.5; color: var(--ink-2); }
.post-head__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; padding-top: 16px; border-top: var(--frame); }
.post-head__updated { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--mint-2); }
.post-head__figure { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: clamp(22px, 3vw, 34px); border-left: var(--frame); background: var(--mint); color: var(--mint-ink); container-type: inline-size; }
.post-head__figkicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.post-head__value { font-size: min(4.2rem, calc(100cqi / (var(--len) * .95))); }
.post-head__figlabel { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1; text-transform: uppercase; }
@media (max-width: 900px) {
	.post-head__grid--num { grid-template-columns: 1fr; }
	.post-head__figure { border-left: 0; border-top: var(--frame); }
}

.post-hero { margin: clamp(24px, 3vw, 36px) 0 0; border: var(--frame); background: var(--surface-2); }
.post-hero .post-hero__img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }

.layout__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(36px, 5vw, 64px); align-items: start; padding-top: clamp(32px, 4.4vw, 56px); padding-bottom: clamp(56px, 7vw, 96px); }
.layout__main { min-width: 0; }
.issuecard-mobile { display: none; }
@media (max-width: 1080px) {
	.layout__grid { grid-template-columns: 1fr; }
	.issuecard-mobile { display: block; margin-bottom: 36px; }
	.sidebar__issue { display: none; }
}

/* Long-form reading text. */
.entry-content { max-width: 68ch; font-family: var(--font-body); font-size: clamp(1.06rem, 1.2vw, 1.15rem); line-height: 1.72; color: var(--ink); counter-reset: section; }
.entry-content > * + * { margin-top: 1.15em; }
.entry-content > p:first-child { font-size: 1.22em; line-height: 1.55; font-weight: 500; }
.entry-content a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--mint); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.entry-content a:hover { background: var(--mint); color: var(--mint-ink); }
.entry-content strong { font-weight: 700; }
.entry-content > h2 { counter-increment: section; display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 14px; margin-top: 2.2em; padding-top: 18px; border-top: var(--frame); font-family: var(--font-body); font-stretch: 72%; font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 800; line-height: 1.02; letter-spacing: -.01em; }
.entry-content > h2::before { content: counter(section, decimal-leading-zero); padding: 6px 8px 5px; background: var(--ink); color: var(--bg); font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .04em; line-height: 1; }
.entry-content h3 { margin-top: 1.8em; font-stretch: 80%; font-size: 1.35rem; font-weight: 800; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .4em; }
.entry-content ul li::marker { content: "■  "; color: var(--mint); font-size: .8em; }
.entry-content ol li::marker { font-family: var(--font-mono); font-size: .8em; color: var(--ink); }
.entry-content img { border: var(--frame); }
.entry-content figcaption, .wp-caption-text { margin-top: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.entry-content hr { border: 0; border-top: var(--frame); margin: 2.4em 0; }
.entry-content blockquote:not(.jn-pullquote) { margin-inline: 0; padding: 4px 0 4px 1.1em; border-left: 6px solid var(--mint); color: var(--ink-2); }

/* By the numbers: three framed figures. */
.jn-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 2.2em 0; padding: 0; border-top: var(--frame); border-left: var(--frame); font-family: var(--font-body); }
.jn-numbers::before { content: "By the numbers"; grid-column: 1 / -1; padding: 8px 12px 7px; border-right: var(--frame); border-bottom: var(--frame); background: var(--ink); color: var(--bg); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.jn-numbers__item { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; border-right: var(--frame); border-bottom: var(--frame); background: var(--surface); container-type: inline-size; }
.jn-numbers__item strong { font-family: var(--font-display); font-size: clamp(2rem, 20cqi, 3rem); font-weight: 400; line-height: .92; letter-spacing: 0; color: var(--ink); overflow-wrap: anywhere; }
.jn-numbers__item strong::after { content: ""; display: block; width: 40px; height: 6px; margin-top: 10px; background: var(--mint); }
.jn-numbers__item span { font-size: .9rem; line-height: 1.4; color: var(--ink-2); }
@media (max-width: 640px) { .jn-numbers { grid-template-columns: 1fr; } }

/* Pull-quote: a framed poster with the signal-coloured quote block. */
.jn-pullquote { position: relative; margin: 2.4em 0; padding: 26px 24px 22px 92px; border: var(--frame); background: var(--surface); }
.jn-pullquote::before { content: "“"; position: absolute; left: -2px; top: -2px; bottom: -2px; width: 68px; display: grid; place-items: start center; padding-top: 10px; border: var(--frame); background: var(--mint); color: var(--mint-ink); font-family: var(--font-display); font-size: 4.6rem; line-height: 1; }
.jn-pullquote p { max-width: 32ch; font-family: var(--font-display); font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 400; line-height: 1.02; text-transform: uppercase; }
.jn-pullquote cite { display: block; margin-top: 16px; font-family: var(--font-mono); font-size: 10.5px; font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 560px) { .jn-pullquote { padding: 74px 18px 18px; } .jn-pullquote::before { width: auto; right: -2px; bottom: auto; height: 58px; padding-top: 6px; font-size: 3.6rem; } }

/* Tables: a framed timetable with tabular figures. */
.entry-content table { width: 100%; margin: 2em 0; border-collapse: collapse; border: var(--frame); font-family: var(--font-body); font-size: .93rem; line-height: 1.4; font-variant-numeric: lining-nums tabular-nums; background: var(--surface); }
.entry-content thead th { padding: 10px 12px; background: var(--ink); color: var(--bg); font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; text-align: left; vertical-align: bottom; }
.entry-content td { padding: 11px 12px; border-top: 1px solid var(--line-2); vertical-align: top; }
.entry-content td + td, .entry-content th + th { border-left: 1px solid var(--line-2); }
.entry-content tbody tr:hover td { background: color-mix(in srgb, var(--mint) 12%, var(--surface)); }
.entry-content td:first-child { font-weight: 700; }
@media (max-width: 720px) { .entry-content table { display: block; overflow-x: auto; white-space: nowrap; } }

.jn-disclaimer { padding: 12px 14px; border: 2px dashed var(--line-2); font-family: var(--font-mono); font-size: 11px !important; letter-spacing: .02em; color: var(--muted); }

/* Sources: small, numbered, quiet. */
.jn-sources { margin-top: 2.6em !important; padding-top: 16px; border-top: var(--frame); font-family: var(--font-body); font-size: .86rem; line-height: 1.5; color: var(--ink-2); }
.jn-sources h2 { margin: 0 0 12px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.jn-sources ol { margin: 0; padding-left: 1.8em; }
.jn-sources li { padding-left: 4px; }
.jn-sources li::marker { font-family: var(--font-mono); font-size: .8em; color: var(--ink); }
.jn-sources a { word-break: break-word; text-decoration-thickness: 2px; }
.entry-content > p:last-child em, .entry-content .jn-series-note { color: var(--muted); }

.single-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.single-tags a { padding: 5px 10px; border: var(--frame); font-family: var(--font-mono); font-size: 11px; }

.single-share { margin-top: 36px; padding-top: 18px; border-top: var(--frame); }
.share-row { display: flex; align-items: center; gap: 0; }
.share-row__label { margin-right: 14px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.share-row__link { display: grid; place-items: center; width: 46px; height: 46px; border: var(--frame); margin-left: -2px; color: var(--ink); background: var(--surface);  }
.share-row__link svg { width: 18px; height: 18px; fill: currentColor; }
.share-row__link:hover { background: var(--mint); color: var(--mint-ink); }

.postnav { display: grid; grid-template-columns: 1fr 1fr; margin-top: 40px; border: var(--frame); }
.postnav__item { display: grid; gap: 8px; padding: 20px 22px; background: var(--surface);  }
.postnav__item--next { text-align: right; border-left: var(--frame); grid-column: 2; }
.postnav__item:hover { background: var(--ink); color: var(--bg); }
.postnav__label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.postnav__title { font-stretch: 75%; font-weight: 800; font-size: 1.25rem; line-height: 1.1; }
@media (max-width: 640px) { .postnav { grid-template-columns: 1fr; } .postnav__item--next { grid-column: auto; border-left: 0; border-top: var(--frame); } }

/* 10. Sidebar & issue card ---------------------------------------------------- */
.sidebar { display: grid; gap: 32px; min-width: 0; }
.widget__title { margin-bottom: 0; padding: 8px 12px 7px; background: var(--ink); color: var(--bg); font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.widget__title--lg { padding: 0; background: none; color: var(--ink); font-family: var(--font-display); font-size: 2rem; font-weight: 400; letter-spacing: .005em; line-height: .95; text-transform: uppercase; }
.widget__kicker { margin-bottom: 10px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mint-2); }
.widget__text { margin: 12px 0 18px; font-size: .95rem; color: var(--ink-2); }

.topiclist { margin: 0; padding: 0; list-style: none; border: var(--frame); border-top: 0; }
.topiclist li + li { border-top: 1px solid var(--line-2); }
.topiclist__link { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 9px 12px; background: var(--surface);  }
.topiclist__link .topicmark { width: 34px; height: 34px; }
.topiclist__link .topicmark svg { width: 18px; height: 18px; }
.topiclist__name { font-stretch: 80%; font-weight: 700; font-size: 1rem; }
.topiclist__count { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.topiclist__link:hover { background: var(--ink); color: var(--bg); }
.topiclist__link:hover .topiclist__count { color: inherit; }

.minilist { margin: 0; padding: 0; list-style: none; border: var(--frame); border-top: 0; }
.minilist__item + .minilist__item { border-top: 1px solid var(--line-2); }
.minilist__link { display: grid; gap: 6px; padding: 12px; background: var(--surface); }
.minilist__num { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--ink); }
.minilist__title { font-stretch: 80%; font-weight: 700; font-size: 1rem; line-height: 1.2; }
.minilist__link:hover .minilist__title { text-decoration: underline; text-decoration-color: var(--mint); text-decoration-thickness: 3px; }

.sidebar__sticky { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 32px; }
.toc { margin: 0; padding: 0; list-style: none; counter-reset: toc; border: var(--frame); border-top: 0; background: var(--surface); }
.toc li { counter-increment: toc; }
.toc li + li { border-top: 1px solid var(--line); }
.toc a { display: grid; grid-template-columns: 30px 1fr; gap: 6px; padding: 8px 12px; font-size: .9rem; line-height: 1.35; color: var(--ink-2);  }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); padding-top: 3px; }
.toc a:hover { color: var(--ink); }
.toc a.is-current { background: var(--mint); color: var(--mint-ink); }
.toc a.is-current::before { color: var(--mint-ink); }

.widget--news { padding: 22px; border: var(--frame); background: var(--surface); box-shadow: 8px 8px 0 var(--mint); }

/* The number, explained. */
.issuecard { position: relative; border: var(--frame); background: var(--surface); }
.issuecard__head { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px 7px; background: var(--ink); color: var(--bg); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.issuecard__day { color: var(--bg); }
.issuecard__figure { padding: 18px 16px 0; font-family: var(--font-display); font-size: clamp(2.2rem, 3vw, 2.9rem); line-height: .95; }
.issuecard__figure .countup { white-space: normal; overflow-wrap: anywhere; }
.issuecard__label { padding: 6px 16px 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mint-2); }
.issuecard__notes { margin: 12px 0 0; }
.issuecard__note { padding: 12px 16px; border-top: 1px solid var(--line-2); }
.issuecard__note dt { display: inline-block; margin-bottom: 6px; padding: 3px 6px 2px; background: var(--mint); color: var(--mint-ink); font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.issuecard__note dd { margin: 0; font-size: .92rem; line-height: 1.45; color: var(--ink-2); }
.issuecard--inline .issuecard__notes { display: grid; grid-template-columns: 1fr 1fr; }
.issuecard--inline .issuecard__note:nth-child(even) { border-left: 1px solid var(--line-2); }
@media (max-width: 560px) { .issuecard--inline .issuecard__notes { grid-template-columns: 1fr; } .issuecard--inline .issuecard__note:nth-child(even) { border-left: 0; } }

/* 11. Archive, page, 404, thanks ---------------------------------------------- */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 52px); border-bottom: var(--frame); }
.page-head__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.page-head__eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.page-head__eyebrow .topicmark { width: 52px; height: 52px; }
.page-head__eyebrow .topicmark svg { width: 28px; height: 28px; }
.page-head__title { font-family: var(--font-display); font-size: clamp(2.8rem, 8vw, 7.4rem); font-weight: 400; line-height: .9; text-transform: uppercase; }
.page-head__text { max-width: 60ch; margin-top: 18px; font-size: 1.12rem; line-height: 1.55; color: var(--ink-2); }
.page-head__count { display: grid; justify-items: end; padding: 16px 20px 14px; border: var(--frame); background: var(--mint); color: var(--mint-ink); line-height: 1; }
.page-head__countnum { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 6rem); }
.page-head__count > span:last-child { margin-top: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.page-head__date { margin-top: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.page-head--center { text-align: center; }
.page-head--center .page-head__title, .page-head--center .page-head__text { margin-inline: auto; }
.page-head__huge { display: inline-block; margin-bottom: 18px; padding: 0 .12em; background: var(--mint); color: var(--mint-ink); font-family: var(--font-display); font-size: clamp(6rem, 22vw, 15rem); line-height: .95; }
@media (max-width: 700px) { .page-head__inner { grid-template-columns: 1fr; } .page-head__count { justify-items: start; justify-self: start; } }

.page-content { margin: clamp(40px, 6vw, 72px) auto clamp(64px, 8vw, 104px); }
.page-main .post-hero { margin-top: 40px; }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; }
.page-numbers { display: grid; place-items: center; min-width: 48px; height: 48px; margin-left: -2px; padding: 0 12px; border: var(--frame); background: var(--surface); font-family: var(--font-mono); font-size: 13px; }
.page-numbers.current { background: var(--ink); color: var(--bg); }
a.page-numbers:hover { background: var(--mint); color: var(--mint-ink); }

.notice-page { max-width: 560px; margin: 0 auto; padding: 40px 0; text-align: center; }
.notice-page__zero { font-family: var(--font-display); font-size: 9rem; line-height: 1; color: var(--ink); }
.notice-page__title { font-family: var(--font-display); font-size: 2.4rem; text-transform: uppercase; }
.notice-page__text { margin-top: 12px; color: var(--ink-2); }
.notice-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

.thanks .container { max-width: 820px; }
.thanks__equation { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-bottom: 30px; font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.8rem); text-transform: uppercase; }
.thanks__equation > span { padding: 6px 12px 4px; border: var(--frame); background: var(--surface); line-height: 1; }
.thanks__equation > .thanks__op { border: 0; background: none; padding: 0 2px; }
.thanks__equation > .thanks__result { background: var(--mint); color: var(--mint-ink); }
.thanks__mark { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 20px; border: var(--frame); background: var(--ink); color: var(--mint); }
.thanks__mark svg { width: 34px; height: 34px; stroke-width: 3; }
.thanks__tick { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tick .8s var(--ease) .4s forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.thanks__note { margin-top: 16px; font-size: .95rem; color: var(--muted); }

/* WordPress core bits. */
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }

/* 12. Newsletter band ------------------------------------------------------- */
.join { background: var(--mint); color: var(--mint-ink); border-top: var(--frame); }
.join__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.join__copy { --ink: var(--mint-ink); --ink-2: var(--mint-ink); --muted: var(--mint-ink); }
.join__copy .band__kicker { background: var(--mint-ink); color: var(--mint); }
.join__title { max-width: 14ch; margin-top: 16px; font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 5.2rem); font-weight: 400; line-height: .9; text-transform: uppercase; }
.join__list { margin: 30px 0 0; padding: 0; list-style: none; border-top: 2px solid currentColor; }
.join__list li { display: grid; grid-template-columns: 52px 1fr; gap: 6px; padding: 14px 0; border-bottom: 2px solid currentColor; font-size: 1.05rem; font-weight: 500; }
.join__n { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; }
.join__sum { margin-top: 16px; font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; }
.join__panel { padding: clamp(22px, 3vw, 34px); border: var(--bw) solid var(--ink-c); background: var(--surface); color: var(--ink); box-shadow: 12px 12px 0 var(--ink-c); }
.join__panelhead { display: flex; justify-content: space-between; margin-bottom: 18px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.join__free { padding: 3px 7px 2px; background: var(--ink); color: var(--bg); }
.join__paneltitle { margin-bottom: 18px; font-family: var(--font-display); font-size: 2rem; line-height: .95; text-transform: uppercase; }
@media (max-width: 900px) { .join__grid { grid-template-columns: 1fr; } .join__panel { box-shadow: 8px 8px 0 var(--ink-c); } }

/* 13. Layout voices -------------------------------------------------------
   The shared furniture takes the shape of the site's layout (body class
   layout-{slug}): Poster is the default above. */

/* Board: a taller station strip with a running clock; the newsletter as a
   departure board; the footer line in board type. */
.layout-board .boardline__inner { min-height: 46px; }
.layout-board .boardline .flap--sm { font-size: 14px; }
.boardline__clock { display: inline-block; padding: 4px 8px 3px; background: var(--mint); color: var(--mint-ink); font-size: 13px; font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.join--board { background: var(--surface); color: var(--ink); }
.join--board .join__copy, .join--tabs .join__copy, .join--isotype .join__copy { --ink: inherit; --ink-2: inherit; --muted: inherit; }
.join--board .band__kicker, .join--isotype .band__kicker { background: var(--mint); color: var(--mint-ink); }
.join__title--flap { max-width: none; }
.flap--title { font-size: clamp(1.25rem, 2.3vw, 2.1rem); row-gap: .16em; }
.join--board .join__panel { box-shadow: 12px 12px 0 var(--mint); }
.layout-board .footer__giant { font-family: var(--font-mono); font-weight: 600; letter-spacing: -.03em; font-size: min(9rem, calc(100cqi / (var(--len, 23) * .69))); }

/* Tabs: a newspaper nameplate — the logo centred over a full row of topic
   tabs — a clip-out coupon, and a light footer page. */
@media (min-width: 1201px) {
	.layout-tabs .site-header { position: relative; border-bottom: 8px solid var(--ink); }
	.layout-tabs .masthead { flex-wrap: wrap; }
	.layout-tabs .masthead__brand { flex: 1 0 100%; justify-content: center; padding: 22px 0 18px; border-bottom: var(--frame); }
	.layout-tabs .custom-logo { height: calc(var(--logo-h) * 1.6); max-height: none; }
	.layout-tabs .nav-primary { flex: 1 1 auto; justify-content: stretch; }
	.layout-tabs .nav-menu, .layout-tabs .nav-list, .layout-tabs .nav-list li { flex: 1; }
	.layout-tabs .nav-list a { flex: 1; justify-content: center; min-height: 52px; }
	.layout-tabs .nav-list li:first-child a { border-left: 0; }
}
.join--tabs { background: var(--bg-2); color: var(--ink); border-top: 8px solid var(--ink); }
.join--tabs .join__title { padding-top: 14px; border-top: var(--frame); }
.join--tabs .join__panel { position: relative; border: 3px dashed var(--ink); box-shadow: none; }
.join__cut { position: absolute; top: -10px; left: 18px; padding: 0 8px; background: var(--bg-2); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; line-height: 18px; color: var(--ink); }
.site-footer--paper { background: var(--bg); color: var(--ink); border-top: 8px solid var(--ink); }
.site-footer--paper .footer__giant { padding: .06em 0 .02em; border-block: var(--frame); color: var(--ink); }

/* Isotype: a pictogram beside every topic in the menu; the newsletter on an
   ink block under a row of readers; a crowd above the footer line. */
.nav-picto { width: 16px; height: 16px; margin-right: 8px; flex: none; }
.join__people, .footer__people { display: flex; flex-wrap: wrap; gap: 6px; }
.join__people { margin-bottom: 24px; }
.join__people svg, .footer__people svg { width: 30px; height: 30px; fill: var(--off); }
.join__people svg:last-child, .footer__people svg:nth-child(7n) { fill: var(--mint); }
.footer__people { margin-top: clamp(36px, 5vw, 56px); }
.footer__people + .footer__giant { margin-top: 18px; }
.join--isotype .join__panel { box-shadow: 12px 12px 0 var(--mint); }

/* 14. Reveal & reduced motion ---------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
	.js .mag[data-inview] i { transform: none; }
	.js .isogrid[data-inview] .is-on { background: var(--mint); outline-color: var(--ink); }
}

/* The floating reCAPTCHA badge. Hidden (visibility, not display:none, which
   can stop reCAPTCHA from working); the forms carry Google's notice instead,
   as Google requires when the badge is hidden. */
.grecaptcha-badge { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }

@media print {
	.site-header, .boardline, .sidebar, .site-footer, .join, .related, .single-share, .postnav, .read-progress { display: none !important; }
}
