:root {
  --fg: #1c1c1c;
  --muted: #666;
  --bg: #fff;
  --accent: #1f407a;
  --rule: #ddd;
}
@media (prefers-color-scheme: dark) {
  :root { --fg: #e6e6e6; --muted: #999; --bg: #16181c; --accent: #8fb0e8; --rule: #333; }
}
* { box-sizing: border-box; }
body {
  margin: 0 auto;
  max-width: 46rem;
  padding: 1.5rem 1rem 3rem;
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--fg);
  background: var(--bg);
}
header { border-bottom: 1px solid var(--rule); padding-bottom: .75rem; margin-bottom: 1.5rem; }
.site-title { font-size: 1.3rem; font-weight: 600; color: var(--fg); text-decoration: none; }
.site-subtitle { color: var(--muted); margin-left: .5rem; }
nav { margin-top: .5rem; display: flex; flex-wrap: wrap; gap: 1rem; }
nav a { text-decoration: none; }
nav a.active { font-weight: 600; text-decoration: underline; }
a { color: var(--accent); }
h1 { font-size: 1.7rem; line-height: 1.25; }
h2 { font-size: 1.25rem; margin-top: 2rem; }
table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
th, td { border-bottom: 1px solid var(--rule); padding: .4rem .6rem; text-align: left; vertical-align: top; }
img { max-width: 100%; height: auto; }
code { font-size: .9em; }
footer { margin-top: 3rem; padding-top: .75rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .85rem; }
