:root {
  color-scheme: light dark;
  --paper: #f7faf8;
  --ink: #172c33;
  --muted: #425f64;
  --rule: #c8d9d7;
  --accent: #005f60;
  font-family: system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111b21;
    --ink: #e4f2f0;
    --muted: #aec0c5;
    --rule: #35525d;
    --accent: #81e3d4;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.7; }
a { color: var(--accent); text-underline-offset: .18em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(100% - 2rem, 43rem); margin-inline: auto; }

.masthead {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
  justify-content: space-between;
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
}

.masthead nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.wordmark { color: var(--ink); font-weight: 700; text-decoration: none; }
.wordmark span { margin-inline-start: .3em; font-weight: 500; color: var(--muted); }
.edition { padding-block: 2rem 2.5rem; }
.edition + .edition { border-top: 1px solid var(--rule); scroll-margin-top: 1rem; }
h1, .edition-title { margin: 0; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.25; }
h2, h3 { margin: 1.4rem 0 .2rem; font-size: 1.15rem; line-height: 1.4; }
p { margin: .65rem 0; }
code { overflow-wrap: anywhere; font-size: .95em; }
.contact { display: inline-block; font-weight: 650; }
.footer { color: var(--muted); border-top: 1px solid var(--rule); padding-block: 1.25rem 2rem; }
