:root {
  color-scheme: light dark;
  --bg: #f8f5f6;
  --surface: #ffffff;
  --surface-soft: #f0ecef;
  --ink: #1b1315;
  --muted: #6c5c62;
  --line: rgba(27, 19, 21, 0.13);
  --accent: #e53935;
  --accent-soft: rgba(229, 57, 53, 0.1);
  --violet: #7f6ad7;
  --mint: #1f7a68;
  --blue: #27658a;
  --shadow: 0 22px 70px rgba(27, 19, 21, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f11;
    --surface: #18171a;
    --surface-soft: #222025;
    --ink: #fbfaf8;
    --muted: #b8afb3;
    --line: rgba(251, 250, 248, 0.14);
    --accent: #ff554c;
    --accent-soft: rgba(255, 85, 76, 0.14);
    --violet: #b7a7ff;
    --mint: #6bd2bc;
    --blue: #79b9da;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; text-decoration-color: color-mix(in oklab, var(--accent) 65%, transparent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
.container { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.skip { position: absolute; left: 16px; top: 14px; transform: translateY(-160%); background: var(--surface); border: 1px solid var(--line); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { transform: translateY(0); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0;
}
.brand__mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-block;
  background:
    radial-gradient(circle at 67% 35%, #fff 0 10%, transparent 11%),
    radial-gradient(circle at 34% 34%, var(--accent) 0 22%, transparent 23%),
    linear-gradient(135deg, var(--accent), var(--violet));
  box-shadow: 0 8px 24px color-mix(in oklab, var(--accent) 26%, transparent);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}
.nav__links a { text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.hero {
  padding: clamp(58px, 9vw, 118px) 0 42px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
h1, h2, h3 { font-family: "Inter Tight", Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: 0; line-height: 1.04; }
h1 { max-width: 930px; margin: 14px 0 18px; font-size: clamp(42px, 8vw, 84px); font-weight: 620; }
h2 { margin: 0 0 16px; font-size: clamp(30px, 5vw, 52px); font-weight: 610; }
h3 { margin: 0 0 10px; font-size: 23px; font-weight: 640; }
p { margin: 0 0 16px; }
.lede { max-width: 780px; color: var(--muted); font-size: clamp(18px, 2.5vw, 23px); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}
.section { padding: clamp(50px, 8vw, 88px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.grid, .grid--two { display: grid; gap: 14px; }
.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow);
}
.card--plain { box-shadow: none; background: var(--surface-soft); }
.fact-list, .answer-list, .source-list { padding-left: 1.1rem; margin: 0; }
.fact-list li, .answer-list li, .source-list li { margin: 9px 0; }
.kfacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.kfacts div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.kfacts dt { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.kfacts dd { margin: 6px 0 0; font-size: 18px; font-weight: 650; line-height: 1.25; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table { width: 100%; min-width: 700px; border-collapse: collapse; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
tr:last-child td { border-bottom: 0; }
.callout {
  margin-top: 22px;
  padding: 18px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 8px;
}
.diagram {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}
.node {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
  display: grid;
  align-content: center;
}
.node b { display: block; margin-bottom: 4px; }
.arrow { display: grid; place-items: center; color: var(--muted); font-weight: 700; }
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
}
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 700; }
details div { color: var(--muted); margin-top: 10px; }
.cta {
  background: var(--ink);
  color: var(--bg);
  padding: 54px 0;
}
.cta p { color: color-mix(in oklab, var(--bg) 75%, transparent); max-width: 720px; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--accent) 50%, var(--line));
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.button--ghost { background: transparent; color: inherit; border-color: currentColor; }
.site-footer { padding: 34px 0; color: var(--muted); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 20px; }
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a { text-decoration: none; }
.small { font-size: 14px; color: var(--muted); }
.source-date { margin-top: 18px; color: var(--muted); font-size: 14px; }

@media (max-width: 820px) {
  .nav { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .nav__links { gap: 12px; }
  .grid, .grid--two, .kfacts, .diagram, .footer-grid { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); min-height: 24px; }
  .footer-links { justify-content: flex-start; }
  table { min-width: 620px; }
}
