:root {
  color-scheme: light dark;
  --bg: #faf9f5;
  --surface: #f2f0e8;
  --fg: #1d261f;
  --muted: #526055;
  --accent: #2d5439;
  --border: #d5d3c8;
  --mono-bg: #eceae0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141915;
    --surface: #1c231e;
    --fg: #dfe6e0;
    --muted: #9aa89d;
    --accent: #8cb898;
    --border: #2d3830;
    --mono-bg: #202822;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 2.5rem 1.25rem 3.5rem;
  background: var(--bg);
  color: var(--fg);
  font-family: Georgia, "Palatino Linotype", "Book Antiqua", serif;
  line-height: 1.68;
}
main, header, footer {
  max-width: 44rem;
  margin: 0 auto;
}
header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.1rem;
  margin-bottom: 2rem;
}
.kicker {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.35rem;
}
h1 {
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.28;
  margin: 0 0 0.55rem;
}
h2 {
  font-size: 1.18rem;
  margin: 2rem 0 0.65rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25rem;
}
p { margin: 0 0 1rem; }
nav {
  margin-top: 0.75rem;
  font-size: 0.92rem;
}
nav a, a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
nav span { color: var(--muted); margin: 0 0.45rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.1rem 0 1.5rem;
  font-size: 0.94rem;
}
th, td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85rem;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: var(--mono-bg);
  padding: 0.12rem 0.32rem;
  border-radius: 3px;
}
dl { margin: 1rem 0; }
dt { font-weight: 600; margin-top: 0.75rem; }
dd { margin: 0.2rem 0 0 1.1rem; color: var(--fg); }
footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}
@media print {
  body { background: #fff; color: #000; padding: 0.5in; }
  nav { display: none; }
  a { color: #000; text-decoration: none; }
}
