:root {
  color-scheme: light dark;

  --bg: #fdfdfc;
  --fg: #1c1b19;
  --muted: #5f5c56;
  --accent: #9a5b18;
  --border: #e2ded6;
  --surface: #f4f1ea;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16161a;
    --fg: #e6e3dd;
    --muted: #a09c94;
    --accent: #e6a459;
    --border: #302f34;
    --surface: #1e1e23;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  max-width: 44rem;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

h1 {
  margin: 0;
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

h2 {
  margin: 2.75rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0.75rem 0;
}

.lead {
  margin-top: 0.75rem;
  font-size: 1.2rem;
}

.sub {
  color: var(--muted);
}

ul,
ol {
  margin: 0.75rem 0;
  padding-left: 1.4rem;
}

li {
  margin: 0.35rem 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

code {
  padding: 0.1em 0.3em;
  border-radius: 4px;
  background: var(--surface);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

pre {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  overflow-x: auto;
}

pre code {
  padding: 0;
  border-radius: 0;
  background: none;
  line-height: 1.5;
}

table {
  margin: 0.75rem 0;
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
