:root {
  --bg: #fbfaf8;
  --text: #1d1d1f;
  --muted: #6b6b70;
  --line: #e6e4e0;
  --accent: #2f5d8a;
  --max: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161618;
    --text: #ececee;
    --muted: #9a9aa0;
    --line: #2c2c30;
    --accent: #8ab4dc;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); }

.site-header,
main,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.logo {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

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

nav a:hover { color: var(--text); }

.hero { padding: 4rem 0 2rem; }

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 0;
}

section { padding: 1.5rem 0; }

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

code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--line);
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
