:root {
  color-scheme: dark;
  --bg: #07131d;
  --panel: #0c1c28;
  --line: #294052;
  --text: #eff7fb;
  --muted: #a8bdca;
  --accent: #79d4ff;
  --good: #71d5a4;
  --bad: #f49a78;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; }
a { color: inherit; }
.topbar { min-height: 64px; padding: 0 28px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #37617c; border-radius: 8px; color: var(--accent); font-size: 12px; font-weight: 800; }
.topbar nav { display: flex; gap: 24px; color: var(--muted); font-size: 14px; }
.topbar nav a:hover, .topbar nav a:focus-visible { color: var(--text); }
main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.hero { padding: 88px 0 64px; max-width: 970px; }
.eyebrow, .section-heading span, .trace > article > span { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
h1 { max-width: 930px; margin: 14px 0 22px; font-size: clamp(40px, 5vw, 68px); line-height: 1.04; letter-spacing: -.035em; }
.lede { max-width: 820px; color: var(--muted); font-size: 19px; }
.review-question { margin-top: 34px; padding: 20px 24px; border-left: 3px solid var(--accent); background: var(--panel); }
.review-question p { margin: 4px 0 0; }
.trace-cta { display: flex; justify-content: space-between; gap: 24px; margin-top: 14px; padding: 18px 22px; border-radius: 8px; background: var(--accent); color: #062033; text-decoration: none; }
.trace-cta span { font-size: 13px; text-align: right; }
section { padding: 58px 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; gap: 16px; align-items: baseline; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-size: 30px; letter-spacing: -.02em; }
section > p { max-width: 880px; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 28px; }
.facts div { padding: 20px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts strong { display: block; font-size: 28px; }
.facts span { color: var(--muted); font-size: 13px; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 14px; margin: 34px 0; }
.flow div { min-height: 112px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.flow small, .flow strong, .flow span { display: block; }
.flow small { color: var(--accent); }
.flow span { margin-top: 5px; color: var(--muted); font-size: 13px; }
.flow i { color: var(--accent); font-style: normal; }
.invariant { padding: 18px 20px; border: 1px solid #37617c; border-radius: 8px; color: var(--muted); }
.invariant strong { color: var(--text); margin-right: 8px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); }
th, td { padding: 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
tbody th { min-width: 150px; }
tbody td { color: var(--muted); font-size: 14px; }
.focus { background: #102838; }
.pass, .fail { display: inline-block; border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 800; }
.pass { color: var(--good); background: #123027; }
.fail { color: var(--bad); background: #351f1d; }
.note { padding-left: 14px; border-left: 2px solid var(--line); font-size: 14px; }
.trace, .decisions, .claims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.trace article, .decisions article, .claims article { padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.trace h3 { min-height: 54px; margin: 8px 0 14px; font-size: 19px; }
.trace p, .decisions p, .claims li { color: var(--muted); font-size: 14px; }
.intervention { margin-top: 14px; padding: 22px; background: #102838; border-radius: 10px; }
.intervention p { margin-bottom: 0; color: var(--muted); }
details { margin-top: 14px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 8px; }
summary { cursor: pointer; font-weight: 750; }
details p { margin-bottom: 0; color: var(--muted); }
.decisions article { padding: 0; overflow: hidden; }
.decisions header, .decisions article > div { padding: 18px 20px; }
.decisions header { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
.decisions header span { color: var(--accent); font-size: 12px; }
.decisions article > div + div { border-top: 1px solid var(--line); }
.decisions small { color: var(--accent); font-weight: 700; }
.decisions p { margin-bottom: 0; }
.claims { grid-template-columns: 1fr 1fr; }
.claims h3 { margin-top: 0; }
.claims ul { padding-left: 20px; }
.claims li + li { margin-top: 10px; }
.metadata { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.metadata div { padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metadata dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.metadata dd { margin: 5px 0 0; overflow-wrap: anywhere; }
code { font-size: 12px; color: var(--accent); }
.artifacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.artifacts a { padding: 10px 14px; border: 1px solid var(--line); border-radius: 7px; text-decoration: none; font-size: 14px; }
.artifacts .primary { background: var(--accent); color: #062033; border-color: var(--accent); font-weight: 800; }
footer { margin: 18px 0 70px; padding: 24px; border: 1px solid var(--line); background: var(--panel); }
footer p { margin: 0; }

@media (max-width: 820px) {
  .topbar { padding: 14px 20px; align-items: flex-start; }
  .topbar nav { gap: 12px; flex-direction: column; }
  main { width: min(100% - 32px, 1180px); }
  .hero { padding-top: 56px; }
  .trace-cta { flex-direction: column; gap: 5px; }
  .trace-cta span { text-align: left; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div { border-bottom: 1px solid var(--line); }
  .flow, .trace, .decisions, .claims, .metadata { grid-template-columns: 1fr; }
  .flow i { transform: rotate(90deg); justify-self: center; }
  .metadata div { border-right: 0; }
}
