/* Colors live here, so you can change the whole look in one place. */
:root {
  --bg: #fbfaf7;
  --text: #1f1f1f;
  --muted: #6b6b6b;
  --accent: #2a5db0;
  --rule: #e4e1da;
}

/* Dark mode: used automatically when the visitor's device is set to dark. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616;
    --text: #ececec;
    --muted: #9a9a9a;
    --accent: #7fa8ee;
    --rule: #2c2c2c;
  }
}

* {
  box-sizing: border-box;
}

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

/* Keeps text in a comfortable reading column, with space on small screens. */
main,
footer {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

main {
  padding-top: 15vh;
}

h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

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

section {
  margin-top: 3rem;
}

h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

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

.links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

footer {
  margin-top: 5rem;
  padding-bottom: 3rem;
}

footer p {
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
