:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --border: #e4e6e8;
  --fg: #14171a;
  --muted: #5f666e;
  --accent: #2440f0;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111315;
    --surface: #1a1d20;
    --border: #2a2e33;
    --fg: #eceef0;
    --muted: #a0a7af;
    --accent: #7d8fff;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  padding: 0 16px;
}
.wrap { max-width: 680px; margin: 0 auto; padding-block: 32px 64px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 40px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font: 700 20px/1 'Bricolage Grotesque', system-ui, sans-serif; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; flex: none; }
nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
nav a { color: var(--muted); text-decoration: none; }
nav a[aria-current='page'] { color: var(--fg); font-weight: 600; }
h1 { font: 700 34px/1.15 'Bricolage Grotesque', system-ui, sans-serif; letter-spacing: -0.02em; margin: 0 0 8px; text-wrap: balance; }
h2 { font-size: 19px; line-height: 1.3; margin: 36px 0 8px; text-wrap: balance; }
h3 { font-size: 16px; margin: 24px 0 4px; }
p, li { color: var(--fg); }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.lede { font-size: 18px; color: var(--muted); max-width: 34em; }
a { color: var(--accent); }
ul { padding-left: 1.2em; }
li { margin: 4px 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; margin: 20px 0; }
.card p { margin: 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table { overflow-x: auto; margin: 12px 0; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--border); }
th { font-weight: 600; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
code { font-size: 0.92em; }
footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--muted); }
