:root {
  --ink: #211a14;
  --muted: #655b4e;
  --soft: #756a5b;
  --bg: #f7f1e8;
  --card: #fffdfa;
  --line: #ddcfbd;
  --ginger: #d97832;
  --ginger-deep: #7a3f18;
  --ginger-soft: #f7dfcb;
  --blue: #2f628b;
  --green: #37664b;
  --red: #8d382d;
  --display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --maxw: 820px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration-thickness: 1.4px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 4px; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  padding: 9px 13px; color: #fff; background: #211a14; border-radius: 8px;
  transform: translateY(-160%); transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); }

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar .inner {
  width: min(calc(100% - 36px), 1120px); min-height: 68px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 5px 14px rgba(47,98,139,.2); }
.brand .wordmark { font-family: var(--display); font-weight: 850; font-size: 20px; letter-spacing: -.04em; }
.topnav { display: flex; align-items: center; gap: 20px; }
.topnav a { color: var(--muted); font-size: 13px; font-weight: 750; text-decoration: none; }
.topnav a[aria-current="page"] { color: var(--ink); }
.topnav a:hover { color: var(--ink); }

.wrap { width: min(calc(100% - 36px), var(--maxw)); margin: 0 auto; padding: 58px 0 90px; }
.kicker {
  margin: 0 0 10px; color: var(--ginger-deep); font-size: 12px; font-weight: 850;
  letter-spacing: .1em; text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
h1 { margin: 0; font-size: clamp(42px, 7vw, 62px); font-weight: 870; line-height: .98; letter-spacing: -.055em; }
.updated { margin: 13px 0 0; color: var(--soft); font-size: 13px; }
.lede { max-width: 66ch; margin: 25px 0 32px; color: var(--muted); font-size: 18px; line-height: 1.65; }
h2 { margin: 48px 0 12px; font-size: 27px; font-weight: 840; line-height: 1.15; letter-spacing: -.035em; }
h3 { margin: 28px 0 7px; font-size: 18px; font-weight: 820; line-height: 1.25; letter-spacing: -.02em; }
p, li { font-size: 15px; }
p { margin: 11px 0; }
li { margin: 6px 0; }
strong { font-weight: 780; }
code { padding: 1px 5px; background: rgba(127,127,127,.13); border-radius: 5px; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 13px; }

.summary-card, .card, .contact {
  margin: 22px 0; padding: 22px 24px; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: 0 10px 30px rgba(80,47,24,.045);
}
.summary-card h2 { margin-top: 0; font-size: 21px; }
.summary-card ul { margin-bottom: 0; }
.toc { margin: 28px 0; padding: 21px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 17px; }
.toc strong { display: block; margin-bottom: 9px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.toc ol { columns: 2; gap: 32px; margin: 0; padding-left: 20px; }
.toc li { break-inside: avoid; margin: 4px 0; font-size: 13px; }
.toc a { color: var(--muted); }

.note, .warning {
  margin: 22px 0; padding: 15px 18px; color: var(--muted); background: color-mix(in srgb, var(--ginger) 9%, var(--card));
  border: 1px solid color-mix(in srgb, var(--ginger) 25%, var(--line)); border-left: 4px solid var(--ginger); border-radius: 5px 13px 13px 5px;
  font-size: 14px;
}
.warning { background: color-mix(in srgb, var(--red) 6%, var(--card)); border-color: color-mix(in srgb, var(--red) 25%, var(--line)); border-left-color: var(--red); }

.table-wrap { width: 100%; overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); background: color-mix(in srgb, var(--bg) 58%, var(--card)); font-size: 11px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
td:first-child { width: 28%; }

.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.contact .who { flex: 1 1 240px; }
.contact .who b { display: block; font-family: var(--display); font-size: 18px; }
.contact .who span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.btn {
  min-height: 45px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 19px;
  color: #fff; background: var(--ginger-deep); border-radius: 12px; font-family: var(--display); font-size: 14px; font-weight: 800;
  text-decoration: none; box-shadow: 0 8px 20px rgba(122,63,24,.2);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--display); font-weight: 800; cursor: pointer; }
.faq summary::after { content: "+"; width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 28px; color: var(--ginger-deep); background: var(--ginger-soft); border-radius: 50%; font-size: 18px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: -2px 44px 20px 0; color: var(--muted); }

.pagefoot { margin-top: 58px; padding-top: 21px; color: var(--soft); border-top: 1px solid var(--line); font-size: 12.5px; }
.pagefoot .row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 8px; }
.pagefoot a { color: var(--muted); }
.pagefoot .sep { color: var(--line); }

@media (max-width: 640px) {
  .topbar .inner, .wrap { width: min(calc(100% - 28px), var(--maxw)); }
  .topnav a:not([aria-current="page"]):not(:last-child) { display: none; }
  .wrap { padding-top: 43px; }
  .lede { font-size: 16.5px; }
  .toc ol { columns: 1; }
  .summary-card, .card, .contact { padding: 19px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f8f1e7; --muted: #c9bcaa; --soft: #b8a996; --bg: #171411; --card: #26201b;
    --line: #443a31; --ginger: #f0a46c; --ginger-deep: #f1b283; --ginger-soft: #3d2a1e;
    --blue: #83b9e3; --green: #8ec4a1; --red: #f2a097;
  }
  .btn { color: #211a14; background: var(--ginger); }
}
