:root {
  color-scheme: light dark;
  font-family: ui-rounded, system-ui, sans-serif;
  background: #faf9f7;
  color: #242323;
  --secondary: #585553;
  --link: #414e6c;
}

@media (prefers-color-scheme: dark) {
  :root {
    background: #191919;
    color: #f3f1ed;
    --secondary: #bab7b2;
    --link: #bdcbe8;
  }
}

body {
  margin: 0;
  padding: clamp(2.5rem, 9vh, 6rem) clamp(1.25rem, 5vw, 3rem);
}

main {
  max-width: 37rem;
  margin-inline: auto;
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

p { margin: 0 0 1.25rem; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.12em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.home { display: inline-block; margin-bottom: 1.75rem; }
nav, footer, .home { font-size: 1rem; color: var(--secondary); }
nav, footer { margin-top: 2rem; }
nav span { margin-inline: 0.35em; }
