:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  line-height: 1.7;
  --background: #faf9f6;
  --text: #292b28;
  --muted: #61645e;
  --accent: #285a83;
  --border: #dcded7;
  color: var(--text);
  background: var(--background);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: 0.2em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.container { width: min(100% - 48px, 760px); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 24px; padding: 12px; background: var(--background); z-index: 1; }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--border); }
.header-inner { min-height: 80px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 19px; font-weight: 650; }
.brand-mark { display: block; width: 30px; height: 30px; }
nav { display: flex; gap: 22px; }
nav a { display: inline-block; color: var(--muted); font-size: 15px; text-decoration: none; padding-block: 12px; }
nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }
main { padding-block: 48px 64px; min-height: calc(100vh - 158px); }
h1 { margin: 0 0 20px; font-size: clamp(28px, 4vw, 36px); line-height: 1.25; font-weight: 650; letter-spacing: -0.025em; }
h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.4; font-weight: 650; }
h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.5; font-weight: 650; }
p { margin: 0 0 18px; }
.lead { font-size: 18px; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.home-section { margin-top: 32px; }
.page-links { list-style: none; padding: 0; }
.page-links li { margin-bottom: 12px; }
.faq { margin-top: 40px; }
.faq > h2 { margin-bottom: 20px; }
.faq section { padding-block: 24px; border-top: 1px solid var(--border); }
.faq p:last-child { margin-bottom: 0; }
.prose section { margin-top: 32px; }
ul, ol { padding-left: 24px; margin-block: 0 18px; }
li { margin-bottom: 12px; }
section[id], h2[id] { scroll-margin-top: 24px; }
.site-footer { border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-block: 24px; font-size: 14px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }

@media (prefers-color-scheme: dark) {
  :root {
    --background: #191a18;
    --text: #e6e7e1;
    --muted: #a9ada2;
    --accent: #9dc6e5;
    --border: #3b3e37;
  }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 36px); }
  .header-inner { min-height: 72px; gap: 8px 16px; flex-wrap: wrap; padding-block: 10px; }
  .brand { font-size: 18px; }
  nav { gap: 18px; }
  main { padding-block: 32px 48px; }
  .lead { font-size: 17px; }
}
