/* ==========================================================================
   Sovereign Terminal — Paper & Figures
   A warm paper canvas; serif headlines and big figures; monospaced labels;
   coloured caption cards laid over 5:3 pictures; graph-paper backgrounds;
   rounded, softly shadowed panels.
   ========================================================================== */

/* ── 1. Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* canvas & surfaces */
  --bg: #fbf6f0;
  --bg-2: #fdeee4;            /* bands */
  --bg-3: #f6ebe0;            /* deeper band / hover */
  --paper: #fffdf9;           /* cards */
  --grid: rgba(59, 63, 154, 0.07);

  /* ink */
  --ink: #1d1b2c;
  --ink-2: #4a4659;
  --ink-3: #7c7789;
  --line: #e8ddd1;
  --line-2: #d8c9bb;

  /* accent */
  --acc: #3b3f9a;
  --acc-ink: #2e3180;
  --acc-soft: #e7e8f7;

  /* sun button */
  --sun: #f6d36e;
  --sun-2: #f1c445;

  /* tones for caption cards */
  --t-sage: #cfe4dd;
  --t-mustard: #f6d36e;
  --t-indigo: #3b3f9a;
  --t-crimson: #d6243f;
  --t-peach: #fcdcc9;
  --t-ink: #1d1b2c;

  /* type */
  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-text: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* shape */
  --r-xs: 6px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-xs: 0 1px 2px rgba(29, 27, 44, 0.06);
  --shadow-sm: 0 1px 2px rgba(29, 27, 44, 0.05), 0 4px 14px -4px rgba(29, 27, 44, 0.1);
  --shadow: 0 2px 4px rgba(29, 27, 44, 0.04), 0 18px 40px -14px rgba(29, 27, 44, 0.2);
  --shadow-lg: 0 4px 10px rgba(29, 27, 44, 0.05), 0 36px 70px -24px rgba(29, 27, 44, 0.32);

  --gutter: 24px;
  --max: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ── 1b. Colour schemes ────────────────────────────────────────────────── */
/* Picked in Customizer → Colour scheme; printed as <html data-scheme="…">. */

/* Sage */
:root[data-scheme="emerald"] {
  --bg: #f3f6f2;
  --bg-2: #e4efe8;
  --bg-3: #d9e8de;
  --paper: #fcfdfb;
  --grid: rgba(31, 111, 92, 0.08);
  --line: #dbe5dd;
  --line-2: #c5d5ca;
  --acc: #1f6f5c;
  --acc-ink: #175746;
  --acc-soft: #dcefe7;
  --t-indigo: #1f6f5c;
}

/* Apricot */
:root[data-scheme="sunset"] {
  --bg: #fff5ef;
  --bg-2: #ffe6d8;
  --bg-3: #fddac7;
  --paper: #fffcfa;
  --grid: rgba(194, 65, 43, 0.07);
  --line: #f1ddd1;
  --line-2: #e6c8b6;
  --acc: #c2412b;
  --acc-ink: #9d3120;
  --acc-soft: #fde3da;
  --t-indigo: #6b3fa0;
}

/* Slate */
:root[data-scheme="graphite"] {
  --bg: #f2f3f5;
  --bg-2: #e6e9ef;
  --bg-3: #dbdfe7;
  --paper: #fbfbfc;
  --grid: rgba(47, 58, 86, 0.08);
  --line: #dde1e7;
  --line-2: #c9cfd9;
  --acc: #2f3a56;
  --acc-ink: #232c43;
  --acc-soft: #e1e5ee;
  --t-indigo: #2f3a56;
  --t-sage: #d5e1e4;
}

/* Ocean */
:root[data-scheme="ocean"] {
  --bg: #f0f6f8;
  --bg-2: #e1eff4;
  --bg-3: #d3e7ee;
  --paper: #fbfdfe;
  --grid: rgba(15, 107, 143, 0.08);
  --line: #d8e7ed;
  --line-2: #bfd6df;
  --acc: #0f6b8f;
  --acc-ink: #0b5470;
  --acc-soft: #d9eef6;
  --t-indigo: #0f6b8f;
  --t-sage: #d4ece9;
  --t-peach: #fbe1cc;
  --sun: #f7c873;
  --sun-2: #f2b850;
  --t-mustard: #f7c873;
}

/* ── 2. Reset & base ───────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 72;
}

p {
  margin: 0;
}

ol,
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

::selection {
  background: var(--sun);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: 4px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 13px;
  border-radius: var(--r-sm);
}

.skip-link:focus {
  top: 16px;
}

.grecaptcha-badge {
  display: none !important;
}

/* ── 3. Layout primitives ──────────────────────────────────────────────── */
.sheet {
  overflow-x: clip;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(880px + var(--gutter) * 2);
}

.sec {
  padding-block: clamp(56px, 7vw, 96px);
}

/* Back-to-back sections share one gap; the hero already pads its foot */
.sec + .sec {
  padding-top: 0;
}

.hero + .sec {
  padding-top: clamp(8px, 1.5vw, 20px);
}

/* A full-bleed band closing the page (Mosaic ends on Topics) keeps the
   same gap above the footer as a regular section would */
.home > .topics:last-child,
.home > .band:last-child {
  margin-bottom: clamp(56px, 7vw, 96px);
}

/* Graph paper, used as a background motif */
.graph {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Media wrappers produced by st_thumb(). The image is taken out of flow so
   the wrapper's aspect-ratio alone sets its height. */
[class*="__media"] {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 5 / 3;
  background: var(--bg-3);
}

[class*="__media"] img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

[class*="--empty"] {
  display: grid;
  place-items: center;
  background-color: var(--bg-2);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 20px 20px;
}

.media__fallback {
  font-family: var(--f-display);
  font-size: clamp(32px, 5vw, 64px);
  color: var(--acc);
  opacity: 0.35;
}

/* Whole-card links: the headline link stretches over its positioned card */
.feat,
.card,
.spot,
.nrow {
  position: relative;
}

.feat__title a::after,
.card__title a::after,
.spot__title a::after,
.nrow__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.pill,
.feat__foot .pill,
.card__foot .pill,
.spot__foot .pill,
.nrow__meta .pill {
  position: relative;
  z-index: 2;
}

/* Hover: images ease in, headlines pick up an underline */
.feat:hover [class*="__media"] img,
.card:hover [class*="__media"] img,
.spot:hover [class*="__media"] img,
.nrow:hover [class*="__media"] img {
  transform: scale(1.04);
}

.feat__title a,
.card__title a,
.spot__title a,
.nrow__title a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.35s var(--ease);
}

.feat:hover .feat__title a,
.card:hover .card__title a,
.spot:hover .spot__title a,
.nrow:hover .nrow__title a {
  background-size: 100% 1.5px;
}

/* ── 4. Buttons, pills, labels, section heads ──────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn .arrow {
  transition: transform 0.2s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.btn--sun {
  background: var(--sun);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.btn--sun:hover {
  box-shadow: 4px 5px 0 var(--ink);
}

.btn--ink {
  background: var(--ink);
  color: #fff;
}

.btn--light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn--light:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

.btn--block {
  width: 100%;
}

/* Category tag: a mono label in a hairline box */
.pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border: 1px solid currentColor;
  border-radius: var(--r-xs);
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.pill:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.pill--bare {
  height: auto;
  padding: 0;
  border: 0;
  color: var(--acc);
}

.pill--bare:hover {
  background: none;
  color: var(--ink);
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: var(--r-xs);
  background: var(--sun);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.badge--ink {
  background: var(--ink);
  color: #fff;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  font-weight: 600;
}

.mini-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.mini-label::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--acc);
}

.mini-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--acc);
}

.mini-link:hover {
  color: var(--ink);
}

/* Section head */
.shead {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 20px 48px;
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 48px);
  padding-bottom: 22px;
  border-bottom: 1.5px solid var(--ink);
}

.shead--stack {
  grid-template-columns: 1fr;
  border-bottom: 0;
  padding-bottom: 0;
}

.shead__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.shead__num {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  border-radius: var(--r-xs);
  background: var(--ink);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shead__title {
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.shead__side {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.shead__kicker {
  max-width: 52ch;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.55;
}

.shead--stack .shead__kicker {
  margin-top: 4px;
}

.shead__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--acc);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}

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

.shead__more .arrow {
  transition: transform 0.2s var(--ease);
}

.shead__more:hover .arrow {
  transform: translateX(3px);
}

/* Tones */
.tone-sage {
  --tone: var(--t-sage);
  --tone-ink: var(--ink);
}

.tone-mustard {
  --tone: var(--t-mustard);
  --tone-ink: var(--ink);
}

.tone-indigo {
  --tone: var(--t-indigo);
  --tone-ink: #fff;
}

.tone-crimson {
  --tone: var(--t-crimson);
  --tone-ink: #fff;
}

.tone-peach {
  --tone: var(--t-peach);
  --tone-ink: var(--ink);
}

.tone-ink {
  --tone: var(--t-ink);
  --tone-ink: #fff;
}

/* ── 5. Ticker ─────────────────────────────────────────────────────────── */
.ticker {
  background: var(--ink);
  color: #efeaf8;
  font-family: var(--f-mono);
  font-size: 12.5px;
}

.ticker__inner {
  display: flex;
  align-items: center;
  height: 38px;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.ticker__flag {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 22px;
  margin-right: 18px;
  padding: 0 9px;
  border-radius: 4px;
  background: var(--sun);
  color: var(--ink);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticker__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 90s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__list {
  display: flex;
  gap: 48px;
  padding-right: 48px;
}

.ticker__list li {
  white-space: nowrap;
  opacity: 0.82;
}

.ticker__list li::before {
  content: "◆";
  margin-right: 14px;
  font-size: 8px;
  vertical-align: 2px;
  color: var(--sun);
}

.ticker__list b {
  color: var(--sun);
  font-weight: 600;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ── 6. Masthead ───────────────────────────────────────────────────────── */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 14px;
}

.admin-bar .masthead {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .masthead {
    top: 0;
  }
}

.masthead__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 70px;
  padding: 10px 12px 10px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.25s var(--ease), background-color 0.25s;
}

/* Stuck state is shadow and tint only — never change the masthead's size
   here: it is in flow, so a height change moves the scroll position, which
   flips the class back and makes the header shake near the top. */
.masthead.is-stuck .masthead__bar {
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  box-shadow: var(--shadow);
}

.masthead__brand {
  flex: none;
}

.masthead__logo img,
.masthead__logo-img,
.drawer__logo img {
  width: auto;
  height: var(--logo-h, 45px);
  max-width: 240px;
  object-fit: contain;
}

.site-logo {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.masthead__nav {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s;
}

.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current-menu-parent > a,
.nav-list .current-post-ancestor > a {
  background: var(--bg-2);
  color: var(--ink);
}

.masthead__actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.masthead__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}

.masthead__link:hover {
  color: var(--acc);
}

.masthead__sub {
  box-shadow: 2px 2px 0 var(--ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 12px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--paper);
}

.nav-toggle__bar {
  display: block;
  height: 1.8px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-toggle__bar:nth-child(2) {
  width: 70%;
  margin-left: auto;
}

/* ── 7. Mobile drawer ──────────────────────────────────────────────────── */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  width: min(400px, 92vw);
  padding: 22px 24px 28px;
  background: var(--paper);
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.35s var(--ease), visibility 0s 0.35s;
}

.drawer.is-open {
  transform: none;
  visibility: visible;
  transition: transform 0.35s var(--ease);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.drawer__logo img {
  height: 40px;
}

.drawer__close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  font-size: 24px;
  line-height: 1;
}

.drawer__eyebrow {
  margin: 24px 0 8px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.nav-list--drawer {
  display: grid;
  justify-content: stretch;
  gap: 0;
  counter-reset: dn;
}

.nav-list--drawer li {
  counter-increment: dn;
  border-bottom: 1px dashed var(--line-2);
}

.nav-list--drawer a {
  display: flex;
  width: 100%;
  height: 56px;
  padding: 0;
  border-radius: 0;
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--ink);
}

.nav-list--drawer a::before {
  content: counter(dn, decimal-leading-zero);
  width: 40px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-3);
}

.nav-list--drawer a:hover {
  background: none;
  color: var(--acc);
}

.drawer__foot {
  display: grid;
  gap: 14px;
  margin-top: auto;
  padding-top: 28px;
}

.drawer__tool {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--bg-2);
  font-family: var(--f-mono);
  font-size: 13.5px;
  font-weight: 500;
}

.drawer__note {
  color: var(--ink-2);
  font-size: 15px;
}

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(29, 27, 44, 0.4);
  opacity: 0;
  transition: opacity 0.3s;
}

.drawer-scrim.is-visible {
  opacity: 1;
}

/* ── 8. Hero ───────────────────────────────────────────────────────────── */
.hero {
  padding-top: clamp(20px, 3vw, 36px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.daybar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-bottom: clamp(22px, 3vw, 34px);
  padding-bottom: 18px;
  border-bottom: 1.5px solid var(--ink);
}

.daybar__num {
  flex: none;
}

.daybar__title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-style: italic;
}

.daybar__facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-2);
}

.daybar__facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.daybar__facts li + li {
  padding-left: 26px;
  border-left: 1px solid var(--line-2);
}

.daybar__facts b {
  font-weight: 600;
  color: var(--ink);
}

.daybar__track {
  position: relative;
  width: 110px;
  height: 8px;
  border-radius: 99px;
  background: var(--bg-3);
  overflow: hidden;
}

.daybar__track i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: repeating-linear-gradient(90deg, var(--acc) 0 6px, color-mix(in srgb, var(--acc) 75%, #fff) 6px 8px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}

/* ── Feature card: picture + overlapping caption card ─────────────────── */
.feat {
  display: grid;
}

.feat__frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.feat__frame::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 6px;
  background: var(--tone);
}

.feat__media {
  border-radius: inherit;
}

.feat__badge {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.feat:not([class*="tone-"]) {
  --tone: var(--t-sage);
  --tone-ink: var(--ink);
}

.feat__cap {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 12px;
  align-content: start;
  margin: -64px 18px 0;
  padding: 24px 26px 22px;
  border-radius: var(--r);
  background: var(--tone);
  color: var(--tone-ink);
  box-shadow: var(--shadow);
}

.feat__title {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.feat__dek {
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.9;
}

.feat__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, currentColor 35%, transparent);
}

.feat__meta {
  font-family: var(--f-mono);
  font-size: 12px;
  opacity: 0.85;
}

.feat .pill:hover {
  background: var(--tone-ink);
  border-color: var(--tone-ink);
  color: var(--tone);
}

/* Hero size: the caption card rises over the lower edge of the picture */
@media (min-width: 761px) {
  .feat--hero .feat__cap {
    margin: -110px 36px 0;
    padding: 28px 32px 24px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    column-gap: 32px;
  }

  .feat--hero .feat__title {
    grid-column: 1;
  }

  .feat--hero .feat__dek {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    padding-top: 0;
    padding-left: 24px;
    border-top: 0;
    border-left: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  }

  .feat--hero .feat__foot {
    grid-column: 1 / -1;
  }

  .feat--hero .feat__title {
    font-size: clamp(26px, 2.6vw, 36px);
  }
}
/* Next stories */
.hero__side {
  display: grid;
  gap: 10px;
  padding: 22px 22px 10px;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.hero__side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
}

.nlist {
  display: grid;
}

.nrow {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 96px;
  gap: 14px;
  align-items: start;
  padding-block: 16px;
  border-top: 1px dashed var(--line-2);
}

.nrow__n {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 0.9;
  color: var(--acc);
  font-variant-numeric: tabular-nums;
  min-width: 36px;
}

.nrow__body {
  display: grid;
  gap: 8px;
}

.nrow__title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.nrow__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-3);
}

.nrow__meta .pill--bare {
  font-size: 11px;
}

.nrow__media {
  border-radius: var(--r-sm);
  aspect-ratio: 4 / 3;
}

.nlist--aside .nrow {
  grid-template-columns: auto minmax(0, 1fr);
}

/* ── 9. Band (newsletter nudge) ────────────────────────────────────────── */
.band {
  position: relative;
  background: var(--bg-2);
  border-block: 1.5px solid var(--ink);
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 45%);
  mask-image: linear-gradient(90deg, #000, transparent 45%);
  pointer-events: none;
}

.band__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px 28px;
  padding-block: 28px;
}

.band__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-8deg);
}

.band__copy {
  flex: 1;
  min-width: 0;
}

.band__title {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
}

.band__text {
  margin-top: 4px;
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ── 10. Long reads ────────────────────────────────────────────────────── */
.long {
  display: grid;
  gap: clamp(48px, 6vw, 80px);
}

@media (min-width: 901px) {
  .feat--wide {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
  }

  .feat--wide .feat__frame {
    grid-column: 1 / span 8;
    grid-row: 1;
  }

  .feat--wide .feat__cap {
    grid-column: 7 / -1;
    grid-row: 1;
    margin: 0;
    padding: 34px 34px 28px;
    gap: 14px;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
  }

  .feat--wide .feat__title {
    font-size: clamp(28px, 2.8vw, 40px);
  }

  .feat--flip .feat__frame {
    grid-column: 5 / -1;
  }

  .feat--flip .feat__cap {
    grid-column: 1 / span 6;
  }
}

/* Big outlined index number behind each long read */
.long {
  counter-reset: longread;
}

.long .feat {
  counter-increment: longread;
}

.long .feat__cap::after {
  content: counter(longread, decimal-leading-zero);
  position: absolute;
  top: 14px;
  right: 22px;
  font-family: var(--f-display);
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--tone-ink) 35%, transparent);
  pointer-events: none;
}

.long .feat__title {
  padding-right: 64px;
}

/* ── 11. Calculator + fact card ────────────────────────────────────────── */
.tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
}

.tool__calc {
  position: relative;
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  box-shadow: var(--shadow);
}

.tool__calc .shead {
  margin-bottom: 30px;
}

.tool__calc .shead__title {
  font-size: clamp(30px, 3.6vw, 46px);
}

.tool__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

.tool__controls {
  display: grid;
  gap: 24px;
  align-content: start;
}

.field {
  display: grid;
  gap: 12px;
}

.field__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.field__label {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.field__value {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* Range slider with a filled track (--fill set by main.js) */
.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  margin: 6px 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--acc) var(--fill, 18%), var(--bg-3) var(--fill, 18%));
  outline-offset: 6px;
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sun);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: grab;
}

.range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sun);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: grab;
}

.seg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.seg__btn {
  height: 40px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

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

.seg__btn[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--paper);
  font-size: 14.5px;
  text-align: left;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.chip b {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
}

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

.chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--sun);
  box-shadow: 2px 2px 0 var(--ink);
}

.chip[aria-pressed="true"] b {
  color: var(--ink);
}

.price-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.price-input__label {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--ink-3);
}

.price-input__box {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 160px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--paper);
  font-family: var(--f-mono);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.price-input__box:focus-within {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-soft);
}

.price-input__box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font-family: var(--f-mono);
  font-size: 15px;
}

.tool__result {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--t-sage);
  box-shadow: var(--shadow-sm);
}

.tool__eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tool__big {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(48px, 5.6vw, 76px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tool__big small {
  margin: 0 0.12em 0 0.06em;
  font-size: 0.42em;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-2);
}

.tool__for {
  font-size: 16px;
  color: var(--ink-2);
}

.tool__for b {
  font-weight: 600;
  color: var(--ink);
}

.tool__stats {
  display: grid;
  border-top: 1px solid rgba(29, 27, 44, 0.2);
}

.tool__stats li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-block: 10px;
  border-bottom: 1px dashed rgba(29, 27, 44, 0.22);
  font-size: 15px;
}

.tool__stats b {
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.yearbar {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.yearbar__cells {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
}

.yearbar__cell {
  display: grid;
  gap: 4px;
}

.yearbar__cell i {
  position: relative;
  display: block;
  height: 26px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.yearbar__cell i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(var(--fill, 0));
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.yearbar__cell em {
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-style: normal;
  text-align: center;
  color: var(--ink-2);
  overflow: hidden;
}

.yearbar__caption {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink-2);
}

.is-over .yearbar__cell i::after {
  background: var(--t-crimson);
}

/* Fact card */
.tool__fact {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 26px 26px;
  border-radius: var(--r-xl);
  background: var(--t-indigo);
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.tool__fact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}

.tool__fact::after {
  content: "%";
  position: absolute;
  right: -10px;
  bottom: -70px;
  z-index: -1;
  font-family: var(--f-display);
  font-size: 280px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
}

.fact__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fact__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fact__count {
  font-family: var(--f-mono);
  font-size: 12px;
  opacity: 0.7;
}

.fact__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fact[hidden] {
  display: none;
}

.fact {
  display: grid;
  gap: 14px;
}

.fact.is-in {
  animation: fact-in 0.45s var(--ease);
}

@keyframes fact-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.fact__num {
  font-family: var(--f-display);
  font-size: clamp(64px, 7.5vw, 112px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--sun);
  overflow-wrap: anywhere;
}

.fact__text {
  font-size: 20px;
  line-height: 1.45;
}

.fact__next {
  align-self: flex-start;
}

.tool__note {
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-3);
}

/* ── 12. More stories ──────────────────────────────────────────────────── */
.more {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 22px;
  align-items: start;
}

.spot {
  position: sticky;
  top: 110px;
  display: grid;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--tone, var(--t-mustard));
  color: var(--tone-ink, var(--ink));
  box-shadow: var(--shadow);
}

.spot__frame {
  position: relative;
}

.spot__badges {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.spot__cap {
  display: grid;
  gap: 12px;
  padding: 24px 26px 24px;
}

.spot__title {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.spot__dek {
  padding-top: 12px;
  border-top: 1px solid rgba(29, 27, 44, 0.3);
  font-size: 16.5px;
  line-height: 1.5;
}

.spot__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(29, 27, 44, 0.3);
}

.more__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

/* Card: bordered paper box */
.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}

.card__media {
  margin: 8px 8px 0;
  border-radius: calc(var(--r-lg) - 8px);
}

.card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 18px;
}

.card__title {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.card__dek {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line-2);
}

.card__foot .read-more,
.card__date {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-3);
}

.card:hover .read-more {
  color: var(--acc);
}

/* ── 13. Topics ────────────────────────────────────────────────────────── */
.topics {
  position: relative;
  background: var(--bg-2);
  border-block: 1.5px solid var(--ink);
  overflow: hidden;
}

.topics__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 32px clamp(32px, 5vw, 80px);
  padding-block: clamp(56px, 7vw, 96px);
}

.topics__pitch {
  position: relative;
  align-self: start;
}

.topics__seven {
  position: absolute;
  top: -96px;
  right: -24px;
  z-index: 0;
  font-family: var(--f-display);
  font-size: clamp(220px, 22vw, 320px);
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--acc) 22%, transparent);
  pointer-events: none;
}

.topics__pitch > *:not(.topics__seven) {
  position: relative;
  z-index: 1;
}

.topics__title {
  max-width: 13ch;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.topics__text {
  max-width: 40ch;
  margin-top: 18px;
  color: var(--ink-2);
}

.topics__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.topic {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border-radius: var(--r);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.topic:hover {
  transform: translateY(-2px) rotate(-0.4deg);
  box-shadow: var(--shadow-sm);
}

.topic:last-child {
  grid-column: 1 / -1;
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.topic__n {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--acc);
}

.topic:last-child .topic__n {
  background: var(--sun);
  color: var(--ink);
}

.topic__title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.topic__text {
  margin-top: 3px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}

.topic:last-child .topic__text {
  color: rgba(255, 255, 255, 0.75);
}

/* ── 14. Newsletter ────────────────────────────────────────────────────── */
.signup__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4.4vw, 56px);
  border-radius: var(--r-xl);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
  isolation: isolate;
}

.signup__panel::before {
  content: "";
  position: absolute;
  inset: 0 50% 0 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}

.signup__deco {
  position: absolute;
  left: clamp(28px, 4.4vw, 56px);
  bottom: 18px;
  z-index: -1;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--ink-3);
  opacity: 0.6;
}

.signup__title {
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.signup__sub {
  max-width: 46ch;
  margin-top: 16px;
  color: var(--ink-2);
}

.signup__facts {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding-bottom: 32px;
}

.signup__facts li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.signup__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  color: var(--acc);
}

.signup__facts b {
  display: block;
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 500;
}

.signup__facts small {
  display: block;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-3);
}

.signup__card {
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--r-lg);
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.signup__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin-top: 30px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
}

.signup__legal a:hover {
  color: var(--acc);
}

/* CF7 — markup is owned by the plugin, so we only restyle it. Blocks stack:
     .form-options   newsletter picks → 2×2 tiles
     .form-fields    email, then submit on its own row
     .form-privacy   consent */
.signup .hidden-fields-container,
.signup .screen-reader-response {
  display: none;
}

.signup .wpcf7-form {
  display: grid;
  gap: 22px;
}

.signup .wpcf7-form p {
  margin: 0;
}

.signup .wpcf7-form br {
  display: none;
}

.signup .wpcf7-list-item {
  display: block;
  margin: 0;
}

.signup .form-label,
.signup .form-fields p::before {
  display: block;
  margin-bottom: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.signup .form-options .wpcf7-checkbox,
.signup .form-options .wpcf7-radio {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.signup .form-options .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.signup .form-options .wpcf7-list-item label:hover {
  border-color: var(--ink);
}

.signup .form-options .wpcf7-list-item label:has(input:checked) {
  border-color: var(--ink);
  background: #fff;
  box-shadow: 2px 2px 0 var(--ink);
}

.signup input[type="checkbox"],
.signup input[type="radio"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--acc);
}

.signup .form-fields p {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.signup .form-fields p::before {
  content: "Email address";
  flex: 1 0 100%;
  margin-bottom: 0;
}

.signup .form-fields .wpcf7-form-control-wrap {
  display: contents;
}

.signup .wpcf7-email {
  flex: 1 0 100%;
  order: 1;
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: #fff;
  font-family: var(--f-mono);
  font-size: 15px;
  outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.signup .wpcf7-email::placeholder {
  color: var(--ink-3);
}

.signup .wpcf7-email:focus {
  border-color: var(--acc);
  box-shadow: 0 0 0 4px var(--acc-soft);
}

.signup .wpcf7-email.wpcf7-not-valid {
  border-color: var(--t-crimson);
}

.signup .wpcf7-submit {
  flex: 1 0 100%;
  order: 3;
  height: 54px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--sun);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s;
}

.signup .wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: 4px 5px 0 var(--ink);
  background: var(--sun-2);
}

.signup .wpcf7-submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.signup .wpcf7-spinner {
  position: absolute;
  right: 18px;
  bottom: 15px;
  order: 4;
  margin: 0;
  background-color: var(--ink);
}

.signup .wpcf7-not-valid-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--t-crimson);
}

.signup .wpcf7-not-valid-tip::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--t-crimson);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.signup .form-fields .wpcf7-not-valid-tip {
  order: 2;
  flex: 1 0 100%;
  margin-top: 0;
}

.signup .wpcf7-checkbox.wpcf7-not-valid .wpcf7-list-item label {
  border-color: var(--t-crimson);
}

.signup .form-privacy .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  cursor: pointer;
}

.signup .form-privacy input[type="checkbox"] {
  margin-top: 2px;
}

.signup .wpcf7-list-item-label a {
  color: var(--acc);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.signup .wpcf7-acceptance.wpcf7-not-valid .wpcf7-list-item-label {
  color: var(--t-crimson);
}

.signup .wpcf7-acceptance.wpcf7-not-valid input[type="checkbox"] {
  outline: 2px solid var(--t-crimson);
  outline-offset: 1px;
}

.signup .form-privacy .wpcf7-not-valid-tip {
  margin-left: 28px;
}

.signup .wpcf7-response-output {
  margin: 0 !important;
  padding: 12px 16px !important;
  border: 1px solid var(--line-2) !important;
  border-radius: var(--r-sm);
  background: #fff;
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.45;
}

.signup .wpcf7-form.init .wpcf7-response-output,
.signup .wpcf7-form.resetting .wpcf7-response-output,
.signup .wpcf7-form.submitting .wpcf7-response-output {
  display: none;
}

.signup .wpcf7-form.sent .wpcf7-response-output {
  border-color: #2f8f6b !important;
  background: #e6f4ec;
  color: #1d5e45;
}

.signup .wpcf7-form.invalid .wpcf7-response-output,
.signup .wpcf7-form.unaccepted .wpcf7-response-output,
.signup .wpcf7-form.payment-required .wpcf7-response-output {
  border-color: #d8a33a !important;
  background: #fdf4dc;
  color: #7a5710;
}

.signup .wpcf7-form.spam .wpcf7-response-output,
.signup .wpcf7-form.failed .wpcf7-response-output,
.signup .wpcf7-form.aborted .wpcf7-response-output {
  border-color: var(--t-crimson) !important;
  background: #fde7ea;
  color: #8f1428;
}

/* ── 15. Inner-page banner ─────────────────────────────────────────────── */
.banner {
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(28px, 4vw, 44px);
}

.banner__inner {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.banner__inner::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--t-sage) 0 25%, var(--t-mustard) 25% 50%, var(--t-indigo) 50% 75%, var(--t-crimson) 75%);
}

.banner__copy {
  min-width: 0;
}

.banner__title {
  font-size: clamp(36px, 5.4vw, 68px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.banner__dek {
  max-width: 60ch;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 18px;
}

.banner__count {
  flex: none;
  display: grid;
  justify-items: end;
  text-align: right;
}

.banner__count b {
  font-family: var(--f-display);
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--acc);
}

.banner__count span {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── 16. Archive, search & card grids ──────────────────────────────────── */
.archive-main {
  padding-bottom: clamp(56px, 7vw, 96px);
}

.feat--list {
  margin-bottom: clamp(36px, 5vw, 56px);
}

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

.pagination {
  margin-top: 48px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--paper);
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, background-color 0.2s;
}

.pagination a.page-numbers:hover {
  border-color: var(--ink);
}

.pagination .page-numbers.current {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.pagination .page-numbers.dots {
  border: 0;
  background: none;
}

.no-results {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(36px, 6vw, 72px) 24px;
  border-radius: var(--r-xl);
  border: 1.5px dashed var(--line-2);
  background: var(--paper);
  text-align: center;
  color: var(--ink-2);
}

.no-results__num {
  font-family: var(--f-display);
  font-size: 96px;
  line-height: 1;
  color: var(--acc);
}

/* ── 17. Single ────────────────────────────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  height: 4px;
  pointer-events: none;
}

.admin-bar .reading-progress {
  top: 32px;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--acc) 0 10px, var(--sun) 10px 12px);
}

.single-main {
  padding-top: clamp(20px, 3vw, 40px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

/* Two columns from the very top: picture, headline and story on the left,
   the sidebar on the right */
.article-head {
  display: grid;
  gap: 28px;
  margin-bottom: clamp(32px, 4vw, 44px);
  padding-bottom: clamp(28px, 3.4vw, 36px);
  border-bottom: 1.5px solid var(--ink);
}

.article-head__copy {
  min-width: 0;
}

.article-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-bottom: 18px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-3);
}

.article-head__meta > * + *::before {
  content: "·";
  margin-right: 18px;
  color: var(--line-2);
}

.article-head__meta .pill + *::before {
  display: none;
}

.article-head__title {
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.article-head__dek {
  max-width: 60ch;
  margin-top: 18px;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
}

.article-hero {
  position: relative;
  margin: 0;
}

.article-hero__img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.article-hero__caption {
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--ink-3);
}

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 800px) 340px;
  justify-content: space-between;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.single-col {
  min-width: 0;
}

.single-article {
  max-width: none;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1.5px solid var(--ink);
}

.article-tags__label {
  margin-right: 6px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.article-tags a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--bg-2);
  font-family: var(--f-mono);
  font-size: 12.5px;
  transition: background-color 0.2s, color 0.2s;
}

.article-tags a::before {
  content: "#";
  margin-right: 2px;
  color: var(--acc);
}

.article-tags a:hover {
  background: var(--ink);
  color: #fff;
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: none;
  margin-top: 40px;
}

.article-nav__side {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 20px 22px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.article-nav__side:hover {
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: translateY(-2px);
}

.article-nav__side--next {
  text-align: right;
}

.article-nav__label {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-3);
}

.article-nav__link {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}

.single-aside {
  display: grid;
  gap: 16px;
}

.aside-panel {
  padding: 22px 22px 8px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.aside-panel .mini-label {
  margin-bottom: 8px;
}

.aside-panel .nrow__title {
  font-size: 16.5px;
}

.aside-panel .nrow__n {
  font-size: 24px;
  min-width: 30px;
}

/* "The number, explained": key figure + notes table (jn_* post meta) */
.numcard {
  padding: 22px;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
}

.numcard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.numcard .mini-label {
  margin-bottom: 0;
}

.numcard__day {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: var(--r-xs);
  background: var(--ink);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
}

.numcard__figure {
  font-family: var(--f-display);
  font-size: clamp(40px, 3.6vw, 52px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--acc);
  overflow-wrap: anywhere;
}

.numcard__label {
  margin-top: 8px;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--ink-2);
}

.numcard__table {
  margin: 18px 0 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--paper);
  overflow: hidden;
}

.numcard__row + .numcard__row {
  border-top: 1px solid var(--line-2);
}

.numcard__table dt {
  padding: 7px 14px;
  background: var(--bg-2);
  border-bottom: 1px dashed var(--line-2);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.numcard__row:first-child dt {
  background: var(--sun);
}

.numcard__table dd {
  margin: 0;
  padding: 11px 14px 13px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

.aside-cta {
  position: relative;
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 26px 24px;
  border-radius: var(--r-lg);
  background: var(--tone);
  color: var(--tone-ink);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.aside-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(29, 27, 44, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 27, 44, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
}

.aside-cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.aside-cta__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  transform: rotate(-8deg);
}

.aside-cta__eyebrow {
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.aside-cta__title {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.aside-cta__text {
  font-size: 15px;
  line-height: 1.5;
}

.aside-cta__btn {
  margin-top: 6px;
}

.aside-tool {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color 0.2s;
}

.aside-tool:hover {
  border-color: var(--ink);
}

.aside-tool__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--t-sage);
}

.aside-tool b {
  display: block;
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 500;
}

.aside-tool small {
  display: block;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink-3);
}

.aside-tool .arrow {
  margin-left: auto;
  flex: none;
}

.related {
  margin-top: clamp(64px, 8vw, 104px);
}

/* Long-form prose */
.article-content {
  font-size: 19px;
  line-height: 1.72;
  color: #2a2738;
}

.article-content > * + * {
  margin-top: 1.3em;
}

.article-content > :first-child {
  margin-top: 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin-top: 2em;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.article-content h2 {
  font-size: clamp(28px, 3vw, 36px);
}

.article-content h3 {
  font-size: clamp(23px, 2.4vw, 27px);
}

.article-content h4 {
  font-size: 20px;
}

.article-content h2 + *,
.article-content h3 + *,
.article-content h4 + * {
  margin-top: 0.7em;
}

.article-content a {
  color: var(--acc);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-content a:hover {
  color: var(--ink);
  text-decoration-thickness: 2px;
}

.article-content strong,
.article-content b {
  font-weight: 600;
  color: var(--ink);
}

.article-content ul,
.article-content ol {
  padding-left: 0;
}

.article-content li {
  position: relative;
  padding-left: 34px;
}

.article-content li + li {
  margin-top: 0.5em;
}

.article-content ul > li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0.7em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--sun);
  border: 1.5px solid var(--ink);
}

.article-content ol {
  counter-reset: ol;
}

.article-content ol > li {
  counter-increment: ol;
}

.article-content ol > li::before {
  content: counter(ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.22em;
  font-family: var(--f-mono);
  font-size: 0.72em;
  font-weight: 600;
  color: var(--acc);
}

.article-content blockquote {
  position: relative;
  margin-inline: 0;
  padding: 28px 30px 28px 34px;
  border-radius: var(--r-lg);
  background: var(--bg-2);
  font-family: var(--f-display);
  font-size: clamp(21px, 2.2vw, 25px);
  line-height: 1.4;
  color: var(--ink);
}

.article-content blockquote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 5px;
  border-radius: 0 4px 4px 0;
  background: var(--acc);
}

.article-content blockquote p + p {
  margin-top: 0.6em;
}

.article-content blockquote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-style: normal;
  color: var(--ink-3);
}

.article-content .wp-block-pullquote {
  padding: 0;
  border: 0;
}

.article-content figure {
  margin-inline: 0;
}

.article-content img {
  border-radius: var(--r);
}

.article-content figcaption,
.article-content .wp-caption-text {
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
}

.article-content hr {
  height: 0;
  margin-block: 2.6em;
  border: 0;
  text-align: center;
}

.article-content hr::before {
  content: "+ − × ÷";
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.6em;
  color: var(--ink-3);
}

.article-content code,
.article-content kbd {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bg-2);
  font-family: var(--f-mono);
  font-size: 0.82em;
}

.article-content pre {
  padding: 20px 22px;
  border-radius: var(--r);
  background: var(--ink);
  color: #efeaf8;
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: auto;
}

.article-content pre code {
  padding: 0;
  background: none;
}

.article-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--f-mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--paper);
}

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

.article-content th,
.article-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.article-content th {
  background: var(--bg-2);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-content tr:last-child td {
  border-bottom: 0;
}

.article-content tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--bg-2) 35%, transparent);
}

.article-content .alignleft {
  float: left;
  margin: 0.4em 1.4em 1em 0;
}

.article-content .alignright {
  float: right;
  margin: 0.4em 0 1em 1.4em;
}

.article-content .aligncenter {
  margin-inline: auto;
}

.article-content iframe,
.article-content video {
  max-width: 100%;
  border-radius: var(--r);
}

/* ── 18. Page & 404 ────────────────────────────────────────────────────── */
.page-main {
  padding-bottom: clamp(56px, 7vw, 96px);
}

.static-page {
  padding: clamp(24px, 4vw, 52px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.page-hero {
  margin: 0 0 36px;
}

.page-hero__img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
}

.error-main {
  padding-block: clamp(32px, 5vw, 64px) clamp(56px, 7vw, 96px);
}

.error-hero {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: clamp(36px, 6vw, 72px) clamp(20px, 4vw, 48px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.error-hero__code {
  display: flex;
  gap: 10px;
}

.error-hero__code span {
  display: grid;
  place-items: center;
  width: clamp(76px, 12vw, 120px);
  aspect-ratio: 4 / 5;
  border-radius: var(--r);
  font-family: var(--f-display);
  font-size: clamp(64px, 10vw, 104px);
  font-weight: 500;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}

.error-hero__code span:nth-child(1) {
  background: var(--t-sage);
  transform: rotate(-5deg);
}

.error-hero__code span:nth-child(2) {
  background: var(--t-mustard);
  transform: translateY(-8px);
}

.error-hero__code span:nth-child(3) {
  background: var(--t-indigo);
  color: #fff;
  transform: rotate(5deg);
}

.error-hero__title {
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.error-hero__dek {
  max-width: 54ch;
  color: var(--ink-2);
}

.error-recent {
  margin-top: 40px;
  padding: 24px 24px 8px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--paper);
}

.error-recent .mini-label {
  margin-bottom: 8px;
}

/* ── 19. Footer ────────────────────────────────────────────────────────── */
.site-footer {
  padding-bottom: 24px;
}

.footer-panel {
  position: relative;
  padding: clamp(32px, 4.4vw, 56px) clamp(24px, 4.4vw, 56px) 24px;
  border-radius: var(--r-xl);
  background: var(--ink);
  color: #efeaf8;
  overflow: hidden;
  isolation: isolate;
}

.footer-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(200deg, #000, transparent 60%);
  mask-image: linear-gradient(200deg, #000, transparent 60%);
}

.footer-panel__digits {
  position: absolute;
  right: -20px;
  bottom: 40px;
  z-index: -1;
  font-family: var(--f-display);
  font-size: clamp(80px, 12vw, 180px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  pointer-events: none;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr)) minmax(0, 1.1fr);
  gap: 36px clamp(24px, 3vw, 48px);
}

.footer-brand {
  display: grid;
  gap: 18px;
  justify-items: start;
  align-content: start;
}

/* The site logo is made for a light background, so it sits on a paper chip
   in the dark footer. A dedicated footer logo (Customizer → Footer) is
   expected to be a light version and goes straight onto the dark panel. */
.footer-brand__logo {
  display: inline-flex;
  padding: 12px 18px;
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: 3px 3px 0 #000;
}

.footer-brand__logo--own {
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.footer-brand__logo img,
.footer-logo-img {
  width: auto;
  height: 50px;
  max-width: 260px;
  object-fit: contain;
}

.footer-logo-text {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
}

.footer-brand__desc {
  max-width: 38ch;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(239, 234, 248, 0.72);
}

.footer-brand .btn--sun {
  box-shadow: 3px 3px 0 #000;
  border-color: #000;
}

.footer-col__title {
  margin-bottom: 16px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sun);
}

.footer-col__list {
  display: grid;
  gap: 10px;
}

.footer-col__list a {
  font-size: 16px;
  color: rgba(239, 234, 248, 0.82);
  transition: color 0.2s;
}

.footer-col__list a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-col__text {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(239, 234, 248, 0.68);
}

.footer-disclaimer {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(239, 234, 248, 0.5);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: rgba(239, 234, 248, 0.6);
}

.footer-copy a:hover {
  color: #fff;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #efeaf8;
  transition: background-color 0.2s, color 0.2s;
}

.to-top:hover {
  background: var(--sun);
  border-color: var(--sun);
  color: var(--ink);
}

/* ── 20. Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .masthead__link span {
    display: none;
  }

  .tool {
    grid-template-columns: 1fr;
  }

  .tool__fact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .fact__head {
    grid-column: 1 / -1;
  }

  .footer-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1024px) {
  .masthead__nav,
  .masthead__link {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__side {
    padding-bottom: 6px;
  }

  .nlist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }

  .nlist--aside {
    grid-template-columns: 1fr;
  }

  .more {
    grid-template-columns: 1fr;
  }

  .spot {
    position: relative;
    top: 0;
  }

  .single-layout {
    grid-template-columns: 1fr;
  }

  .single-article,
  .article-nav {
    max-width: none;
  }

  .single-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aside-panel {
    grid-row: span 2;
  }

  /* One column: lift "The number, explained" up between the headline and
     the story; the newsletter card and calculator link follow the story. */
  .single-layout:has(.numcard) {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .single-layout:has(.numcard) .single-col,
  .single-layout:has(.numcard) .single-aside {
    display: contents;
  }

  .single-layout:has(.numcard) .article-head {
    order: 1;
  }

  .single-layout:has(.numcard) .numcard {
    order: 2;
    margin-bottom: clamp(32px, 4vw, 44px);
  }

  .single-layout:has(.numcard) .single-article {
    order: 3;
  }

  .single-layout:has(.numcard) > * > * {
    min-width: 0;
    max-width: 100%;
  }

  .single-layout:has(.numcard) .article-nav {
    order: 4;
  }

  .single-layout:has(.numcard) .aside-cta {
    order: 5;
    margin-top: 40px;
  }

  .single-layout:has(.numcard) .aside-tool {
    order: 6;
    margin-top: 16px;
  }

  .topics__inner {
    grid-template-columns: 1fr;
  }

  .topics__title {
    max-width: 18ch;
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .tool__grid {
    grid-template-columns: 1fr;
  }

  .signup__panel {
    grid-template-columns: 1fr;
  }

  .signup__panel::before {
    inset: 0;
  }

  .signup__deco {
    display: none;
  }

  .signup__facts {
    padding-bottom: 0;
  }

  .feat--wide .feat__cap,
  .feat--list .feat__cap {
    margin-top: -56px;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 16.5px;
  }

  .masthead {
    padding-block: 10px;
  }

  .masthead__bar {
    min-height: 60px;
    padding: 8px 8px 8px 18px;
    gap: 12px;
  }

  .masthead__logo img,
  .masthead__logo-img {
    height: var(--logo-h-m, 34px);
    max-width: 180px;
  }

  .footer-brand__logo img,
  .footer-logo-img {
    max-width: 220px;
  }

  .masthead__sub {
    display: none;
  }

  .ticker__flag {
    display: none;
  }

  .daybar__title {
    flex: 1 1 auto;
  }

  .daybar__facts {
    width: 100%;
    margin-left: 0;
    gap: 8px 16px;
    font-size: 12px;
  }

  .daybar__facts li + li {
    padding-left: 16px;
  }

  .daybar__facts .daybar__progress {
    flex-basis: 100%;
    padding-left: 0;
    border-left: 0;
  }

  .daybar__track {
    width: 64px;
  }

  .feat__cap {
    margin: -48px 10px 0;
    padding: 20px 20px 18px;
  }

  .feat__frame,
  .feat__media {
    border-radius: var(--r);
  }

  .feat__badge {
    top: 16px;
    right: 16px;
  }

  .long .feat__cap::after {
    font-size: 48px;
    top: 12px;
    right: 16px;
  }

  .long .feat__title {
    padding-right: 48px;
  }

  .nlist {
    grid-template-columns: 1fr;
  }

  .nrow {
    grid-template-columns: auto minmax(0, 1fr) 84px;
  }

  /* Hero list: drop the numbers so the long headlines get the room */
  .hero .nrow {
    grid-template-columns: minmax(0, 1fr) 84px;
  }

  .hero .nrow__n {
    display: none;
  }

  .band__inner {
    flex-wrap: wrap;
    padding-block: 24px;
  }

  .band__icon {
    width: 52px;
    height: 52px;
  }

  .band__copy {
    flex-basis: calc(100% - 80px);
  }

  .band .btn {
    width: 100%;
  }

  .tool__calc {
    border-radius: var(--r-lg);
  }

  .tool__result {
    padding: 22px 18px;
  }

  .tool__fact {
    display: flex;
    border-radius: var(--r-lg);
  }

  .price-input {
    flex-wrap: wrap;
  }

  .price-input__box {
    width: 100%;
  }

  .more__grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .topics__list {
    grid-template-columns: 1fr;
  }

  .topics__seven {
    font-size: 180px;
    top: -30px;
  }

  .signup__panel {
    border-radius: var(--r-lg);
    box-shadow: 5px 5px 0 var(--ink);
  }

  .signup .form-options .wpcf7-checkbox,
  .signup .form-options .wpcf7-radio {
    grid-template-columns: 1fr;
  }

  .banner__inner {
    flex-direction: column;
    align-items: flex-start;
    border-radius: var(--r-lg);
  }

  .banner__count {
    justify-items: start;
    text-align: left;
    grid-auto-flow: column;
    align-items: baseline;
    gap: 10px;
  }

  .article-head__copy {
    text-align: left;
  }

  .article-head__meta {
    justify-content: flex-start;
    gap: 8px 14px;
  }

  .article-head__meta > * + *::before {
    display: none;
  }

  .article-hero__img {
    border-radius: var(--r-lg);
  }

  .article-content {
    font-size: 18px;
  }

  /* Wide data tables scroll sideways instead of widening the page */
  .article-content > table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-nav__side--next {
    text-align: left;
  }

  .single-aside {
    grid-template-columns: 1fr;
  }

  .aside-panel {
    grid-row: auto;
  }

  .static-page {
    padding: 20px;
    border-radius: var(--r-lg);
  }

  .footer-panel {
    border-radius: var(--r-lg);
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-col--note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .seg__btn {
    font-size: 13px;
  }

  .tool__big {
    font-size: 44px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .error-hero__code {
    gap: 6px;
  }
}

/* ==========================================================================
   21. Homepage layouts
   Picked in Customizer → Homepage layout; <body> carries .layout-<slug>.
   ========================================================================== */

/* ── 21a. Hero · Cover ─────────────────────────────────────────────────── */
.cover-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: clamp(24px, 3vw, 36px);
  padding-bottom: 22px;
  border-bottom: 1.5px solid var(--ink);
}

.cover-head__main {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.cover-head__title {
  font-size: clamp(44px, 7.4vw, 104px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.cover-head__title em {
  color: var(--acc);
  font-weight: 400;
}

.cover-head__stats {
  display: flex;
}

.cover-head__stats li {
  display: grid;
  gap: 4px;
  padding: 0 0 4px 24px;
  margin-left: 24px;
  border-left: 1px dashed var(--line-2);
}

.cover-head__stats b {
  font-family: var(--f-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.cover-head__stats small {
  font-size: 0.5em;
  color: var(--ink-3);
}

.cover-head__stats span {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

@media (min-width: 901px) {
  .feat--cover {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .feat--cover .feat__frame {
    grid-column: 1 / -1;
    grid-row: 1;
    border-radius: var(--r-xl);
  }

  .feat--cover .feat__media {
    aspect-ratio: 21 / 9;
  }

  .feat--cover .feat__cap {
    grid-column: 1 / span 6;
    grid-row: 1;
    align-self: end;
    margin: 0 0 28px 28px;
    padding: 30px 32px 24px;
    box-shadow: var(--shadow-lg);
  }

  .feat--cover .feat__title {
    font-size: clamp(28px, 2.8vw, 40px);
  }
}

.cover-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: clamp(28px, 3vw, 40px);
}

.ccard {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: start;
}

.ccard__media {
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

.ccard__body {
  display: grid;
  gap: 8px;
}

.ccard__n {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--acc);
}

.ccard__title {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.ccard__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ccard .pill {
  position: relative;
  z-index: 2;
}

.ccard:hover .ccard__media img {
  transform: scale(1.04);
}

.ccard:hover .ccard__title a {
  color: var(--acc);
}

/* ── 21b. Hero · Split ─────────────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
}

.split__copy {
  position: relative;
  display: grid;
  gap: 20px;
  justify-items: start;
  padding: clamp(26px, 3.6vw, 48px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  box-shadow: var(--shadow);
}

.split__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.split__h1 {
  font-family: var(--f-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.split__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--ink-3);
}

.split__title {
  font-size: clamp(34px, 4.4vw, 60px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.split__title a:hover {
  color: var(--acc);
}

.split__dek {
  max-width: 52ch;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
}

.split__visual {
  position: relative;
}

.split__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}

.yearring {
  position: absolute;
  left: -26px;
  bottom: -26px;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--paper) 78%, transparent 79%),
    conic-gradient(var(--acc) calc(var(--p) * 1%), var(--bg-3) 0);
  box-shadow: var(--shadow);
  transform: rotate(-6deg);
}

.yearring b {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.yearring small {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.split-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 60px);
  border-top: 1.5px solid var(--ink);
}

.scol {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px 22px 4px;
}

.scol:first-child {
  padding-left: 0;
}

.scol + .scol {
  border-left: 1px dashed var(--line-2);
}

.scol__n {
  font-family: var(--f-display);
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--acc);
  transition: color 0.2s;
}

.scol__title {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.24;
}

.scol__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.scol .pill {
  position: relative;
  z-index: 2;
}

.scol:hover .scol__title a,
.scol:hover .scol__n {
  color: var(--acc);
}

/* ── 21c. Hero · Mosaic ────────────────────────────────────────────────── */
.mosaic {
  position: relative;
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--r-xl);
  background: var(--ink);
  color: #efeaf8;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
}

.mosaic::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}

.mosaic .daybar {
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.mosaic .daybar__num {
  background: var(--sun);
  color: var(--ink);
}

.mosaic .daybar__title,
.mosaic .daybar__facts b {
  color: #fff;
}

.mosaic .daybar__facts {
  color: rgba(239, 234, 248, 0.65);
}

.mosaic .daybar__facts li + li {
  border-left-color: rgba(255, 255, 255, 0.18);
}

.mosaic .daybar__track {
  background: rgba(255, 255, 255, 0.14);
}

.mosaic .daybar__track i {
  background: var(--sun);
}

.mosaic__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.otile {
  position: relative;
  aspect-ratio: 5 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #2b2840;
}

.otile--lead {
  grid-row: span 2;
  aspect-ratio: auto;
}

.otile .otile__media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.otile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 18, 32, 0) 25%, rgba(20, 18, 32, 0.88) 100%);
  pointer-events: none;
}

.otile__body {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  color: #fff;
}

.otile--lead .otile__body {
  gap: 12px;
  padding: 28px 30px;
}

.otile__n {
  justify-self: start;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
}

.otile__title {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.22;
  text-wrap: balance;
}

.otile--lead .otile__title {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.otile__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.otile__meta {
  display: none;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.otile--lead .otile__meta {
  display: flex;
}

.otile .pill {
  position: relative;
  z-index: 3;
  color: #fff;
}

.otile .pill:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.otile:hover .otile__media img {
  transform: scale(1.05);
}

/* ── 21d. Hero · Index ─────────────────────────────────────────────────── */
.index-head {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(12px, 2vw, 24px) 0 clamp(28px, 4vw, 44px);
  text-align: center;
}

.index-head__title {
  max-width: 17ch;
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.index-head__title em {
  font-weight: 400;
  color: var(--acc);
}

.index-head__sub {
  max-width: 46ch;
  font-size: 18px;
  color: var(--ink-2);
}

.index-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 900px;
  margin-top: 14px;
}

.index-stats li {
  position: relative;
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 22px 16px 20px;
  border-radius: var(--r-lg);
  background-color: var(--tone);
  background-image:
    linear-gradient(rgba(29, 27, 44, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 27, 44, 0.05) 1px, transparent 1px);
  background-size: 18px 18px;
  color: var(--tone-ink);
  box-shadow: var(--shadow-sm);
}

.index-stats li:nth-child(1) {
  transform: rotate(-1.2deg);
}

.index-stats li:nth-child(3) {
  transform: rotate(1.2deg);
}

.index-stats b {
  font-family: var(--f-display);
  font-size: clamp(40px, 4.6vw, 60px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.index-stats span {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hcard {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--tone);
  color: var(--tone-ink);
  box-shadow: var(--shadow-lg);
}

.hcard__media {
  aspect-ratio: auto;
  min-height: 420px;
}

.hcard__body {
  display: grid;
  gap: 16px;
  align-content: center;
  justify-items: start;
  padding: clamp(24px, 3.4vw, 44px);
}

.hcard__title {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hcard__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hcard__dek {
  font-size: 17px;
  line-height: 1.55;
  opacity: 0.88;
}

.hcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.hcard .pill {
  position: relative;
  z-index: 2;
}

.hcard .pill:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.hcard:hover .hcard__media img {
  transform: scale(1.04);
}

.nlist--index {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  margin-top: clamp(24px, 3vw, 36px);
}

/* ── 21e. Long reads side by side (Split, Mosaic) ─────────────────────── */
.long--duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 36px);
  align-items: start;
}

.feat--duo .feat__cap {
  margin: -70px 20px 0;
}

/* ── 21f. Newsletter panel variants ────────────────────────────────────── */
/* Solo: a narrow centred card, no pitch column */
.signup--solo .signup__panel {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin-inline: auto;
}

.signup--solo .signup__panel::before {
  inset: 0;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 50%);
  mask-image: linear-gradient(180deg, #000, transparent 50%);
}

.signup--solo .signup__deco {
  display: none;
}

.signup--solo .signup__card {
  padding: 0;
  border: 0;
  background: none;
}

.signup__solo-head {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin-bottom: 30px;
  text-align: center;
}

.signup__solo-head .shead__eyebrow {
  margin: 12px 0 8px;
}

.signup__solo-head .signup__title {
  font-size: clamp(28px, 3.4vw, 40px);
}

.signup__solo-head .signup__sub {
  margin-top: 10px;
}

.signup__solo-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sun);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-8deg);
}

/* Stacked: pitch on top, facts in a row, wide form card below */
.signup--stacked .signup__panel {
  grid-template-columns: 1fr;
  gap: 32px;
}

.signup--stacked .signup__panel::before {
  inset: 0;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 40%);
  mask-image: linear-gradient(180deg, #000, transparent 40%);
}

.signup--stacked .signup__deco {
  display: none;
}

.signup--stacked .signup__pitch {
  display: grid;
  justify-items: center;
  text-align: center;
}

.signup--stacked .signup__title {
  max-width: 20ch;
}

.signup--stacked .signup__facts {
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  gap: 16px 36px;
  padding-bottom: 0;
  text-align: left;
}

@media (min-width: 901px) {
  .signup--stacked .wpcf7-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 32px;
    align-items: start;
  }

  .signup--stacked .form-options {
    grid-row: span 2;
  }

  .signup--stacked .form-options .wpcf7-checkbox,
  .signup--stacked .form-options .wpcf7-radio {
    grid-template-columns: 1fr;
  }

  .signup--stacked .wpcf7-response-output {
    grid-column: 1 / -1;
  }
}

/* Dark: ink panel, short pitch, light form card */
.signup--dark .signup__panel {
  background: var(--ink);
  border-color: var(--ink);
  color: #efeaf8;
  box-shadow: 8px 8px 0 var(--sun);
  align-items: center;
}

.signup--dark .signup__panel::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.signup--dark .signup__title {
  color: #fff;
  font-size: clamp(34px, 4.6vw, 60px);
}

.signup--dark .signup__sub,
.signup--dark .shead__eyebrow {
  color: rgba(239, 234, 248, 0.7);
}

.signup--dark .shead__num {
  background: var(--sun);
  color: var(--ink);
}

.signup--dark .signup__deco {
  color: rgba(239, 234, 248, 0.5);
}

.signup--dark .signup__card {
  background: var(--paper);
  border-color: transparent;
  color: var(--ink);
}

/* Swap: form on the left, pitch on the right, sun-yellow panel */
.signup--swap .signup__panel {
  background: var(--sun);
}

.signup--swap .signup__panel::before {
  inset: 0 0 0 50%;
  background-image:
    linear-gradient(rgba(29, 27, 44, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 27, 44, 0.07) 1px, transparent 1px);
}

.signup--swap .signup__card {
  order: -1;
  background: var(--paper);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.signup--swap .signup__deco {
  left: auto;
  right: clamp(28px, 4.4vw, 56px);
  color: var(--ink-2);
}

.signup--swap .signup__sub,
.signup--swap .signup__facts small {
  color: var(--ink-2);
}

.signup--swap .signup__icon {
  background: var(--paper);
}

/* ── 21g. Per-layout cosmetics ─────────────────────────────────────────── */

/* Cover: centred section heads, borderless cards, ink fact card */
.layout-cover .shead:not(.shead--stack) {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  border-bottom: 0;
  padding-bottom: 0;
}

.layout-cover .shead:not(.shead--stack)::after {
  content: "+ − × ÷";
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.6em;
  color: var(--ink-3);
}

.layout-cover .shead:not(.shead--stack) .shead__eyebrow {
  justify-content: center;
}

.layout-cover .shead:not(.shead--stack) .shead__side {
  justify-items: center;
}

.layout-cover .card {
  border: 0;
  background: none;
  box-shadow: none;
}

.layout-cover .card:hover {
  box-shadow: none;
}

.layout-cover .card__media {
  margin: 0;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.layout-cover .card__body {
  padding: 16px 4px 0;
}

.layout-cover .tool__fact {
  background: var(--ink);
}

.layout-cover .topics {
  background: var(--t-sage);
}

/* Split: outlined section numbers, paper topics band, mustard-topped cards */
.layout-split .shead__eyebrow .shead__num {
  height: auto;
  padding: 0;
  background: none;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
  font-family: var(--f-display);
  font-size: 46px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.layout-split .topics {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}

.layout-split .topic:not(:last-child) {
  background: var(--bg);
}

.layout-split .card {
  border-top: 5px solid var(--t-mustard);
}

/* Mosaic: dashed heads, hard-shadow cards, crimson fact card, sun band */
.layout-mosaic .shead {
  border-bottom: 2px dashed var(--ink);
}

.layout-mosaic .shead--stack {
  border-bottom: 0;
}

.layout-mosaic .shead__num {
  background: var(--t-crimson);
}

.layout-mosaic .mosaic .shead__num {
  background: var(--sun);
}

.layout-mosaic .card {
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.layout-mosaic .card:hover {
  box-shadow: 6px 7px 0 var(--ink);
}

.layout-mosaic .card__foot {
  border-top-color: var(--ink);
}

.layout-mosaic .tool__fact {
  background: var(--t-crimson);
}

.layout-mosaic .band {
  background: var(--sun);
}

.layout-mosaic .band::before {
  display: none;
}

/* Index: accent section numbers, italic titles, accent-topped cards, ink band */
.layout-index .shead {
  border-bottom: 1px solid var(--line-2);
}

.layout-index .shead--stack {
  border-bottom: 0;
}

.layout-index .shead__num {
  background: var(--acc);
}

.layout-index .shead__title {
  font-style: italic;
  font-weight: 400;
}

.layout-index .card {
  border-top: 5px solid var(--acc);
}

.layout-index .band {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.layout-index .band::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
}

.layout-index .band__text {
  color: rgba(255, 255, 255, 0.7);
}

.layout-index .band__icon {
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--sun);
}

.layout-index .band .btn--sun {
  box-shadow: 3px 3px 0 #000;
}

/* Spotlight on the right (Cover, Index) / full width on top (Split) */
@media (min-width: 1025px) {
  .layout-cover .more,
  .layout-index .more {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }

  .layout-cover .spot,
  .layout-index .spot {
    order: 2;
  }

  .layout-split .more {
    grid-template-columns: 1fr;
  }

  .layout-split .spot {
    position: relative;
    top: 0;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .layout-split .spot__media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 360px;
  }

  .layout-split .spot__cap {
    align-content: center;
    padding: 36px;
  }

  .layout-split .more__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Fact card before the calculator (Split, Index) */
@media (min-width: 1181px) {
  .layout-split .tool,
  .layout-index .tool {
    grid-template-columns: 340px minmax(0, 1fr);
  }

  .layout-split .tool__fact,
  .layout-index .tool__fact {
    order: -1;
  }
}

/* ── 21h. Layout responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cover-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split__visual {
    order: -1;
  }

  .split__media {
    aspect-ratio: 5 / 3;
  }

  .yearring {
    left: auto;
    right: 16px;
    bottom: -30px;
    width: 104px;
    height: 104px;
  }

  .yearring b {
    font-size: 26px;
  }

  .split-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scol:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .mosaic__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .otile--lead {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 5 / 3;
  }

  .hcard {
    grid-template-columns: 1fr;
  }

  .hcard__media {
    aspect-ratio: 5 / 3;
    min-height: 0;
  }

  .layout-split .more__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .signup--stacked .signup__facts {
    grid-template-columns: 1fr;
    justify-content: start;
  }

  .signup--swap .signup__panel::before {
    inset: 0;
  }

  .signup--swap .signup__card {
    order: 2;
  }
}

@media (max-width: 760px) {
  .cover-head__stats {
    width: 100%;
  }

  .cover-head__stats li {
    flex: 1;
    padding-left: 14px;
    margin-left: 14px;
  }

  .cover-head__stats li:first-child {
    padding-left: 0;
    margin-left: 0;
    border-left: 0;
  }

  .cover-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ccard {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 14px;
    padding-block: 16px;
    border-top: 1px dashed var(--line-2);
  }

  .ccard__media {
    grid-column: 2;
    grid-row: 1;
    aspect-ratio: 4 / 3;
    border-radius: var(--r-sm);
  }

  .ccard__n {
    display: none;
  }

  .ccard__title {
    font-size: 18px;
  }

  .split-list {
    grid-template-columns: 1fr;
  }

  .scol,
  .scol + .scol {
    padding: 16px 0;
    border-left: 0;
    border-top: 1px dashed var(--line-2);
  }

  .scol:first-child {
    border-top: 0;
  }

  .scol__n {
    display: none;
  }

  .mosaic {
    padding: 16px;
    border-radius: var(--r-lg);
  }

  .mosaic__grid {
    grid-template-columns: 1fr;
  }

  .otile--lead .otile__body {
    padding: 18px 20px;
  }

  .otile--lead .otile__title {
    font-size: 26px;
  }

  .index-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .index-stats li,
  .index-stats li:nth-child(n) {
    grid-auto-flow: column;
    justify-content: space-between;
    align-items: baseline;
    padding: 16px 20px;
    transform: none;
  }

  .index-stats b {
    font-size: 40px;
  }

  .hcard {
    border-radius: var(--r-lg);
  }

  .nlist--index {
    grid-template-columns: 1fr;
  }

  .feat--duo .feat__cap {
    margin: -48px 10px 0;
  }

  .layout-split .shead__eyebrow .shead__num {
    font-size: 36px;
  }

  .layout-split .more__grid {
    grid-template-columns: 1fr;
  }
}
