/* ==========================================================================
   Custom Theme — main.css  ·  "Graph paper"
   --------------------------------------------------------------------------
   A notebook of worked numbers. Warm paper with a faint graph grid, carbon
   ink, one red pencil. Fraunces for headlines and every big figure, Source
   Serif 4 for reading, Instrument Sans for the interface, IBM Plex Mono for
   figures in small print.

   Motion is mathematical and quiet: figures count themselves in, curves plot
   themselves once, formulas drift in the margins, the ticker runs like tape.
   Everything is switched off under prefers-reduced-motion.

   Contents
     1. Tokens            8. Home — Ledger
     2. Base              9. Cards
     3. Paper & plots    10. Single post
     4. Buttons & tags   11. Sidebar & issue card
     5. Dateline/header  12. Archive, page, 404, thanks
     6. Ticker           13. Newsletter band
     7. Footer           14. Reveal & reduced motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	/* Base colours — overridden per scheme by inc/color-schemes.php. */
	--bg: #F4EFE4;
	--bg-2: #ECE5D5;
	--surface: #FBF8F1;
	--surface-2: #E3DAC6;
	--tint: #1F4E8C;
	--field: rgba(251, 248, 241, 0.85);
	--scrim: #14161B;
	--danger: #B3261E;
	--ink: #16181D;
	--ink-2: #3A3D45;
	--muted: #5E5D56;
	--mint: #B03A22;      /* the red pencil — main accent */
	--mint-2: #922D18;
	--mint-ink: #FFFFFF;
	--amber: #1F4E8C;     /* blueprint blue — second accent */

	/* Derived. */
	--accent: var(--mint);
	--accent-2: var(--mint-2);
	--line: color-mix(in srgb, var(--ink) 13%, transparent);
	--line-2: color-mix(in srgb, var(--ink) 24%, transparent);
	--grid: color-mix(in srgb, var(--tint) 8%, transparent);
	--grid-major: color-mix(in srgb, var(--tint) 15%, transparent);
	--mint-glow: color-mix(in srgb, var(--mint) 22%, transparent);
	--panel: var(--surface-2);
	--shadow-ink: var(--ink);
	--shadow-hard: 5px 5px 0 var(--shadow-ink);

	/* Type. */
	--font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--font-text: "Source Serif 4", Georgia, "Times New Roman", serif;
	--font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	/* Space & shape. */
	--wrap: 1240px;
	--gutter: clamp(18px, 4vw, 36px);
	--radius: 3px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--header-h: 76px;
	--logo-h: 40px;
}

/* Dark schemes: let the browser draw dark form controls and scrollbars, tone
   the cover art down a touch so it does not glare, and lift the paper grain. */
.scheme-is-dark { color-scheme: dark; }
.scheme-is-dark img:not(.custom-logo) { filter: brightness(.92) contrast(1.02); }
.scheme-is-dark::after { mix-blend-mode: screen; opacity: .035; }

/* 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;
}

/* Paper grain: a fixed, very faint noise over everything. */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 200;
	pointer-events: none;
	opacity: .05;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 450; line-height: 1.08; letter-spacing: -0.015em; font-optical-sizing: auto; text-wrap: balance; }
p { margin: 0; }
sup { font-size: .6em; 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: 600; border-radius: var(--radius); transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.site-main { display: block; }

/* 3. Paper & plots --------------------------------------------------------- */

/* The graph-paper ground: a fine 24px grid with a stronger line every fifth
   cell, fading out towards the bottom so it never fights the text below. */
.paper-grid { position: relative; isolation: isolate; }
.paper-grid::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image:
		linear-gradient(var(--grid-major) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
		linear-gradient(var(--grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
	background-position: -1px -1px;
	-webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
	mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

/* A plotted line. Every .plot path with pathLength="1" starts undrawn and
   draws itself when the plot gets .is-drawn (main.js: on load for
   .plot--auto, on scroll for the rest). */
.plot { overflow: visible; }
.plot path[pathLength] {
	fill: none;
	stroke: var(--accent);
	stroke-width: 2;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	transition: stroke-dashoffset 2.6s var(--ease);
}
/* No attribute selector here on purpose: Chrome does not re-style a path
   matched by [pathLength] (a camel-cased SVG attribute) when a class lands on
   its ancestor, so the stroke never moved. Paths without a dash are
   unaffected by an offset of 0. */
.plot.is-drawn path { stroke-dashoffset: 0; }
.plot__axis { fill: none; stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plot__dot { fill: var(--accent); opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: opacity .4s ease 2.3s, transform .5s var(--ease) 2.3s; }
.plot.is-drawn .plot__dot { opacity: 1; transform: scale(1); }

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

/* The plate: a picture mounted on paper with a ruler underneath. */
.plate {
	margin: 0;
	padding: 10px;
	background: var(--surface);
	border: 1px solid var(--ink);
	box-shadow: 8px 8px 0 color-mix(in srgb, var(--ink) 10%, transparent);
}
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate__ticks {
	position: relative;
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px solid var(--ink);
	font-family: var(--font-mono);
	font-size: 10.5px;
	color: var(--muted);
}
.plate__ticks span { position: relative; width: 0; display: flex; justify-content: center; }
.plate__ticks span::before { content: ""; position: absolute; top: -9px; left: 0; width: 1px; height: 6px; background: var(--ink); }
.plate__ticks span:first-child { justify-content: flex-start; }
.plate__ticks span:last-child { justify-content: flex-end; }

/* 4. Buttons & tags ---------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	min-height: 48px;
	padding: .7rem 1.35rem;
	border: 1px solid var(--ink);
	border-radius: var(--radius);
	background: transparent;
	color: var(--ink);
	font-family: var(--font-body);
	font-size: .95rem;
	font-weight: 600;
	letter-spacing: .005em;
	cursor: pointer;
	transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s, color .18s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--shadow-ink); }
.btn:active { transform: none; box-shadow: none; }
.btn--accent, .btn--mint { background: var(--accent); border-color: var(--accent); color: var(--mint-ink); }
.btn--accent:hover, .btn--mint:hover { background: var(--accent-2); border-color: var(--ink); }
.btn--ghost { background: var(--surface); }
.btn--sm { min-height: 40px; padding: .45rem 1rem; font-size: .875rem; }

/* Topic tag: a coloured square and the topic name in small caps. */
.topic-tag, .chip {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	font-family: var(--font-mono);
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--ink-2);
}
.topic-tag::before, .chip::before {
	content: "";
	width: 8px; height: 8px;
	background: var(--tag, var(--chip-bg, var(--accent)));
	transform: rotate(45deg);
	flex: none;
}
.topic-tag:hover, .chip:hover { color: var(--tag, var(--chip-bg, var(--accent))); }

.readout {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: .04em;
	color: var(--muted);
	text-transform: uppercase;
}
.readout__sep { width: 14px; height: 1px; background: var(--line-2); }

/* A topic glyph in a small ruled square. */
.topicmark {
	display: inline-grid;
	place-items: center;
	width: 40px; height: 40px;
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	color: var(--tag, var(--mark-tint, var(--accent)));
	background: var(--surface);
	flex: none;
}
.topicmark svg { width: 22px; height: 22px; }

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

/* 5. Dateline & header ------------------------------------------------------- */
.dateline { border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dateline__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; }
.dateline__issue { color: var(--accent); }

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--bg) 86%, transparent);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .25s, box-shadow .25s;
}
.site-header--scrolled { border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--line); }

.masthead { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.masthead__brand { flex: none; display: flex; align-items: center; }
.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.55rem; font-weight: 500; letter-spacing: -.02em; }
.site-logo::after { content: "."; color: var(--accent); }

.nav-primary { flex: 1; display: flex; justify-content: center; }
.nav-head, .nav-cta { display: none; }
.nav-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; margin: 0; padding: 0; list-style: none; }
.nav-list a {
	position: relative;
	display: inline-block;
	padding: 6px 0;
	font-size: .93rem;
	font-weight: 500;
	color: var(--ink-2);
	background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 2px no-repeat;
	transition: background-size .3s var(--ease), color .2s;
}
.nav-list a:hover, .nav-list .current-menu-item > a, .nav-list .current-cat > a { color: var(--ink); background-size: 100% 2px; }

.masthead__util { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.menu-pill {
	display: none;
	place-items: center;
	width: 44px; height: 44px;
	border: 1px solid var(--ink);
	border-radius: var(--radius);
	background: var(--surface);
	cursor: pointer;
}
.menu-pill__bars { display: grid; gap: 5px; width: 18px; }
.menu-pill__bars span { height: 1.5px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s; }
.menu-pill[aria-expanded="true"] .menu-pill__bars span:nth-child(1) { transform: translateY(6.5px) 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(-6.5px) rotate(-45deg); }

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

@media (max-width: 1080px) {
	/* backdrop-filter would make the header the containing block of the fixed
	   drawer, pinning it to the header's height. A solid plate instead. */
	.site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
	.menu-pill { display: grid; }
	/* The drawer lives inside the header's stacking context, so the header
	   itself has to rise above the scrim while the drawer is open. */
	body.nav-open .site-header { z-index: 160; }
	.nav-primary {
		position: fixed;
		inset: 0 0 0 auto;
		z-index: 150;
		width: min(380px, 88vw);
		display: block;
		padding: 22px 26px 32px;
		background: var(--surface);
		border-left: 1px solid var(--ink);
		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: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--ink); }
	.nav-head__title { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
	.nav-close { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: var(--radius); background: none; cursor: pointer; }
	.nav-close svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.6; }
	.nav-list { display: block; counter-reset: nav; }
	.nav-list li { counter-increment: nav; border-bottom: 1px solid var(--line); }
	.nav-list a { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; font-family: var(--font-display); font-size: 1.45rem; color: var(--ink); background: none; }
	.nav-list a::before { content: counter(nav, decimal-leading-zero); font-family: var(--font-mono); font-size: 11px; color: var(--accent); }
	.nav-cta { display: block; margin-top: 28px; padding: 20px; border: 1px solid var(--ink); background: var(--bg); }
	.nav-cta__text { margin-bottom: 14px; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.3; }
	.nav-subscribe { width: 100%; }
}
@media (max-width: 560px) {
	.masthead__cta { display: none; }
	.dateline__motto { display: none; }
	:root { --header-h: 64px; }
	.custom-logo { height: min(var(--logo-h), 32px); }
}

/* 6. Ticker ------------------------------------------------------------------ */
.ticker { overflow: hidden; border-block: 1px solid var(--ink); background: var(--surface); }
.ticker__track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; margin: 0; padding: 0; list-style: none; }
.ticker__item a { display: flex; align-items: baseline; gap: 10px; padding: 10px 28px; border-right: 1px solid var(--line); white-space: nowrap; }
.ticker__num { font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.ticker__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ticker__item a:hover .ticker__num { color: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* 7. Footer ------------------------------------------------------------------ */
.site-footer { position: relative; margin-top: 0; padding: 88px 0 34px; border-top: 1px solid var(--ink); background: var(--bg-2); }
.site-footer__plot { position: absolute; top: -1px; left: 0; width: 100%; height: 90px; pointer-events: none; }
.site-footer__plot path { stroke: color-mix(in srgb, var(--accent) 55%, transparent) !important; stroke-width: 1.5 !important; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .custom-logo-link { max-width: 15rem; }
.footer-brand .custom-logo { width: 100%; height: auto; max-height: none; }
.footer-brand__text { max-width: 34ch; margin: 18px 0 22px; font-family: var(--font-text); font-size: 1.02rem; 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: .14em; text-transform: uppercase; color: var(--muted); }
.footer-links { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.footer-links a { font-size: .95rem; color: var(--ink); }
.footer-links a:hover { color: var(--accent); }
.footer-contact { margin-bottom: 10px; font-size: .95rem; color: var(--ink-2); }
.footer-contact__mail { font-family: var(--font-mono); font-size: .85rem; color: var(--accent); border-bottom: 1px solid currentColor; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; padding-top: 22px; border-top: 1px solid var(--ink); font-family: var(--font-mono); font-size: 11.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; } }

/* Section bands (shared) ----------------------------------------------------- */
.band { padding: clamp(56px, 8vw, 104px) 0; }
.band--rule { border-top: 1px solid var(--ink); }
.band--paper { background: var(--bg-2); border-block: 1px solid var(--ink); }
.band__head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 6px 22px; margin-bottom: clamp(28px, 4vw, 44px); padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.band__kicker { grid-row: 1 / 3; align-self: start; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--accent); padding-top: .55em; }
.band__kicker .topicmark { width: 46px; height: 46px; }
.band__title { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 400; }
.band__text { grid-column: 2; max-width: 62ch; color: var(--ink-2); font-family: var(--font-text); font-size: 1.05rem; }
.band__link { grid-row: 1; grid-column: 3; align-self: end; font-size: .9rem; font-weight: 600; white-space: nowrap; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.band__link::after { content: " →"; transition: margin .2s; }
.band__link:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 700px) {
	.band__head { grid-template-columns: 1fr; }
	.band__kicker { grid-row: auto; }
	.band__text, .band__link { grid-column: 1; grid-row: auto; justify-self: start; }
}

/* 8. Home — Ledger ----------------------------------------------------------- */
.today { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 88px); border-bottom: 1px solid var(--ink); }
.today.paper-grid::before { -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.today__plot { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.today__plot .plot__line { stroke-width: 2; stroke: color-mix(in srgb, var(--accent) 42%, transparent); transition-duration: 3.2s; }
.today__plot .plot__dot { fill: color-mix(in srgb, var(--accent) 70%, transparent); }

.today__margin { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.formula {
	position: absolute;
	font-family: var(--font-display);
	font-style: italic;
	font-size: clamp(.95rem, 1.3vw, 1.25rem);
	color: color-mix(in srgb, var(--tint) 45%, transparent);
	white-space: nowrap;
	animation: drift 16s ease-in-out infinite alternate;
}
.formula--1 { top: 9%;  right: 6%;  animation-delay: -3s; }
.formula--2 { top: 46%; right: 2%;  animation-delay: -8s; }
.formula--3 { bottom: 9%; left: 46%; animation-delay: -1s; }
.formula--4 { top: 6%;  left: 44%;  animation-delay: -11s; }
.formula--5 { bottom: 14%; right: 12%; animation-delay: -5s; }
@keyframes drift { from { transform: translate(0, 0) rotate(-1deg); } to { transform: translate(10px, -14px) rotate(1.5deg); } }

.today__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.today__kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.today__kicker::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.today__day { padding: 3px 8px; border: 1px solid var(--ink); border-radius: var(--radius); color: var(--ink); }
.today__number { margin: 0 0 4px -0.05em; font-family: var(--font-display); font-weight: 350; font-size: clamp(3.6rem, 10.5vw, 9.5rem); line-height: .92; letter-spacing: -0.035em; color: var(--ink); }
.today__value { font-variation-settings: "SOFT" 30; }
.today__label { margin-bottom: 26px; font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--accent); }
.today__title { max-width: 18ch; font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 450; }
.today__title a { background: linear-gradient(var(--accent), var(--accent)) left 96% / 0 2px no-repeat; transition: background-size .4s var(--ease); }
.today__title a:hover { background-size: 100% 2px; }
.today__dek { max-width: 52ch; margin-top: 16px; font-family: var(--font-text); font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.55; color: var(--ink-2); }
.today__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 22px; }
.today__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.today__media { aspect-ratio: 4 / 4.2; display: flex; flex-direction: column; transform: rotate(1.2deg); transition: transform .5s var(--ease); }
.today__media:hover { transform: rotate(0deg); }
.today__media > a { flex: 1; min-height: 0; display: block; overflow: hidden; }
.today__img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
	.today__grid { grid-template-columns: 1fr; }
	.today__media { aspect-ratio: 3 / 2; transform: none; order: -1; }
	.formula { display: none; }
}

/* The number, explained: four notes across a ruled row. */
.explained { border-bottom: 1px solid var(--ink); background: var(--surface); }
.explained__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.explained__item { padding: 28px 26px 30px; border-left: 1px solid var(--line); }
.explained__item:first-child { border-left: 0; padding-left: 0; }
.explained__label { display: block; margin-bottom: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.explained__text { font-family: var(--font-text); font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 960px) {
	.explained__list { grid-template-columns: 1fr 1fr; }
	.explained__item:nth-child(3) { border-left: 0; padding-left: 0; }
	.explained__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
	.explained__list { grid-template-columns: 1fr; }
	.explained__item { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
	.explained__item:first-child { border-top: 0; }
}

/* The latest. */
.latest__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); margin-bottom: clamp(36px, 5vw, 56px); }
.latest__side { display: grid; align-content: start; }
.latest__side > div + div { border-top: 1px solid var(--line); }
@media (max-width: 900px) { .latest__grid { grid-template-columns: 1fr; } }

/* Topics as numbered tiles. */
.topicgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.topicgrid > li { border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.topiccard { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; height: 100%; min-height: 230px; padding: 24px 24px 22px; background: var(--surface); transition: background-color .25s; }
.topiccard__index { position: absolute; top: 22px; right: 22px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.topiccard .topicmark { width: 52px; height: 52px; border-color: var(--tag); }
.topiccard .topicmark svg { width: 28px; height: 28px; }
.topiccard .topicmark path, .topiccard .topicmark circle, .topiccard .topicmark rect { stroke-dasharray: 80; stroke-dashoffset: 0; }
.topiccard:hover .topicmark path, .topiccard:hover .topicmark circle, .topiccard:hover .topicmark rect { animation: redraw 1.1s var(--ease); }
@keyframes redraw { from { stroke-dashoffset: 80; } to { stroke-dashoffset: 0; } }
.topiccard__name { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.12; }
.topiccard__text { font-size: .92rem; line-height: 1.45; color: var(--ink-2); }
.topiccard__count { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--tag); }
.topiccard:hover { background: var(--bg); }
.topiccard:hover .topiccard__name { color: var(--tag); }

/* The number line: every figure on one log-scale ruler. */
.numberline { position: relative; height: 300px; margin-top: 12px; }
.numberline__axis { position: absolute; left: 0; right: 0; bottom: 34px; height: 0; border-top: 1px solid var(--ink); }
.numberline__tick { position: absolute; left: calc(var(--x) * 100%); top: 0; transform: translateX(-50%); padding-top: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.numberline__tick::before { content: ""; position: absolute; top: -5px; left: 50%; width: 1px; height: 11px; background: var(--ink); }
.numberline__points { position: absolute; inset: 0 0 34px; margin: 0; padding: 0; list-style: none; }
.numberline__point { position: absolute; left: calc(var(--x) * 100%); bottom: 0; height: calc(52px + var(--row) * 50px); width: 0; }
.numberline__point::before { content: ""; position: absolute; left: 0; bottom: 0; width: 1px; height: 100%; background: color-mix(in srgb, var(--tag, var(--ink)) 45%, transparent); transform-origin: bottom; }
.numberline__point a { position: absolute; top: -8px; left: -8px; display: block; width: 16px; height: 16px; }
.numberline__dot { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--tag, var(--accent)); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--tag, var(--accent)); transition: transform .2s var(--ease); }
.numberline__card {
	position: absolute;
	bottom: 26px;
	left: 50%;
	z-index: 5;
	width: max-content;
	max-width: 240px;
	padding: 10px 12px;
	background: var(--surface);
	border: 1px solid var(--ink);
	box-shadow: 4px 4px 0 var(--shadow-ink);
	font-size: .85rem;
	line-height: 1.35;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 6px);
	transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.numberline__card strong { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; color: var(--tag, var(--accent)); }
.numberline__point a:hover .numberline__dot, .numberline__point a:focus-visible .numberline__dot { transform: scale(1.35); }
.numberline__point a:hover .numberline__card, .numberline__point a:focus-visible .numberline__card { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.numberline__point:hover { z-index: 6; }
/* Points grow out of the axis one after another once the line is in view. */
.js .numberline__point::before { transform: scaleY(0); transition: transform .6s var(--ease) calc(var(--i) * 70ms); }
.js .numberline__dot { transform: scale(0); transition: transform .4s var(--ease) calc(var(--i) * 70ms + .35s); }
.js .numberline.is-in .numberline__point::before { transform: scaleY(1); }
.js .numberline.is-in .numberline__dot { transform: scale(1); }
.js .numberline.is-in .numberline__point a:hover .numberline__dot { transform: scale(1.35); transition-delay: 0s; }
@media (max-width: 900px) {
	.numberline-band .container { overflow-x: auto; }
	.numberline { min-width: 820px; }
}

/* 9. Cards ------------------------------------------------------------------- */
.cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(28px, 3.2vw, 44px) clamp(22px, 2.6vw, 36px); }
.cardgrid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cardgrid--lead > :first-child { grid-column: span 2; }
@media (max-width: 1080px) { .cardgrid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cardgrid--three { grid-template-columns: 1fr; } .cardgrid--lead > :first-child { grid-column: auto; } }

.card { position: relative; display: flex; flex-direction: column; height: 100%; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--ink); background: var(--surface-2); }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__img { transform: scale(1.035); }
.card__badge {
	position: absolute;
	left: 0; bottom: 0;
	padding: 6px 10px 5px;
	background: var(--surface);
	border-top: 1px solid var(--ink);
	border-right: 1px solid var(--ink);
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 500;
	font-variant-numeric: lining-nums tabular-nums;
	color: var(--ink);
}
.card__badge::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; vertical-align: .15em; background: var(--tag, var(--accent)); transform: rotate(45deg); }
.card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 16px; flex: 1; }
.card__title { font-size: clamp(1.25rem, 1.7vw, 1.5rem); font-weight: 450; line-height: 1.16; }
.card__title a { background: linear-gradient(currentColor, currentColor) left 98% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.card__title a:hover { background-size: 100% 1px; }
.card__text { font-family: var(--font-text); font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.card .readout { margin-top: auto; padding-top: 4px; }

/* Feature: the lead of a section. */
.card--feature .card__media { aspect-ratio: 16 / 10; }
.card--feature .card__title { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.card--feature .card__text { font-size: 1.1rem; }
.card__bignum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-family: var(--font-display); font-size: clamp(2.4rem, 4.6vw, 3.8rem); font-weight: 350; line-height: 1; letter-spacing: -.03em; color: var(--tag, var(--accent)); }
.card__bignumlabel { font-size: 1rem; font-style: italic; letter-spacing: 0; color: var(--muted); }
.cardgrid--lead .card--feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 32px; 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: the number on graph paper instead of a picture. */
.card__plate { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; aspect-ratio: 4 / 3; padding: 22px; border: 1px solid var(--ink); background: var(--surface); overflow: hidden; }
.card__plate::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--tag, var(--accent)); }
.card__figure { font-family: var(--font-display); font-size: clamp(2.4rem, 4.2vw, 3.6rem); font-weight: 350; line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.card__figlabel { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--tag, var(--accent)); }
.card--plate:hover .card__plate { background: var(--bg); }
.cardgrid--lead > :first-child .card__plate, .latest__lead .card__plate { aspect-ratio: 2 / 1; }
.cardgrid--lead > :first-child .card__figure, .latest__lead .card__figure { font-size: clamp(3rem, 7vw, 6rem); }

/* Row: small square picture beside the headline. */
.card--row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; padding: 18px 0; 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; }
.latest__side > div:first-child .card--row { padding-top: 0; }
@media (max-width: 480px) { .card--row { grid-template-columns: 92px minmax(0, 1fr); } }

/* Line: headline only. */
.card--line { padding: 16px 0; border-top: 1px solid var(--line); }
.card--line .card__body { padding-top: 0; }

/* 10. Single post ------------------------------------------------------------ */
.post-head { padding: clamp(44px, 6vw, 84px) 0 clamp(36px, 5vw, 60px); }
.post-head__inner--num { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 360px); gap: clamp(28px, 5vw, 72px); align-items: end; }
.post-head__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 18px; }
.post-head__day { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--ink); border-radius: var(--radius); }
.post-head__title { max-width: 20ch; font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 400; line-height: 1.02; letter-spacing: -.025em; }
.post-head__standfirst { max-width: 58ch; margin-top: 20px; font-family: var(--font-text); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--ink-2); }
.post-head__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; }
.post-head__updated { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.post-head__figure { position: relative; padding: 22px 22px 18px; border: 1px solid var(--ink); background: var(--surface); box-shadow: var(--shadow-hard); }
.post-head__value { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 350; line-height: 1; letter-spacing: -.03em; white-space: normal; overflow-wrap: anywhere; }
.post-head__figlabel { display: block; margin-top: 8px; font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--accent); }
.post-head__plot { width: 100%; height: 56px; margin-top: 14px; }
@media (max-width: 900px) { .post-head__inner--num { grid-template-columns: 1fr; align-items: start; } .post-head__figure { max-width: 420px; } }

.post-hero { margin: 0 0 clamp(36px, 5vw, 60px); }
.post-hero .post-hero__img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }

.layout__grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(40px, 5vw, 72px); align-items: start; 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: 70ch; font-family: var(--font-text); font-size: clamp(1.08rem, 1.25vw, 1.19rem); line-height: 1.72; color: var(--ink); counter-reset: section; }
.entry-content > * + * { margin-top: 1.15em; }
.entry-content > p:first-child::first-letter {
	float: left;
	margin: .07em .12em -.1em 0;
	font-family: var(--font-display);
	font-size: 4.3em;
	font-weight: 400;
	line-height: .82;
	color: var(--accent);
}
.entry-content a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--accent); }
.entry-content strong { font-weight: 600; }
.entry-content > h2 { counter-increment: section; position: relative; margin-top: 2.1em; padding-top: .9em; font-size: clamp(1.65rem, 2.5vw, 2.15rem); font-weight: 450; border-top: 1px solid var(--line-2); }
.entry-content > h2::before { content: "§ " counter(section); display: block; margin-bottom: .55em; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--accent); }
.entry-content h3 { margin-top: 1.8em; font-size: 1.4rem; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .4em; }
.entry-content li::marker { color: var(--accent); }
.entry-content img { border: 1px solid var(--ink); }
.entry-content figcaption, .wp-caption-text { margin-top: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.entry-content hr { border: 0; border-top: 1px solid var(--ink); margin: 2.4em 0; }
.entry-content blockquote:not(.jn-pullquote) { margin-inline: 0; padding-left: 1.2em; border-left: 3px solid var(--accent); font-style: italic; color: var(--ink-2); }

/* By the numbers: three figures across a ruled row. */
.jn-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 2.2em 0; padding: 0; border-block: 2px solid var(--ink); font-family: var(--font-body); }
.jn-numbers::before { content: "By the numbers"; grid-column: 1 / -1; padding: 12px 0 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.jn-numbers__item { display: flex; flex-direction: column; gap: 8px; padding: 14px 22px 22px; border-left: 1px solid var(--line); }
.jn-numbers__item:first-of-type { border-left: 0; padding-left: 0; }
.jn-numbers__item strong { font-family: var(--font-display); font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 400; line-height: 1; letter-spacing: -.02em; color: var(--accent); font-variant-numeric: lining-nums; }
.jn-numbers__item span { font-size: .92rem; line-height: 1.4; color: var(--ink-2); }
@media (max-width: 640px) {
	.jn-numbers { grid-template-columns: 1fr; }
	.jn-numbers__item { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
	.jn-numbers__item:first-of-type { border-top: 0; }
}

/* Pull-quote. */
.jn-pullquote { position: relative; margin: 2.2em 0; padding: 26px 0 22px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.jn-pullquote::before { content: "“"; position: absolute; top: -.08em; right: 0; font-family: var(--font-display); font-size: 6rem; line-height: 1; color: var(--accent); opacity: .9; }
.jn-pullquote p { max-width: 30ch; font-family: var(--font-display); font-size: clamp(1.55rem, 2.6vw, 2.1rem); font-style: italic; font-weight: 350; line-height: 1.22; }
.jn-pullquote cite { display: block; margin-top: 14px; font-family: var(--font-mono); font-size: 11.5px; font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

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

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

/* Sources: small, numbered, quiet. */
.jn-sources { margin-top: 2.6em !important; padding-top: 18px; border-top: 2px solid var(--ink); font-family: var(--font-body); font-size: .88rem; line-height: 1.5; color: var(--ink-2); }
.jn-sources h2 { margin: 0 0 12px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.jn-sources ol { margin: 0; padding-left: 1.6em; }
.jn-sources li { padding-left: 4px; }
.jn-sources li::marker { font-family: var(--font-mono); font-size: .8em; color: var(--accent); }
.jn-sources a { word-break: break-word; }
.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: 4px 10px; border: 1px solid var(--line-2); border-radius: var(--radius); font-family: var(--font-mono); font-size: 12px; }

.single-share { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--ink); }
.share-row { display: flex; align-items: center; gap: 10px; }
.share-row__label { margin-right: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.share-row__link { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--ink); border-radius: var(--radius); color: var(--ink); transition: background-color .2s, color .2s, transform .2s var(--ease); }
.share-row__link svg { width: 18px; height: 18px; fill: currentColor; }
.share-row__link:hover { background: var(--accent); border-color: var(--accent); color: var(--mint-ink); transform: translateY(-2px); }

.postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 40px; border: 1px solid var(--ink); }
.postnav__item { display: grid; gap: 8px; padding: 20px 22px; transition: background-color .2s; }
.postnav__item--next { text-align: right; border-left: 1px solid var(--ink); grid-column: 2; }
.postnav__item:hover { background: var(--surface); }
.postnav__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.postnav__title { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.2; }
@media (max-width: 640px) { .postnav { grid-template-columns: 1fr; } .postnav__item--next { grid-column: auto; border-left: 0; border-top: 1px solid var(--ink); } }

/* 11. Sidebar & issue card ---------------------------------------------------- */
.sidebar { display: grid; gap: 36px; min-width: 0; }
.widget__title { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.widget__title--lg { padding: 0; border: 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 450; letter-spacing: -.01em; text-transform: none; color: var(--ink); line-height: 1.15; }
.widget__kicker { margin-bottom: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.widget__text { margin-bottom: 18px; font-size: .95rem; color: var(--ink-2); }

.topiclist { margin: 0; padding: 0; list-style: none; }
.topiclist__link { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.topiclist__link .topicmark { width: 32px; height: 32px; }
.topiclist__link .topicmark svg { width: 18px; height: 18px; }
.topiclist__name { font-weight: 500; font-size: .95rem; }
.topiclist__count { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.topiclist__link:hover .topiclist__name { color: var(--tag); }

.minilist { margin: 0; padding: 0; list-style: none; }
.minilist__item + .minilist__item { border-top: 1px solid var(--line); }
.minilist__link { display: grid; gap: 4px; padding: 12px 0; }
.minilist__num { font-family: var(--font-display); font-size: 1.35rem; line-height: 1; color: var(--accent); font-variant-numeric: lining-nums; }
.minilist__title { font-family: var(--font-display); font-size: 1.02rem; line-height: 1.25; }
.minilist__link:hover .minilist__title { text-decoration: underline; text-decoration-color: var(--accent); }

.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; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 28px 1fr; gap: 6px; padding: 7px 0; font-size: .92rem; line-height: 1.35; color: var(--ink-2); border-left: 2px solid transparent; transition: color .2s; }
.toc a::before { content: "§" counter(toc); font-family: var(--font-mono); font-size: 11px; color: var(--muted); padding-top: 2px; }
.toc a:hover, .toc a.is-current { color: var(--ink); }
.toc a.is-current::before { color: var(--accent); }

.widget--news { padding: 24px; border: 1px solid var(--ink); background: var(--surface); box-shadow: var(--shadow-hard); }

/* The number, explained. */
.issuecard { position: relative; padding: 22px 22px 20px; border: 1px solid var(--ink); background: var(--surface); }
.issuecard::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; background: var(--accent); }
.issuecard__head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.issuecard__day { color: var(--accent); }
.issuecard__figure { font-family: var(--font-display); font-size: clamp(2.2rem, 3vw, 2.8rem); font-weight: 350; line-height: 1; letter-spacing: -.025em; }
.issuecard__figure .countup { white-space: normal; overflow-wrap: anywhere; }
.issuecard__label { margin-top: 6px; font-family: var(--font-display); font-style: italic; color: var(--accent); }
.issuecard__notes { margin: 16px 0 0; }
.issuecard__note { padding: 12px 0; border-top: 1px solid var(--line); }
.issuecard__note dt { margin-bottom: 4px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.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; gap: 0 22px; }
@media (max-width: 560px) { .issuecard--inline .issuecard__notes { grid-template-columns: 1fr; } }

/* 12. Archive, page, 404, thanks ---------------------------------------------- */
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--ink); }
.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: 16px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.page-head__eyebrow .topicmark { width: 46px; height: 46px; border-color: var(--tag, var(--line-2)); }
.page-head__title { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 400; letter-spacing: -.03em; line-height: 1; }
.page-head__text { max-width: 60ch; margin-top: 18px; font-family: var(--font-text); font-size: 1.15rem; line-height: 1.55; color: var(--ink-2); }
.page-head__count { display: grid; justify-items: end; font-family: var(--font-display); line-height: 1; }
.page-head__countnum { font-size: clamp(3rem, 7vw, 6rem); font-weight: 300; color: var(--tag, var(--accent)); }
.page-head__count > span:last-child { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.page-head__date { margin-top: 14px; font-family: var(--font-mono); font-size: 12px; 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 { font-family: var(--font-display); font-size: clamp(6rem, 22vw, 16rem); font-weight: 300; line-height: .85; letter-spacing: -.05em; color: var(--accent); }
@media (max-width: 700px) { .page-head__inner { grid-template-columns: 1fr; } .page-head__count { justify-items: start; } }

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

.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius); font-family: var(--font-mono); font-size: 14px; }
.page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--bg); }
a.page-numbers:hover { border-color: var(--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: 8rem; font-weight: 300; line-height: 1; color: var(--accent); }
.notice-page__title { font-size: 2rem; }
.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: 760px; }
.thanks__equation { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 16px; margin-bottom: 28px; font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.6rem); font-style: italic; font-weight: 350; color: var(--ink-2); }
.thanks__op { font-style: normal; color: var(--accent); }
.thanks__result { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.thanks__mark { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; border: 1px solid var(--ink); border-radius: 50%; background: var(--surface); color: var(--accent); }
.thanks__mark svg { width: 30px; height: 30px; }
.thanks__tick { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tick 1s 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%; }
.sticky, .bypostauthor, .gallery-caption { }

/* 13. Newsletter band ------------------------------------------------------- */
.join { border-top: 1px solid var(--ink); background: var(--bg-2); }
.join__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.join__title { max-width: 16ch; margin-top: 10px; font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 400; letter-spacing: -.025em; }
.join__list { margin: 30px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.join__list li { display: grid; grid-template-columns: 44px 1fr; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--font-text); font-size: 1.08rem; color: var(--ink-2); }
.join__n { font-family: var(--font-display); font-size: 1.2rem; color: var(--accent); }
.join__sum { margin-top: 14px; padding-top: 10px; border-top: 2px solid var(--ink); font-family: var(--font-display); font-style: italic; font-size: 1.3rem; }
.join__sum span { font-style: normal; color: var(--accent); }
.join__panel { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--ink); background: var(--surface); box-shadow: 10px 10px 0 var(--shadow-ink); }
.join__panel.paper-grid::before { -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%); mask-image: linear-gradient(to bottom, #000, transparent 70%); }
.join__panelhead { display: flex; justify-content: space-between; margin-bottom: 18px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.join__free { color: var(--accent); }
.join__paneltitle { margin-bottom: 18px; font-family: var(--font-display); font-size: 1.7rem; line-height: 1.15; }
@media (max-width: 900px) { .join__grid { grid-template-columns: 1fr; } .join__panel { box-shadow: 6px 6px 0 var(--shadow-ink); } }

/* 14. Reveal & reduced motion ---------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s 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; }
	.ticker__track { animation: none; }
	.formula { animation: none; }
	.plot path[pathLength] { stroke-dashoffset: 0; }
	.plot__dot { opacity: 1; transform: none; }
}

/* 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, .dateline, .ticker, .sidebar, .site-footer, .join, .related, .single-share, .postnav, .read-progress { display: none !important; }
	body::after { display: none; }
}
