:root {
  --bg: #14171c;
  --fg: #e6e8eb;
  --muted: #9aa3ad;
  --accent: #7fb2ff;
  --line: #2a3038;
  --code: #1d2229;
  color-scheme: dark light;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7f9;
    --fg: #1b1f24;
    --muted: #5a6470;
    --accent: #1f5fcc;
    --line: #d5d9de;
    --code: #e9ecf0;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', sans-serif; }
a { color: var(--accent); }
.site-header, .site-footer { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: baseline; padding: 0.9rem 1rem; max-width: 52rem; margin: 0 auto; }
.site-header { border-bottom: 1px solid var(--line); }
.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; color: var(--muted); font-size: 0.9rem; flex-direction: column; gap: 0.4rem; }
.site-footer p { margin: 0; }
nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
nav a { text-decoration: none; }
nav a[aria-current='page'] { color: var(--fg); font-weight: 600; }
.brand { font-weight: 700; font-size: 1.2rem; color: var(--fg); text-decoration: none; margin-right: auto; }
.site-main { max-width: 52rem; margin: 0 auto; padding: 1rem 1rem 0; }
h1 { font-size: 2rem; line-height: 1.2; margin: 1.5rem 0 1rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 0.5rem; }
h3 { font-size: 1rem; margin: 1rem 0 0.25rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
h2 small { font-weight: 400; color: var(--muted); font-size: 0.8em; }
code, kbd, pre { background: var(--code); border-radius: 4px; font: 0.9em ui-monospace, Menlo, Consolas, monospace; }
code, kbd { padding: 0.1em 0.35em; }
pre { padding: 0.75rem; overflow-x: auto; white-space: pre-wrap; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.example { border-top: 1px solid var(--line); }
.button { display: inline-block; padding: 0.45rem 0.9rem; border: 1px solid var(--accent); border-radius: 6px; text-decoration: none; }
details { margin: 0.5rem 0; }
@media (max-width: 40rem) { h1 { font-size: 1.6rem; } table { display: block; overflow-x: auto; } }
