:root {
  color-scheme: light;
  --ink: #192c25;
  --green: #285645;
  --muted: #53645a;
  --line: #dedfd5;
  --canvas: #f5f4ed;
  --amber: #ffbf54;
  --paper: #fffefa;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, p, ul { margin: 0; }
body { min-width: 300px; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: wait; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #bb6b05; outline-offset: 4px; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hero { color: #fffaf0; background: radial-gradient(ellipse at 79% 25%, #2b493c, #172823 68%); overflow: hidden; }
.hero-inner, .main { width: min(100% - 48px, 770px); margin-inline: auto; }
.hero-inner { position: relative; padding: 24px 0 34px; isolation: isolate; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 750; letter-spacing: .01em; }
.route-art { position: absolute; z-index: -1; pointer-events: none; width: 400px; top: 39px; right: -64px; opacity: .85; }
.route-art svg { display: block; width: 100%; }
.hero-copy { margin-top: 34px; }
.eyebrow { font-size: 11px; font-weight: 750; letter-spacing: .14em; }
.hero .eyebrow { color: #c6d5c9; }
h1 { margin: 8px 0 13px; font-size: clamp(51px, 8vw, 80px); line-height: .96; letter-spacing: -.072em; font-weight: 790; }
h1 em { color: var(--amber); font-style: normal; }
.intro { color: #dde8de; font-size: 15px; line-height: 1.55; max-width: 380px; }
.search { margin-top: 23px; max-width: 520px; }
.search label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 650; }
.search-controls { display: flex; gap: 8px; }
.input-shell { display: flex; flex: 1; min-width: 0; align-items: center; gap: 9px; height: 48px; padding: 0 12px; border-radius: 11px; background: var(--paper); color: var(--green); }
.input-shell:focus-within { outline: 3px solid var(--amber); outline-offset: 2px; }
.input-shell input { width: 100%; min-width: 0; border: 0; outline: none; color: var(--ink); background: transparent; font-size: 17px; font-weight: 650; }
.input-shell input::placeholder { color: #67766c; font-size: 15px; font-weight: 450; }
.search-button { display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 11px; padding: 0 16px; background: var(--amber); color: #282a1d; white-space: nowrap; font-weight: 750; }
.search-button:hover { background: #ffd079; }
.search-button .icon { width: 17px; height: 17px; }

.main { padding-top: 22px; }
.favorites { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.chip { display: inline-flex; gap: 7px; align-items: center; max-width: 100%; border: 1px solid #d8ddd1; border-radius: 99px; padding: 7px 12px; background: var(--paper); color: var(--green); font-size: 12px; font-weight: 650; }
.chip[aria-current='true'] { background: #e0ece4; border-color: #9bb7a6; }
.chip .icon { width: 14px; height: 14px; }
.stop-card { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 17px; padding: 17px 18px; box-shadow: 0 5px 13px #1f322008; }
.stop-info { display: flex; align-items: flex-start; gap: 13px; min-width: 0; }
.pin-badge { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; color: var(--green); background: #e4eee6; }
.stop-code { color: var(--green); margin-bottom: 4px; }
.stop-copy h2 { font-size: clamp(19px, 4vw, 26px); line-height: 1.15; letter-spacing: -.035em; overflow-wrap: anywhere; }
.address { margin-top: 5px; color: var(--muted); font-size: 13px; }
.map { display: inline-flex; align-items: center; gap: 3px; margin-top: 6px; color: var(--green); font-size: 12px; font-weight: 700; text-decoration: none; }
.map:hover { text-decoration: underline; }
.map .icon { width: 14px; height: 14px; }
.icon-button { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border: 1px solid #d4dacf; border-radius: 11px; color: var(--green); background: var(--paper); }
.icon-button:hover:not(:disabled) { background: #e9eee6; }
.favorite-button[aria-pressed='true'] { border-color: #d9aa61; background: #fff0cb; color: #795212; }
.favorite-button[aria-pressed='true'] .icon { fill: var(--amber); }

.departures { margin-top: 24px; }
.departures-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.section-label { display: flex; gap: 7px; align-items: center; color: var(--green); margin-bottom: 4px; }
.section-label span { width: 7px; height: 7px; background: #3d7956; border-radius: 50%; }
.departures h2 { font-size: clamp(23px, 5vw, 31px); line-height: 1.15; letter-spacing: -.043em; }
.freshness { min-height: 19px; margin-top: 6px; margin-bottom: 11px; color: var(--muted); font-size: 12px; }
.notice { margin: 0 0 10px; border: 1px solid #e8c38f; border-radius: 11px; padding: 11px 13px; background: #fff3dc; color: #654313; font-size: 14px; }
.empty { padding: 20px 15px; border: 1px dashed #cbd2c6; border-radius: 13px; color: var(--muted); text-align: center; font-size: 14px; }
.departure-list { list-style: none; padding: 0; display: grid; gap: 7px; }
.departure { display: flex; align-items: center; gap: 11px; min-height: 63px; padding: 10px 13px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.line { display: grid; place-items: center; min-width: 57px; height: 36px; padding-inline: 5px; border-radius: 8px; background: #e4eee6; color: #244d3d; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.departure-copy { flex: 1; min-width: 0; }
.destination { font-size: 14px; line-height: 1.3; font-weight: 720; overflow-wrap: anywhere; }
.vehicle { color: var(--muted); font-size: 12px; margin-top: 3px; line-height: 1.35; }
.vehicle a { color: var(--green); }
.eta { flex: none; color: var(--green); font-weight: 750; font-size: 14px; text-align: right; white-space: nowrap; }
.eta strong { font-size: 25px; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.eta strong.seconds { font-size: inherit; letter-spacing: normal; }
.eta.soon { color: #8b5007; }
.scheduled { margin-top: 13px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: #f0f0e7; }
.scheduled summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 45px; color: #394f43; font-size: 14px; font-weight: 720; list-style: none; }
.scheduled summary::-webkit-details-marker { display: none; }
.schedule-heading { display: flex; align-items: center; gap: 7px; }
.schedule-heading .icon { width: 17px; height: 17px; }
.count::after { content: '+'; display: inline-block; width: 13px; margin-left: 9px; font-size: 17px; }
.scheduled[open] .count::after { content: '−'; }
.schedule-note { font-size: 12px; color: var(--muted); margin-bottom: 9px; }
.scheduled .departure-list { padding-bottom: 11px; }
.scheduled .departure { min-height: 52px; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; margin-top: 26px; padding: 15px 0 23px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer a { color: var(--green); }

@media (max-width: 560px) {
  .hero-inner, .main { width: calc(100% - 32px); }
  .hero-inner { padding: 17px 0 23px; }
  .hero-copy { margin-top: 26px; }
  .route-art { width: 275px; right: -113px; top: 61px; opacity: .4; }
  .intro { max-width: 260px; font-size: 14px; }
  .search { margin-top: 17px; }
  .search-button { padding-inline: 11px; font-size: 14px; }
  .main { padding-top: 15px; }
  .stop-card { padding: 13px 11px; }
  .stop-info { gap: 9px; }
  .pin-badge { width: 34px; height: 34px; }
  .icon-button { width: 38px; height: 38px; }
  .departures { margin-top: 19px; }
  .departure { gap: 8px; padding-inline: 9px; }
  .line { min-width: 48px; }
  .destination { font-size: 13px; }
  .eta { font-size: 13px; }
  .eta strong { font-size: 22px; }
}
