/* System fonts only: nothing is loaded from anywhere else. */
:root {
  --background: #fff8f2;
  --text: #231716;
  --muted: #6b5c58;
  --rule: #e8dcd2;
  --link: #231716;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #1c1514;
    --text: #f5ece6;
    --muted: #c2b3ad;
    --rule: #3a2f2c;
    --link: #f5ece6;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
  font: 1.0625rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

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

main {
  flex: 1;
  padding-top: clamp(3rem, 12vh, 7rem);
  padding-bottom: 3rem;
}

h1,
h2 {
  font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.375rem;
}

h2.italic {
  font-style: italic;
}

.hero-line {
  margin: 0.75rem 0 0;
  font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--muted);
}

.lead {
  margin: 1.5rem 0 0;
  font-size: 1.1875rem;
}

section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

section p,
main > p {
  margin: 0.75rem 0 0;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

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

footer {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  color: var(--muted);
  font-size: 0.875rem;
}

footer p {
  margin: 0;
}
