:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5b6573;
  --line: #d9dee6;
  --paper: #ffffff;
  --soft: #f5f7fa;
  --accent: #243f5f;
}

* { box-sizing: border-box; }
html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.65; }
a { color: var(--accent); text-underline-offset: 0.16em; }
a:hover { text-decoration-thickness: 2px; }
.wrap { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav nav { display: flex; gap: 22px; }
.brand { color: var(--ink); text-decoration: none; font-weight: 720; letter-spacing: -0.02em; }
.hero { padding: 88px 0 60px; }
.eyebrow { margin: 0 0 12px; color: var(--muted); font-size: .84rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
h1 { max-width: 780px; margin: 0 0 22px; font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; letter-spacing: -.055em; }
.lede { max-width: 820px; margin: 0; color: var(--muted); font-size: clamp(1.12rem, 2vw, 1.36rem); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-bottom: 32px; }
.grid article, .panel { border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
h2 { margin-top: 0; line-height: 1.25; letter-spacing: -.025em; }
.panel { margin-top: 22px; }
.muted { background: var(--soft); }
.legal { max-width: 820px; padding-top: 64px; padding-bottom: 56px; }
.legal h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
.legal h2 { margin-top: 2.2rem; }
.legal code { overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--line); margin-top: 72px; color: var(--muted); }
.footer-row { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 60px; }
  .footer-row { align-items: flex-start; flex-direction: column; justify-content: center; padding: 20px 0; }
}
