:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1c2430;
  --muted: #5b6676;
  --accent: #2563eb;
  --border: #dde2ea;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161c;
    --surface: #1a2029;
    --text: #e8ecf2;
    --muted: #9aa5b5;
    --accent: #6ea0ff;
    --border: #2b3441;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.site-name {
  margin: 0;
  font-weight: 700;
}

nav a {
  margin-left: 1.25rem;
  color: var(--muted);
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

section:last-child {
  border-bottom: none;
}

.hero {
  padding: 3.5rem 0 2.5rem;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.15;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
}

p {
  margin: 0 0 1rem;
  max-width: 62ch;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

code {
  padding: 0.1em 0.4em;
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.site-footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}
