:root {
  color-scheme: light;
  --paper: #f7f3e9;
  --ink: #263b32;
  --red: #a24734;
  --muted: #655e51;
  --line: #ded8ca;
  --white: #fffdf7;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding-bottom: calc(76px + env(safe-area-inset-bottom)); background: var(--paper); color: var(--ink); font: 16px/1.8 system-ui, sans-serif; }
a { color: inherit; }
h1, h2, h3 { font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif; font-weight: 500; line-height: 1.4; }
h1 { font-size: clamp(2rem, 7vw, 3.5rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.55rem, 5vw, 2rem); margin: 0 0 16px; }
h3 { font-size: 1.3rem; margin: 0; }
p { margin: .65em 0; }
main { max-width: 1000px; margin: auto; padding: 30px clamp(16px, 5vw, 40px) 44px; }
section + section { margin-top: 32px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.skip { position: fixed; z-index: 4; top: 6px; left: 8px; padding: 8px; background: var(--white); transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-name { display: block; padding: 10px clamp(16px, 5vw, 40px); background: var(--ink); color: var(--paper); text-decoration: none; font-size: .85rem; }
.eyebrow, .status { color: var(--red); font-size: .82rem; font-weight: 650; }
.note, .breadcrumb { color: var(--muted); font-size: .85rem; }
.breadcrumb { margin: 0 0 14px; }
.hero { color: #fff6e7; background: var(--ink); }
.hero figure { margin: 0; min-width: 0; }
.hero-copy { padding: 12px clamp(16px, 6vw, 60px) 16px; }
.hero .eyebrow { color: #efd4a6; letter-spacing: .12em; }
.hero h1 { margin: 1px 0 2px; font-size: clamp(1.75rem, 7.6vw, 2.5rem); line-height: 1.26; }
.hero h1 br { display: none; }
.hero small { font-size: .78rem; letter-spacing: .1em; }
.hero p { max-width: 36em; margin: .5em 0; font-size: .88rem; line-height: 1.6; }
.hero figure img { aspect-ratio: 16 / 9; }
.hero figcaption { color: #ddd8c7; padding: 4px clamp(16px, 6vw, 60px); font-size: .66rem; }
.hero figcaption br { display: none; }
.hero figcaption a { margin-inline-start: .6em; }
.hero :focus-visible { outline-color: #efd4a6; outline-offset: -3px; }
.hero .button { background: transparent; color: inherit; border-color: #efd4a6; }
.home-main { padding-top: 18px; }
.section-heading { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 5px 14px; margin-bottom: 12px; }
.section-heading h2 { margin: 0; }
.section-heading a { font-size: .82rem; }
.home-main .tile .photo-caption { font-size: .66rem; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tile figure { margin: 0; }
.tile-link { display: block; flex: 1; padding: 10px; font-weight: 650; line-height: 1.5; text-decoration: none; }
.tile-link:hover { text-decoration: underline; }
.tile .status { display: block; margin-top: 4px; font-size: .73rem; font-weight: 550; }
.photo-button { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #dedfd1; }
.photo-button:focus-visible { z-index: 1; outline-offset: -3px; }
.photo-button img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tile img { aspect-ratio: 4 / 3; }
.zoom-icon { position: absolute; right: 8px; bottom: 8px; display: grid; width: 30px; height: 30px; place-items: center; background: #263b32e8; color: white; border-radius: 50%; font-size: 1.15rem; line-height: 1; }
.photo-caption { margin: 0; padding: 6px 10px; font-size: .75rem; line-height: 1.55; color: var(--muted); }
.photo-caption a { text-underline-offset: 2px; }
.gallery-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.gallery { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.gallery figure { flex: 0 0 90%; min-width: 0; margin: 0; scroll-snap-align: center; }
.gallery figure:only-child { flex-basis: 100%; }
.gallery figcaption { font-size: .69rem; }
.gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; background: #eee9dd; font-size: .78rem; }
.gallery-controls button, .dialog-head button { padding: 0 12px; min-height: 44px; border: 1px solid #b8b7a8; border-radius: 6px; background: var(--white); }
.gallery-controls button:disabled { opacity: .4; cursor: default; }
.button { display: inline-flex; align-items: center; min-height: 44px; margin: 5px 5px 5px 0; padding: 7px 12px; border: 1px solid #526657; border-radius: 7px; text-decoration: none; font-size: .86rem; }
.button:hover, .primary { background: var(--ink); color: white; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 15px 0; }
.facts div { background: #ede8d9; border-radius: 8px; padding: 9px 11px; }
.facts dt { color: var(--muted); font-size: .73rem; line-height: 1.4; }
.facts dd { margin: 3px 0 0; font-size: .93rem; font-weight: 650; line-height: 1.45; }
.facts small { display: block; font-size: .72rem; font-weight: 400; }
.visit-more { margin-top: 14px; }
.visit-more h3 { margin-bottom: 4px; }
.visit-more p { font-size: .9rem; }
.current-foliage { margin-top: 10px; }
.current-foliage .note { margin: 2px 0; font-size: .72rem; }
.credit-links { font-size: .72rem; }
.detail { margin: 18px 0; }
.detail dt { margin-top: 12px; font-weight: 650; color: var(--red); }
.detail dd { margin: 0; }
.route { padding-top: 12px; border-top: 1px solid var(--line); }
.map-shell { isolation: isolate; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #e8eadf; }
.map-view { height: clamp(320px, 51vh, 500px); height: clamp(320px, 51svh, 500px); background: #e8eadf; }
.map-tools { margin: 10px 0; }
.map-tools button { background: var(--white); }
.map-tools button:hover { background: var(--ink); color: white; }
.map-status { margin: 0; padding: 8px 12px; background: #eee9dd; color: var(--ink); font-size: .83rem; }
.map-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 16px; margin: 0 0 10px; font-size: .82rem; color: var(--muted); }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.map-symbol { display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid white; border-radius: 50%; background: #a24734; color: white; font-size: 13px; line-height: 1; font-style: normal; }
.map-symbol.station { background: #27536e; border-radius: 5px; }
.map-pin { display: grid; place-items: center; }
.map-pin .map-symbol { box-shadow: 0 1px 5px #15252275; }
.map-view:not(.map-regional) .map-pin:not(.map-overview-pin) { visibility: hidden; }
.leaflet-tooltip.map-name { padding: 1px 4px; border-radius: 4px; color: var(--ink); font-weight: 650; box-shadow: none; }
.map-view:not(.map-close) .map-name:not(.map-overview) { visibility: hidden; }
.map-shell .leaflet-popup-content { font: .85rem/1.55 system-ui, sans-serif; }
.map-popup strong, .map-popup a { display: block; }
.map-popup a { display: flex; align-items: center; min-height: 36px; }
.map-shell .leaflet-control-zoom a { width: 38px; height: 38px; line-height: 38px; }
.map-links ul { margin: 4px 0 10px; padding-left: 20px; }
.map-links li { margin: 4px 0; font-size: .88rem; }
.map-links li a { display: inline-block; padding: 6px 2px; text-underline-offset: 2px; }
.map-links h2 { margin-bottom: 5px; }
details { border-bottom: 1px solid var(--line); padding: 10px 0; }
summary { cursor: pointer; padding: 6px 0; font-weight: 650; }
summary::marker { color: var(--red); }
.credits { padding-left: 22px; }
.credits li { margin: 0 0 12px; overflow-wrap: anywhere; }
footer { background: var(--ink); color: var(--paper); padding: 24px 16px; text-align: center; font-size: .88rem; }
footer small { display: block; letter-spacing: .12em; }
.bottom-nav { position: fixed; z-index: 3; inset: auto 0 0; background: #f7f3e9; border-top: 1px solid var(--line); padding: 6px max(6px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)); }
.bottom-nav ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; max-width: 620px; margin: auto; padding: 0; list-style: none; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 55px; padding: 3px 0; border-radius: 8px; font-size: .72rem; line-height: 1.35; text-align: center; text-decoration: none; }
.bottom-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav a[aria-current] { background: var(--ink); color: white; }
.photo-dialog { width: min(94vw, 1000px); max-height: 92dvh; padding: 0; border: 0; border-radius: 12px; background: var(--paper); color: var(--ink); }
.photo-dialog::backdrop { background: #14251eee; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; font-weight: 650; }
.photo-dialog img { display: block; width: 100%; max-height: 67dvh; object-fit: contain; background: #14251e; }
.photo-dialog .photo-caption { padding: 10px 12px; }
body:has(.photo-dialog[open]) { overflow: hidden; }

@media (min-width: 750px) {
  .hero { display: grid; grid-template-columns: 55% 45%; align-items: center; }
  .hero h1 { font-size: clamp(2.4rem, 4.6vw, 4.5rem); }
  .hero h1 br { display: initial; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
