:root {
  color-scheme: light dark;
  --text: #1c1917;
  --quiet-text: #57534e;
  --background: #fafaf9;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f5f5f4;
    --quiet-text: #a8a29e;
    --background: #1c1917;
  }
}

body {
  box-sizing: border-box;
  min-height: 100vh;
  margin: 0;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  background: var(--background);
  color: var(--text);
  font:
    1.0625rem/1.6 system-ui,
    sans-serif;
}

main,
footer {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
}

h1 {
  margin: 0 0 1rem;
  font-size: 2.5rem;
  line-height: 1.1;
}

footer {
  color: var(--quiet-text);
  font-size: 0.875rem;
}
