/* NewsEdge — design tokens
   graphite #111417 · panel #191d21 · paper #e9e6df · signal-red #d43a41 · amber #c9a227 · muted #878d96
   type: Unbounded (wordmark/H1 display, restrained) · Manrope (body) · JetBrains Mono (data voice)
   signature: the timeline strip (signal → kickoff → score) — the product IS the time gap. */

:root {
  --bg: #111417; --panel: #191d21; --panel2: #1f242a;
  --paper: #e9e6df; --muted: #878d96; --line: #262b31;
  --red: #d43a41; --amber: #c9a227;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --body: "Manrope", system-ui, sans-serif;
  --disp: "Unbounded", var(--body);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--paper);
  font-family: var(--body); font-size: 16px; line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
main { max-width: 880px; margin: 0 auto; padding: 0 20px 64px; }

/* ── header ── */
.top {
  max-width: 880px; margin: 0 auto; padding: 22px 20px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.wordmark { font-family: var(--disp); font-weight: 800; font-size: 20px; letter-spacing: .02em; }
.wordmark span { color: var(--red); }
.top nav { display: flex; gap: 18px; font-family: var(--mono); font-size: 13px; }
.top .lang { color: var(--muted); }
.top .lang:hover, .top .botlink:hover { color: var(--paper); }
.top .botlink { color: var(--amber); }
.btn-top { padding: 8px 16px; font-size: 13px; }
.btn-ghost { background: transparent; border: 1px solid var(--amber); color: var(--amber); margin-left: 10px; }
.btn-ghost:hover { background: rgba(201,162,39,.08); }

/* ── thesis ── */
.thesis {
  font-family: var(--disp); font-weight: 600; font-size: clamp(20px, 3.4vw, 30px);
  line-height: 1.3; margin: 28px 0 26px; max-width: 780px;
}

/* ── the signature: timeline strip ── */
.timeline {
  display: flex; align-items: stretch; gap: 0; margin: 18px 0;
  font-family: var(--mono); background: var(--panel);
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.tl-node, .tl-score { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.tl-k { font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.tl-v { font-size: 13px; }
.tl-gap {
  flex: 1; display: flex; align-items: center; justify-content: center; position: relative;
  font-size: 12px; color: var(--amber); padding: 0 10px; min-width: 120px;
}
.tl-gap::before {
  content: ""; position: absolute; left: 8px; right: 8px; top: 50%;
  border-top: 1px dashed var(--line); z-index: 0;
}
.tl-gap span { position: relative; background: var(--panel); padding: 0 10px; z-index: 1; }
.tl-score { border-left: 1px solid var(--line); background: var(--panel2); align-items: flex-end; }
.tl-num { font-size: 22px; font-weight: 600; color: var(--amber); }

/* ── hero receipt ── */
.hero-receipt { margin: 0 0 8px; }
.hero-title { margin: 10px 0 0; font-size: 17px; font-weight: 700; }
.hero-title a:hover { color: var(--amber); }

/* ── stats ── */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; margin: 26px 0 40px;
}
.stats div { background: var(--bg); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.stats b { font-family: var(--mono); font-size: 20px; font-weight: 600; }
.stats span { font-size: 12px; color: var(--muted); }

/* ── ledger ── */
.ledger h2, .how h2, .cta h2 { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.ledger .sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; max-width: 640px; }
.row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 16px 14px 18px; margin: 0 0 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  border-left-width: 3px; transition: background .12s ease;
}
.row:hover { background: var(--panel2); }
.row.imp-high { border-left-color: var(--red); }
.row.imp-medium { border-left-color: var(--amber); }
.row.imp-low { border-left-color: var(--line); }
.row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.row-eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); }
.row-title { font-weight: 700; font-size: 15px; }
.row-match { font-size: 13px; color: var(--muted); }
.row-data { display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
  font-family: var(--mono); white-space: nowrap; }
.row-gap { font-size: 12px; color: var(--amber); }
.row-score { font-size: 18px; font-weight: 600; }

/* ── article ── */
.article h1 { font-size: clamp(20px, 3vw, 28px); line-height: 1.25; margin: 8px 0 6px; }
.article.imp-high h1 { border-left: 3px solid var(--red); padding-left: 14px; }
.article.imp-medium h1 { border-left: 3px solid var(--amber); padding-left: 14px; }
.crumb { font-family: var(--mono); font-size: 13px; margin: 20px 0 8px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--paper); }
.body { font-size: 16px; max-width: 680px; }
.facts { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 20px 0; }
.facts div { background: var(--bg); padding: 10px 16px; display: flex; flex-direction: column; gap: 2px; flex: 1 1 140px; }
.facts span { font-size: 11px; color: var(--muted); }
.facts b { font-size: 14px; }
.teamlink { font-size: 14px; }
.teamlink a { color: var(--amber); }
.teamlink a:hover { text-decoration: underline; }

/* ── how / cta / footer ── */
.how { margin: 44px 0 0; }
.how ol { margin: 10px 0 0; padding-left: 20px; max-width: 640px; }
.how li { margin: 0 0 8px; color: var(--paper); }
.cta { margin: 44px 0 0; padding: 24px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 8px; }
.cta p { color: var(--muted); font-size: 14px; max-width: 560px; margin: 6px 0 16px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 6px;
  background: var(--red); color: #fff; font-weight: 700; font-size: 15px;
}
.btn:hover { filter: brightness(1.1); }
.foot { max-width: 880px; margin: 0 auto; padding: 24px 20px 40px;
  color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.foot-nav { margin: 0 0 10px; }
.foot-nav span { font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; margin-right: 8px; }
.foot-nav a { color: var(--muted); }
.foot-nav a:hover { color: var(--paper); }

/* ── a11y / responsive ── */
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .timeline { flex-direction: column; }
  .tl-gap { justify-content: flex-start; padding: 8px 16px; min-width: 0; }
  .tl-gap::before { display: none; }
  .tl-score { border-left: none; border-top: 1px solid var(--line); align-items: flex-start; }
  .row { flex-direction: column; }
  .row-data { flex-direction: row; align-items: baseline; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
