:root {
  color-scheme: light dark;
  --paper: #f2efe7;
  --surface: #fbfaf6;
  --ink: #171b1c;
  --muted: #626966;
  --line: #d8d4c9;
  --line-strong: #c6c1b4;
  --blue: #2856c7;
  --blue-dark: #1f459f;
  --blue-soft: #e7edfb;
  --green: #287057;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.72; -webkit-font-smoothing: antialiased; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 65%, transparent); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 9px 13px; border: 1px solid var(--ink); background: var(--surface); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.nav-shell, .footer-shell { width: min(980px, calc(100% - 48px)); margin: 0 auto; }
.nav-shell { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 17px; font-weight: 780; letter-spacing: -.02em; text-decoration: none; }
.brand svg { width: 31px; height: 31px; padding: 5px; border: 1px solid var(--line-strong); border-radius: 7px; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.site-header nav a, .site-footer nav a { color: var(--muted); font-size: 13px; font-weight: 650; text-decoration: none; }
.site-header nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.doc { width: min(820px, calc(100% - 48px)); margin: 0 auto; padding: 78px 0 100px; }
.doc h1 { max-width: 760px; margin: 0; font-family: var(--serif); font-size: clamp(42px, 7vw, 64px); font-weight: 500; line-height: 1.02; letter-spacing: -.045em; }
.updated { margin: 17px 0 31px; color: var(--muted); font-size: 13px; }
.notice { margin: 0 0 50px; padding: 22px 24px; border: 1px solid var(--line-strong); border-left: 4px solid var(--blue); border-radius: 8px; background: var(--surface); }
.doc h2 { margin: 54px 0 13px; font-family: var(--serif); font-size: clamp(27px, 4vw, 34px); font-weight: 520; line-height: 1.15; letter-spacing: -.025em; }
.doc h3 { margin: 31px 0 8px; font-size: 17px; line-height: 1.4; }
.doc p { margin: 0 0 15px; color: var(--muted); }
.doc strong { color: var(--ink); }
.doc ul, .doc ol { margin: 12px 0 20px; padding-left: 24px; color: var(--muted); }
.doc li { margin: 8px 0; padding-left: 5px; }
.doc code { padding: 2px 5px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font-size: .9em; overflow-wrap: anywhere; }
.callout { margin: 26px 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.callout p:last-child { margin-bottom: 0; }
.step { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; margin: 18px 0; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.step > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue-dark); font-size: 13px; font-weight: 800; }
.step h3 { margin: 1px 0 5px; }
.step p { margin: 0; }
.site-footer { border-top: 1px solid var(--line); }
.footer-shell { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; min-height: 110px; }
.footer-shell > p { margin: 0; color: var(--muted); font-size: 12px; }
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-shell, .footer-shell, .doc { width: min(100% - 30px, 820px); }
  .nav-shell { min-height: 64px; }
  .site-header nav a:not(:last-child) { display: none; }
  .doc { padding: 56px 0 78px; }
  .notice { padding: 18px; }
  .footer-shell { grid-template-columns: 1fr; padding: 28px 0; }
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #171b1b; --surface: #222725; --ink: #f0f2ef; --muted: #adb4b0; --line: #373d3b; --line-strong: #4a514e; --blue: #82a7ff; --blue-dark: #a9c1ff; --blue-soft: #26334e; --green: #7dc6a5; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
