:root {
  --bg: #080b14;
  --surface: #0d1420;
  --surface-soft: #101a27;
  --border: #293547;
  --text: #f8fafc;
  --muted: #b5c0cf;
  --cyan: #67e8f9;
  --cyan-dark: #06212a;
  --green: #34d399;
  --amber: #fbbf24;
  --max: 1120px;
  --reading: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse 60% 32% at 85% -4%, rgba(34, 211, 238, .1), transparent 68%),
    var(--bg);
  color: var(--text);
  font-family: "Hanken Grotesk", Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
a { color: var(--cyan); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--text);
  color: var(--bg);
}
.skip-link:focus { top: 12px; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 11, 20, .94);
  backdrop-filter: blur(14px);
}
.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 850;
  text-decoration: none;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #0891b2;
}
.brand em { color: var(--cyan); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 17px;
  border: 1px solid var(--cyan);
  border-radius: 7px;
  background: var(--cyan);
  color: var(--cyan-dark);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}
.breadcrumbs { padding-top: 28px; color: var(--muted); font-size: 14px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #6f7d90; }
.hero { max-width: 920px; padding: 62px 0 52px; }
.eyebrow {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.14; letter-spacing: -.025em; text-wrap: balance; }
h1 { max-width: 900px; margin: 15px 0 20px; font-size: clamp(2.35rem, 6vw, 4.4rem); }
h2 { margin: 56px 0 18px; font-size: clamp(1.65rem, 3.2vw, 2.35rem); }
h3 { margin: 28px 0 9px; font-size: 1.25rem; }
.dek { max-width: var(--reading); margin: 0; color: var(--muted); font-size: 1.18rem; }
.byline { margin-top: 25px; color: var(--muted); font-size: 14px; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--reading)) minmax(220px, 1fr);
  gap: 72px;
  align-items: start;
  padding-bottom: 76px;
}
.article p, .article li { color: var(--muted); }
.article strong { color: var(--text); }
.article ul, .article ol { padding-left: 1.25rem; }
.article li + li { margin-top: 8px; }
.lede {
  margin: 0 0 30px;
  padding: 22px;
  border-left: 4px solid var(--cyan);
  background: var(--surface);
  color: var(--text) !important;
}
.notice {
  margin: 28px 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.notice strong { display: block; margin-bottom: 4px; color: var(--cyan); }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 25px 0 35px;
}
.metric {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.metric-value { display: block; color: var(--cyan); font-size: 2rem; font-weight: 850; line-height: 1; }
.metric-label { display: block; margin-top: 9px; color: var(--muted); font-size: 14px; }
.table-wrap { overflow-x: auto; margin: 24px 0 34px; border: 1px solid var(--border); border-radius: 8px; }
table { width: 100%; min-width: 650px; border-collapse: collapse; background: var(--surface); font-size: 15px; }
caption { padding: 14px 16px; color: var(--text); font-weight: 800; text-align: left; background: var(--surface-soft); }
th, td { padding: 14px 16px; border-top: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--text); }
td { color: var(--muted); }
.timeline { margin: 28px 0; padding: 0; list-style: none; counter-reset: stages; }
.timeline li {
  position: relative;
  margin: 0;
  padding: 0 0 28px 44px;
  border-left: 1px solid var(--border);
  counter-increment: stages;
}
.timeline li::before {
  content: counter(stages);
  position: absolute;
  left: -17px;
  top: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  background: var(--bg);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}
.timeline li:last-child { border-left-color: transparent; }
.timeline h3 { margin: 0 0 5px; }
.aside {
  position: sticky;
  top: 96px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-size: 14px;
}
.aside h2 { margin: 0 0 12px; font-size: 17px; }
.aside ul { margin: 0; padding: 0; list-style: none; }
.aside li + li { margin-top: 10px; }
.source-list { padding-left: 1.2rem; font-size: 15px; }
.related {
  border-top: 1px solid var(--border);
  padding: 50px 0 65px;
}
.related h2 { margin-top: 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related-card {
  min-height: 130px;
  display: block;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}
.related-card span { display: block; margin-top: 9px; color: var(--muted); font-size: 14px; font-weight: 500; }
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 38px; color: var(--muted); font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

@media (max-width: 840px) {
  .article-layout { grid-template-columns: 1fr; gap: 28px; }
  .aside { position: static; order: -1; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .nav-links > a:first-child { display: none; }
  .hero { padding: 48px 0 40px; }
  .metric-grid { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
