:root {
  color-scheme: dark;
  background: #201826;
  color: #faf4ec;
  font-family: system-ui, sans-serif;
  line-height: 1.65;
  --muted: #d8c9dd;
  --accent: #f1bacf;
}

body {
  margin: 0 auto;
  max-width: 46rem;
  padding: 0 1.5rem 4rem;
}

header {
  align-items: baseline;
  border-bottom: 1px solid #624b65;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  justify-content: space-between;
  padding: 1.5rem 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
}

a {
  color: var(--accent);
  text-underline-offset: .2em;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.brand {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

main {
  padding-top: clamp(2.5rem, 8vw, 5rem);
}

h1 {
  font-family: Georgia, serif;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

h2, h3 {
  line-height: 1.25;
  margin: 0;
}

h2 {
  font-size: 1.375rem;
}

h3 {
  font-size: 1.125rem;
}

p {
  color: var(--muted);
  margin: .65rem 0 0;
}

.intro p {
  font-size: 1.2rem;
  max-width: 35rem;
  margin-top: 1.25rem;
}

.updated {
  margin-top: 1rem;
}

section + section,
.updated + section,
section > section {
  margin-top: 2rem;
}
