:root {
  color-scheme: light dark;
  --page: #f5f2ec;
  --surface: #fffdf8;
  --ink: #272b29;
  --muted: #626762;
  --line: #deded3;
  --accent: #40744c;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.skip-link { position: absolute; top: -100px; left: 16px; }
.skip-link:focus { top: 12px; background: var(--surface); padding: 12px; z-index: 2; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1200px; padding: 22px 28px; margin: auto; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 28px; font-weight: 800; letter-spacing: -.08em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.wordmark span { color: var(--accent); }
nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
nav a { font-size: 14px; color: var(--ink); padding: 8px 0; }
main { width: min(100% - 32px, 860px); margin: 64px auto 40px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 20px 0; font-size: clamp(28px, 7vw, 48px); font-weight: 600; line-height: 1.12; overflow-wrap: anywhere; }
.version { margin: 0 0 28px; color: var(--muted); font-size: 14px; }
.document { padding: clamp(20px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow-wrap: anywhere; line-height: 1.7; color: var(--muted); }
.document h2, .document h3, .document h4, .document h5, .document h6 { margin: 28px 0 12px; line-height: 1.35; color: var(--ink); }
.document h2 { font-size: 1.35em; }
.document h3 { font-size: 1.2em; }
.document h4, .document h5, .document h6 { font-size: 1.05em; }
.document p { margin: 0 0 16px; white-space: pre-line; }
.document ul, .document ol { padding-inline-start: 24px; }
.document li { margin-block: 8px; }
.document blockquote { margin-inline: 0; padding-inline-start: 20px; border-inline-start: 3px solid var(--line); }
.document code { font: inherit; }
.document pre { white-space: pre-wrap; }
.document table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.document th, .document td { min-width: 12rem; border: 1px solid var(--line); padding: 10px; text-align: left; overflow-wrap: break-word; }
.document hr { border: 0; border-top: 1px solid var(--line); margin-block: 24px; }
footer { width: min(100% - 32px, 860px); margin: 0 auto 48px; }
footer nav a { color: var(--accent); }

@media (max-width: 600px) {
  .topbar { align-items: flex-start; padding: 16px; gap: 16px; }
  .topbar nav { justify-content: flex-end; gap: 0 16px; }
  main { margin-top: 36px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #1b201d;
    --surface: #242b26;
    --ink: #eceee6;
    --muted: #c1c8be;
    --line: #3e493e;
    --accent: #a4c896;
  }
}

@media print {
  :root { color-scheme: light; --page: white; --surface: white; --ink: black; --muted: black; --line: #999; --accent: black; }
  .topbar, footer, .skip-link { display: none; }
  main { width: 100%; margin: 0; }
  .document { border: 0; padding: 0; }
  .document table { display: table; width: 100%; table-layout: fixed; overflow: visible; }
  .document th, .document td { min-width: 0; overflow-wrap: anywhere; }
}
