:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #0b57d0;
  --rule: #e2e2e2;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --fg: #e4e4e4;
    --muted: #9a9a9a;
    --accent: #8ab4f8;
    --rule: #2e2e2e;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  font-size: 1.05rem;
}

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

header {
  padding-top: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.site-name {
  font-weight: 700;
  text-decoration: none;
  color: var(--fg);
}

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

.nav-links a:hover {
  color: var(--accent);
}

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

h1,
h2,
h3 {
  line-height: 1.25;
}

h1 {
  font-size: 1.9rem;
  margin-top: 0;
}

h2 {
  font-size: 1.35rem;
  margin-top: 2.25rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.25rem;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

h3 + p > em:first-child {
  color: var(--muted);
  font-style: normal;
  font-size: 0.95rem;
}

ul {
  padding-left: 1.25rem;
}

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

@media print {
  header,
  footer {
    display: none;
  }
}
