:root {
  color-scheme: light;
  --paper: #f8f5ed;
  --ink: #25332e;
  --muted: #57625c;
  --line: #d7d7ca;
  --panel: #fffdf7;
  --accent: #284b3d;
  --soft: #e9eee3;
  --serif: Georgia, 'Times New Roman', serif;
  font: 16px/1.55 system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #966022; outline-offset: 3px; }
main:focus, #rutes:focus, .hint:focus, .result:focus { outline: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; }
h1 { font-size: clamp(2.65rem, 6vw, 5rem); letter-spacing: -.05em; }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); letter-spacing: -.035em; }
h3 { font-size: 2rem; letter-spacing: -.035em; }
.shell { width: min(1180px, calc(100% - 72px)); margin: 0 auto; }
.skip { position: absolute; top: 8px; left: 8px; transform: translateY(-200%); z-index: 2000; background: white; padding: 12px; }
.skip:focus { transform: translateY(0); }
.top { border-bottom: 1px solid var(--line); }
.top-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { text-decoration: none; display: flex; align-items: center; gap: 10px; font: 700 1.22rem/1.1 var(--serif); white-space: nowrap; }
.brand small, .issue, .kicker, .card-top, .task-status, figcaption {
  display: block; font: 750 .7rem/1.4 system-ui, sans-serif; letter-spacing: .13em; text-transform: uppercase;
}
.brand small { font-size: .52rem; margin-top: 5px; }
.top nav { display: flex; gap: 28px; font-size: .93rem; font-weight: 650; }
.top nav a { text-decoration: none; padding: 9px 0; }
.top nav [aria-current] { text-decoration: underline; text-decoration-color: #ac7650; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.issue { border: 1px solid var(--line); border-radius: 50px; padding: 7px 11px; }
.hero { display: grid; grid-template-columns: .98fr 1.02fr; gap: clamp(32px, 6vw, 98px); align-items: center; padding: 57px 0 45px; }
.hero h1 { font-size: clamp(4.4rem, 8.2vw, 8.15rem); line-height: .88; margin: 23px 0 26px; letter-spacing: -.084em; }
.hero h1 em { color: #985234; font-weight: inherit; }
.hero-copy p { font-size: clamp(1rem, 2vw, 1.22rem); color: var(--muted); max-width: 39ch; }
.kicker { color: var(--accent); }
.hero-kicker span { display: inline-block; margin-right: 7px; width: 20px; height: 1px; background: #985234; vertical-align: middle; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--accent); border-radius: 5px; padding: 10px 15px; min-height: 44px; background: var(--accent); color: white; text-decoration: none; font-weight: 740; font-size: .88rem; line-height: 1.25; text-align: center; }
.button:hover { filter: brightness(1.13); }
.button.secondary { color: var(--accent); background: var(--panel); border-color: var(--line); }
.button.secondary:hover { border-color: var(--accent); filter: none; }
.hero-art { position: relative; margin: 0; padding: 10px 10px 0; background: #ece5d6; border: 1px solid #d4c9b8; border-radius: 4px; transform: rotate(1.25deg); }
.hero-art img { width: 100%; height: auto; aspect-ratio: 1.31; object-fit: cover; object-position: center 48%; }
figcaption { padding: 10px 1px; color: #4a554d; display: flex; gap: 12px; align-items: center; font-size: .65rem; }
figcaption span:first-child { color: #985234; }
figcaption span:last-child { margin-left: auto; }
.photo-tag { position: absolute; bottom: 24px; right: -15px; display: flex; align-items: center; gap: 9px; padding: 12px 15px; background: #f7d5a7; border: 1px solid #b88a59; color: #643b25; transform: rotate(-5deg); }
.photo-tag strong { font: 500 2.5rem/.95 var(--serif); }
.photo-tag span { font-size: .63rem; font-weight: 800; letter-spacing: .1em; line-height: 1.25; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.facts span { display: flex; align-items: center; gap: 8px; padding: 12px 9px; font-size: .88rem; color: var(--muted); }
.facts span + span { border-left: 1px solid var(--line); padding-left: 20px; }
.facts strong { color: var(--ink); font: 500 1.65rem/1 var(--serif); }
.routes-section { padding: 36px 0 22px; scroll-margin-top: 20px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px 28px; margin-bottom: 20px; }
.section-heading .kicker { margin-bottom: 6px; }
.section-heading p { color: var(--muted); max-width: 35ch; font-size: .93rem; }
.route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.plum { --accent: #693e53; --soft: #f0e6ec; }
.rust { --accent: #8b422a; --soft: #f4e9dd; }
.teal { --accent: #27564b; --soft: #e3eee7; }
.route-card { text-decoration: none; background: var(--soft); border: 1px solid var(--line); padding: 17px; min-height: 226px; border-radius: 7px; color: var(--ink); display: flex; flex-direction: column; }
a.route-card:hover { border-color: var(--accent); }
.card-top { display: flex; align-items: center; justify-content: space-between; color: var(--accent); margin-bottom: 15px; }
.route-icon { display: inline-grid; align-self: start; place-items: center; width: 40px; height: 40px; border: 1px solid currentColor; border-radius: 50%; color: var(--accent); }
.route-card h3, .route-card h2 { font-size: clamp(1.65rem, 2.8vw, 2.55rem); margin: 7px 0; }
.route-card p { color: var(--muted); font-size: .94rem; margin: 0 0 14px; }
.card-end { margin-top: auto; padding-top: 10px; border-top: 1px solid #263f3830; display: flex; justify-content: space-between; color: var(--accent); font-size: .83rem; font-weight: 750; }
.note { background: var(--soft); padding: 13px 16px; border-left: 3px solid var(--accent); color: var(--ink); }
.home-note { margin-bottom: 40px; }
.bottom { border-top: 1px solid var(--line); }
.footer-inner { min-height: 98px; padding-block: 15px; font-size: .85rem; }
.footer-inner p { color: var(--muted); margin-top: 3px; font-size: .7rem; letter-spacing: .07em; }
.inner { padding-block: 24px 52px; }
.inner h1 { margin-block: 7px 12px; }
.back { display: inline-block; margin-bottom: 24px; color: var(--muted); font-weight: 650; font-size: .88rem; }
.lead, .route-intro p { max-width: 62ch; color: var(--muted); font-size: 1.08rem; }
.route-intro { background: var(--soft); border: 1px solid var(--line); border-radius: 7px; padding: clamp(19px, 4vw, 44px); margin-bottom: 14px; }
.subheading { margin-top: 24px; }
.stop-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stop-list a { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; text-decoration: none; border: 1px solid var(--line); padding: 10px; background: var(--panel); border-radius: 5px; }
.stop-list a:hover { border-color: var(--accent); }
.stop-num { width: 32px; height: 32px; display: grid; place-items: center; background: var(--soft); color: var(--accent); border-radius: 50%; font-weight: 780; }
.stop-list small { display: block; color: var(--muted); }
.stop-end { font-weight: 750; font-size: .83rem; color: var(--accent); }
.stop-leg { margin: 3px 0 -3px 25px; padding: 4px 7px 4px 14px; border-left: 2px solid var(--line); color: var(--muted); font-size: .85rem; }
.stop-leg span { margin-right: 5px; color: var(--accent); }
.task-shell { max-width: 790px; }
.task-shell h1 { font-size: clamp(2.45rem, 5.5vw, 4.1rem); }
.task-status { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; border-block: 1px solid var(--line); padding-block: 10px; margin-bottom: 23px; color: var(--accent); }
progress { width: 100%; height: 8px; accent-color: var(--accent); border: none; }
.where { display: flex; flex-wrap: wrap; gap: 5px 15px; color: var(--muted); font-size: .88rem; }
.where a { color: var(--accent); font-weight: 700; }
.play-panel { margin-top: 16px; padding: clamp(15px, 3.5vw, 29px); border: 1px solid var(--line); background: var(--panel); border-radius: 7px; }
.look { margin-bottom: 16px; padding: 10px 13px; background: var(--soft); border-left: 3px solid var(--accent); }
.look strong { color: var(--accent); }
.look p { margin-top: 3px; }
.prompt { font-size: clamp(1.05rem, 2vw, 1.22rem); margin-bottom: 16px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { margin-bottom: 6px; color: var(--muted); font-size: .86rem; font-weight: 700; }
.option { display: flex; gap: 10px; align-items: center; padding: 9px 11px; min-height: 44px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; }
.option:has(input:checked) { border-color: var(--accent); background: var(--soft); }
.option input { flex: none; width: 17px; height: 17px; accent-color: var(--accent); }
.field { display: grid; gap: 5px; font-weight: 650; }
.observation-field { margin-bottom: 10px; }
.field :is(input, select) { min-height: 44px; min-width: 0; width: 100%; padding: 8px 9px; background: white; color: var(--ink); border: 1px solid #a9b0a5; border-radius: 5px; font-weight: 400; }
.match { display: grid; gap: 9px; }
.small { color: var(--muted); font-size: .89rem; }
.chips, .filters, .sequence { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.sequence { min-height: 48px; padding: 5px 8px; border: 1px dashed var(--line); margin-block: 8px; color: var(--muted); font-size: .88rem; }
.chip { border: 1px solid var(--line); border-radius: 5px; padding: 6px 9px; min-height: 40px; display: inline-flex; align-items: center; background: var(--panel); color: var(--accent); font-size: .87rem; font-weight: 650; text-decoration: none; }
.chip:disabled { opacity: .48; cursor: default; }
.chip:is(.selected, [aria-current]) { background: var(--soft); border-color: var(--accent); }
.sound { margin-bottom: 13px; }
details { margin-top: 11px; color: var(--muted); }
details summary { cursor: pointer; font-size: .89rem; font-weight: 700; }
details p { margin-block: 5px; }
.hint, .result { background: var(--soft); color: var(--ink); padding: 11px 13px; border-left: 3px solid var(--accent); margin-top: 14px; }
.result p { margin-top: 5px; }
.feedback:not(:empty) { margin-top: 8px; color: #973b2b; font-weight: 650; }
.next-stop { margin-top: 16px; }
.next-stop h2 { margin: 4px 0; font-size: 1.8rem; }
.next-stop .actions, .next-actions { margin-top: 10px; }
.passport-grid { margin-block: 22px; }
.passport-grid .route-card { min-height: 210px; }
.passport-grid .kicker { margin-top: 10px; }
.passport-grid .card-end { margin-top: 12px; }
.passport-grid + p { margin-bottom: 10px; }
.filters { margin-block: 14px 10px; }
.map-facts { display: flex; flex-wrap: wrap; gap: 5px 17px; margin: 0 0 9px; color: var(--muted); font-size: .88rem; }
.map-facts strong { color: var(--ink); }
.map-key { display: flex; align-items: center; gap: 8px; margin-top: 7px; color: var(--muted); font-size: .85rem; }
.map-key span { flex: 0 0 24px; height: 4px; border-radius: 4px; background: var(--accent); }
#map { height: clamp(300px, 49vw, 490px); border: 1px solid var(--line); border-radius: 6px; background: var(--soft); z-index: 0; }
#map > p { padding: 12px; }
#map .map-marker { pointer-events: none; }
.map-marker > svg { position: absolute; inset: 0; overflow: visible; pointer-events: none; display: none; }
.map-marker[data-offset] > svg { display: block; }
.map-marker line { stroke: var(--accent); stroke-width: 2; }
.map-marker circle { fill: var(--accent); stroke: white; stroke-width: 1.5; }
.map-pin { position: absolute; inset: 0; transform: translate(var(--pin-x, 0px), var(--pin-y, 0px)); background: var(--accent); color: white; border: 2px solid white; border-radius: 50%; display: grid; place-items: center; font-weight: 800; box-shadow: 0 1px 4px #0006; pointer-events: auto; }
.map-marker:focus-visible .map-pin { outline: 2px solid #966022; outline-offset: 2px; }
.guide p { max-width: 66ch; }
.guide h2 { margin: 20px 0 8px; font-size: 1.75rem; }
.guide li { margin-block: 4px; }
dialog { max-width: min(480px, calc(100% - 24px)); border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--ink); padding: 22px; }
dialog::backdrop { background: #1c2c27a8; }
dialog p { margin-top: 8px; }
@media (max-width: 850px) {
  .shell { width: calc(100% - 40px); }
  .hero { gap: 30px; }
  .hero h1 { font-size: clamp(3.7rem, 9.8vw, 6rem); }
  .route-card { padding: 13px; }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 28px); }
  .top-inner { gap: 2px 12px; min-height: 0; padding-block: 8px 4px; flex-wrap: wrap; }
  .top nav { order: 3; width: 100%; gap: 22px; }
  .top nav a { padding: 8px 0; }
  .brand img { width: 34px; height: 34px; }
  .issue { padding: 5px 7px; font-size: .6rem; }
  .hero { grid-template-columns: 1fr; gap: 20px; padding: 26px 0 18px; }
  .hero h1 { font-size: clamp(3.65rem, 13.5vw, 5.2rem); margin: 13px 0 16px; }
  .hero-art { margin: 0 4px; transform: none; }
  .hero-art img { aspect-ratio: 1.65; }
  .photo-tag { right: -5px; padding: 8px 10px; }
  .photo-tag strong { font-size: 2rem; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts span { padding: 8px 5px; font-size: .78rem; }
  .facts span + span { border-left: none; padding-left: 5px; }
  .facts span:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts strong { font-size: 1.38rem; }
  .section-heading { align-items: start; flex-direction: column; margin-bottom: 12px; }
  .route-grid { grid-template-columns: 1fr; gap: 9px; }
  .route-card { min-height: 0; }
  .card-top { margin-bottom: 8px; }
  .footer-inner { align-items: start; flex-direction: column; gap: 10px; justify-content: center; }
  .task-status { gap: 7px; letter-spacing: .05em; }
}
