:root {
  --bg: #ffffff;
  --ink: #1b1f24;
  --muted: #62686f;
  --line: #e3e6ea;
  --accent: #0b62d6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --ink: #e6e9ec;
    --muted: #9aa1a9;
    --line: #262c36;
    --accent: #6cb2ff;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  max-width: 42rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header {
  padding: 1.5rem 0;
}

.wordmark {
  color: var(--ink);
  font-weight: 700;
}

footer {
  margin-top: 4rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 1.5rem 0 0.75rem;
}

h2 {
  font-size: 1.25rem;
  margin: 2.5rem 0 0.5rem;
}

.banner {
  display: block;
  margin: 0 0 1.5rem;
}

img {
  max-width: 100%;
  border-radius: 12px;
}

pre {
  overflow-x: auto;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

.crumbs {
  margin: 0.5rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.crumbs a {
  color: var(--muted);
}

.listing {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.listing li {
  padding: 0.35rem 0;
  border-top: 1px solid var(--line);
}

.listing a {
  font-weight: 600;
  color: var(--ink);
}
