:root {
  --bg: #fbfaf7;
  --text: #1d1d1b;
  --muted: #5d5b55;
  --line: #d9d6cd;
  --accent: #2f6b3a;
  --code-bg: #f0eee6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161714;
    --text: #ecebe5;
    --muted: #a9a79d;
    --line: #3a3b36;
    --accent: #8fcf9a;
    --code-bg: #20211d;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
header, main, footer { max-width: 44rem; margin: 0 auto; padding: 0 1rem; }
header { padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: baseline; justify-content: space-between; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; }
nav a { margin-right: 1rem; }
a { color: var(--accent); }
h1 { font-size: 1.9rem; line-height: 1.25; margin: 1.5rem 0 0.5rem; }
h2 { font-size: 1.3rem; margin: 2.25rem 0 0.5rem; }
p, ul, ol { margin: 0.6rem 0; }
.lead { font-size: 1.2rem; }
.muted { color: var(--muted); }
pre {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.75rem;
  overflow-x: auto;
  max-width: 100%;
  font-size: 0.85rem;
  line-height: 1.45;
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; overflow-wrap: anywhere; }
pre code { font-size: inherit; overflow-wrap: normal; }
.table-wrap { overflow-x: auto; max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
footer { margin-top: 3rem; padding-top: 1rem; padding-bottom: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
