:root {
  color-scheme: light;
  --paper: #fffaf1;
  --panel: #fffdf8;
  --ink: #302019;
  --muted: #665347;
  --honey: #ffd467;
  --honey-soft: #fff0c7;
  --line: #e2d2bc;
  --accent: #88421e;
  --round: 1.25rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.6; }
a { color: inherit; text-underline-offset: .19em; }
a:hover { color: var(--accent); }
:focus-visible { outline: .18rem solid var(--accent); outline-offset: .2rem; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.13; }
section[id] { scroll-margin-top: 1.25rem; }
.shell { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.skip { position: absolute; left: .8rem; top: .8rem; z-index: 1; transform: translateY(-180%); padding: .55rem .85rem; background: var(--panel); }
.skip:focus { transform: none; }
.site-header, .site-footer { border-color: var(--line); border-style: solid; border-width: 0; }
.site-header { border-bottom-width: 1px; }
.site-footer { border-top-width: 1px; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: .65rem 1.2rem; flex-wrap: wrap; }
.header-inner { min-height: 4.65rem; padding-block: .7rem; }
.footer-inner { padding-block: 1.4rem; font-size: .9rem; color: var(--muted); }
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; text-decoration: none; font-size: 1.2rem; font-weight: 800; letter-spacing: -.045em; }
.brand img { width: 2.45rem; height: 2.45rem; border-radius: .65rem; }
.site-nav, .footer-nav { display: flex; align-items: center; gap: .15rem .55rem; flex-wrap: wrap; }
.site-nav a, .footer-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: .55rem; }
.site-nav a { font-weight: 650; text-decoration: none; border-radius: .6rem; }
.site-nav [aria-current="page"] { background: var(--honey-soft); }
.kicker { color: var(--accent); font-size: .82rem; font-weight: 800; letter-spacing: .095em; text-transform: uppercase; }
.hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-block: clamp(3rem, 8vw, 6.25rem); }
.hero h1 { max-width: 13ch; margin-block: .72rem 1.25rem; font-size: clamp(2.65rem, 6vw, 5rem); letter-spacing: -.07em; line-height: 1.02; }
.lead { max-width: 45ch; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.15rem); }
.actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.65rem; }
.button, .text-action { min-height: 2.85rem; display: inline-flex; align-items: center; gap: .55rem; font-weight: 750; }
.button { border: 1px solid var(--ink); border-radius: .7rem; padding: .6rem .95rem; background: var(--honey); text-decoration: none; box-shadow: 2px 3px 0 var(--ink); }
.button:hover { background: var(--honey-soft); color: var(--ink); }
.example { min-width: 0; padding: clamp(1.15rem, 3.5vw, 2rem); border: 1px solid var(--line); border-radius: var(--round); background: var(--panel); box-shadow: 0 .65rem 1.5rem #3d28100d; }
.example-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.example-heading img { width: 4.1rem; height: 4.1rem; border-radius: .8rem; }
.example h2 { margin-top: .25rem; font-size: clamp(1.28rem, 3vw, 1.65rem); letter-spacing: -.025em; }
.route-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .58rem; }
.route-list li { display: grid; gap: .08rem; border: 1px solid var(--line); border-radius: .72rem; padding: .68rem .9rem; }
.route-list li:first-child { background: var(--honey-soft); }
.route-list span, .example-note { color: var(--muted); font-size: .9rem; }
.example-note { margin-top: .85rem; }
.steps { border-top: 1px solid var(--line); padding-block: 2.25rem clamp(2.6rem, 6vw, 4.3rem); }
.steps h2 { font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.045em; }
.step-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem 1.7rem; list-style: none; padding: 0; margin: 1.35rem 0 0; }
.step-list li { display: grid; gap: .3rem; }
.step-list p { color: var(--muted); }
.step-number { color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; }
.page { padding-block: clamp(2.2rem, 6vw, 4.6rem); }
.page-title { max-width: 16ch; margin-block: .45rem .8rem; font-size: clamp(2.25rem, 5.5vw, 3.75rem); letter-spacing: -.06em; }
.doc-intro { margin-bottom: 1.65rem; }
.meta { margin-top: .7rem; font-size: .87rem; color: var(--muted); }
.guide-layout { display: grid; grid-template-columns: minmax(12rem, 15rem) minmax(0, 44rem); gap: clamp(1.45rem, 5vw, 3.7rem); align-items: start; }
.toc { position: sticky; top: 1rem; border: 1px solid var(--line); border-radius: var(--round); background: var(--panel); padding: .8rem 1rem; }
.toc h2 { font-size: 1rem; margin: .35rem 0; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc a { display: block; padding: .36rem 0; line-height: 1.35; font-size: .9rem; }
.prose { max-width: 44rem; min-width: 0; overflow-wrap: anywhere; }
.prose section + section { margin-top: 2.3rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.prose h2 { font-size: clamp(1.28rem, 2.8vw, 1.65rem); letter-spacing: -.025em; }
.prose p, .prose ol, .prose ul, .prose table { margin: .8rem 0 0; }
.prose ol, .prose ul { padding-inline-start: 1.4rem; }
.prose li + li { margin-top: .35rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: .93rem; background: var(--panel); }
.prose th, .prose td { border: 1px solid var(--line); text-align: left; vertical-align: top; padding: .55rem .65rem; }
.prose thead th { background: var(--honey-soft); }
.prose tbody th { width: 34%; }
.note { border: 1px solid var(--line); border-left: .24rem solid var(--accent); border-radius: .5rem; background: var(--honey-soft); padding: .65rem .95rem; margin-bottom: 1.3rem; }
.note p { margin: 0; }

@media (max-width: 48rem) {
  .hero, .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 14ch; }
  .toc { position: static; }
  .toc ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
}

@media (max-width: 32rem) {
  .step-list, .toc ul { grid-template-columns: minmax(0, 1fr); }
  .step-list li { padding-block: .18rem; }
  .toc a { padding-block: .45rem; }
  .footer-nav a:first-child { padding-inline-start: 0; }
}
