:root {
  --bg: #061013;
  --bg-raise: #0a2432;
  --bg-raise-2: #163a4f;
  --teal: #1c525e;
  --teal-2: #2f9474;
  --green: #59ee50;
  --amber: #f0b433;
  --amber-dark: #d69e2e;
  --amber-light: #f7d084;
  --magenta: #d157a3;
  --text: #eaf3f5;
  --text-dim: #9db8c0;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(47, 148, 116, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(240, 180, 51, 0.08), transparent 55%);
}

a { color: inherit; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(234, 243, 245, 0.08);
  position: sticky;
  top: 0;
  background: rgba(6, 16, 19, 0.82);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-logo { width: 38px; height: 38px; border-radius: 10px; }
.brand-word { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.02em; }
.brand-word em { color: var(--amber); font-style: normal; }

.topnav { display: flex; gap: 1.4rem; font-size: 0.95rem; }
.topnav a { text-decoration: none; color: var(--text-dim); font-weight: 600; }
.topnav a:hover { color: var(--amber); }

main { max-width: 1180px; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem); }

.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--amber);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
}

.title-row { display: flex; align-items: center; gap: 1rem; margin: 0.25rem 0 0.75rem; }
.avatar { width: 72px; height: 72px; border-radius: 50%; border: 2px solid rgba(240, 180, 51, 0.5); }

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 br { display: none; }

.lede { font-size: 1.12rem; color: var(--text); max-width: 34rem; margin: 1rem 0 0.4rem; }
.lede strong { color: var(--amber-light); }
.tagline { color: var(--text-dim); font-size: 1rem; margin: 0 0 1.5rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.25rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.78rem 1.35rem; border-radius: 12px;
  font-weight: 600; text-decoration: none; font-size: 0.98rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:focus-visible, .card:focus-visible, a:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

.btn-primary { background: var(--amber); color: #141b12; box-shadow: 0 6px 24px rgba(240, 180, 51, 0.25); }
.btn-primary:hover { background: var(--amber-light); }
.btn-ghost { border: 1px solid rgba(234, 243, 245, 0.22); color: var(--text); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

.live-note { color: var(--text-dim); font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(89, 238, 80, 0.18); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-art { position: relative; }
.hero-art img {
  width: 100%; height: auto; border-radius: 16px;
  border: 1px solid rgba(234, 243, 245, 0.1);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 90px rgba(47, 148, 116, 0.12);
  display: block;
}

.family { margin-top: clamp(3rem, 7vw, 5.5rem); }
.family h2 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin: 0 0 0.3rem; letter-spacing: -0.01em;
}
.family-sub { color: var(--text-dim); margin: 0 0 1.75rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.card {
  display: flex; flex-direction: column; gap: 0.4rem;
  background: var(--bg-raise); border: 1px solid rgba(234, 243, 245, 0.1);
  border-radius: 16px; padding: 1.5rem; text-decoration: none;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(240, 180, 51, 0.4); background: var(--bg-raise-2); }
.card-featured { background: linear-gradient(160deg, var(--bg-raise), rgba(28, 82, 94, 0.55)); }
.card-mark { width: 48px; height: 48px; border-radius: 12px; }
.card-live {
  display: flex; align-items: center; justify-content: center;
  background: var(--magenta); color: #fff; border-radius: 12px;
}
.card-live svg { width: 22px; height: 22px; fill: #fff; }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin: 0.35rem 0 0; }
.card p { color: var(--text-dim); font-size: 0.96rem; margin: 0 0 0.4rem; flex: 1; }
.card-link { color: var(--amber); font-weight: 600; font-size: 0.88rem; }

footer { border-top: 1px solid rgba(234, 243, 245, 0.08); margin-top: clamp(3rem, 7vw, 5rem); padding: 2rem clamp(1.25rem, 4vw, 3rem); }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-mark { width: 44px; height: 44px; border-radius: 50%; }
.footer-line { color: var(--text-dim); font-size: 0.9rem; margin: 0; flex: 1; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: 0.88rem; }
.footer-nav a { color: var(--text-dim); text-decoration: none; }
.footer-nav a:hover { color: var(--amber); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .cards { grid-template-columns: 1fr; }
  .topnav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}

.next-up {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  display: block;
  background: linear-gradient(128deg, rgba(28, 82, 94, 0.85), rgba(10, 36, 50, 0.95));
  border: 1px solid rgba(240, 180, 51, 0.4);
  border-radius: 20px;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 80px rgba(240, 180, 51, 0.07);
}
.next-up::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 5px;
  background: linear-gradient(180deg, var(--amber), var(--magenta));
}
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(240, 180, 51, 0.14);
  border: 1px solid rgba(240, 180, 51, 0.45);
  color: var(--amber-light);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.4rem 0.85rem; border-radius: 999px; margin: 0 0 0.9rem;
}
.badge .live-dot { width: 7px; height: 7px; box-shadow: 0 0 0 3px rgba(89, 238, 80, 0.2); }
.teaser {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.7rem); line-height: 1.1;
  letter-spacing: -0.02em; margin: 0 0 0.6rem;
}
.teaser-sub { color: var(--text-dim); font-size: 1rem; margin: 0 0 1.3rem; max-width: 40rem; }
.next-up .cta-row { margin-bottom: 0; }
.next-copy { max-width: 52rem; }
.next-link { color: var(--amber); font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.next-link:hover { color: var(--amber-light); }
.topnav-hot { color: var(--amber) !important; }
.topnav-hub { color: var(--green) !important; }

/* Link hub band — the way to everything that is not this segment */
.hub {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: 18px;
  border: 1px solid rgba(89, 238, 80, 0.35);
  background: linear-gradient(118deg, rgba(28, 82, 94, 0.6), rgba(10, 36, 50, 0.92) 58%, rgba(47, 148, 116, 0.22));
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4), 0 0 70px rgba(89, 238, 80, 0.06);
  position: relative; overflow: hidden;
}
.hub::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 5px;
  background: linear-gradient(180deg, var(--green), var(--teal-2));
}
.hub-copy { max-width: 40rem; }
.hub-eyebrow {
  margin: 0 0 0.35rem; color: var(--green); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.72rem;
}
.hub h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem); letter-spacing: -0.01em; margin: 0 0 0.4rem;
}
.hub-sub { color: var(--text-dim); margin: 0; font-size: 0.98rem; }
.btn-hub {
  border: 1px solid var(--green); color: var(--green);
  background: rgba(89, 238, 80, 0.08); white-space: nowrap;
}
.btn-hub:hover { background: var(--green); color: #06210a; border-color: var(--green); box-shadow: 0 8px 28px rgba(89, 238, 80, 0.22); }

@media (max-width: 640px) {
  .btn-hub { width: 100%; justify-content: center; }
  /* The hero title is authored as two lines with a <br>; show it on narrow screens so it
     breaks instead of running off the right edge, and step the size down to fit. */
  h1 { font-size: clamp(2rem, 8.6vw, 2.6rem); }
  h1 br { display: inline; }
}

@media (max-width: 900px) {
  .badge { font-size: 0.7rem; }
}

/* ---- Correction ledger ------------------------------------------------- */
.ledger-page .ledger { max-width: 820px; padding-top: clamp(2rem, 5vw, 3.5rem); }
.ledger-label {
  margin: 0 0 0.6rem; color: var(--amber); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.74rem;
}
.ledger h1 { font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.05; margin: 0 0 1.6rem; }
.ledger h2.ledger-h {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-light);
  margin: 2.2rem 0 0.7rem;
}
.ledger p { color: var(--text); margin: 0 0 1rem; font-size: 1.03rem; }
.ledger-intro { color: var(--text-dim) !important; font-size: 1.06rem; max-width: 44rem; }
.claim-block {
  border-left: 4px solid var(--amber); background: rgba(240, 180, 51, 0.07);
  padding: 1rem 1.25rem; border-radius: 0 12px 12px 0;
}
.claim-block p { font-size: 1.12rem; margin: 0; }
.check-block {
  border-left: 4px solid var(--green); background: rgba(89, 238, 80, 0.06);
  padding: 1rem 1.25rem; border-radius: 0 12px 12px 0;
}
.check-block p { margin: 0; }
.source-list { list-style: none; padding: 0; margin: 0; }
.source-list li { margin: 0 0 0.55rem; font-size: 0.94rem; }
.source-list a { color: var(--text-dim); text-decoration: none; border-bottom: 1px solid rgba(157, 184, 192, 0.35); }
.source-list a:hover { color: var(--amber); border-color: var(--amber); }
.ledger-foot {
  margin-top: 2.5rem; padding-top: 1.2rem; color: var(--text-dim);
  border-top: 1px solid rgba(234, 243, 245, 0.1); font-size: 0.95rem;
}
.ledger-foot a { color: var(--amber); text-decoration: none; }
.ledger-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.ledger-list li { border-top: 1px solid rgba(234, 243, 245, 0.1); }
.ledger-list a {
  display: grid; grid-template-columns: 7.5rem 1fr 5rem; gap: 1rem;
  align-items: baseline; padding: 1.05rem 0.25rem; text-decoration: none;
}
.ledger-list a:hover .row-title, .ledger-list a:hover .row-go { color: var(--amber); }
.ledger-list a:hover { background: rgba(240, 180, 51, 0.03); }
.ledger-list a { border-radius: 8px; }
.row-go { color: var(--text-dim); margin-left: 0.35rem; }
.row-date { color: var(--text-dim); font-size: 0.86rem; }
.row-title { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; }
.row-ep { color: var(--amber); font-size: 0.8rem; text-align: right; letter-spacing: 0.08em; }
@media (max-width: 640px) {
  .ledger-list a { grid-template-columns: 1fr; gap: 0.2rem; }
  .row-ep { text-align: left; }
}
