:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f4f4f8;
  --text: #14141f;
  --muted: #5e5e72;
  --border: #d9d9e3;
  --primary: #6d28d9;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e16;
    --surface: #181824;
    --text: #f5f5fa;
    --muted: #a0a0b8;
    --border: #2e2e44;
    --primary: #a78bfa;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
header, main, footer { width: 100%; max-width: 44rem; margin: 0 auto; padding: 1rem 1.25rem; }
header { border-bottom: 1px solid var(--border); }
.brand { margin: 0 0 0.5rem; font-weight: 800; font-size: 1.25rem; }
nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
a { color: var(--primary); }
nav a[aria-current="page"] { color: var(--text); font-weight: 700; text-decoration: none; }
h1 { font-size: 1.75rem; line-height: 1.25; margin: 1rem 0 0.5rem; }
h2 { font-size: 1.15rem; margin: 1.5rem 0 0.25rem; }
.meta { color: var(--muted); font-size: 0.875rem; margin-top: 0; }
.draft {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}
footer { color: var(--muted); font-size: 0.875rem; border-top: 1px solid var(--border); margin-top: 2rem; }
