:root {
  color: #3a2418;
  background: #f8edda;
  color-scheme: light dark;
  font-family: Manrope, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --paper: #f8edda;
  --paper-deep: #eddbbf;
  --paper-start: #fff7e9;
  --roast: #3a2418;
  --brown: #6b4a34;
  --muted: #7a5942;
  --terracotta: #cb6c3b;
  --line: rgba(58, 36, 24, 0.14);
}

@media (prefers-color-scheme: dark) {
  :root {
    color: #f7ead8;
    background: #191310;
    --paper: #191310;
    --paper-deep: #0d0a08;
    --paper-start: #241a15;
    --roast: #f7ead8;
    --brown: #dec4a8;
    --muted: #bda58f;
    --terracotta: #e18455;
    --line: rgba(255, 249, 239, 0.14);
  }
}

* { box-sizing: border-box; }

html { background: var(--paper); -webkit-text-size-adjust: 100%; }

body {
  background: radial-gradient(circle at 82% 6%, rgba(203, 108, 59, 0.14), transparent 30rem), linear-gradient(150deg, var(--paper-start), var(--paper) 48%, var(--paper-deep));
  color: var(--brown);
  margin: 0;
  min-height: 100vh;
}

a { color: var(--roast); text-underline-offset: 0.18em; }
a:focus-visible { outline: 3px solid var(--roast); outline-offset: 4px; }

.site-header, footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 70rem;
  padding: max(1.5rem, env(safe-area-inset-top, 0px)) max(1.35rem, env(safe-area-inset-right, 0px)) 1.5rem max(1.35rem, env(safe-area-inset-left, 0px));
}

.site-header > a:last-child { color: var(--muted); font-size: 0.78rem; font-weight: 700; }

.wordmark {
  color: var(--roast);
  font-family: Newsreader, Georgia, serif;
  font-size: 1.65rem;
  font-style: italic;
  font-weight: 500;
  text-decoration: none;
}

main {
  margin: 0 auto;
  max-width: 46rem;
  padding: clamp(3.5rem, 9vw, 8rem) max(1.35rem, env(safe-area-inset-right, 0px)) 5rem max(1.35rem, env(safe-area-inset-left, 0px));
}

.eyebrow, h2 {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  color: var(--roast);
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(3.3rem, 9vw, 6.2rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.88;
  margin: 0.8rem 0 1.8rem;
}

h1 em { color: var(--terracotta); font-weight: 400; }

.lede { font-size: clamp(1.05rem, 2.5vw, 1.25rem); line-height: 1.65; max-width: 39rem; }

section { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 2rem; }
section p, section li { font-size: 0.95rem; line-height: 1.75; }
section p { margin: 1rem 0 0; }
section ul { margin: 1rem 0 0; padding-left: 1.2rem; }
section li + li { margin-top: 0.65rem; }
strong { color: var(--roast); }

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
}

footer span { font-size: 0.72rem; font-weight: 700; }

@media (max-width: 520px) {
  main { padding-top: 3.5rem; }
  section { margin-top: 2.5rem; }
}
