:root {
  color-scheme: light dark;
  --text: #1f1f1d;
  --muted: #5c5b57;
  --background: #fbfaf7;
  --rule: #dddbd4;
  --link: #1d4f91;
  --link-visited: #5b3a8c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6e4de;
    --muted: #a3a19a;
    --background: #191918;
    --rule: #3a3936;
    --link: #8fb8f0;
    --link-visited: #c4a8ec;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 4rem 1.25rem 3rem;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

main,
nav,
footer {
  max-width: 34rem;
  margin: 0 auto;
}

nav {
  margin-bottom: 2.5rem;
  font-size: 0.9375rem;
}

h1 {
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1.1rem;
}

strong {
  font-weight: 600;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

a:visited {
  color: var(--link-visited);
}

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

.meta {
  color: var(--muted);
  font-size: 0.9375rem;
}

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

footer p {
  margin: 0;
}

@media (max-width: 30rem) {
  body {
    padding-top: 2.5rem;
    font-size: 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }
}
