:root {
  --bg: #faf7f0;
  --fg: #1c1a17;
  --muted: #5c574e;
  --accent: #b4531f;
  --line: #e3ddd0;
  --code-bg: #f2ede2;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--fg);
  background: var(--bg);
}
header, main, footer { max-width: 820px; margin: 0 auto; padding: 1rem 1.25rem; }
header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
header .brand { font-weight: 700; text-decoration: none; color: var(--fg); }
header nav a, footer a { color: var(--accent); }
a { color: var(--accent); }
h1 { font-size: 1.8rem; line-height: 1.2; margin: 1.5rem 0 0.5rem; }
h2 { font-size: 1.3rem; margin: 2rem 0 0.5rem; border-bottom: 1px solid var(--line); padding-bottom: 0.25rem; }
h3 { font-size: 1.05rem; margin: 1.25rem 0 0.35rem; }
.lede { font-size: 1.05rem; color: var(--muted); }
section { margin-bottom: 0.5rem; }
table { width: 100%; border-collapse: collapse; margin: 0.5rem 0; }
th, td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
code { background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.9em; }
pre { background: var(--code-bg); padding: 0.9rem 1rem; border-radius: 8px; overflow-x: auto; border: 1px solid var(--line); }
pre code { background: none; padding: 0; font-size: 0.85rem; }
footer { color: var(--muted); border-top: 1px solid var(--line); margin-top: 2rem; font-size: 0.9rem; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #17150f; --fg: #efe9dc; --muted: #a8a091; --accent: #e8823f; --line: #322d24; --code-bg: #23201a; }
}
