/* ==========================================================================
   Sovereign Terminal — main.css
   Paper ground, black grotesk headlines, one hot accent, mono labels.
   Geist (headlines, UI) · Geist Mono (labels, figures) · Source Serif 4 (deks, prose)
   ========================================================================== */

/* ── 1. Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* Ground & surfaces */
  --bg: #f1efeb;
  --bg-rgb: 241, 239, 235;
  --bg-2: #e9e6e0;
  --surface: #ffffff;
  --surface-2: #f7f6f3;
  --ink: #0f0f0f;
  --ink-rgb: 15, 15, 15;
  --line: rgba(var(--ink-rgb), 0.1);
  --line-strong: rgba(var(--ink-rgb), 0.18);

  /* Text */
  --text: #111111;
  --text-2: #4b4945;
  --text-3: #8b8780;
  --text-prose: #2a2826;

  /* Accent — one colour, five strengths. --acc-panel fills the large
     accent surfaces (sign-up banner, accent card) a touch deeper. */
  --acc: #e94d14;
  --acc-rgb: 233, 77, 20;
  --acc-soft: #ff9f6a;
  --acc-deep: #c43c09;
  --acc-night: #6a1b03;
  --acc-panel: #d4440f;
  --on-acc: #ffffff;

  /* Market semantics */
  --up: #12895a;
  --down: #d93a2b;
  --down-rgb: 217, 58, 43;
  --warn: #c98a12;

  /* Type */
  --f-sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --f-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Layout */
  --wrap: 1280px;
  --gut: 28px;
  --r-xl: 26px;
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow: 0 30px 60px -34px rgba(40, 20, 5, 0.35);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ── 1b. Colour schemes ────────────────────────────────────────────────── */
/* Picked in Customizer → Colour scheme; printed as <html data-scheme="…">.
   "midnight" (Ember, the :root values above) prints no attribute. */

/* Mint */
:root[data-scheme="emerald"] {
  --acc: #138f69;
  --acc-rgb: 19, 143, 105;
  --acc-soft: #7fdcb9;
  --acc-deep: #0b6e50;
  --acc-night: #043a2a;
  --acc-panel: #0f7d5c;
}

/* Coral */
:root[data-scheme="sunset"] {
  --acc: #e6394b;
  --acc-rgb: 230, 57, 75;
  --acc-soft: #ff9ea6;
  --acc-deep: #be2335;
  --acc-night: #660d18;
  --acc-panel: #d12f41;
}

/* Cobalt */
:root[data-scheme="graphite"] {
  --acc: #2a50e6;
  --acc-rgb: 42, 80, 230;
  --acc-soft: #9fb2ff;
  --acc-deep: #1a3bc2;
  --acc-night: #0a185e;
  --acc-panel: #2446d4;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 110px;
  background: var(--bg);
}

body {
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 560px at 88% -4%, rgba(var(--acc-rgb), 0.13), transparent 62%),
    radial-gradient(700px 500px at -8% 18%, rgba(255, 255, 255, 0.7), transparent 60%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.site-main {
  flex: 1 0 auto;
  position: relative;
  isolation: isolate;
  overflow-x: clip;
}

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

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

ul,
ol {
  list-style: none;
}

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

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

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--f-sans);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

::selection {
  background: var(--acc);
  color: var(--on-acc);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

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

.icon {
  flex: none;
}

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

/* ── 3. Layout primitives ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.container--narrow {
  max-width: 900px;
}

.sec {
  padding-top: clamp(4rem, 8vw, 6.5rem);
}

/* Media wrappers produced by st_thumb() */
[class*="__media"],
.brief__thumb {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
}

[class*="__media"] img,
.brief__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease);
}

article:hover [class*="__media"] img,
li:hover > [class*="__media"] img,
li:hover > .brief__thumb img {
  transform: scale(1.045);
}

[class*="__media"][class*="--empty"],
.brief__thumb[class*="--empty"] {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(var(--acc-rgb), 0.22), transparent 60%),
    var(--bg-2);
}

.media__fallback {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0.75rem;
  text-align: center;
}

/* Hover underline shared by every headline link */
h1 a,
h2 a,
h3 a,
h4 a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 96%;
  background-repeat: no-repeat;
  transition: background-size 0.35s var(--ease), color 0.2s;
}
h1 a:hover,
h2 a:hover,
h3 a:hover,
h4 a:hover {
  background-size: 100% 1px;
}

/* Whole-card links: the headline link stretches over its positioned card */
.spot__title a::after,
.chain__title a::after,
.crew__title a::after,
.railcard__title a::after,
.pol__item-title a::after,
.post-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Line clamps */
.spot__title,
.chain__title,
.crew__title,
.railcard__title,
.brief__item-title,
.post-card__title,
.row__title,
.spot__headline {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* ── 4. Buttons, pills, meta, arrows, section heads ────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--f-sans);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

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

.btn--acc {
  background: var(--acc);
  color: var(--on-acc);
  box-shadow: 0 12px 24px -14px rgba(var(--acc-rgb), 0.9);
}
.btn--acc:hover {
  background: var(--acc-deep);
  color: #fff;
}

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

.btn--line {
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--line:hover {
  border-color: var(--ink);
}

.btn--sm {
  min-height: 40px;
  padding: 0 1.1rem;
  font-size: 0.85rem;
}

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

.round-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.round-btn:hover,
.round-btn[aria-expanded="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.round-btn--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.round-btn--ink:hover {
  background: var(--acc);
  border-color: var(--acc);
  color: var(--on-acc);
}

.link-u {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s, border-color 0.2s;
}
.link-u:hover {
  color: var(--acc-deep);
  border-color: var(--acc);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
}

.pill {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-family: var(--f-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pill:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.pill--acc {
  background: var(--acc);
  border-color: var(--acc);
  color: var(--on-acc);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.meta__date,
.meta__read,
.card__date {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
}

.meta__read::before {
  content: "·";
  margin-right: 0.75rem;
}

.arrow {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  transition: background 0.2s, color 0.2s, transform 0.3s var(--ease);
}
.arrow svg {
  width: 16px;
  height: 16px;
}
article:hover .arrow,
li:hover .arrow,
a:hover > .arrow {
  background: var(--acc);
  color: var(--on-acc);
  transform: rotate(45deg);
}

/* Section head: hairline, mono eyebrow, big title left; kicker/actions right */
.shead {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: end;
  gap: 1.5rem 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-strong);
}

.shead__eyebrow {
  display: block;
  margin-bottom: 0.9rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}

.shead__title {
  max-width: 17ch;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.shead__side {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.shead__kicker {
  flex: 1 1 260px;
  max-width: 44ch;
  font-family: var(--f-serif);
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--text-2);
}

.shead__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.shead__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid currentColor;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s;
}
.shead__more:hover {
  color: var(--acc-deep);
}

/* On the ink panel */
.shead--ink {
  border-top-color: rgba(255, 255, 255, 0.16);
}
.shead--ink .shead__eyebrow {
  color: rgba(255, 255, 255, 0.6);
}
.shead--ink .shead__title {
  color: #fff;
}
.shead--ink .shead__kicker {
  color: rgba(255, 255, 255, 0.68);
}
.shead--ink .shead__more {
  color: #fff;
}
.shead--ink .shead__more:hover {
  color: var(--acc);
}

/* Market semantics */
.is-up {
  color: var(--up);
}
.is-down {
  color: var(--down);
}
.is-flat {
  color: var(--text-3);
}

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

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

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

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

.masthead__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-height: 66px;
  padding: 8px 8px 8px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(var(--bg-rgb), 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  transition: background 0.3s, box-shadow 0.3s;
}

.masthead.is-stuck .masthead__bar {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 40px -24px rgba(40, 20, 5, 0.35);
}

.masthead__brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.masthead__logo,
.drawer__logo,
.footer-logo-link {
  display: inline-flex;
  align-items: center;
}

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

.site-logo,
.footer-logo-text {
  font-family: var(--f-sans);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.masthead__nav {
  justify-self: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.nav-list a {
  display: block;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.nav-list a:hover {
  color: var(--text);
  background: rgba(var(--ink-rgb), 0.06);
}

.nav-list .current-menu-item > a,
.nav-list .current-category-ancestor > a,
.nav-list .current-post-ancestor > a {
  background: var(--ink);
  color: #fff;
}

.masthead__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle__bar {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
}

.search-panel {
  margin-top: 10px;
}

.search-panel__form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 6px 6px 6px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-panel__icon {
  color: var(--text-3);
}

.search-panel__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 1rem;
  outline: none;
}

.search-panel__input::placeholder {
  color: var(--text-3);
}

/* ── 6. Rate band ──────────────────────────────────────────────────────── */
.ticker {
  margin-top: 14px;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.home .ticker {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.ticker__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 54px;
}

.ticker__flag {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ticker__asof {
  color: rgba(255, 255, 255, 0.55);
}

.ticker__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 0 0 rgba(var(--acc-rgb), 0.7);
  animation: st-pulse 2s infinite;
}

@keyframes st-pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--acc-rgb), 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(var(--acc-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--acc-rgb), 0); }
}

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

.ticker__track {
  display: inline-flex;
  white-space: nowrap;
}

.ticker__track.is-animating {
  animation: st-ticker 40s linear infinite;
}

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

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

.tick {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0 1.4rem;
  border-right: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.tick__sym {
  color: var(--text-3);
}

.tick__val {
  font-weight: 500;
  color: var(--text);
}

.tick__chg i {
  margin-right: 0.3rem;
  font-size: 0.6rem;
  font-style: normal;
}

.tick--idle {
  color: var(--text-3);
  border: none;
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track.is-animating {
    animation: none;
  }
  .ticker__viewport {
    overflow-x: auto;
  }
}

/* ── 7. Mobile drawer ──────────────────────────────────────────────────── */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  width: min(400px, 90vw);
  padding: 20px 24px 28px;
  background: var(--bg);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  overflow-y: auto;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.drawer__logo img,
.drawer__logo-img {
  height: 40px;
  width: auto;
}

.drawer__close {
  font-size: 1.4rem;
}

.drawer__eyebrow {
  margin-top: 2.2rem;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.nav-list--drawer {
  display: block;
  margin-top: 0.6rem;
  padding: 0;
  border: none;
  background: none;
  border-top: 1px solid var(--line-strong);
}

.nav-list--drawer a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

.nav-list--drawer a::after {
  content: "→";
  font-family: var(--f-mono);
  font-size: 1rem;
  color: var(--text-3);
}

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

.nav-list--drawer .current-menu-item > a {
  background: none;
  color: var(--acc-deep);
}

.drawer__foot {
  margin-top: auto;
  padding-top: 2rem;
}

.drawer__note {
  margin-bottom: 1rem;
  font-family: var(--f-serif);
  color: var(--text-2);
}

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(var(--ink-rgb), 0.35);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s;
}

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

/* ── 8. Hero ───────────────────────────────────────────────────────────── */
.hero {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

.hero__kicker {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  line-height: 1.55;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}

.hero__title {
  max-width: 10ch;
  margin-top: 1.6rem;
  font-size: clamp(3rem, 6.6vw, 5.9rem);
  font-weight: 600;
  line-height: 0.93;
  letter-spacing: -0.055em;
}

.hero__dek {
  max-width: 46ch;
  margin-top: 1.6rem;
  font-family: var(--f-mono);
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--text-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
}

/* Visual: callouts above the stage */
.hero__visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 62px auto;
}

.hero__visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4% -12% -14% 14%;
  background: radial-gradient(closest-side, rgba(var(--acc-rgb), 0.5), rgba(var(--acc-rgb), 0.16) 55%, transparent);
  filter: blur(26px);
  pointer-events: none;
}

.hero__callouts {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  justify-content: space-around;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.hero__callouts li {
  position: relative;
  height: 100%;
}

.hero__callouts li::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 1.45rem;
  bottom: 4px;
  width: 1px;
  background: var(--ink);
}

.hero__callouts li::after {
  content: "";
  position: absolute;
  left: calc(50% - 3.5px);
  bottom: -3px;
  z-index: 3;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 3px var(--bg);
}

/* Stage */
.spot__stage {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  aspect-ratio: 5 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 40px 70px -40px rgba(80, 30, 5, 0.55);
}

.spot__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s var(--ease), visibility 0s 0.7s;
}

.spot__slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s var(--ease);
}

.spot__media {
  position: absolute;
  inset: 0;
}

.spot__slide .spot__media img {
  transform: scale(1.06);
  transition: transform 7s linear;
}

.spot__slide.is-active .spot__media img {
  transform: scale(1);
}

.spot__cap {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  max-width: min(78%, 470px);
  padding: 0.95rem 1.1rem 1.05rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.spot__title {
  margin-top: 0.6rem;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.spot__open {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 48px;
  height: 48px;
  background: var(--acc);
  color: var(--on-acc);
}

/* Bar: counter · rule · tags */
.hero__bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}

.hero__count b {
  font-weight: 500;
  color: var(--text);
}

.hero__rule {
  flex: 0 1 260px;
  height: 1px;
  background: var(--line-strong);
}

.hero__tags {
  margin-left: auto;
}

.hero__tags i {
  margin: 0 0.6rem;
  font-style: normal;
  color: var(--text-3);
}

/* Index of the five */
.spot__index {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.spot__link {
  display: block;
  padding-bottom: 0.25rem;
}

.spot__bar {
  position: relative;
  display: block;
  height: 2px;
  background: var(--line);
  overflow: hidden;
}

.spot__bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--acc);
}

.spot__item.is-active .spot__bar i {
  width: 100%;
}

.spot.is-live .spot__item.is-active.is-running .spot__bar i {
  width: 0;
  animation: st-fill var(--spot-delay, 7s) linear forwards;
}

@keyframes st-fill {
  to { width: 100%; }
}

.spot__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
}

.spot__n {
  color: var(--text-2);
}

.spot__item.is-active .spot__n {
  color: var(--acc-deep);
}

.spot__headline {
  margin-top: 0.5rem;
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text-2);
  transition: color 0.2s;
}

.spot__item.is-active .spot__headline,
.spot__link:hover .spot__headline {
  color: var(--text);
}

/* ── 9. Stock — connected numbered cards ───────────────────────────────── */
.chain {
  --chain-gap: clamp(2.5rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--chain-gap);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.chain__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.3rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.chain__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Connector line + node in the gap to the next card */
.chain__card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: var(--chain-gap);
  height: 1px;
  background: var(--ink);
}

.chain__card:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: calc(50% - 9px);
  left: calc(100% + var(--chain-gap) / 2 - 9px);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--bg);
}

.chain__card:first-child::before {
  border: 5px solid var(--acc);
  background: #fff;
}

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

.chain__card--acc {
  background: var(--acc-panel);
  border-color: var(--acc-panel);
  color: var(--on-acc);
}

.chain__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.chain__n {
  font-family: var(--f-mono);
  font-size: 0.78rem;
}

.chain__title {
  margin-top: 1.5rem;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.chain__dek {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin-top: 0.65rem;
  font-family: var(--f-serif);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-2);
}

.chain__card--ink .chain__dek {
  color: rgba(255, 255, 255, 0.68);
}

.chain__card--acc .chain__dek {
  color: inherit;
  opacity: 0.8;
}

.chain__media {
  margin-top: auto;
  aspect-ratio: 5 / 3;
  border-radius: var(--r-sm);
}

.chain__dek + .chain__media {
  margin-top: 1.25rem;
}

.chain__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
}

.chain__card--ink .chip,
.chain__card--acc .chip {
  background: #fff;
  border-color: transparent;
  color: var(--ink);
}

.chain__card--ink .meta__date {
  color: rgba(255, 255, 255, 0.55);
}

.chain__card--acc .meta__date {
  color: inherit;
  opacity: 0.7;
}

/* ── 10. Tech — stat header + cards ────────────────────────────────────── */
.stats {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stats__lede {
  flex: 1 1 auto;
  max-width: 38ch;
  font-family: var(--f-serif);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-2);
}

.stat {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--line-strong);
}

.stat strong {
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: 0.82rem;
  line-height: 1.25;
  color: var(--text-2);
}

.crew {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.crew__card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s var(--ease);
}

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

.crew__media {
  aspect-ratio: 4 / 3;
}

.crew__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem 1.1rem 1.15rem;
}

.crew__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.crew__title {
  font-size: 1.02rem;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.crew__dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--acc);
}

.crew__meta {
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  line-height: 1.6;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
}

.crew__meta .meta__date {
  font-size: inherit;
}

.tech-sec__more {
  margin-top: 1.75rem;
}

/* ── 11. Market clock — 24h dial ───────────────────────────────────────── */
.clock {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--surface);
}

.clock__dial-wrap {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
  aspect-ratio: 1;
  container-type: inline-size;
}

.dial {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.dial__tracks circle {
  fill: none;
  stroke: rgba(var(--ink-rgb), 0.06);
  stroke-width: 9;
}

.dial__ticks line {
  stroke: var(--text-3);
  stroke-width: 1;
}

.dial__ticks line.is-major {
  stroke: var(--ink);
  stroke-width: 1.6;
}

.dial__arc {
  fill: none;
  stroke: rgba(var(--ink-rgb), 0.78);
  stroke-width: 9;
  stroke-linecap: round;
  transition: opacity 0.2s, stroke-width 0.2s;
}

.dial__arc.is-live {
  stroke: var(--acc);
}

.dial.has-focus .dial__arc {
  opacity: 0.15;
}

.dial.has-focus .dial__arc.is-focus {
  opacity: 1;
  stroke-width: 12;
}

.dial__hand line {
  stroke: var(--acc-deep);
  stroke-width: 2;
  stroke-linecap: round;
}

.dial__hand circle {
  fill: var(--acc);
  stroke: #fff;
  stroke-width: 3;
}

.dial__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.dial__label,
.dial__zone {
  font-family: var(--f-mono);
  font-size: max(9px, 2.2cqi);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
}

.dial__time {
  font-size: 7.2cqi;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.dial__zone {
  max-width: 24cqi;
  color: var(--text-2);
  overflow-wrap: anywhere;
}

.dial__hour {
  position: absolute;
  font-family: var(--f-mono);
  font-size: max(9px, 2.1cqi);
  color: var(--text-3);
}

.dial__hour--top {
  top: -0.2em;
  left: 50%;
  transform: translateX(-50%);
}
.dial__hour--bottom {
  bottom: -0.2em;
  left: 50%;
  transform: translateX(-50%);
}
.dial__hour--right {
  right: -0.4em;
  top: 50%;
  transform: translateY(-50%);
}
.dial__hour--left {
  left: -0.4em;
  top: 50%;
  transform: translateY(-50%);
}

.clock__side {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.clock__summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.clock__fig {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: var(--r-md);
  background: var(--bg);
}

.clock__label {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.clock__value {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.venues {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.venue {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 0.9rem 0.9rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.venue:hover,
.venue:focus-visible {
  border-color: var(--ink);
}

.venue__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.venue__code {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.venue__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--text-3);
}

.venue__city {
  margin-top: 0.55rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.venue__hours,
.venue__status {
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.03em;
  color: var(--text-3);
}

.venue__status {
  margin-top: 0.55rem;
  white-space: pre-line;
  color: var(--text-2);
}

.venue.is-open {
  border-color: rgba(var(--acc-rgb), 0.45);
  background: rgba(var(--acc-rgb), 0.06);
}

.venue.is-open .venue__dot {
  border-color: var(--acc);
  background: var(--acc);
  animation: st-pulse 2s infinite;
}

.venue.is-open .venue__status {
  color: var(--acc-deep);
}

.venue.is-break .venue__dot {
  border-color: var(--acc);
  background: var(--acc-soft);
}

.clock__note {
  grid-column: 1 / -1;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  line-height: 1.6;
  color: var(--text-3);
}

/* ── 12. Business — lead + numbered list ───────────────────────────────── */
.brief {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.brief--solo {
  grid-template-columns: minmax(0, 1fr);
  max-width: 860px;
}

.brief__media {
  aspect-ratio: 5 / 3;
  border-radius: var(--r-lg);
}

.brief__body {
  margin-top: 1.25rem;
}

.brief__title {
  margin-top: 0.85rem;
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.brief__dek {
  max-width: 60ch;
  margin-top: 0.8rem;
  font-family: var(--f-serif);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-2);
}

.brief__list {
  border-top: 1px solid var(--line-strong);
}

.brief__item {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 128px;
  align-items: start;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.brief__n {
  padding-top: 0.2rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--acc-deep);
}

.brief__item-title {
  font-size: 1.04rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.brief__text .meta__date {
  display: block;
  margin-top: 0.55rem;
}

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

/* ── 13. Politics — ink panel ──────────────────────────────────────────── */
.ink-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--r-xl);
  background: var(--ink);
  color: #f3f1ec;
}

.ink-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -30%;
  right: -15%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(var(--acc-rgb), 0.35), transparent);
  filter: blur(20px);
}

.pol {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.pol--solo {
  grid-template-columns: minmax(0, 1fr);
}

.pol__media {
  aspect-ratio: 5 / 3;
  border-radius: var(--r-md);
  background: #222;
}

.pol__body {
  margin-top: 1.2rem;
}

.pol__body .meta__date,
.pol__item .meta__date {
  color: rgba(255, 255, 255, 0.5);
}

.pol__title {
  margin-top: 0.8rem;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #fff;
}

.pol__dek {
  margin-top: 0.75rem;
  font-family: var(--f-serif);
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.66);
}

.pol__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  align-content: start;
}

.pol__item {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 1.1rem 1.1rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.25s, border-color 0.25s;
}

.pol__item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.pol__item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.pol__n {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--acc);
}

.pol__item-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: #fff;
}

.pol__go {
  margin-top: auto;
  padding-top: 1rem;
  align-self: flex-end;
}

.pol__go .arrow {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ── 14. Digital Assets rail ───────────────────────────────────────────── */
.rail-nav {
  display: flex;
  gap: 8px;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, calc((100% - 2 * 20px) / 3));
  gap: 20px;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-bottom: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  outline: none;
}

.railcard {
  position: relative;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

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

.railcard__body {
  padding: 1rem 1.15rem 1.25rem;
}

.railcard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.railcard__n {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--acc-deep);
}

.railcard__title {
  margin-top: 0.65rem;
  font-size: 1.08rem;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

/* ── 15. Ground rules ──────────────────────────────────────────────────── */
.rules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line-strong);
}

.rule {
  padding: 1.4rem 1.4rem 1.7rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s;
}

.rule:not(:nth-child(4n + 1)) {
  border-left: 1px solid var(--line);
}

.rule:hover {
  background: rgba(255, 255, 255, 0.6);
}

.rule__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rule__n {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--text-3);
}

.rule__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.rule:hover .rule__icon {
  background: var(--acc);
  border-color: var(--acc);
  color: var(--on-acc);
}

.rule__title {
  margin-top: 1.75rem;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.rule__text {
  margin-top: 0.5rem;
  font-family: var(--f-serif);
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--text-2);
}

/* ── 16. Desk directory ────────────────────────────────────────────────── */
.dir {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line-strong);
}

.dir__link {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.1fr) 7rem 104px 42px;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.dir__n {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

.dir__name {
  font-size: clamp(1.4rem, 2.7vw, 2.2rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  transition: transform 0.35s var(--ease), color 0.2s;
}

.dir__link:hover .dir__name {
  transform: translateX(8px);
  color: var(--acc-deep);
}

.dir__eyebrow {
  font-family: var(--f-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--text-2);
}

.dir__count {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-2);
}

.dir__thumb {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--bg-2);
}

.dir__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.4s, transform 0.6s var(--ease);
}

.dir__link:hover .dir__thumb img {
  filter: none;
  transform: scale(1.06);
}

/* ── 17. Newsletter ────────────────────────────────────────────────────── */
.signup__panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(1.5rem, 4.5vw, 3.5rem);
  border-radius: var(--r-xl);
  background:
    radial-gradient(700px 380px at 82% 12%, rgba(255, 255, 255, 0.14), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(var(--ink-rgb), 0.16), transparent 60%),
    var(--acc-panel);
  color: var(--on-acc);
}

.signup__head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  align-items: center;
  gap: 2rem;
}

.signup__eyebrow {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.78;
}

.signup__title {
  max-width: 16ch;
  margin-top: 0.9rem;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  font-weight: 600;
  line-height: 0.97;
  letter-spacing: -0.045em;
}

.signup__sub {
  max-width: 52ch;
  margin-top: 1.1rem;
  font-family: var(--f-serif);
  font-size: 1.06rem;
  line-height: 1.5;
  opacity: 0.85;
}

.signup__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.signup__facts li {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.85;
}

.signup__art {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 330px;
}

.sphere {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 34px 34px rgba(60, 15, 0, 0.35));
  animation: st-float 8s ease-in-out infinite;
}

.sphere__dots {
  fill: var(--acc-night);
}

@keyframes st-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.signup__orbit {
  position: absolute;
  z-index: 1;
  top: 42%;
  left: -16%;
  width: 132%;
  height: 22%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.6), inset 0 0 12px rgba(255, 255, 255, 0.4);
  transform: rotate(-16deg);
  pointer-events: none;
}

.signup__art-label {
  position: absolute;
  top: 0;
  right: -4px;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid currentColor;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}

@media (prefers-reduced-motion: reduce) {
  .sphere {
    animation: none;
  }
}

.signup__card {
  position: relative;
  z-index: 2;
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 60px -30px rgba(70, 20, 0, 0.45);
}

.signup__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.75rem;
  margin-top: 1.4rem;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  line-height: 1.6;
  opacity: 0.8;
}

.signup__legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* CF7 — markup is owned by the plugin, so we only restyle it.
   The form becomes three numbered steps side by side:
     01 .form-options   edition checkboxes → stacked tiles
     02 .form-topics    optional topic checkboxes → chips
     03 .form-fields    email + submit, with .form-privacy under it */
.signup .hidden-fields-container,
.signup .screen-reader-response {
  display: none;
}

.signup .wpcf7-form {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-areas:
    "opt top fld"
    "opt top prv"
    "out out out";
  grid-template-rows: auto 1fr auto;
  counter-reset: st-step;
}

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

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

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

.signup .form-options {
  grid-area: opt;
  padding-right: clamp(1rem, 2.5vw, 2rem);
}

.signup .form-topics {
  grid-area: top;
  padding-inline: clamp(1rem, 2.5vw, 2rem);
  border-left: 1px solid var(--line);
}

.signup .form-fields {
  grid-area: fld;
  padding-left: clamp(1rem, 2.5vw, 2rem);
  border-left: 1px solid var(--line);
}

.signup .form-privacy {
  grid-area: prv;
  padding: 1rem 0 0 clamp(1rem, 2.5vw, 2rem);
  border-left: 1px solid var(--line);
}

/* Step nodes: accent, ink, outline — echoing the connector cards */
.signup .form-options::before,
.signup .form-topics::before,
.signup .form-fields::before {
  counter-increment: st-step;
  content: counter(st-step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 1rem;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 500;
}

.signup .form-options::before {
  background: var(--acc);
  border-color: var(--acc);
  color: var(--on-acc);
}

.signup .form-topics::before {
  background: var(--ink);
  color: #fff;
}

.signup .form-label,
.signup .form-fields p::before {
  display: block;
  margin-bottom: 0.8rem;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}

.signup .form-fields p::before {
  content: "Where should it land?";
  flex: 1 0 100%;
  margin-bottom: 0.35rem;
}

/* Edition tiles, stacked */
.signup .form-options .wpcf7-checkbox,
.signup .form-options .wpcf7-radio {
  display: grid;
  gap: 0.5rem;
}

.signup .form-options .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

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

.signup .form-options .wpcf7-list-item label:has(input:checked) {
  background: rgba(var(--acc-rgb), 0.08);
  border-color: var(--acc);
  color: var(--text);
}

.signup .form-options input[type="checkbox"],
.signup .form-options input[type="radio"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0.05rem 0 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface) center / 11px no-repeat;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.signup .form-options input[type="radio"] {
  border-radius: 50%;
}

.signup .form-options input:checked {
  background-color: var(--ink);
  border-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* Topic chips */
.signup .form-topics .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.signup .form-topics .wpcf7-list-item label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.signup .form-topics .wpcf7-list-item label::before {
  content: "+";
  font-family: var(--f-mono);
  color: var(--text-3);
}

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

.signup .form-topics input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.signup .form-topics .wpcf7-list-item label:has(input:checked) {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.signup .form-topics .wpcf7-list-item label:has(input:checked)::before {
  content: "✓";
  color: var(--acc);
}

.signup .form-options label:has(input:focus-visible),
.signup .form-topics label:has(input:focus-visible) {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

/* Email above a full-width submit */
.signup .form-fields p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

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

.signup .wpcf7-email {
  flex: 1 0 100%;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  font-family: var(--f-sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8780' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") 1rem center / 18px no-repeat;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 0 1rem 0 2.8rem;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

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

.signup .wpcf7-email:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(var(--acc-rgb), 0.18);
}

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

.signup .wpcf7-submit {
  flex: 1 0 100%;
  order: 2;
  min-height: 52px;
  padding: 0 1.4rem;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--f-sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease);
}

.signup .wpcf7-submit:hover {
  background: var(--acc);
  color: var(--on-acc);
  transform: translateY(-1px);
}

.signup .wpcf7-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.signup .wpcf7-spinner {
  order: 3;
  margin: 0.25rem auto 0;
  background-color: var(--text-3);
}

.signup .wpcf7-not-valid-tip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.5rem;
  padding: 0.45rem 0.7rem 0.45rem 0.5rem;
  border-radius: var(--r-sm);
  background: rgba(var(--down-rgb), 0.08);
  border: 1px solid rgba(var(--down-rgb), 0.3);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--down);
  width: fit-content;
  max-width: 100%;
  animation: st-tip-in 0.25s ease-out;
}

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

@keyframes st-tip-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

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

.signup .wpcf7-checkbox.wpcf7-not-valid .wpcf7-list-item label {
  border-style: dashed;
  border-color: var(--down);
}

/* Acceptance */
.signup .form-privacy .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--text-2);
}

.signup .form-privacy input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 0.2em;
  accent-color: var(--ink);
  cursor: pointer;
}

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

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

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

.signup .form-privacy .wpcf7-not-valid-tip {
  margin-left: 1.6rem;
}

/* Form-level response banner */
.signup .wpcf7-response-output {
  --tone: var(--text-2);
  --tone-rgb: var(--ink-rgb);
  --icon: "i";
  grid-area: out;
  position: relative;
  display: none;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  column-gap: 0.8rem;
  width: 100%;
  margin: 1.4rem 0 0 !important;
  padding: 0.8rem 1rem 0.8rem 0.8rem !important;
  border: 1px solid rgba(var(--tone-rgb), 0.35) !important;
  border-radius: var(--r-sm);
  background: rgba(var(--tone-rgb), 0.06);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  animation: st-tip-in 0.3s ease-out;
}

.signup .wpcf7-response-output::before {
  content: var(--icon);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tone);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.signup .wpcf7-form.sent .wpcf7-response-output {
  --tone: var(--up);
  --tone-rgb: 18, 137, 90;
  --icon: "✓";
  display: grid;
}

.signup .wpcf7-form.invalid .wpcf7-response-output,
.signup .wpcf7-form.unaccepted .wpcf7-response-output,
.signup .wpcf7-form.payment-required .wpcf7-response-output {
  --tone: var(--warn);
  --tone-rgb: 201, 138, 18;
  --icon: "!";
  display: grid;
}

.signup .wpcf7-form.spam .wpcf7-response-output,
.signup .wpcf7-form.failed .wpcf7-response-output,
.signup .wpcf7-form.aborted .wpcf7-response-output {
  --tone: var(--down);
  --tone-rgb: var(--down-rgb);
  --icon: "×";
  display: grid;
}

/* ── 18. Archive, search & card grids ──────────────────────────────────── */
.archive-main,
.page-main,
.error-main,
.single-main {
  padding-top: clamp(2.25rem, 4vw, 3.25rem);
}

.archive-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line-strong);
}

.archive-head__title {
  margin-top: 0.2rem;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 600;
  line-height: 0.93;
  letter-spacing: -0.055em;
}

.archive-head__title--query {
  overflow-wrap: anywhere;
}

.archive-head__count {
  max-width: 40ch;
  font-family: var(--f-serif);
  font-size: 1.05rem;
  color: var(--text-2);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding: 12px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--surface);
}

.feature__media {
  aspect-ratio: 5 / 3;
  border-radius: var(--r-lg);
}

.feature__body {
  padding: 1rem clamp(0.5rem, 2.5vw, 1.75rem) 1rem 0;
}

.feature__flag {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--acc);
  color: var(--on-acc);
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feature__title {
  margin-top: 1rem;
  font-size: clamp(1.6rem, 2.9vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.feature__dek {
  margin-top: 0.9rem;
  font-family: var(--f-serif);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-2);
}

.feature__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-top: 1.5rem;
}

.feature__read,
.post-card__read {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

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

.post-card__media {
  aspect-ratio: 5 / 3;
}

.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.1rem 1.2rem 1.3rem;
}

.post-card__title {
  margin-top: 0.8rem;
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.post-card__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin-top: 0.6rem;
  font-family: var(--f-serif);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-2);
}

.post-card__read {
  margin-top: auto;
  padding-top: 1rem;
}

.pagination {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

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

.pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-family: var(--f-mono);
  font-size: 0.76rem;
  transition: background 0.2s, color 0.2s, border-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-color: transparent;
  background: none;
}

.no-results {
  padding: clamp(3rem, 8vw, 5rem) 0;
  text-align: center;
}

.no-results p {
  margin-bottom: 1.4rem;
  font-family: var(--f-serif);
  font-size: 1.15rem;
  color: var(--text-2);
}

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

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--acc);
}

.article-head {
  max-width: 980px;
}

.article-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
}

.article-head__date,
.article-head__read {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
}

.article-head__read::before {
  content: "·";
  margin-right: 0.9rem;
}

.article-head__title {
  margin-top: 1.25rem;
  font-size: clamp(2.2rem, 5.2vw, 4.3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
}

.article-head__dek {
  max-width: 62ch;
  margin-top: 1.25rem;
  font-family: var(--f-serif);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--text-2);
}

.article-hero {
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
}

.article-hero__img {
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  border-radius: var(--r-xl);
}

.article-hero__caption {
  margin-top: 0.7rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--text-3);
}

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

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

.article-content {
  max-width: 70ch;
  font-family: var(--f-serif);
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-prose);
  overflow-wrap: break-word;
}

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

.single-article .article-content > p:first-child::first-letter {
  float: left;
  padding: 0.08em 0.12em 0 0;
  font-family: var(--f-sans);
  font-size: 4.2em;
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: var(--acc);
}

.article-content h2,
.article-content h3,
.article-content h4 {
  font-family: var(--f-sans);
  color: var(--text);
}

.article-content h2 {
  margin-top: 2.6rem;
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.article-content h3 {
  margin-top: 2.1rem;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.article-content h4 {
  margin-top: 1.8rem;
  font-size: 1.1rem;
}

.article-content strong {
  color: var(--text);
}

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

.article-content a:hover {
  color: var(--acc-deep);
}

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

.article-content ul li {
  position: relative;
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
  list-style: none;
}

.article-content ul li::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--acc);
}

.article-content ol {
  list-style: decimal-leading-zero;
}

.article-content ol li {
  margin-bottom: 0.5rem;
  padding-left: 0.4rem;
}

.article-content ol li::marker {
  font-family: var(--f-mono);
  font-size: 0.85em;
  color: var(--acc-deep);
}

.article-content blockquote {
  margin-block: 2.2rem;
  padding: 0.2rem 0 0.2rem 1.5rem;
  border-left: 3px solid var(--acc);
  font-family: var(--f-sans);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text);
}

.article-content blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.article-content img,
.article-content figure {
  margin-block: 2rem;
}

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

.article-content figure img {
  margin-block: 0;
}

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

.article-content figcaption {
  margin-top: 0.55rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--text-3);
}

.article-content iframe,
.article-content video {
  max-width: 100%;
}

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

.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--f-sans);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

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

.article-content th {
  border-bottom-color: var(--ink);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.article-content code {
  font-family: var(--f-mono);
  font-size: 0.85em;
  background: var(--bg-2);
  padding: 0.15em 0.4em;
  border-radius: 5px;
}

.article-content pre {
  overflow-x: auto;
  padding: 1rem 1.2rem;
  border-radius: var(--r-md);
  background: var(--ink);
  color: #f3f1ec;
}

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

.article-content hr {
  border: none;
  height: 1px;
  background: var(--line-strong);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.article-tags__label {
  margin-right: 0.4rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.article-tags a {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.82rem;
  transition: background 0.2s, color 0.2s;
}

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

.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.25rem;
}

.article-nav__side {
  padding: 1.2rem 1.3rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
}

.article-nav__side:not(:has(a)) {
  border-color: transparent;
  background: none;
}

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

.article-nav__label {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.article-nav__link {
  display: block;
  margin-top: 0.5rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}

.article-nav__link:hover {
  color: var(--acc-deep);
}

.related {
  margin-top: clamp(4rem, 8vw, 6rem);
}

.single-aside {
  align-self: start;
  position: sticky;
  top: 110px;
}

.aside-panel {
  padding: 1.3rem 1.3rem 0.4rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}

.aside-panel__heading {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}

.row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.row:last-child {
  border-bottom: none;
}

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

.row__date {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
}

.row__title {
  margin-top: 0.3rem;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.row--aside {
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 0.9rem;
}

.row--aside .row__title {
  font-size: 0.92rem;
}

.aside-cta {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 1.5rem;
  border-radius: var(--r-lg);
  background:
    radial-gradient(260px 160px at 100% 0%, rgba(255, 255, 255, 0.28), transparent 70%),
    var(--acc);
  color: var(--on-acc);
  transition: transform 0.3s var(--ease);
}

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

.aside-cta__eyebrow {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

.aside-cta__title {
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.aside-cta__text {
  font-family: var(--f-serif);
  font-size: 0.95rem;
  line-height: 1.45;
  opacity: 0.85;
}

.aside-cta__btn {
  align-self: flex-start;
  margin-top: 0.4rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ── 20. Page & 404 ────────────────────────────────────────────────────── */
.page-head {
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line-strong);
}

.page-head__eyebrow {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-2);
}

.page-head__title {
  margin-top: 0.75rem;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.page-hero {
  margin-bottom: 2rem;
}

.page-hero__img {
  width: 100%;
  border-radius: var(--r-xl);
}

.page-main .article-content {
  max-width: none;
}

.error-page {
  padding: clamp(1rem, 4vw, 3rem) 0;
  text-align: center;
}

.error-page__code {
  font-size: clamp(6rem, 22vw, 13rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.07em;
  color: var(--acc);
}

.error-page__title {
  margin-top: 1rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
}

.error-page__desc {
  max-width: 52ch;
  margin: 1rem auto 0;
  font-family: var(--f-serif);
  font-size: 1.1rem;
  color: var(--text-2);
}

.error-page__actions {
  margin-top: 1.75rem;
}

.error-recent {
  margin-top: clamp(3rem, 6vw, 4rem);
  text-align: left;
  border-top: 1px solid var(--line-strong);
}

.error-recent__heading {
  padding: 1.2rem 0 0.4rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* ── 21. Footer ────────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  isolation: isolate;
  margin-top: clamp(4.5rem, 9vw, 7rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.home .site-footer {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.footer-card {
  position: relative;
  z-index: 2;
  padding: clamp(1.4rem, 3.5vw, 2.5rem);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 40px 80px -50px rgba(80, 25, 0, 0.5);
}

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

.footer-logo-link img,
.footer-logo-img {
  height: var(--logo-h, 45px);
  width: auto;
  max-width: 340px;
  object-fit: contain;
}

.footer-brand__desc {
  max-width: 40ch;
  margin-top: 1rem;
  font-family: var(--f-serif);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-2);
}

.footer-col__title {
  margin-bottom: 0.9rem;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
}

.footer-col__list li + li {
  margin-top: 0.5rem;
}

.footer-col__list a {
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-col__list a:hover {
  color: var(--acc-deep);
}

.footer-disclaimer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-3);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin-top: 1rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-3);
}

.footer-copy a {
  color: var(--text-2);
}

.footer-top-link {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.2s;
}

.footer-top-link:hover {
  color: var(--acc-deep);
}

/* Landscape behind the lower half of the card — the page ends with it */
.footer-land {
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(260px, 30vw, 420px);
  overflow: hidden;
  pointer-events: none;
}

.land {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.land__sun {
  fill: #fff3e8;
  opacity: 0.9;
}

.land__sun--sm {
  opacity: 0.7;
}

.land__net line {
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 1;
}

.land__net circle {
  fill: #fff;
}

.land__road {
  fill: none;
  stroke: #fff8f0;
  stroke-width: 3;
  stroke-linecap: round;
}

.land__road--glow {
  stroke-width: 12;
  opacity: 0.7;
}

/* ── 22. Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .masthead__nav {
    display: none;
  }
  .masthead__bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .clock {
    grid-template-columns: minmax(0, 1fr);
  }
  .clock__dial-wrap {
    max-width: 440px;
  }
  .rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rule:not(:nth-child(4n + 1)) {
    border-left: none;
  }
  .rule:nth-child(2n) {
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__title {
    max-width: 12ch;
  }
  .spot__index {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 34%);
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .crew {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brief,
  .pol {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .single-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .single-aside {
    position: static;
  }
  .dir__link {
    grid-template-columns: 2.5rem minmax(0, 1fr) 7rem 96px 42px;
  }
  .dir__eyebrow {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --gut: 20px;
  }
  .shead {
    grid-template-columns: minmax(0, 1fr);
  }
  .shead__actions {
    margin-left: 0;
  }
  .stats {
    flex-wrap: wrap;
  }
  .stats__lede {
    flex-basis: 100%;
  }
  .stat:first-of-type {
    padding-left: 0;
    border-left: none;
  }
  .chain {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }
  .chain__card:not(:last-child)::after {
    top: 100%;
    left: 50%;
    width: 1px;
    height: var(--chain-gap);
  }
  .chain__card:not(:last-child)::before {
    top: calc(100% + var(--chain-gap) / 2 - 9px);
    left: calc(50% - 9px);
  }
  .signup__head {
    grid-template-columns: minmax(0, 1fr);
  }
  .signup__art {
    max-width: 240px;
    justify-self: start;
    order: -1;
  }
  .signup .wpcf7-form {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "opt"
      "top"
      "fld"
      "prv"
      "out";
    grid-template-rows: none;
  }
  .signup .form-options,
  .signup .form-topics,
  .signup .form-fields,
  .signup .form-privacy {
    padding-inline: 0;
    border-left: none;
  }
  .signup .form-topics,
  .signup .form-fields {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
  }
  .feature {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature__body {
    padding: 0.5rem 0.75rem 1rem;
  }
}

@media (max-width: 640px) {
  .masthead {
    padding-top: 10px;
  }
  .masthead__bar {
    min-height: 58px;
    padding: 6px 6px 6px 18px;
  }
  .masthead__logo img,
  .masthead__logo-img,
  .footer-logo-link img,
  .footer-logo-img {
    height: var(--logo-h-m, 34px);
    max-width: calc(100vw - 150px);
  }
  .masthead__sub {
    display: none;
  }
  .hero__visual {
    grid-template-rows: 54px auto;
  }
  .hero__tags {
    display: none;
  }
  .spot__cap {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
    padding: 0.75rem 0.85rem;
  }
  .spot__cap .meta {
    display: none;
  }
  .spot__title {
    margin-top: 0;
    font-size: 0.98rem;
    -webkit-line-clamp: 2;
  }
  .spot__open {
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
  }
  .hero__rule {
    flex: 1;
  }
  .spot__index {
    grid-auto-columns: 72%;
  }
  .ticker__asof {
    display: none;
  }
  .crew,
  .post-grid,
  .pol__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .pol__item {
    min-height: 0;
  }
  .rules {
    grid-template-columns: minmax(0, 1fr);
  }
  .rule:nth-child(2n) {
    border-left: none;
  }
  .rule__title {
    margin-top: 1.1rem;
  }
  .venues {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .clock__summary {
    grid-template-columns: minmax(0, 1fr);
  }
  .brief__item {
    grid-template-columns: 2rem minmax(0, 1fr) 96px;
    gap: 0.75rem;
  }
  .dir__link {
    grid-template-columns: 2rem minmax(0, 1fr) auto 38px;
    gap: 0.75rem;
  }
  .dir__thumb {
    display: none;
  }
  .dir__link .arrow {
    width: 38px;
    height: 38px;
  }
  .rail {
    grid-auto-columns: 84%;
  }
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-nav {
    grid-template-columns: minmax(0, 1fr);
  }
  .article-nav__side--next {
    text-align: left;
  }
  .row {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}
