:root {
  --brand: #8e2a23;
  --on-brand: #fff6ee;
  --bg: #f6ebdd;
  --surface: #ffffff;
  --text: #2b211c;
  --muted: #5e5148;
  --link: #8e2a23;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17120f;
    --surface: #221a15;
    --text: #f3e9d8;
    --muted: #b9ab9b;
    --link: #e8826f;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

header {
  background: var(--brand);
  color: var(--on-brand);
  padding: 1.25rem 1rem;
  text-align: center;
}

header .wordmark {
  font: italic 700 2.25rem/1.1 Georgia, "Times New Roman", serif;
  letter-spacing: 0.01em;
  margin: 0;
}

header p { margin: 0.25rem 0 0; opacity: 0.9; }

main {
  max-width: 40rem;
  margin: 1.5rem auto;
  padding: 1.5rem 1.25rem;
  background: var(--surface);
  border-radius: 1rem;
}

@media (max-width: 42rem) {
  main { margin: 1rem; padding: 1.25rem 1rem; }
}

h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 1rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
p, ul { margin: 0.5rem 0; }
li { margin: 0.25rem 0; }
.muted { color: var(--muted); font-size: 0.9375rem; }

a { color: var(--link); text-underline-offset: 0.15em; }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 2px; }

footer {
  max-width: 40rem;
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9375rem;
}
