:root {
  color-scheme: light dark;
  --text: #1d2125;
  --muted: #56606b;
  --bg: #fbfbf9;
  --line: #e2e4e1;
  --accent: #2f6f4f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e7e9e6;
    --muted: #a3aaa3;
    --bg: #151816;
    --line: #2c312d;
    --accent: #7cc39b;
  }
}

* {
  box-sizing: border-box;
}

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

main,
header,
footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header {
  padding-top: 2.5rem;
}

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

nav {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin: 2rem 0 0.5rem;
}

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

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

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

code {
  font-size: 0.92em;
}

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