:root {
  color-scheme: light dark;
  --fg: #1a1a1a;
  --muted: #555;
  --bg: #ffffff;
  --code-bg: #f4f4f5;
  --border: #e4e4e7;
  --link: #2563eb;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e6e6e6;
    --muted: #a1a1aa;
    --bg: #0f1115;
    --code-bg: #1b1e26;
    --border: #2a2e37;
    --link: #6ea8fe;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
}
header, main, footer { max-width: 760px; margin: 0 auto; padding: 0 20px; }
header {
  display: flex; gap: 14px; align-items: center;
  padding-top: 18px; padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
header a { color: var(--fg); text-decoration: none; }
main { padding-top: 8px; padding-bottom: 40px; }
h1 { font-size: 1.7rem; line-height: 1.25; margin: 28px 0 14px; }
h2 { font-size: 1.2rem; margin: 28px 0 10px; }
a { color: var(--link); }
p, li { color: var(--fg); }
.lede { font-size: 1.08rem; }
code {
  background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 4px;
  font: 0.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
pre {
  background: var(--code-bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 14px 16px; overflow-x: auto;
}
pre code { background: none; padding: 0; }
.note { color: var(--muted); font-size: 0.95rem; }
nav.pages { margin: 10px 0 0; }
nav.pages a { display: inline-block; margin-right: 14px; }
footer {
  border-top: 1px solid var(--border); padding-top: 18px; padding-bottom: 40px;
  color: var(--muted); font-size: 0.9rem;
}
