:root {
  color-scheme: light dark;
  font: 1rem/1.6 system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: url("/grain.png") 0 0 / 256px 256px;
}

@media (prefers-reduced-data: reduce) {
  :root {
    background: none;
  }
}

body {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 34rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
}

header h1 {
  font-size: 1rem;
  line-height: inherit;
  margin: 0;
}

header a,
header h1 {
  font-weight: 600;
  text-decoration: none;
}

main {
  margin-block: auto;
  padding: 4rem 0;
  overflow-wrap: break-word;
}

/* Long-form text reads from a straight leading edge. */
.prose {
  text-align: start;
}

ul {
  list-style: none;
  padding: 0;
}

p {
  text-wrap: pretty;
}

h1 {
  font-size: 1.5rem;
  margin-top: 0;
}

h2 {
  font-size: 1rem;
  margin-top: 2.5rem;
}

main > h2:first-child {
  margin-top: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.15em;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
  opacity: 0.65;
}
