:root {
  --bg: #fbfaf7;
  --fg: #1d2330;
  --muted: #5b6372;
  --rule: #e4e1d8;
  --accent: #2f6f5e;
  --note-bg: #fff6d6;
  --note-fg: #6b5300;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171d;
    --fg: #e6e8ec;
    --muted: #9aa3b2;
    --rule: #2a2f38;
    --accent: #7cc4ad;
    --note-bg: #3a3214;
    --note-fg: #f3dc8b;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 ui-serif, Georgia, "Times New Roman", serif;
}
header, main, footer { max-width: 42rem; margin: 0 auto; padding: 0 16px; }
header { padding-top: 32px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
header a.home { color: var(--fg); text-decoration: none; font: 600 1rem/1.2 ui-sans-serif, system-ui, sans-serif; letter-spacing: .01em; }
nav { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 18px; font: .9rem/1.4 ui-sans-serif, system-ui, sans-serif; }
nav a { color: var(--muted); text-decoration: none; }
nav a[aria-current="page"] { color: var(--accent); }
main { padding-top: 24px; padding-bottom: 48px; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: .4em 0 .2em; }
h2 { font: 600 1.05rem/1.3 ui-sans-serif, system-ui, sans-serif; margin: 2em 0 .4em; }
p.updated { color: var(--muted); font-size: .9rem; margin-top: 0; }
a { color: var(--accent); }
ul, ol { padding-left: 1.3em; }
li { margin: .25em 0; }
code { font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--rule); padding: .05em .3em; border-radius: 3px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); }
th { font: 600 .85rem/1.3 ui-sans-serif, system-ui, sans-serif; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.todo { background: var(--note-bg); color: var(--note-fg); padding: 0 .25em; border-radius: 3px; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .9em; }
footer { padding-bottom: 40px; color: var(--muted); font: .85rem/1.5 ui-sans-serif, system-ui, sans-serif; }
