/* ===========================================================================
   Friday Long Post — site stylesheet
   ---------------------------------------------------------------------------
   Implements Design/README.md. Every colour, size and space below is a value
   from that handoff; where a number appears without a token it is because the
   handoff gives it literally (the type scale in particular is a fixed list of
   px values, not a ratio).

   Two rules the design is emphatic about, worth stating up front because they
   are easy to erode:
     1. NO SHADOWS anywhere, except the header's backdrop blur. Structure comes
        from hairline rules, not elevation.
     2. ONE accent hue. Do not add a second.

   Layer order: tokens -> reset -> primitives -> shared furniture -> views ->
   responsive. Responsive lives at the end in one block so the breakpoints can
   be read together; the handoff did not design them, so §Responsive documents
   the intent behind each.
   =========================================================================== */

/* ---------------------------------------------------------------- 1. Tokens */

:root {
  /* Colour */
  --paper:          #fbfaf7;
  --paper-sunk:     #f6f3ec;
  --ink:            #23201c;
  --ink-soft:       #2c2823;
  --ink-muted:      #55504a;
  --ink-faint:      #8c8578;
  --ink-faintest:   #9a9284;
  --accent:         #b0522c;
  --accent-dark:    #7d3a1f;
  --accent-pale:    #d6b7a6;
  --accent-wash:    #f0d9cd;
  --rule:           #e6e1d8;
  --rule-light:     #f0ece4;
  --border-field:   #d8d2c7;
  --border-chip:    #e0dbd1;
  --stripe-a:       #efebe3;
  --stripe-b:       #f6f3ec;
  --white:          #ffffff;

  /* Type. Self-host both families in production (docs/DEPLOY-DEBIAN.md); the
     local() entries mean a self-hosted install needs no rule changes here. */
  --font-sans: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
               "Liberation Mono", monospace;

  /* Layout */
  --container:   1240px;
  --gutter:      56px;
  --measure:     40em;      /* article reading measure, ~780px at 19.5px */
  --radius:      2px;       /* buttons, inputs, chips. Nothing else. */
  --sticky-top:  116px;     /* header height + breathing room */

  /* The one permitted "elevation": the sticky header's blur. */
  --header-bg:   rgba(251, 250, 247, 0.92);
}

/* ----------------------------------------------------------------- 2. Reset */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--accent-wash); }

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

/* Global anchor colours, so a link an author adds inside post prose can never
   fall back to browser-default blue. */
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }

/* Keyboard focus is visible everywhere; pointer focus is not. The design's
   inputs show focus by borrowing the accent border (see .field). */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3, h4, p, blockquote, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* Visually hidden but available to assistive tech. */
.sr-only {
  position: absolute;
  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: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font-size: 14.5px;
}
.skip-link:focus { left: 0; text-decoration: none; color: var(--paper); }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Mono is the design's signature: the weekly cadence always speaks in mono.
   Never below 10px, at any breakpoint. */
.mono {
  font-family: var(--font-mono);
  font-variant-ligatures: none;
}

/* Section kicker — "PREVIOUS FRIDAYS", "WORKING TOGETHER" */
.kicker {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}

/* Mono metadata, two sizes. */
.meta-lg {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.meta-sm {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* The meta row: No. NN · rule · date · rule · topic */
.meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  row-gap: 8px;
  white-space: nowrap;
  color: var(--accent);
}
.meta-row .issue { color: var(--accent); }
.meta-row .dim   { color: var(--ink-faint); }
.meta-tick { width: 22px; height: 1px; flex-shrink: 0; }
.meta-tick--accent { background: var(--accent-pale); }
.meta-tick--rule   { background: var(--border-chip); }

/* Headlines. text-wrap: balance on headlines, pretty on standfirsts/deks. */
.h-display, .h-article, .h-page {
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
  margin: 0;
}
.h-display { font-size: 62px; line-height: 1.03; }
.h-article { font-size: 58px; line-height: 1.05; max-width: 21em; }
.h-page    { font-size: 52px; line-height: 1.05; }

.standfirst-hero { font-size: 22px;   line-height: 1.50; color: var(--ink-muted); max-width: 30em; text-wrap: pretty; }
.standfirst-art  { font-size: 23px;   line-height: 1.48; color: var(--ink-muted); max-width: 28em; text-wrap: pretty; }
.standfirst-page { font-size: 20px;   line-height: 1.50; color: var(--ink-muted); max-width: 34em; text-wrap: pretty; }

/* Buttons. Dark fill hovers to accent; secondary borders darken to ink. */
.btn {
  display: inline-block;
  border-radius: var(--radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  padding: 15px 30px;
  font-size: 15px;
}
.btn--primary:hover { background: var(--accent); color: var(--paper); }

.btn--secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--border-field);
  padding: 10px 18px;
  font-size: 14px;
}
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); }

.field {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-field);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 150ms ease;
}
.field:focus { border-color: var(--accent); }
.field::placeholder { color: var(--ink-faintest); }

/* Image placeholders. Used when a post has no hero image: a deterministic
   striped field with the issue number, never stock art. */
.imgph {
  background: repeating-linear-gradient(135deg,
    var(--stripe-a) 0 12px, var(--stripe-b) 12px 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.imgph-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-faintest);
  background: var(--paper);
  padding: 8px 14px;
  text-align: center;
}
.imgph-caption--sm { font-size: 10.5px; padding: 6px 10px; letter-spacing: 0.06em; }
/* The fallback's issue number reads as the subject of the frame, not a caption. */
.imgph-issue {
  font-family: var(--font-mono);
  font-size: 34px;
  letter-spacing: -0.03em;
  color: var(--ink-faintest);
}
.hero-media img, .card-media img, .lead-media img { width: 100%; height: 100%; object-fit: cover; }

/* Chips — topic pills on home, filters on the archive. */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: flex;
  align-items: baseline;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border-chip);
  border-radius: var(--radius);
  padding: 12px 20px;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 500;
  transition: border-color 150ms ease, color 150ms ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.chip .count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}

/* Subscribe. Three placements share this; --compact is the two rail versions. */
.subscribe { display: flex; flex-direction: column; gap: 10px; }
.subscribe .btn--primary { padding: 14px 16px; font-size: 14.5px; }
.proof { font-size: 12.5px; color: var(--ink-faint); }
.subscribe-error { font-size: 13px; color: var(--accent); }
.subscribe-done {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.subscribe--compact .field { padding: 12px 14px; font-size: 14px; }
.subscribe--compact .btn--primary { padding: 12px 14px; font-size: 14px; }

/* Footer's inline variant: input and button side by side. */
.subscribe--inline .subscribe-row { display: flex; gap: 8px; }
.subscribe--inline .field { flex: 1; padding: 12px 14px; font-size: 14px; }
.subscribe--inline .btn--primary { padding: 12px 18px; font-size: 14px; white-space: nowrap; }

/* --------------------------------------------------- 4. Shared furniture */

/* Header — the only element with any blur, and no shadow even so. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .container {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.wordmark {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
  color: var(--ink);
}
.wordmark:hover { color: var(--ink); text-decoration: none; }
.wordmark-name { font-size: 19px; font-weight: 700; letter-spacing: -0.025em; }
.wordmark-tag  { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-faint); }

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
  row-gap: 8px;
  justify-content: flex-end;
  min-width: 0;
  font-size: 14.5px;
  font-weight: 500;
}
/* Active state is a 2px accent bar below the label; label and bar stack in a
   5px-gap column so the bar never shifts the row's baseline. */
.nav-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--ink);
}
.nav-item:hover { color: var(--accent); text-decoration: none; }
.nav-item .bar { height: 2px; background: transparent; display: block; }
.nav-item.is-active .bar { background: var(--accent); }

.cta {
  background: var(--ink);
  color: var(--paper);
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: var(--radius);
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 500;
}
.cta:hover { background: var(--accent); color: var(--paper); text-decoration: none; }

/* Mobile menu toggle — hidden until the nav can no longer fit (see Responsive). */
.nav-toggle { display: none; }

.site-footer {
  border-top: 1px solid var(--ink);
  background: var(--paper-sunk);
}
.site-footer .container {
  padding: 52px var(--gutter) 60px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer-mark { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.footer-blurb { font-size: 14.5px; line-height: 1.6; color: var(--ink-muted); max-width: 22em; }
.footer-col a { color: var(--ink); }
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-copy { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faintest); }

/* Flash notice — admin actions and subscribe fallbacks land here. */
.notice {
  border-left: 2px solid var(--accent);
  background: var(--paper-sunk);
  padding: 14px 18px;
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.notice--error { border-left-color: var(--accent-dark); }

/* Section separators: hard ink rules open a section, --rule divides internally. */
.band       { border-bottom: 1px solid var(--rule); }
.band--top  { border-top: 1px solid var(--rule); }

/* ------------------------------------------------------------ 5. Home (/) */

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 72px;
}
.hero-main { padding: 76px 0 84px; }
.hero-main .meta-row { margin-bottom: 30px; }
.hero-main .h-display { margin-bottom: 28px; }
.hero-main .standfirst-hero { margin-bottom: 36px; }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-readtime { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }

.hero-rail {
  border-left: 1px solid var(--rule);
  padding: 76px 0 84px 44px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.hero-proposition { font-size: 16px; line-height: 1.6; color: var(--ink-muted); }

/* Week strip — the cadence motif. Friday is the accent cell. */
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week-cell  { height: 7px; background: var(--border-chip); }
.week-cell--friday  { background: var(--accent); }
.week-cell--weekend { background: var(--rule-light); }

.hero-media {
  height: 420px;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}

/* Previous Fridays */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}
.section-more { font-size: 14px; font-weight: 500; color: var(--accent); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--ink);
  padding-top: 20px;
  color: var(--ink);
}
.card:hover { color: var(--ink); text-decoration: none; }
.card-media { height: 168px; }
.card-meta {
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.card-meta .issue { color: var(--accent); }
.card-title { font-size: 23px; line-height: 1.20; letter-spacing: -0.020em; font-weight: 600; text-wrap: pretty; }
.card:hover .card-title { color: var(--accent); }
.card-dek { font-size: 15.5px; line-height: 1.55; color: var(--ink-muted); text-wrap: pretty; }
.card-topic {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: auto;
}

/* Vertical rhythm modifiers, applied alongside .container so the horizontal
   gutter is never restated (and so the breakpoints only have to change it once). */
.section-pad      { padding-top: 68px; padding-bottom: 76px; }
.section-pad--end { padding-top: 68px; padding-bottom: 96px; }

/* --------------------------------------------- 6. Article (/posts/<slug>) */

.article-head { padding-top: 64px; }
.article-head .meta-row { margin-bottom: 34px; }
.article-head .h-article { margin-bottom: 26px; }
.article-head .standfirst-art { margin-bottom: 44px; }
.lead-media { height: 520px; margin-bottom: 18px; }
.lead-credit { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faintest); margin-bottom: 72px; }

.article-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 88px;
  align-items: start;
  padding-bottom: 40px;
}

.article {
  max-width: var(--measure);
  font-size: 19.5px;
  line-height: 1.72;
  color: var(--ink-soft);
}
.article p { margin: 0 0 30px; }
.article strong { font-weight: 600; }
.article a { color: var(--accent); }
.article a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }

.a-subhead {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 54px 0 22px;
  scroll-margin-top: var(--sticky-top);
}
.a-pullquote {
  margin: 46px 0;
  padding-left: 30px;
  border-left: 2px solid var(--accent);
  font-size: 27px;
  line-height: 1.34;
  letter-spacing: -0.020em;
  font-weight: 500;
  color: var(--ink);
}
.a-closing {
  font-size: 22px;
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 44px;
}

/* Stat band. gap:1px over a rule-coloured background, so the seams read as
   hairlines rather than as borders on each cell. */
.a-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-chip);
  border-top: 1px solid var(--ink);
  margin: 46px 0;
  font-family: var(--font-mono);
}
.a-stat { background: var(--paper); padding: 22px 0 22px 22px; }
.a-stat:first-child { padding-left: 0; }
.a-stat-figure { font-size: 36px; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.a-stat-figure--accent { color: var(--accent); }
.a-stat-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 8px;
}

/* A post imported from the back catalogue with no body yet: say so plainly and
   send the reader to the original rather than showing an empty article. */
.article-stub {
  border-top: 1px solid var(--ink);
  padding-top: 28px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-muted);
}
.article-stub .stub-lead { color: var(--ink); font-weight: 600; }
.article-stub .btn--secondary { margin-top: 18px; }

.authorblock {
  border-top: 1px solid var(--ink);
  padding-top: 28px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.avatar {
  width: 74px; height: 74px;
  flex-shrink: 0;
  border-radius: 50%;
  background: repeating-linear-gradient(135deg, var(--stripe-a) 0 8px, var(--stripe-b) 8px 16px);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.authorblock-text { font-size: 16.5px; line-height: 1.6; color: var(--ink-muted); }
.authorblock-text .lead { color: var(--ink); font-weight: 600; }
.authorblock-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

/* Article rail */
.rail {
  position: sticky;
  top: var(--sticky-top);
  display: flex;
  flex-direction: column;
  gap: 34px;
  font-size: 14.5px;
}
.rail-block { display: flex; flex-direction: column; gap: 12px; }
.rail-block + .rail-block { border-top: 1px solid var(--rule); padding-top: 26px; }
.rail-list { display: flex; flex-direction: column; gap: 12px; }
.rail-item {
  color: var(--ink-faint);
  border-left: 2px solid var(--rule);
  padding-left: 12px;
}
.rail-item:hover { color: var(--ink); text-decoration: none; }
.rail-item.is-current { color: var(--ink); border-left-color: var(--accent); }
.rail-related { display: flex; flex-direction: column; gap: 14px; }
.rail-related a { color: var(--ink); line-height: 1.4; }
.rail-related a:hover { color: var(--accent); text-decoration: none; }
.rail-sub-intro { font-size: 15px; line-height: 1.5; color: var(--ink-muted); }

/* Prev / next */
.prevnext { border-top: 1px solid var(--rule); margin-top: 60px; }
.prevnext .container { display: grid; grid-template-columns: 1fr 1fr; }
.prevnext-cell { color: var(--ink); }
.prevnext-cell:hover { color: var(--ink); text-decoration: none; }
.prevnext-prev { padding: 44px 44px 52px 0; border-right: 1px solid var(--rule); }
.prevnext-next { padding: 44px 0 52px 44px; }
.prevnext-next--empty { opacity: 0.45; }
.prevnext-label { margin-bottom: 14px; }
.prevnext-title { font-size: 26px; line-height: 1.18; letter-spacing: -0.020em; font-weight: 600; }
.prevnext-cell:hover .prevnext-title { color: var(--accent); }

/* ------------------------------------------------------- 7. Archive (/archive) */

.page-head { padding-top: 72px; }
.page-head .h-page { margin-bottom: 20px; }
.page-head .standfirst-page { margin-bottom: 46px; }

.filterbar {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--ink);
}
.filterbar .field { flex: 1; min-width: 260px; width: auto; }
.filter-chip {
  background: var(--white);
  border: 1px solid var(--border-chip);
  border-radius: var(--radius);
  padding: 11px 17px;
  font-size: 14px;
  color: var(--ink-muted);
  white-space: nowrap;
  transition: border-color 150ms ease, color 150ms ease;
}
.filter-chip:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.filter-chip.is-active { border-color: var(--ink); color: var(--ink); }

.month-group {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 48px;
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
}
.month-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  position: sticky;
  top: var(--sticky-top);
  align-self: start;
}

/* The design's 200px meta column assumed short topic labels ("Grid", "Storage").
   The real threads are longer — "MARKETS & REGULATION · FRI 26" — so the column is
   240px and set nowrap, which keeps the mono meta on one line and stops the date
   being orphaned below its topic. */
.arch-row {
  display: grid;
  grid-template-columns: 64px 1fr 240px;
  gap: 28px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-light);
  color: var(--ink);
  transition: background-color 150ms ease;
}
.arch-row:last-child { border-bottom: 0; }
.arch-row:hover { background: var(--paper-sunk); color: var(--ink); text-decoration: none; }
.arch-no { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); }
.arch-title { font-size: 20.5px; line-height: 1.30; letter-spacing: -0.018em; font-weight: 500; text-wrap: pretty; }
.arch-row:hover .arch-title { color: var(--accent); }
.arch-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: right;
  white-space: nowrap;
}

/* archiveDensity = compact (site setting) */
body[data-archive-density="compact"] .arch-row { padding: 9px 0; }
body[data-archive-density="compact"] .arch-title { font-size: 17px; }

.arch-empty {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  padding: 40px 0;
}
.arch-foot { padding: 44px 0 96px; text-align: center; }

/* --------------------------------------------------------- 8. Topics (/topics) */

.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--ink);
}
.topic-cell {
  background: var(--paper);
  padding: 34px 38px 38px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--ink);
  transition: background-color 150ms ease;
}
.topic-cell:hover { background: var(--paper-sunk); color: var(--ink); text-decoration: none; }
.topic-cell-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.topic-cell-meta .count { color: var(--accent); }
.topic-cell h2 { font-size: 30px; line-height: 1.12; letter-spacing: -0.028em; font-weight: 600; }
.topic-cell-blurb { font-size: 16.5px; line-height: 1.58; color: var(--ink-muted); max-width: 30em; }
.topic-cell-more { font-size: 14.5px; font-weight: 500; color: var(--accent); margin-top: 4px; }

/* ----------------------------------------------------------- 9. About (/about) */

.about-grid {
  padding-top: 72px;
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 88px;
  align-items: start;
}
.about-grid .h-page { max-width: 20em; margin-bottom: 32px; }
.about-body { max-width: 38em; font-size: 19.5px; line-height: 1.72; color: var(--ink-soft); }
.about-body p { margin: 0 0 28px; }

.stat-row {
  border-top: 1px solid var(--ink);
  margin-top: 44px;
  padding-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.stat-figure { font-family: var(--font-mono); font-size: 34px; letter-spacing: -0.03em; }
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 6px;
}

.about-work { border-top: 1px solid var(--rule); margin-top: 44px; padding-top: 30px; }
.about-work .kicker { margin-bottom: 18px; }
.about-work p { font-size: 18px; line-height: 1.65; color: var(--ink-muted); margin: 0 0 22px; max-width: 34em; }
.about-work .btn--primary { padding: 14px 28px; }

.about-rail { display: flex; flex-direction: column; gap: 26px; }
.portrait-media { height: 500px; }
/* Every other media container carries this; portrait-media never did, because
   the slot had only ever held the striped placeholder. Without it a real image
   renders at its own height and leaves dead space below the 500px frame. */
.portrait-media img { width: 100%; height: 100%; object-fit: cover; }
.about-elsewhere {
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}
.about-elsewhere a { color: var(--ink); }
.about-elsewhere a:hover { color: var(--accent); text-decoration: none; }

/* ------------------------------------------------------------ 10. Not found */

.notfound { padding-top: 96px; padding-bottom: 120px; }
.notfound > * { max-width: 34em; }
.notfound .h-page { margin-bottom: 20px; }
.notfound p { font-size: 19.5px; line-height: 1.7; color: var(--ink-muted); margin-bottom: 30px; }

/* ---------------------------------------------------------- 11. Responsive
   The handoff did not design these; §Responsive of Design/README.md specifies
   the intent, implemented here. Mono metadata never scales below 10px.        */

/* <=1100px — collapse every "1fr Npx" two-column grid. The article rail moves
   above the body and becomes a horizontal summary rather than being dropped, so
   the in-page anchors survive on a tablet. */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }

  .hero-grid,
  .article-grid,
  .about-grid { grid-template-columns: 1fr; gap: 0; }

  .hero-main { padding-bottom: 44px; }
  .hero-rail {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding: 40px 0 60px;
  }

  .article-grid { gap: 48px; }
  .article { max-width: none; }

  /* Rail first in source order would hurt the reading experience, so it is
     reordered visually instead and laid out as a row. */
  .rail {
    position: static;
    order: -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px 40px;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 24px;
  }
  .rail-block + .rail-block { border-top: 0; padding-top: 0; }
  .rail-block { flex: 1 1 220px; }
  .rail-list { gap: 8px; }

  .cards { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .about-rail { flex-direction: row; gap: 40px; align-items: flex-start; }
  .portrait-media { flex: 1 1 60%; height: 420px; }
  .about-elsewhere { flex: 1 1 30%; border-top: 0; padding-top: 0; }
  .month-group { grid-template-columns: 120px 1fr; gap: 28px; }
}

/* <=820px — single column throughout; the archive row's right-hand column drops
   under the title; gutters tighten to 24px. */
@media (max-width: 820px) {
  :root { --gutter: 24px; --sticky-top: 92px; }

  .site-header .container { gap: 16px; }

  .cards { grid-template-columns: 1fr; gap: 40px; }
  .topics-grid { grid-template-columns: 1fr; }
  .about-rail { flex-direction: column; }
  .portrait-media { height: 380px; }
  .about-elsewhere { border-top: 1px solid var(--rule); padding-top: 22px; }

  .hero-media { height: 260px; border-left: 0; border-right: 0; }
  .lead-media  { height: 300px; }

  .stat-row { grid-template-columns: 1fr 1fr; gap: 24px; }
  .a-stats  { grid-template-columns: 1fr; }
  .a-stat, .a-stat:first-child { padding: 18px 0; }

  .month-group { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
  .month-label { position: static; }

  /* Issue number and title on one line, meta beneath. */
  .arch-row {
    grid-template-columns: 48px 1fr;
    gap: 6px 16px;
    padding: 14px 0;
  }
  .arch-meta { grid-column: 2; text-align: left; white-space: normal; }
  body[data-archive-density="compact"] .arch-row { padding: 10px 0; }

  .prevnext .container { grid-template-columns: 1fr; }
  .prevnext-prev { padding: 32px 0 28px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .prevnext-next { padding: 28px 0 40px; }

  .site-footer .container { grid-template-columns: 1fr; gap: 34px; padding: 40px var(--gutter) 48px; }

  /* Vertical rhythm compresses with the gutter; the horizontal padding is
     .container's and needs no restating here. */
  .section-pad      { padding-top: 48px; padding-bottom: 52px; }
  .section-pad--end { padding-top: 48px; padding-bottom: 64px; }
  .article-head     { padding-top: 40px; }
  .page-head        { padding-top: 48px; }
  .about-grid       { padding-top: 48px; padding-bottom: 64px; }
  .lead-credit      { margin-bottom: 44px; }
  .article-head .standfirst-art { margin-bottom: 32px; }
}

/* <=700px — the type scale steps down. Mono metadata deliberately does not. */
@media (max-width: 700px) {
  .h-display { font-size: 38px; letter-spacing: -0.03em; }
  .h-article { font-size: 36px; letter-spacing: -0.03em; }
  .h-page    { font-size: 34px; letter-spacing: -0.03em; }

  .standfirst-hero { font-size: 19px; }
  .standfirst-art  { font-size: 19px; }
  .standfirst-page { font-size: 18px; }

  .article, .about-body { font-size: 18px; }
  .a-pullquote { font-size: 22px; padding-left: 20px; }
  .a-closing { font-size: 20px; }
  .card-title { font-size: 21px; }
  .topic-cell h2 { font-size: 26px; }
  .topic-cell { padding: 26px 24px 30px; }
  .prevnext-title { font-size: 22px; }
  .arch-title { font-size: 18px; }
  .h-article { max-width: none; }

  /* The nav becomes a disclosure menu; the CTA stays visible beside it. */
  .nav-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink);
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 8px var(--gutter) 16px;
  }
  .site-header { position: sticky; }
  .site-header .container { position: relative; }
  .nav.is-open { display: flex; }
  .nav-item { padding: 12px 0; border-bottom: 1px solid var(--rule-light); }
  .nav-item .bar { display: none; }
  .nav-item.is-active { color: var(--accent); }
  .nav .cta { display: none; }        /* the header keeps its own copy */

  .authorblock { flex-direction: column; gap: 18px; }
  .stat-row { grid-template-columns: 1fr; gap: 20px; }
  .filterbar .field { min-width: 0; flex: 1 1 100%; }
}

/* Users who ask for less motion get none. The design is barely animated
   anyway — only hover colour and the nav disclosure. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  .site-header, .site-footer, .rail, .prevnext, .subscribe, .cta { display: none; }
  .article { max-width: none; font-size: 12pt; }
  body { background: #fff; }
}
