:root {
  --ground: #fbfaf7;
  --ink: #111214;
  --muted: #6b6f76;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0e0f11;
    --ink: #f2f0eb;
    --muted: #9a9ea6;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
}

body {
  min-height: 100dvh;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 12vh, 7rem) 1.5rem 4rem;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

nav {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.75rem;
}

a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

a:hover,
a:focus-visible {
  color: var(--ink);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
