/* ==========================================================================
   SIMBA POOL — "The Epoch Sun"
   A savanna-dusk design system for an independent Cardano stake pool.
   Palette: charred umber night, bone, dry grass, brand gold, sunset ember.
   Display face: Unbounded (Cardano's brand typeface). Body: Inter.
   Data/instrumentation: JetBrains Mono.
   ========================================================================== */

:root {
  /* New palette */
  --night: #140e08;
  --night-2: #1a1109;
  --dusk: #241812;
  --dusk-2: #2e1f14;
  --bone: #f4ead9;
  --grass: #c6b298;
  --grass-2: #96836a;
  --gold: #ffb940;
  --gold-hi: #ffd27a;
  --ember: #ff7a45;
  --line: rgba(244, 234, 217, 0.09);
  --line-gold: rgba(255, 185, 64, 0.26);
  /* Legacy aliases — keep every old token working */
  --ink: var(--night);
  --ink-2: var(--night-2);
  --slate: var(--dusk);
  --slate-line: #3a2917;
  --white: var(--bone);
  --muted: var(--grass);
  --muted-2: var(--grass-2);
  --font-display: "Unbounded", "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --maxw: 1160px;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  background: var(--night);
  color: var(--bone);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Dusk atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(
      1100px 600px at 78% -8%,
      rgba(255, 122, 69, 0.09),
      transparent 60%
    ),
    radial-gradient(
      900px 700px at -10% 110%,
      rgba(46, 31, 20, 0.6),
      transparent 55%
    );
}

/* Film grain — the artistic surface of the whole site */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="2" stitchTiles="stitch"/></filter><rect width="160" height="160" filter="url(%23n)" opacity="0.55"/></svg>');
  background-size: 160px 160px;
}

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

img {
  max-width: 100%;
}

::selection {
  background: var(--gold);
  color: var(--night);
}

/* Cross-document view transitions — app-like page changes */
@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) {
    animation: 150ms ease both vt-out;
  }

  ::view-transition-new(root) {
    animation: 260ms var(--ease) both vt-in;
  }
}

@keyframes vt-out {
  to {
    opacity: 0;
  }
}

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 500;
  transform: translateY(-160%);
  background: var(--gold);
  color: var(--night);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(20, 14, 8, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition:
    background 0.24s var(--ease),
    border-color 0.24s var(--ease);
}

.site-header.scrolled {
  background: rgba(20, 14, 8, 0.92);
  border-bottom-color: var(--line);
}

.nav {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* Header brand is intentionally typographic. The lion mark remains in the
   footer/favicon, where it has room to read without crowding navigation. */
.site-header .brand::before,
.drawer-top .brand::before {
  content: "";
  width: 18px;
  height: 2px;
  flex: 0 0 auto;
  background: linear-gradient(90deg, var(--ember), var(--gold));
  box-shadow: 0 0 14px rgba(255, 185, 64, 0.36);
}

.site-header .brand .mark,
.drawer-top .brand .mark {
  display: none;
}

.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 0 18px rgba(255, 185, 64, 0.22);
}

.brand .mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand .name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.86rem;
  white-space: nowrap;
}

.brand .name b {
  color: var(--gold);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--grass);
  transition: color 0.18s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--bone);
}

/* .nav-links a is more specific than .btn-gold; lock the CTA text to dark ink
   so it cannot inherit the muted navigation color. */
.nav-links a.btn-gold,
.nav-links a.btn-gold:hover {
  color: #1a0f06;
}

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 10px 18px;
  font: 700 0.9rem var(--font-body);
  cursor: pointer;
  transition:
    transform 0.18s var(--ease),
    background 0.18s var(--ease),
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.btn-gold {
  background: linear-gradient(120deg, var(--gold-hi), var(--gold) 55%, #f09a2e);
  color: var(--night);
  box-shadow: 0 10px 26px rgba(255, 154, 61, 0.22);
}

.btn-gold:hover {
  background: linear-gradient(120deg, #ffe0a1, var(--gold-hi) 55%, var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(255, 154, 61, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--line-gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--bone);
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: rgba(20, 14, 8, 0.98);
  backdrop-filter: blur(16px);
  transform: translateY(-100%);
  visibility: hidden;
  transition:
    transform 0.34s var(--ease),
    visibility 0.34s var(--ease);
}

.mobile-drawer.open {
  transform: translateY(0);
  visibility: visible;
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}

.drawer-links {
  display: grid;
}

.drawer-links a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font: 500 1.25rem var(--font-display);
}

.drawer-links a:hover {
  color: var(--gold);
}

.drawer-cta {
  margin-top: 28px;
}

.page-hero {
  padding: 148px 0 76px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(90deg, rgba(20, 14, 8, 0.82), rgba(20, 14, 8, 0.4)),
    url("/images/simbahero.webp");
  background-position: center right;
  background-size: cover;
  opacity: 0.22;
  mask-image: linear-gradient(to bottom, #000 44%, transparent 96%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 0.72rem var(--font-mono);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--ember), var(--gold));
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.01em;
}

h1 {
  max-width: 820px;
  margin-top: 18px;
  font-size: 3rem;
  font-weight: 500;
}

.lede {
  max-width: 680px;
  margin-top: 22px;
  color: var(--grass);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-card,
.panel,
.card,
.stat-card {
  background: linear-gradient(
    165deg,
    rgba(46, 31, 20, 0.62),
    rgba(26, 17, 9, 0.4)
  );
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-card {
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.hero-card .label,
.card .label,
.stat-card .label,
.fact-label {
  font: 500 0.68rem var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grass-2);
}

.hero-card .value {
  margin-top: 8px;
  font: 600 1.9rem var(--font-display);
}

.hero-card p,
.card p,
.panel p {
  color: var(--grass);
}

.section {
  padding: 104px 0;
}

.section-tight {
  padding: 64px 0;
}

.section-head {
  max-width: 690px;
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 15px 0 12px;
  font-size: 2.05rem;
}

.section-head p {
  color: var(--grass);
  font-size: 1.03rem;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 18px;
}

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

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

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

.card,
.panel,
.stat-card {
  padding: 24px;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.card:hover,
.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-gold);
}

/* Pointer-tracked spotlight on interactive surfaces */
.card,
.topic-card,
.editorial-card,
.front-brief,
.stat-card {
  position: relative;
}

.card::after,
.topic-card::after,
.editorial-card::after,
.front-brief::after,
.stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.32s var(--ease);
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 185, 64, 0.09),
    transparent 65%
  );
}

.card:hover::after,
.topic-card:hover::after,
.editorial-card:hover::after,
.front-brief:hover::after,
.stat-card:hover::after {
  opacity: 1;
}

.card h3,
.panel h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.card h4 {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.card .icon {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 1px solid var(--line-gold);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 185, 64, 0.08);
  color: var(--gold);
  font: 800 0.94rem var(--font-mono);
}

.stat-card .value {
  margin-top: 10px;
  font: 600 1.8rem var(--font-display);
}

.stat-card .sub {
  margin-top: 4px;
  color: var(--grass);
  font-size: 0.88rem;
}

.steps {
  display: grid;
  gap: 18px;
}

.step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.step-num {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-gold);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 185, 64, 0.06);
  color: var(--gold);
  font: 800 0.9rem var(--font-mono);
}

.step p {
  color: var(--grass);
}

.pool-id-box {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.24);
  cursor: pointer;
}

.pool-id-box:hover {
  border-color: var(--line-gold);
}

.pool-id {
  color: var(--bone);
  word-break: break-all;
  font: 500 0.78rem var(--font-mono);
}

.table-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 180px;
  gap: 20px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(36, 24, 18, 0.42);
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row strong {
  font-family: var(--font-display);
  font-weight: 500;
}

.table-row p,
.table-row span {
  color: var(--grass);
}

.mono {
  font-family: var(--font-mono);
}

.callout {
  padding: 28px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: rgba(255, 185, 64, 0.06);
}

.callout h2,
.callout h3 {
  margin-bottom: 10px;
}

.callout p {
  color: var(--grass);
}

.link-list {
  display: grid;
  gap: 10px;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--grass);
}

.link-list a:hover {
  color: var(--gold);
  border-color: var(--line-gold);
}

.news-feature {
  min-height: 326px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.news-feature h2 {
  font-size: 1.36rem;
}

.news-feature p {
  margin: 0;
}

.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.news-list {
  display: grid;
  gap: 16px;
}

.news-item {
  display: grid;
  gap: 13px;
}

/* Topic tones on live news items (data-topic set by site.js) */
.news-item[data-topic="ai"] {
  --tone: #c3a8ff;
  --tone-soft: rgba(195, 168, 255, 0.1);
  --tone-line: rgba(195, 168, 255, 0.34);
}

.news-item[data-topic="cardano"] {
  --tone: #82a7ff;
  --tone-soft: rgba(130, 167, 255, 0.1);
  --tone-line: rgba(130, 167, 255, 0.34);
}

.news-item[data-topic="crypto"] {
  --tone: var(--gold);
  --tone-soft: rgba(255, 185, 64, 0.1);
  --tone-line: rgba(255, 185, 64, 0.34);
}

.news-item[data-topic="nuclear_energy"] {
  --tone: #ff9a6b;
  --tone-soft: rgba(255, 154, 107, 0.1);
  --tone-line: rgba(255, 154, 107, 0.34);
}

.news-item[data-topic] {
  border-left: 3px solid var(--tone-line);
}

.news-item h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.news-chip,
.news-score {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  font: 700 0.72rem var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-chip {
  border: 1px solid var(--tone-line, var(--line-gold));
  background: var(--tone-soft, rgba(255, 185, 64, 0.09));
  color: var(--tone, var(--gold));
}

button.news-chip {
  border-color: var(--line);
  background: rgba(244, 234, 217, 0.03);
  color: var(--grass);
  cursor: pointer;
  transition:
    background 0.18s var(--ease),
    border-color 0.18s var(--ease),
    color 0.18s var(--ease);
}

button.news-chip:hover,
button.news-chip[aria-pressed="true"] {
  border-color: var(--line-gold);
  background: rgba(255, 185, 64, 0.12);
  color: var(--gold);
}

.news-date {
  color: var(--grass-2);
  font: 600 0.78rem var(--font-mono);
}

.news-score {
  border: 1px solid var(--line);
  background: rgba(244, 234, 217, 0.04);
  color: var(--bone);
}

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

.news-context span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--grass-2);
  font: 600 0.74rem var(--font-mono);
}

.news-why {
  border-left: 2px solid var(--tone-line, var(--line-gold));
  padding-left: 12px;
}

.news-status,
.news-empty {
  margin-top: 18px;
  color: var(--grass-2);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 38px;
  background:
    linear-gradient(to bottom, rgba(255, 122, 69, 0.03), transparent 30%),
    transparent;
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 46px;
  align-items: start;
}

.foot-brand p {
  max-width: 360px;
  margin-top: 14px;
  color: var(--grass);
  font-size: 0.9rem;
}

.foot-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 46px;
}

.foot-col h5,
.foot-col .foot-heading {
  display: block;
  margin-bottom: 14px;
  color: var(--grass-2);
  font: 500 0.68rem var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.foot-col a {
  display: block;
  margin-bottom: 9px;
  color: var(--grass);
  font-size: 0.9rem;
}

.foot-col a:hover {
  color: var(--gold);
}

.foot-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  color: var(--grass-2);
  font-size: 0.8rem;
}

/* Slim footers (error and policy pages) render .foot-bottom alone */
.foot-bottom:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.foot-bottom a {
  color: var(--grass);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.foot-bottom a:hover {
  color: var(--gold);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  border-radius: 999px;
  background: var(--gold);
  color: var(--night);
  padding: 12px 18px;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

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

/* Publication surfaces */
.publication-page {
  background:
    linear-gradient(rgba(244, 234, 217, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 234, 217, 0.016) 1px, transparent 1px),
    var(--night);
  background-size: 64px 64px;
}

.publication-page::before {
  background:
    radial-gradient(
      900px 540px at 86% 4%,
      rgba(255, 122, 69, 0.08),
      transparent 62%
    ),
    radial-gradient(
      800px 620px at 5% 90%,
      rgba(255, 185, 64, 0.04),
      transparent 58%
    );
}

.publication-page .reveal {
  opacity: 1;
  transform: none;
}

.publication-header {
  background: rgba(16, 11, 6, 0.82);
}

.publication-brand .name b {
  margin-left: 3px;
  color: var(--grass-2);
  font: 500 0.63rem var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.btn-quiet {
  border-color: var(--line);
  background: rgba(244, 234, 217, 0.035);
  color: var(--grass);
}

.btn-quiet:hover {
  border-color: var(--line-gold);
  color: var(--bone);
  transform: translateY(-1px);
}

.accent {
  color: var(--gold);
}

.tone-violet {
  --tone: #c3a8ff;
  --tone-soft: rgba(195, 168, 255, 0.12);
  --tone-line: rgba(195, 168, 255, 0.36);
}

.tone-cyan {
  --tone: #8fd8b8;
  --tone-soft: rgba(143, 216, 184, 0.1);
  --tone-line: rgba(143, 216, 184, 0.32);
}

.tone-gold {
  --tone: var(--gold);
  --tone-soft: rgba(255, 185, 64, 0.1);
  --tone-line: rgba(255, 185, 64, 0.32);
}

.tone-rose {
  --tone: #ff9a6b;
  --tone-soft: rgba(255, 154, 107, 0.1);
  --tone-line: rgba(255, 154, 107, 0.32);
}

.masthead {
  padding: 138px 0 88px;
  border-bottom: 1px solid var(--line);
}

.masthead-top {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 48px;
}

.masthead h1 {
  max-width: 900px;
  margin-top: 16px;
  font-size: clamp(2.2rem, 4.4vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.masthead-top > p {
  max-width: 430px;
  padding-bottom: 10px;
  color: var(--grass);
  font-size: 1.03rem;
}

.front-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(310px, 0.75fr);
  gap: 18px;
}

.front-lead,
.front-brief,
.issue-note,
.lead-story,
.editorial-card,
.topic-card,
.operator-receipt,
.article-summary,
.watch-box,
.article-sources,
.pool-note {
  border: 1px solid var(--line);
  background: linear-gradient(
    145deg,
    rgba(52, 35, 22, 0.72),
    rgba(24, 15, 9, 0.9)
  );
}

.front-lead {
  display: grid;
  grid-template-rows: minmax(330px, 1fr) auto;
  min-width: 0;
  border-radius: 22px;
  overflow: hidden;
}

.front-visual {
  position: relative;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 32px;
  color: var(--bone);
  background:
    radial-gradient(circle at 75% 30%, var(--tone-soft), transparent 34%),
    linear-gradient(135deg, #2c1d10, #1a1108 65%);
}

.visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background:
    linear-gradient(var(--tone-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--tone-line) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(120deg, #000, transparent 78%);
}

.visual-label,
.visual-axis {
  position: relative;
  color: var(--tone);
  font: 600 0.68rem var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.front-visual strong {
  position: relative;
  align-self: flex-end;
  color: rgba(244, 234, 217, 0.94);
  font: 700 clamp(3.4rem, 6.4vw, 6rem) / 0.92 var(--font-display);
  letter-spacing: -0.03em;
  text-align: right;
}

.front-lead-copy {
  padding: 30px 32px 34px;
  border-top: 1px solid var(--tone-line);
}

.front-lead-copy h2 {
  max-width: 760px;
  margin-top: 17px;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  letter-spacing: -0.02em;
}

.front-lead-copy p,
.front-brief p,
.lead-story-copy p,
.editorial-card > p {
  margin-top: 16px;
  color: var(--grass);
}

.front-lead-copy .text-link,
.front-brief .text-link,
.lead-story-copy .text-link {
  margin-top: 22px;
}

.front-secondary {
  display: grid;
  gap: 18px;
}

.front-brief,
.issue-note {
  border-radius: 18px;
  padding: 25px;
}

.front-brief {
  border-top: 2px solid var(--tone);
}

.front-brief h2 {
  margin-top: 16px;
  font-size: 1.28rem;
}

.issue-note {
  display: grid;
  align-content: center;
  background: rgba(255, 185, 64, 0.055);
  border-color: var(--line-gold);
}

.issue-note p {
  margin: 12px 0 20px;
  color: var(--grass);
}

.issue-note > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.editorial-card-top,
.editorial-card-foot,
.article-kicker,
.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--grass-2);
  font: 600 0.72rem var(--font-mono);
}

.topic-label {
  display: inline-flex;
  align-items: center;
  color: var(--tone, var(--gold));
  font: 700 0.69rem var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.topic-label::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--tone, var(--gold));
  box-shadow: 0 0 16px var(--tone, var(--gold));
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-weight: 700;
}

.text-link:hover {
  color: var(--gold-hi);
}

.compact-head {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.compact-head h2 {
  margin-top: 14px;
}

.compact-head p {
  max-width: 690px;
}

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

.editorial-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--tone, var(--gold));
  border-radius: 16px;
  padding: 25px;
}

.editorial-card h3 {
  margin-top: 18px;
  font-size: 1.3rem;
  line-height: 1.28;
}

.editorial-card h3 a:hover,
.front-brief h2 a:hover,
.front-lead h2 a:hover,
.lead-story h2 a:hover {
  color: var(--tone, var(--gold));
}

.editorial-card-foot {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.editorial-card > p + .editorial-card-foot {
  margin-top: 24px;
}

.topic-section {
  background: rgba(16, 11, 6, 0.34);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.topic-card {
  min-height: 315px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 0;
  border-radius: 0;
}

.topic-card > span {
  color: var(--tone);
  font: 700 0.72rem var(--font-mono);
}

.topic-card h3 {
  margin-top: 52px;
  font-size: 1.5rem;
}

.topic-card p {
  margin-top: 15px;
  color: var(--grass);
}

.topic-card strong {
  margin-top: auto;
  padding-top: 24px;
  color: var(--tone);
}

.topic-card:hover {
  background: linear-gradient(145deg, var(--tone-soft), rgba(24, 15, 9, 0.9));
}

.operator-band {
  padding: 82px 0;
  border-block: 1px solid var(--line);
  background: rgba(255, 185, 64, 0.025);
}

.operator-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  gap: 70px;
  align-items: center;
}

.operator-copy h2 {
  max-width: 560px;
  margin-top: 14px;
  font-size: 2rem;
}

.operator-copy p {
  max-width: 590px;
  margin: 18px 0;
  color: var(--grass);
}

.operator-receipt {
  border-color: var(--line-gold);
  border-radius: 18px;
  padding: 26px;
}

.operator-receipt > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.operator-receipt > div:first-child span {
  color: var(--gold);
  font: 700 0.72rem var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.operator-receipt dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 20px 0;
}

.operator-receipt dl > div {
  padding: 4px 18px;
  border-left: 1px solid var(--line);
}

.operator-receipt dl > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.operator-receipt dt {
  color: var(--grass-2);
  font: 600 0.66rem var(--font-mono);
  text-transform: uppercase;
}

.operator-receipt dd {
  margin-top: 7px;
  color: var(--bone);
  font: 600 1.05rem var(--font-display);
}

.signal-hero {
  padding: 138px 0 74px;
  border-bottom: 1px solid var(--line);
}

.signal-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1.22fr);
  gap: 62px;
  align-items: center;
}

.signal-intro h1 {
  max-width: 650px;
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  letter-spacing: -0.02em;
}

.lead-story {
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1.3fr);
  overflow: hidden;
  border-radius: 20px;
}

.story-visual {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--tone);
  background:
    radial-gradient(circle, var(--tone-soft), transparent 58%),
    repeating-radial-gradient(
      circle,
      transparent 0 22px,
      var(--tone-line) 23px 24px
    );
  font: 700 0.67rem var(--font-mono);
  letter-spacing: 0.16em;
}

.story-visual strong {
  font-size: 3.2rem;
  font-family: var(--font-display);
}

.lead-story-copy {
  padding: 31px;
}

.lead-story-copy h2 {
  margin-top: 25px;
  font-size: 1.7rem;
}

.issue-section {
  padding-bottom: 82px;
}

.standards-band {
  border-block: 1px solid var(--line);
  background: rgba(16, 11, 6, 0.55);
}

.standards-cards {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(24, 15, 9, 0.42);
}

.check-list {
  display: grid;
  gap: 12px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  color: var(--grass);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 800;
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.standards-grid > div {
  min-height: 160px;
  padding: 32px;
  border-left: 1px solid var(--line);
}

.standards-grid > div:first-child {
  border-left: 0;
}

.standards-grid span {
  display: block;
  color: var(--gold);
  font: 600 0.68rem var(--font-mono);
}

.standards-grid strong {
  display: block;
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
}

.standards-grid p {
  margin-top: 6px;
  color: var(--grass);
  font-size: 0.9rem;
}

/* The chain ledger — the feed is chronological, so it reads as a chain:
   one continuous rail, one topic-toned node per story. Overrides the
   generic .card box for news items on the home and news pages. */
.signals-section .news-list {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 0;
}

.signals-section .news-list::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--gold),
    rgba(255, 185, 64, 0.3) 140px,
    rgba(244, 234, 217, 0.09)
  );
}

.signals-section .news-list:has(.news-empty)::before {
  content: none;
}

.signals-section .news-item {
  position: relative;
  padding: 26px 0 28px 46px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
}

.signals-section .news-item:last-child {
  border-bottom: 0;
}

.signals-section .news-item[data-topic] {
  border-left: 0;
}

.signals-section .news-item:hover {
  transform: none;
  border-color: var(--line);
}

.signals-section .news-item::after {
  content: none;
}

/* Block node on the rail */
.signals-section .news-item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 33px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--tone, var(--gold));
  box-shadow: 0 0 0 4px var(--tone-soft, rgba(255, 185, 64, 0.1));
  transition: box-shadow 0.25s var(--ease);
}

.signals-section .news-item:hover::before {
  box-shadow:
    0 0 0 5px var(--tone-soft, rgba(255, 185, 64, 0.1)),
    0 0 16px 2px var(--tone-line, rgba(255, 185, 64, 0.34));
}

.signals-section .news-meta {
  gap: 8px 14px;
}

/* Ledger order: timestamp leads the entry */
.signals-section .news-meta .news-date {
  order: -1;
}

.signals-section .news-item .news-chip {
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: none;
  color: var(--tone, var(--gold));
  letter-spacing: 0.14em;
}

.signals-section .news-item h3 {
  max-width: 30em;
  font-family: var(--font-display);
  font-size: 1.26rem;
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: 0;
}

.signals-section .news-item > p {
  max-width: 68ch;
}

.review-state {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--grass-2);
  font: 600 0.68rem var(--font-mono);
  text-transform: uppercase;
}

.signals-section .review-state {
  margin-left: auto;
}

.review-state.reviewed {
  border-color: var(--line-gold);
  color: var(--gold);
  background: rgba(255, 185, 64, 0.06);
}

.news-item h3 a:hover {
  color: var(--tone, var(--gold));
}

.news-caution {
  padding: 11px 13px;
  border-radius: 8px;
  background: rgba(244, 234, 217, 0.028);
  color: var(--grass-2);
  font-size: 0.84rem;
}

.signals-section .news-caution {
  padding: 0 0 0 12px;
  border-left: 2px solid var(--line);
  border-radius: 0;
  background: none;
  font: 500 0.78rem/1.65 var(--font-mono);
}

.news-caution strong {
  color: var(--grass);
}

.news-read-link {
  justify-self: start;
  margin-top: 3px;
}

.news-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.compact-hero {
  padding-bottom: 56px;
}

.compact-hero::before {
  display: none;
}

.article-wrap {
  width: min(100% - 48px, 920px);
  margin: 0 auto;
}

.article-hero {
  position: relative;
  padding: 150px 0 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.article-hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  top: -220px;
  right: -100px;
  border: 1px solid var(--tone-line);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px var(--tone-soft),
    0 0 0 140px rgba(244, 234, 217, 0.012);
  pointer-events: none;
}

.article-kicker {
  position: relative;
  justify-content: flex-start;
  gap: 20px;
}

.article-hero h1 {
  position: relative;
  max-width: 890px;
  margin-top: 26px;
  font-size: clamp(1.9rem, 4vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.article-dek {
  position: relative;
  max-width: 780px;
  margin-top: 28px;
  color: var(--grass);
  font-size: 1.24rem;
  line-height: 1.65;
}

.article-byline {
  position: relative;
  justify-content: flex-start;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.article-byline span + span::before {
  content: "•";
  margin-right: 10px;
  color: var(--tone);
}

.article-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
  padding-top: 72px;
  padding-bottom: 100px;
}

.article-summary {
  position: sticky;
  top: 96px;
  border-top: 2px solid var(--tone);
  border-radius: 14px;
  padding: 22px;
}

.article-summary h2 {
  margin-top: 12px;
  font-size: 1.15rem;
}

.article-summary ul {
  margin-top: 18px;
  list-style: none;
}

.article-summary li {
  position: relative;
  padding: 14px 0 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--grass);
  font-size: 0.87rem;
}

.article-summary li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tone);
}

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

.article-section + .article-section {
  margin-top: 50px;
}

.article-section h2,
.article-sources h2 {
  font-size: 1.6rem;
  letter-spacing: -0.015em;
}

.article-section p {
  margin-top: 20px;
  color: #d9cdb8;
  font-size: 1.06rem;
  line-height: 1.86;
}

.watch-box,
.article-sources,
.pool-note {
  margin-top: 54px;
  border-radius: 16px;
  padding: 28px;
}

.watch-box {
  border-color: var(--tone-line);
  background: var(--tone-soft);
}

.watch-box .eyebrow,
.article-page .topic-label {
  color: var(--tone);
}

.watch-box .eyebrow::before {
  background: var(--tone);
}

.watch-box p {
  margin-top: 13px;
  font-size: 1.05rem;
}

.article-sources h2 {
  margin-top: 13px;
}

.article-sources ol {
  margin-top: 18px;
  list-style: none;
}

.article-sources li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.source-number {
  color: var(--tone);
  font: 700 0.72rem var(--font-mono);
}

.article-sources a {
  font-weight: 700;
}

.article-sources a:hover {
  color: var(--tone);
}

.article-sources li div span {
  display: block;
  margin-top: 3px;
  color: var(--grass-2);
  font-size: 0.8rem;
}

.editorial-note {
  margin-top: 24px;
  color: var(--grass-2);
  font-size: 0.8rem;
}

.pool-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-color: var(--line-gold);
  background: rgba(255, 185, 64, 0.045);
}

.pool-note h2 {
  max-width: 520px;
  margin-top: 10px;
  font-size: 1.25rem;
}

.pool-note p {
  max-width: 540px;
  margin-top: 9px;
  color: var(--grass);
  font-size: 0.88rem;
}

.pool-note .btn {
  flex: 0 0 auto;
}

.publication-footer {
  background: rgba(16, 11, 6, 0.58);
}

/* ==========================================================================
   Home hero — The Epoch Sun
   ========================================================================== */

.home-welcome {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(94svh, 1020px);
  padding: 160px 0 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(
    to bottom,
    #100b06 0%,
    #17100a 42%,
    #241610 74%,
    #35200f 92%,
    #472a10 100%
  );
}

/* Faint survey grid over the sky */
.home-welcome::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(244, 234, 217, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 234, 217, 0.02) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 90%);
}

.home-welcome::after {
  content: none;
}

.savanna-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .savanna-canvas {
      animation: hero-drift linear both;
      animation-timeline: scroll();
      animation-range: 0 90vh;
    }
  }
}

/* Opacity only: the canvas mane is anchored to the DOM epoch dial, so a
   scroll translate would shear the scene off its sun. */
@keyframes hero-drift {
  to {
    opacity: 0.45;
  }
}

.welcome-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 64px;
  align-items: end;
  padding-bottom: 72px;
}

.welcome-copy h1 {
  max-width: 900px;
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.welcome-copy h1 .accent {
  display: block;
  font-weight: 600;
  color: var(--gold);
  background: linear-gradient(
    100deg,
    var(--gold-hi) 10%,
    var(--gold) 45%,
    var(--ember) 95%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-copy .lede {
  max-width: 640px;
  margin-top: 28px;
}

.welcome-note {
  margin-top: 18px;
  color: var(--grass-2);
  font: 500 0.78rem var(--font-mono);
}

.welcome-news-link {
  max-width: 640px;
  margin-top: 18px;
  color: var(--grass);
  font-size: 0.92rem;
}

.welcome-news-link a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.welcome-news-link a:hover {
  color: var(--bone);
}

/* Epoch dial — live 432,000-second Cardano cycle, computed client-side.
   The dial IS the hero sun: the core carries the sun-disc gradient, the
   conic ring is its corona, and site.js anchors the canvas mane/glow to
   this element's position so nothing occludes anything. */
.epoch-dial {
  --p: 0;
  position: relative;
  display: grid;
  justify-items: center;
  justify-self: center;
  align-self: center;
  gap: 26px;
  padding: 0;
}

.epoch-dial .dial {
  --size: 224px;
  position: relative;
  width: var(--size);
  height: var(--size);
}

.dial-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0turn,
    var(--ember) 0turn,
    var(--gold) calc(var(--p) * 1turn),
    rgba(244, 234, 217, 0.09) calc(var(--p) * 1turn)
  );
  -webkit-mask: radial-gradient(circle, transparent 84%, #000 85.5%);
  mask: radial-gradient(circle, transparent 84%, #000 85.5%);
  filter: drop-shadow(0 0 14px rgba(255, 154, 61, 0.28));
  transition: background 0.9s linear;
}

/* Marker riding the ring tip */
.epoch-dial .dial::after {
  content: "";
  position: absolute;
  left: calc(50% - 5px);
  top: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-hi);
  box-shadow: 0 0 12px 3px rgba(255, 210, 122, 0.55);
  transform: rotate(calc(var(--p) * 360deg))
    translateY(calc(var(--size) * -0.46));
  transition: transform 0.9s linear;
}

/* The sun disc itself — epoch numerals stamped in ink on the disc */
.dial-core {
  position: absolute;
  inset: calc(var(--size) * 0.115);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 3px;
  text-align: center;
  border-radius: 50%;
  background: radial-gradient(
    circle at 32% 26%,
    #ffe9bd 0%,
    #ffcb66 48%,
    #ff9a3d 100%
  );
  box-shadow:
    0 0 44px rgba(255, 154, 61, 0.45),
    0 0 130px rgba(255, 122, 69, 0.3);
}

.dial-label {
  color: rgba(74, 37, 6, 0.82);
  font: 600 0.62rem var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.dial-epoch {
  font: 600 2.7rem/1 var(--font-display);
  color: #2b1503;
}

.dial-progress {
  color: rgba(74, 37, 6, 0.82);
  font: 500 0.72rem var(--font-mono);
}

.dial-progress b {
  color: #2b1503;
  font-weight: 700;
}

.dial-facts {
  width: 100%;
  max-width: 300px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line-gold);
}

.dial-facts > div {
  min-width: 0;
  text-align: center;
}

.dial-facts dt {
  color: var(--grass-2);
  font: 600 0.62rem var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dial-facts dd {
  margin-top: 5px;
  color: var(--bone);
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Ledger strip — instrumentation along the horizon */
.ledger-strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line-gold);
  background: linear-gradient(
    to bottom,
    rgba(71, 42, 16, 0.5),
    rgba(20, 13, 7, 0.85)
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ledger-strip::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold) 35%,
    var(--ember) 65%,
    transparent
  );
  opacity: 0.7;
}

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 26px;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

.ledger-cell span {
  display: block;
  color: var(--grass-2);
  font: 600 0.62rem var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ledger-cell strong {
  display: block;
  margin-top: 6px;
  color: var(--bone);
  font: 600 1.15rem var(--font-display);
  white-space: nowrap;
}

.ledger-link {
  justify-self: end;
}

/* Legacy home receipt kept for other surfaces */
.welcome-receipt {
  background: rgba(26, 17, 9, 0.9);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.homepage-feed {
  border-bottom: 1px solid var(--line);
}

.pool-paths {
  padding-top: 92px;
}

.source-provenance {
  max-width: 720px;
  margin-top: 12px;
  color: var(--grass);
  font-size: 0.9rem;
}

.article-sources code {
  overflow-wrap: anywhere;
  color: var(--bone);
  font: 500 0.76rem var(--font-mono);
}

/* Error pages — quiet and directional */
.error-hero {
  min-height: min(72svh, 640px);
  display: grid;
  align-content: center;
  padding: 170px 0 90px;
}

.error-code {
  color: var(--gold);
  font: 600 0.72rem var(--font-mono);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.error-hero h1 {
  max-width: 760px;
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.1;
}

.error-hero .lede {
  max-width: 560px;
  margin-top: 20px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  max-width: 760px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* Legal prose (privacy policy, terms of service) */
.legal-body {
  width: min(100% - 48px, 780px);
  margin: 0 auto;
  padding: 48px 0 96px;
}

.legal-updated {
  color: var(--grass-2);
  font: 500 0.78rem var(--font-mono);
}

.legal-body .article-section ul {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}

.legal-body .article-section li {
  position: relative;
  padding-left: 22px;
  color: var(--grass);
}

.legal-body .article-section li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 185, 64, 0.4);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  h1 {
    font-size: 2.4rem;
  }

  .section-head h2 {
    font-size: 1.8rem;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 460px;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .masthead-top,
  .front-page-grid,
  .signal-hero-grid,
  .operator-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .masthead-top,
  .signal-hero-grid,
  .operator-grid {
    gap: 36px;
  }

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

  .issue-note {
    grid-column: 1 / -1;
  }

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

  .featured-grid .editorial-card:last-child,
  .topic-grid .topic-card:last-child {
    grid-column: 1 / -1;
  }

  .operator-grid {
    align-items: stretch;
  }

  .article-summary {
    position: static;
  }

  .article-layout {
    gap: 38px;
  }

  .ledger-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 26px;
  }

  .ledger-link {
    justify-self: start;
    grid-column: 1 / -1;
  }
}

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

  .epoch-dial {
    max-width: 420px;
    justify-self: center;
  }

  .welcome-receipt {
    max-width: 680px;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 18px;
  }

  .page-hero {
    padding: 124px 0 58px;
  }

  .section {
    padding: 66px 0;
  }

  h1 {
    font-size: 1.95rem;
  }

  .section-head h2 {
    font-size: 1.5rem;
  }

  .brand .name {
    font-size: 0.78rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

  .masthead {
    padding: 116px 0 62px;
  }

  .masthead h1,
  .signal-intro h1,
  .article-hero h1 {
    font-size: 1.9rem;
  }

  .masthead-top {
    margin-bottom: 32px;
  }

  .front-lead {
    grid-template-rows: auto auto;
  }

  .front-visual {
    min-height: 260px;
    padding: 24px;
  }

  .front-visual strong {
    font-size: 3.2rem;
  }

  .front-lead-copy,
  .front-brief,
  .issue-note,
  .lead-story-copy,
  .editorial-card,
  .topic-card {
    padding: 22px;
  }

  .front-lead-copy h2 {
    font-size: 1.5rem;
  }

  .front-secondary,
  .editorial-grid,
  .topic-grid,
  .standards-grid,
  .signals-section .news-list,
  .lead-story {
    grid-template-columns: 1fr;
  }

  .issue-note,
  .featured-grid .editorial-card:last-child,
  .topic-grid .topic-card:last-child {
    grid-column: auto;
  }

  .signals-section .news-item {
    padding: 22px 0 24px 30px;
  }

  .signals-section .news-item::before {
    left: 0;
    top: 29px;
    width: 9px;
    height: 9px;
  }

  .signals-section .news-list::before {
    left: 4px;
  }

  .topic-card {
    min-height: 250px;
  }

  .topic-card h3 {
    margin-top: 30px;
  }

  .operator-receipt dl {
    grid-template-columns: 1fr;
  }

  .operator-receipt dl > div,
  .operator-receipt dl > div:first-child {
    padding: 12px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .signal-hero {
    padding: 116px 0 58px;
  }

  .story-visual {
    min-height: 240px;
  }

  .compact-head,
  .pool-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .standards-grid > div,
  .standards-grid > div:first-child {
    min-height: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .standards-grid > div:first-child {
    border-top: 0;
  }

  .article-wrap {
    width: min(100% - 36px, 920px);
  }

  .article-hero {
    padding: 124px 0 58px;
  }

  .article-dek {
    font-size: 1.08rem;
  }

  .article-layout {
    padding-top: 48px;
    padding-bottom: 72px;
  }

  .article-section h2,
  .article-sources h2 {
    font-size: 1.35rem;
  }

  .article-section p {
    font-size: 1rem;
  }

  .home-welcome {
    min-height: 0;
    padding-top: 124px;
  }

  .welcome-grid {
    gap: 34px;
    padding-bottom: 48px;
  }

  .welcome-copy h1 {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .epoch-dial {
    max-width: none;
    width: 100%;
  }

  .epoch-dial .dial {
    --size: 186px;
  }

  .ledger-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .ledger-cell strong {
    font-size: 0.98rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
/* Utility and bounded archive navigation. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.archive-pagination {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto minmax(80px, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 42px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
}

.archive-pagination > :last-child {
  justify-self: end;
}

.archive-pagination div {
  display: flex;
  gap: 8px;
}

.archive-pagination a,
.archive-pagination [aria-current="page"] {
  min-width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
}

.archive-pagination [aria-current="page"] {
  color: var(--ink-dark);
  background: var(--gold);
  border-color: var(--gold);
}

@media (max-width: 560px) {
  .archive-pagination {
    grid-template-columns: 1fr 1fr;
  }

  .archive-pagination div {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-content: center;
  }
}
