:root {
  --bg: #f6f1e7;
  --surface: #ffffff;
  --text: #1f1b16;
  --muted: #5a5248;
  --accent: #7a3e00;
  --accent-text: #ffffff;
  --border: #cfc6b4;
  --danger: #9b1c1c;
  --focus: #0b57d0;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.6 var(--font); }
.wrap { max-width: 60rem; margin: 0 auto; padding: 0 1rem; }
main { padding-top: 1.5rem; padding-bottom: 3rem; outline: none; }
h1 { font-size: 1.9rem; line-height: 1.25; margin: 1rem 0; }
h2 { font-size: 1.4rem; margin-top: 2rem; }
a { color: var(--accent); text-decoration: underline; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .5rem 1rem; z-index: 10; }
.skip-link:focus { left: .5rem; top: .5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .75rem; padding-bottom: .75rem; }
.brand { font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-footer { border-top: 1px solid var(--border); padding: 1.5rem 0; color: var(--muted); font-size: .9rem; }
.hero { padding: 1.5rem 0; }
.lead { font-size: 1.2rem; max-width: 40rem; }
.btn { display: inline-block; min-height: 2.75rem; padding: .6rem 1.1rem; border: 2px solid var(--accent); border-radius: 6px;
  background: var(--surface); color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; margin: .25rem .25rem .25rem 0; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-danger { border-color: var(--danger); color: var(--danger); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.field { margin: 1rem 0; }
label { display: block; font-weight: 600; margin-bottom: .25rem; }
.check label, .radio label { display: inline; font-weight: 400; }
.check, .radio { margin: .5rem 0; }
input[type=text], input[type=email], input:not([type]), textarea, select {
  width: 100%; max-width: 32rem; padding: .6rem; border: 2px solid var(--border); border-radius: 6px; background: var(--surface); font: inherit; color: var(--text); }
textarea { max-width: 40rem; }
fieldset { border: 1px solid var(--border); border-radius: 6px; margin: 1.25rem 0; padding: 1rem; background: var(--surface); }
legend { font-weight: 700; padding: 0 .4rem; }
.hint { color: var(--muted); margin: .1rem 0 .4rem; font-size: .92rem; }
.req { font-weight: 400; color: var(--muted); font-size: .85rem; }
.error { color: var(--danger); font-weight: 600; margin: .25rem 0; }
.alert { background: #fff8e1; border: 2px solid #8a6d00; border-radius: 6px; padding: .75rem 1rem; margin: 1rem 0; }
.alert-error { background: #fdecec; border-color: var(--danger); }
.table { width: 100%; border-collapse: collapse; background: var(--surface); margin: 1rem 0; }
.table th, .table td { border: 1px solid var(--border); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.table thead th { background: #ece4d2; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; margin: 1rem 0; }
pre, code { font-family: var(--mono); font-size: .9rem; }
pre { background: #efe9da; padding: .75rem; overflow-x: auto; white-space: pre-wrap; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1.5rem; }
.facts dt { font-weight: 600; }
.placeholder { color: var(--muted); font-style: italic; }
.toc { columns: 2; }
@media (max-width: 40rem) { .toc { columns: 1; } .facts { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
