:root {
  --bg: #fbfaf7;
  --text: #222;
  --muted: #6b6b6b;
  --accent: #8a3b2e;
  --rule: #e4e0d8;
  --measure: 36rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171615;
    --text: #e8e5df;
    --muted: #9a958c;
    --accent: #e09a84;
    --rule: #2e2b28;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 112.5%; /* 18px */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

main {
  padding-top: 6rem;
  padding-bottom: 3rem;
}

header {
  margin-bottom: 3rem;
}

h1 {
  font-size: 2.75rem;
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
}

.tagline {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-style: italic;
  font-size: 1.15rem;
}

.lede {
  font-size: 1.3rem;
  line-height: 1.5;
}

section + section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

h2 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.1rem;
  margin: 0;
}

li + li {
  margin-top: 0.5rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

footer {
  padding-bottom: 3rem;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  main {
    padding-top: 3.5rem;
  }

  h1 {
    font-size: 2.25rem;
  }
}
