:root {
  color-scheme: light;
  --paper: #f8f4ed;
  --ink: #231a17;
  --quiet: #63504b;
  --red: #8b2924;
  --line: #d9c9bc;
  --wash: #f0e5d9;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--red); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
p, ol, dl { margin: 0; }
p, li, dd { line-height: 1.72; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
code { font-family: "IBM Plex Mono", ui-monospace, monospace; overflow-wrap: anywhere; }
.wrap { width: min(calc(100% - 64px), 1216px); margin-inline: auto; }
.skip { position: absolute; top: 0; left: 16px; transform: translateY(-200%); z-index: 2; background: white; padding: 8px; }
.skip:focus { transform: translateY(0); }
.mast { border-bottom: 1px solid var(--line); }
.mast-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.wordmark { color: var(--ink); font-weight: 850; font-size: 1.75rem; letter-spacing: -.06em; text-decoration: none; white-space: nowrap; }
.wordmark span { margin-left: 14px; font-size: .74rem; color: var(--quiet); font-weight: 550; letter-spacing: 0; }
.mast nav, .foot nav, .related, .jump, .breadcrumbs { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.mast nav a, .foot nav a { text-decoration: none; font-weight: 650; font-size: .88rem; color: var(--ink); }
.mast nav a:hover, .foot nav a:hover { text-decoration: underline; }
.opening { display: grid; grid-template-columns: minmax(300px, .85fr) 1.15fr; gap: clamp(24px, 5vw, 88px); align-items: center; padding-block: 44px; }
.scope { font-size: .9rem; font-weight: 750; color: var(--red); margin-bottom: 16px; }
.entry h1 { font-size: clamp(2.9rem, 5.05vw, 5.3rem); font-weight: 850; letter-spacing: -.075em; }
.first { color: var(--quiet); margin-block: 18px; }
.address-line { border-block: 1px solid var(--line); padding-block: 13px; color: var(--ink); font-size: clamp(1.02rem, 1.9vw, 1.38rem); width: min(100%, 400px); }
.action { display: inline-flex; padding: 13px 20px; margin-top: 20px; background: var(--red); color: #fff9f0; text-decoration: none; font-weight: 720; }
.action:hover { background: #661b17; }
.door { display: block; width: 100%; height: auto; object-fit: cover; aspect-ratio: 3 / 2; }
.triage { background: var(--wash); border-block: 1px solid var(--line); }
.triage-inner { display: grid; grid-template-columns: .65fr 1.35fr; padding-block: 36px; gap: 48px; }
.triage h2, .guides h2 { font-size: clamp(1.65rem, 3vw, 2.55rem); }
.triage h2 + p { margin-top: 10px; color: var(--quiet); }
.states { border-top: 1px solid var(--line); }
.states details { border-bottom: 1px solid var(--line); }
.states summary { cursor: pointer; font-weight: 750; padding: 13px 6px; }
.states summary::marker { color: var(--red); }
.states details p { padding: 0 12px 13px 22px; color: var(--quiet); }
.states details a { white-space: nowrap; }
.guides { display: grid; grid-template-columns: .65fr 1.35fr; gap: 48px; padding-block: 43px 55px; }
.guide-entry + .guide-entry { margin-top: 22px; }
.guide-entry h3 { font-size: 1.05rem; }
.guide-entry p { font-size: .9rem; color: var(--quiet); margin-top: 5px; }
.foot { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; padding-block: 24px; font-size: .85rem; color: var(--quiet); }
.inner, .article-shell { width: min(calc(100% - 64px), 760px); padding-block: 46px 64px; }
.page-head h1 { font-size: clamp(2.05rem, 4.4vw, 3.5rem); letter-spacing: -.05em; }
.page-head p { margin-top: 12px; color: var(--quiet); }
.inner section, .guide-body section { margin-top: 30px; scroll-margin: 16px; }
.inner h2, .guide-body h2 { font-size: 1.3rem; margin-bottom: 9px; }
.address-panel { background: var(--wash); border-left: 3px solid var(--red); padding: 16px 18px; }
.address-panel code { font-size: 1.15rem; }
.checkpoints { padding-left: 23px; margin-top: 26px; }
.checkpoints li + li { margin-top: 24px; }
.related, .jump { margin-top: 28px; font-weight: 650; }
.breadcrumbs { font-size: .88rem; margin-bottom: 22px; }
.article-date { color: var(--quiet); border-bottom: 1px solid var(--line); margin-top: 15px; padding-bottom: 12px; font-size: .85rem; }
.outcomes { background: var(--wash); border-left: 3px solid var(--red); margin-top: 11px; padding: 16px; }
.outcomes div + div { margin-top: 14px; }
.outcomes dt { font-weight: 730; color: var(--red); }
.outcomes dd { margin: 4px 0 0; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .mast-inner { min-height: 57px; gap: 8px; }
  .mast nav { gap: 10px; }
  .mast nav a { font-size: .78rem; }
  .wordmark { font-size: 1.5rem; }
  .wordmark span { display: none; }
  .opening, .triage-inner, .guides { grid-template-columns: 1fr; gap: 20px; }
  .opening { padding-block: 26px 24px; }
  .scope { margin-bottom: 8px; }
  .entry h1 { font-size: clamp(2.25rem, 10vw, 3.25rem); }
  .first { margin-block: 12px; }
  .action { margin-top: 13px; padding: 11px 16px; }
  .door { aspect-ratio: 16 / 9; object-position: 57% 53%; }
  .triage-inner, .guides { padding-block: 26px 30px; }
  .inner, .article-shell { padding-block: 34px 44px; }
  .foot nav, .related { gap: 10px 14px; }
}
