:root {
  color-scheme: light dark;
  --background: #111318;
  --surface: #1b1e25;
  --text: #f4f5f7;
  --muted: #a8afbb;
  --line: #343944;
  --accent: #90a7ff;
  --warning: #ffd27d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

.page { width: min(860px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 48px; }
.hero { padding: 36px 0 54px; }
.eyebrow { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; }
h1 { margin: 0.1em 0 0.15em; font-size: clamp(42px, 8vw, 68px); line-height: 1.05; letter-spacing: -0.04em; }
h2 { margin: 0 0 0.4em; font-size: 23px; line-height: 1.25; }
.lead { margin: 0 0 0.5em; font-size: 23px; }
.muted { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { display: block; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); text-decoration: none; }
.card p { min-height: 3.3em; color: var(--muted); }
.card span { color: var(--accent); font-weight: 650; }

.document { max-width: 760px; }
.topnav { display: flex; justify-content: space-between; margin-bottom: 48px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.topnav a:first-child { color: var(--text); font-weight: 750; text-decoration: none; }
.document-header { margin-bottom: 44px; }
.document-header h1 { font-size: clamp(36px, 6vw, 52px); }
.document section { margin: 36px 0; }
.document li { margin: 0.55em 0; padding-left: 0.25em; }

footer { margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

@media (max-width: 620px) {
  .page { width: min(100% - 28px, 860px); padding-top: 30px; }
  .cards { grid-template-columns: 1fr; }
  .card p { min-height: 0; }
}
