:root {
  color-scheme: light dark;
  --surface: #f8f7f4;
  --text: #201f1b;
  --secondary: #514f47;
  --rule: #dad7cd;
  --accent: #24564a;
  --on-accent: #fff;
  font-family: system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #191c1b;
    --text: #f4f4ec;
    --secondary: #c0c5bb;
    --rule: #424b45;
    --accent: #a2dac6;
    --on-accent: #102a21;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0 auto;
  max-width: 66rem;
  padding: 0 clamp(1rem, 5vw, 3.5rem);
  background: var(--surface);
  color: var(--text);
  line-height: 1.65;
}
header, footer, nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.5rem;
}
header { justify-content: space-between; border-bottom: 1px solid var(--rule); padding: 1.2rem 0; }
footer { border-top: 1px solid var(--rule); padding: 1.2rem 0 2rem; }
main { max-width: 46rem; padding: clamp(2rem, 7vw, 6rem) 0; }
h1 {
  margin: 0 0 .8rem;
  font-size: clamp(2rem, 6vw, 4.25rem);
  line-height: 1.12;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
h2 { font-size: 1.2rem; line-height: 1.35; }
a { color: var(--accent); text-underline-offset: .2em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
p, li { max-width: 65ch; }
section { margin-block: 1.8rem; }
ol { padding-inline-start: 1.5em; }
ol li + li { margin-top: .5em; }
.brand { color: var(--text); font-weight: 750; text-decoration: none; }
.intro { color: var(--secondary); font-size: 1.175rem; margin-top: 0; }
.primary {
  display: inline-block;
  margin-top: .5rem;
  padding: .65rem 1rem;
  border-radius: .45rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
}
.topics { padding: 0; list-style: none; }
.topics li { padding-block: .8rem; border-top: 1px solid var(--rule); }
.topics a { font-weight: 650; }
.topics p { margin: .25rem 0 0; color: var(--secondary); }
.recovery { border-inline-start: .2rem solid var(--rule); padding-inline-start: 1rem; }
