:root {
  --bg: #fafaf7;
  --text: #17181a;
  --muted: #5d6066;
  --line: #e2e2dc;
  --accent: #3f5f00;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111213;
    --text: #ecebe6;
    --muted: #a3a59f;
    --line: #2a2c2e;
    --accent: #c9f04a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
header { border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.brand { font-weight: 700; letter-spacing: 0.02em; color: var(--text); text-decoration: none; }
nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: 15px; }
nav a:first-child { margin-left: 0; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }
main.wrap { padding-top: 48px; padding-bottom: 64px; }
h1 { font-size: 34px; line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.01em; }
h2 { font-size: 21px; margin: 40px 0 10px; }
h3 { font-size: 17px; margin: 24px 0 6px; }
p, ul { margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }
a { color: var(--accent); }
.lead { font-size: 19px; color: var(--muted); }
.meta { color: var(--muted); font-size: 14px; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin: 18px 0; }
table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { padding-top: 20px; padding-bottom: 28px; display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }
@media (max-width: 520px) {
  body { font-size: 16px; }
  h1 { font-size: 28px; }
  main.wrap { padding-top: 32px; padding-bottom: 48px; }
}
