:root {
  --ink: #292447;
  --purple: #382b6c;
  --muted: #5c526a;
  --line: #dbd4e3;
  --paper: #faf9fc;
  --gutter: clamp(14px, 4vw, 48px);
  color-scheme: light;
}
* { box-sizing: border-box }
html { scroll-padding-top: 6rem }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.58 Inter, Arial, sans-serif }
header, main, footer { width: min(72rem, calc(100% - var(--gutter) * 2)); margin-inline: auto }
header, nav, footer, .brand { display: flex; align-items: center }
header, footer { justify-content: space-between; gap: .65rem }
header { position: sticky; top: 0; z-index: 5; padding-block: .75rem; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax) }
.brand { min-height: 44px; padding-inline: 3px }
.brand img { width: clamp(6.25rem, 17vw, 10.75rem); height: auto }
nav { gap: clamp(.12rem, 1.3vw, 1.25rem); flex-wrap: wrap }
a { color: #5d3379; text-underline-offset: .2em }
nav a, .cta, .btnset a, article > a, footer a { display: inline-flex; align-items: center; min-height: 44px }
nav a { color: var(--ink); justify-content: center; padding-inline: clamp(.22rem, .85vw, .8rem); min-width: 44px; font-size: .94rem; font-weight: 700; text-decoration: none }
a:hover { text-decoration: underline }
:focus-visible { outline: 3px solid #903d87; outline-offset: 2px }
.hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.95fr); gap: clamp(2rem,5vw,5rem); align-items: center; padding-block: clamp(2rem,5vw,4.75rem) }
.hero > *, .cards > *, figure, .trip-stops li > * { min-width: 0 }
.k { color: #794478; font-size: .76rem; font-weight: 700; line-height: 1.45; letter-spacing: .1em; text-transform: uppercase }
h1,h2,h3 { line-height: 1.1; margin: 0; text-wrap: balance }
h1,h2 { font-family: Georgia,serif; font-weight: 400; letter-spacing: -.045em }
h1 { max-width: 12ch; font-size: clamp(2.7rem,6.2vw,5.4rem); margin: .6rem 0 1rem }
h2 { font-size: clamp(2rem,3.75vw,3.2rem); margin: .45rem 0 1rem }
h3 { font-size: clamp(1.2rem,1.7vw,1.55rem); margin: .75rem 0 }
p { max-width: 74ch }
.hero-copy > p { max-width: 43ch; margin: 0 }
.quote { border-left: 3px solid #a35b9d; padding-left: 1rem; margin: 1.4rem 0; max-width: 48ch }
.quote strong,.quote span { display: block }
.quote strong { font: 600 clamp(1.55rem,3vw,2.55rem)/1.16 Georgia,serif; color: var(--purple); margin-bottom: .4rem; text-wrap: balance }
.quote span,.credit { color: var(--muted); font-size: .94rem }
.cta { font-size: 1rem; font-weight: 700; background: var(--purple); color: white; padding: .65rem 1.05rem; border-radius: .5rem; text-decoration: none }
.hero .credit { margin-top: .75rem }
.trip-stops { width: 100%; margin: 0; background: white; border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 8px 32px #33255b0e }
.trip-stops figcaption { padding: .85rem 1.05rem; font-weight: 700; font-size: 1.15rem }
.atlas { background: #262248 }
.atlas svg { display: block; width: 100%; height: auto; max-height: 15rem }
.route-switch { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .25rem; padding: .25rem; margin: 1rem 1rem .75rem; border-radius: .75rem; background: #f1edf5 }
.route-switch button,.journey-replay { min-height: 44px; border: none; cursor: pointer; font: inherit }
.route-switch button { border-radius: .55rem; padding: .55rem .7rem; text-align: left; background: transparent; color: var(--ink); line-height: 1.25; font-size: .94rem }
.route-switch small { display: block; margin-top: .2rem; font-size: .82rem }
.route-switch button[aria-selected=true] { background: #3c305e; color: white }
.trip-stops [role=tabpanel] { margin-inline: 1.05rem }
.trip-stops [role=tabpanel] h3 { margin: 0; font-size: 1.16rem }
.trip-stops p { font-size: .92rem; line-height: 1.47; margin: .45rem 0 }
.trip-stops ol { margin: .7rem 0; padding: 0; list-style: none }
.trip-stops li { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: .8rem; border-bottom: 1px solid #e7dfec; padding: .55rem 0; line-height: 1.36; font-size: .98rem }
.trip-stops time { font-weight: 700; color: #754986; white-space: nowrap }
.trip-stops li small { display: block; font-size: .82rem; color: var(--muted); margin-top: .15rem }
.trip-stops .map-note { margin: .75rem 1.05rem 1rem; font-size: .81rem; color: var(--muted) }
.journey-replay { margin: -.4rem 1rem 1rem; border: 1px solid #b79ac6; background: white; color: var(--purple); border-radius: 2rem; padding: .45rem .85rem; font-size: .88rem; font-weight: 600 }
section { border-top: 1px solid var(--line); margin-bottom: clamp(2.4rem,6vw,4.75rem); padding-top: clamp(1.6rem,3vw,2.5rem) }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(.75rem,1.8vw,1.35rem); margin: 1.25rem 0 }
article { background: white; border: 1px solid var(--line); border-top: 3px solid #99519e; padding: clamp(1rem,1.8vw,1.45rem); border-radius: .65rem }
article h3:first-child { margin-top: 0 }
article p { font-size: 1rem; margin-block: .75rem }
article .btnset { margin-top: .6rem }
.btnset { display: flex; align-items: start; flex-wrap: wrap; gap: .2rem 1.1rem; margin-block: .75rem }
.btnset a, article > a { line-height: 1.35; font-weight: 600 }
details { border-top: 1px solid var(--line) }
details summary { cursor: pointer; min-height: 44px; padding: .9rem 0; font-weight: 700 }
details ul { padding-left: 1.25rem }
details li { margin-block: .65rem }
label { display: block; font-weight: 600 }
input { display: block; width: min(100%,19rem); min-height: 48px; border: 1px solid #91859e; border-radius: .45rem; background: white; color: var(--ink); padding: .6rem .75rem; font: inherit; margin: .3rem 0 1rem }
output { display: block; background: #eee8f5; border-left: 4px solid #815393; border-radius: .35rem; padding: 1rem; font-weight: 700 }
footer { border-top: 1px solid var(--line); padding-block: .75rem; font-size: .9rem; flex-wrap: wrap }
@media(max-width:55rem) {
  .hero { grid-template-columns: minmax(0,1fr); gap: 1.5rem }
  h1 { max-width: none }
  .trip-stops { max-width: 44rem }
  .cards { grid-template-columns: minmax(0,1fr) }
  article p { max-width: 66ch }
}
@media(max-width:38rem) {
  html { scroll-padding-top: .75rem }
  header { position: static; flex-wrap: wrap; padding-block: .35rem; box-shadow: none; clip-path: none }
  nav a { font-size: .875rem }
  body { font-size: 1rem }
  .hero { padding-top: 1.55rem }
  .route-switch { margin-inline: .7rem }
  .route-switch button { padding: .6rem .5rem }
  .trip-stops [role=tabpanel],.trip-stops .map-note { margin-inline: .85rem }
  .trip-stops li { gap: .6rem }
  .atlas text { font-size: 19px }
  .btnset { flex-direction: column; gap: 0 }
}
@media(max-height:32rem) { header { position: static } html { scroll-padding-top: .75rem } }
@media print { header { position: static; box-shadow: none } nav,.journey-replay,.cta { display: none } .hero,.cards { display: block } article { break-inside: avoid; margin-bottom: .5rem } }

select#split { display:block; width:min(100%,22rem); min-height:48px; margin:.3rem 0 1rem; padding:.55rem .7rem; font:inherit; color:var(--ink); border:1px solid #91859e; border-radius:.45rem; background:white }
