@font-face {
  font-family: Hanken;
  src: url("media/hanken-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #1f1f1f;
  --text: #30343b;
  --muted: #515964;
  --line: #dce2e9;
  --blue: #0b57d0;
  --light-blue: #d3e3fd;
  --navy: #07366f;
  --orange: #b25b2e;
  --blue-track: #3972b5;
  --gut: clamp(20px, 4.6vw, 58px);
  font-family: Roboto, Hanken, -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Noto Sans CJK SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: #fff;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 18px; }
body { margin: 0; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
button { font: inherit; cursor: pointer; }
a, button, select, input { touch-action: manipulation; }
:where(a, button, input, select, [tabindex]):focus-visible { outline: 3px solid #2877cb; outline-offset: 4px; }
:where(section, main)[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
svg { display: block; }
::selection { background: #d3e3fd; color: #152f50; }
.wrap { width: min(100%, 1190px); margin-inline: auto; padding-inline: var(--gut); }
.symbols { width: 0; height: 0; position: absolute; overflow: hidden; pointer-events: none; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; z-index: 3; inset: -70px auto auto var(--gut); background: #fff; border: 1px solid var(--blue); padding: 9px 16px; }
.skip:focus { top: 10px; }

.site-head { background: #fff; border-bottom: 1px solid var(--line); }
.head-row { min-height: 68px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: clamp(22px, 4vw, 48px); }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; min-height: 44px; color: var(--ink); font-size: 21px; font-weight: 550; letter-spacing: -.015em; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; align-items: stretch; gap: clamp(18px, 2.7vw, 34px); align-self: stretch; }
.nav a { display: inline-flex; align-items: center; position: relative; min-height: 44px; min-width: 44px; justify-content: center; color: var(--muted); font-weight: 550; font-size: 15px; }
.nav a:hover, .nav a[aria-current="location"] { color: var(--blue); }
.nav a::after { content: ""; position: absolute; bottom: 0; height: 3px; width: 100%; border-radius: 3px 3px 0 0; background: transparent; }
.nav a:hover::after, .nav a[aria-current="location"]::after { background: var(--blue); }
.language { display: inline-flex; align-items: center; border: 1px solid #c7d0dc; border-radius: 24px; }
.language a { min-width: 44px; min-height: 44px; padding: 6px 14px; display: grid; place-items: center; color: var(--blue); font-size: 14px; font-weight: 550; border-radius: inherit; line-height: 1.2; }
.language a[aria-current="true"] { color: var(--navy); background: var(--light-blue); }
.language a[aria-current="true"] { display: none; }
.language a:hover { background: #edf3fe; color: var(--navy); }

.hero { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(300px, .84fr);
  grid-template-areas: "intro cases" "ride cases"; align-items: start; gap: 23px clamp(32px, 5vw, 72px);
  padding-block: clamp(32px, 4.5vw, 60px); }
.hero-intro { grid-area: intro; }
.hero-cases { grid-area: cases; min-width: 0; align-self: center; }
.hero-ride { grid-area: ride; min-width: 0; }
h1, h2, h3, p, figure { margin: 0; }
.opening-quote { margin:clamp(14px,1.8vw,20px) 0 0; padding-inline-start:13px; border-inline-start:2px solid var(--orange); }
.opening-quote blockquote { margin:0; color:var(--text); font:italic clamp(17px,1.8vw,22px)/1.35 Georgia,serif; }
.opening-quote figcaption { margin-top:4px; font-size:13px; color:var(--muted); }
.opening-quote a { text-decoration:underline; text-underline-offset:.18em; }
h1, h2, h3 { text-wrap: balance; }
.hero h1 { font-size: clamp(38px, 4.35vw, 56px); line-height: 1.15; letter-spacing: -.017em; font-weight: 500; }
:lang(zh-CN) .hero h1 { letter-spacing: -.018em; line-height: 1.23; }
.hero-lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--text); margin-top: 23px; max-width: 28em; text-wrap: pretty; }
.panel-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; }
.action, .text-link, .source, .copy-button { display: inline-flex; align-items: center; gap: 7px; width: fit-content; font-size: 15px; font-weight: 600; }
.action { min-height: 44px; padding: 10px 20px; background: var(--light-blue); border-radius: 24px; color: var(--navy); }
.action:hover { background: #c6dcfb; }
.action.primary { color: #fff; background: var(--blue); }
.action.primary:hover { background: #094ab1; }
.text-link { min-height: 44px; }
.text-link:hover span, .source:hover span, .copy-button:hover span, .footer a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.source { min-height: 44px; font-size: 14px; font-weight: 550; }
.source .icon { width: 14px; height: 14px; }
.picker-title { margin-bottom: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.t-route { --track: var(--blue-track); --wash: #edf3fe; --edge: #cddcf5; }
.r-route { --track: var(--orange); --wash: #fff3e9; --edge: #efd9c8; }
.b-route { --track: #287354; --wash: #eef7f0; --edge: #ccdfd1; }
.route-peek { align-items: center; gap: 3px 12px;
  min-width: 0; min-height: 52px; padding: 12px 17px; border: 1px solid var(--edge);
  border-radius: 16px; background: var(--wash); color: var(--ink); }
.route-peek:hover, .route-peek:focus-visible, .route-peek[aria-selected="true"] { border-color: var(--track); }
.route-peek[aria-selected="true"] { box-shadow: inset 0 0 0 1px var(--track); }
.peek-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 7px; }
.case-name { font-size: 19px; font-weight: 600; line-height: 1.25; }
.peek-head small { font-size: 13px; color: var(--muted); }
.ticket-rail svg { width: 100%; height: auto; fill: var(--wash); stroke: var(--track); stroke-width: 1.8; }
.route-peek[aria-selected="true"] .seed-pin { fill: var(--track); }
.full-routes { margin-top: 12px; }
.case-subtitle { font-size: clamp(20px, 2vw, 26px); font-weight: 550; line-height: 1.25; }
.case-story { margin-top: 6px; line-height: 1.55; color: var(--text); text-wrap: pretty; }
.case-directions { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin-top: 11px; }
.direction-link { display: grid; align-content: start; gap: 2px; min-height: 44px; padding: 6px 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.direction-link:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.direction-label { color: var(--muted); font-size: 12px; font-weight: 500; }
.band { display: grid; grid-template-columns: minmax(170px, .43fr) minmax(0, 1fr); gap: clamp(34px, 8vw, 114px); padding-block: clamp(37px, 4.9vw, 63px); border-top: 1px solid var(--line); }
.section-head h2 { font-size: clamp(25px, 2.6vw, 34px); line-height: 1.24; letter-spacing: -.012em; font-weight: 500; }
.section-head p { margin-top: 12px; max-width: 22em; color: var(--muted); font-size: 15.5px; line-height: 1.55; text-wrap: pretty; }
.paper-author { color: var(--muted); font-size: 14px; }
.paper-panel h3 { margin-top: 4px; font-size: clamp(21px, 2.1vw, 27px); font-weight: 550; line-height: 1.3; letter-spacing: -.012em; }
.paper-panel .description { margin-top: 10px; color: var(--text); line-height: 1.6; text-wrap: pretty; }
.panel-links { margin-top: 13px; }
.panel-links .source { color: var(--muted); }
.questions { padding-top: 19px; }
.questions h3 { font-size: 15px; font-weight: 600; color: var(--text); }
.questions ol { margin: 6px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.questions li:last-child { grid-column: 1 / -1; }
.questions a { display: flex; align-items: center; min-height: 44px; gap: 7px; font-size: 14.5px; padding-block: 5px; }
.questions a:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.stop { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: #e2ecff; font-size: 11px; font-weight: 600; }
.film-choice { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.film-choice select { font: inherit; color: var(--navy); border: 1px solid #c7d0dc; border-radius: 10px; padding: 6px 10px; background: #fff; min-height: 44px; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #202124; border: 1px solid var(--line); border-radius: 16px; }
.film figcaption { margin-top: 8px; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; column-gap: 12px; color: var(--muted); font-size: 13.5px; }
.film figcaption a { font-size: inherit; min-height: 44px; }
code { font: .88em/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #344961; overflow-wrap: anywhere; }
.install-instruction { color: var(--text); line-height: 1.6; margin-top: 15px; text-wrap: pretty; }
.reading-mode { border: 0; padding: 0; margin: 17px 0 0; }
.reading-mode legend { padding: 0; font-size: 14px; font-weight: 600; color: var(--text); }
.reading-mode label { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin-right: 16px; color: var(--navy); font-size: 14px; cursor: pointer; }
.reading-mode input { accent-color: var(--blue); width: 18px; height: 18px; margin: 0; }
.mode-note { font-size: 14px; color: var(--muted); }
.prompt { background: #f0f4fa; border-radius: 16px; margin-top: 14px; padding: 12px 18px 17px; }
.prompt-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 32px; margin: -3px 0 5px; }
.prompt-head h3 { font-size: 14px; font-weight: 600; color: var(--muted); }
.prompt-text { color: #25364a; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; user-select: all; }
.copy-button { background: transparent; color: var(--blue); border: 0; padding: 4px 0 4px 6px; min-height: 44px; font-size: 14px; }
.copy-button .icon { width: 15px; height: 15px; }
.copy-status { color: var(--blue); font-size: 13px; margin: 4px 0 0; }
.copy-status:empty { display: none; }
.footer { border-top: 1px solid var(--line); }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; padding-block: 21px; color: var(--muted); font-size: 14px; }
.footer-name { font-weight: 600; }
html[lang="zh-CN"] .note-en-entry, html[lang="en"] .note-zh-entry { display: none; }
.note-head, .note-body { width: min(100%, 770px); margin-inline: auto; padding-inline: var(--gut); }
.note-head { display: flex; align-items: center; justify-content: space-between; gap: 1em; min-height: 64px; }
.note-head .language { margin: 0; }
.note-body { padding-block: clamp(38px, 7vw, 78px); }
.note-body h1 { font-size: clamp(35px, 6vw, 54px); font-weight: 600; line-height: 1.16; letter-spacing: -.04em; }
.note-body p { margin: 1.05em 0; font-size: clamp(16px, 2.5vw, 18px); line-height: 1.85; text-wrap: pretty; }
.note-body h1 + p { color: var(--navy); font-size: clamp(18px, 3vw, 22px); margin: 1.25em 0 1.5em; }
.note-body a:hover, .note-body a:focus-visible { text-decoration: underline; text-underline-offset: .18em; }
.footer a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; }
.footer .icon { width: 13px; height: 13px; transform: rotate(-90deg); }

.route-details { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 0; }
.route-details summary { width: fit-content; min-height: 44px; padding-block: 10px; color: var(--blue); font-size: 15px; font-weight: 550; cursor: pointer; }
.route-details summary:focus-visible { outline: 3px solid #2877cb; outline-offset: 3px; }
.route-details summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.route-details + .route-details { margin-top: 0; }
.route-details[open] { padding-bottom: 12px; }
.time-readout p, .field-note > p { line-height: 1.65; color: var(--text); text-wrap: pretty; }
.time-readout .panel-links, .passage .panel-links { margin-top: 3px; }
.origins { grid-template-columns: minmax(0, .65fr) minmax(0, 1fr); align-items: start; }
.origins .byline { display: flex; align-items: center; gap: 5px; margin-top: 1px; font-size: 14px; }
.byline a { display: inline-flex; align-items: center; min-height: 44px; }
.interchange-art { margin-top: 16px; }
.interchange-art img { display: block; width: 100%; height: auto; border-radius: 16px; }
.interchange-art figcaption { margin-top: 5px; font-size: 12px; color: var(--muted); }
.field-note h3, .demo-guide h3 { font-weight: 550; font-size: clamp(19px, 2vw, 24px); line-height: 1.3; }
.field-note h3 + p, .field-note > p + p { margin-top: 12px; }
.field-note > .text-link { margin-top: 5px; }
.passage blockquote { margin: 5px 0 8px; border-left: 2px solid var(--orange); padding-left: 13px; color: var(--text); }
.passage p { color: var(--muted); font-size: 14px; }
.demo-guide { border: 1px solid #ccdfd1; border-radius: 18px; background: #f5faf6; padding: clamp(16px, 3vw, 30px); }
.demo-guide h3 { margin: 4px 0 12px; }
.demo-guide .route-details { border-color: #d5e3d8; }
.demo-guide .route-details p { font-size: 15px; color: var(--text); }
.signoff { padding-bottom: 24px; color: var(--muted); font-size: 15px; }

@media (max-width: 840px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "intro" "cases" "ride"; gap: 20px; }
  .hero-cases { align-self: start; }
  .ticket-rail { width: 64px; }
}
@media (max-width: 770px) {
  .hero-lede { font-size: 17px; margin-top: 17px; }
  .band { grid-template-columns: minmax(150px, .4fr) minmax(0, 1fr); gap: 30px; }
  .questions ol { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .head-row { grid-template-columns: 1fr auto; min-height: auto; gap: 0 10px; }
  .brand, .language { margin-block: 6px 0; }
  .brand { font-size: 19px; gap: 7px; }
  .brand svg { width: 27px; height: 27px; }
  .language { justify-self: end; }
  .nav { grid-column: 1 / -1; grid-row: 2; gap: 24px; }
  .nav a { min-height: 44px; font-size: 14px; }
  .hero { grid-template-columns: 1fr; gap: 18px; padding-block: 26px; }
  .hero h1 { font-size: clamp(28px, 7.9vw, 44px); }
  .hero-lede { max-width: 34em; margin-top: 13px; }
  .route-peek { gap: 4px; padding: 9px 8px; border-radius: 12px; }
  .case-name { font-size: 17px; }
  .peek-head small { font-size: 12px; }
  .ticket-rail { width: min(100%, 55px); }
  .case-directions { gap: 10px; }
  .band { grid-template-columns: 1fr; gap: 20px; padding-block: 30px; }
  .section-head p { max-width: 38em; margin-top: 6px; font-size: 15px; }
  .paper-panel h3 { margin-top: 3px; }
  .paper-panel .description { margin-top: 7px; }
  .panel-links { margin-top: 7px; }
}
@media (max-width: 360px) {
  :root { --gut: 16px; }
  .brand { font-size: 18px; }
  .route-peek { padding-inline: 6px; }
  .case-name { font-size: 16px; }
  .language a { min-width: 44px; padding-inline: 10px; }
  .hero h1 { font-size: clamp(24px, 8vw, 29px); }
  .film figcaption { display: block; }
}
@media print {
  .site-head .nav, .language, #paper-choices, .copy-button, .footer { display: none; }
  .wrap { max-width: 100%; padding-inline: 0; }
  .hero, .band { gap: 20px; padding-block: 22px; }
  #paper-choices, .paper-panel, .film, .prompt { break-inside: avoid; }
}
