:root {
  --bg: #eef1f4;
  --ink: #14202b;
  --muted: #55646f;
  --line: #cdd5dc;
  --accent: #1f6f8b;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f1a22;
  --ink: #e6edf2;
  --muted: #9aabb8;
  --line: #26363f;
  --accent: #6cc3de;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1a22;
    --ink: #e6edf2;
    --muted: #9aabb8;
    --line: #26363f;
    --accent: #6cc3de;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.top {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 5vw, 3rem);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.name { font-weight: 600; color: var(--ink); text-decoration: none; }
nav { display: flex; align-items: center; gap: 1.25rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--accent); }
button {
  font: inherit;
  color: var(--ink);
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
}
button:hover { border-color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

main { max-width: 40rem; margin: 0 auto; padding: 0 clamp(1rem, 5vw, 2rem); }

.hero { padding: clamp(3rem, 12vh, 7rem) 0 3rem; }
h1 {
  margin: 0 0 1rem;
  font: 600 clamp(2.75rem, 10vw, 5rem)/1.05 Georgia, "Iowan Old Style", "Times New Roman", serif;
  letter-spacing: -0.02em;
}
.lede { margin: 0; font-size: 1.25rem; color: var(--muted); max-width: 32rem; }

section + section { border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 2rem; }
h2 { margin: 0 0 0.75rem; font: 600 1.4rem/1.3 Georgia, "Iowan Old Style", serif; }
p, ul { margin: 0 0 1rem; max-width: 36rem; }
ul { padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }
main a { color: var(--accent); }

footer {
  max-width: 40rem;
  margin: 4rem auto 0;
  padding: 1.5rem clamp(1rem, 5vw, 2rem) 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
footer p { margin: 0; }

@media (max-width: 30rem) {
  nav { gap: 0.8rem; }
  .name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
