:root {
  --bg: #ffffff;
  --text: #1f2933;
  --muted: #5b6770;
  --accent: #1d4e89;
  --line: #e1e5ea;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181d;
    --text: #e6e9ed;
    --muted: #9aa5b0;
    --accent: #7fb2ee;
    --line: #2a313a;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
}
header, main, footer {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}
header { padding-top: 28px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
header .brand { font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
nav { margin-top: 8px; font-size: .95rem; }
nav a { margin-right: 16px; color: var(--accent); }
h1 { font-size: 1.9rem; margin: 32px 0 8px; }
h2 { font-size: 1.3rem; margin: 36px 0 8px; }
h3 { font-size: 1.05rem; margin: 22px 0 6px; }
p, ul { margin: 0 0 14px; }
a { color: var(--accent); }
.meta { color: var(--muted); font-size: .9rem; }
.todo { background: #fff3b0; color: #1f2933; padding: 0 4px; border-radius: 3px; }
footer { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 16px; padding-bottom: 32px; color: var(--muted); font-size: .9rem; }
footer a { margin-right: 14px; }
@media (max-width: 480px) { h1 { font-size: 1.6rem; } }
