:root {
  color-scheme: light;
  --paper: #f6f3ec;
  --ink: #21382e;
  --green: #154c38;
  --sage: #dfe9dc;
  --edge: #687e70;
  font: 100%/1.55 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
.bar, main { max-width: 54rem; margin: auto; padding: 1rem clamp(1rem, 4vw, 2.5rem); }
.bar { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; border-bottom: 1px solid #c8d3c9; }
.brand { font: 1.55rem Georgia, serif; letter-spacing: .13em; }
nav { display: flex; gap: .15rem; }
nav a { padding: .65rem .45rem; border-radius: .5rem; text-decoration: none; }
nav [aria-current] { background: var(--sage); font-weight: 700; }
a { color: var(--green); }
:focus-visible { outline: 3px solid #80511c; outline-offset: 3px; }
h1, h2 { font-family: Georgia, serif; font-weight: 500; line-height: 1.1; margin: 0 0 .75rem; }
h1 { font-size: clamp(2.4rem, 7vw, 4.25rem); }
h2 { font-size: 1.65em; }
.eyebrow { margin: 0 0 .55rem; letter-spacing: .12em; text-transform: uppercase; font-size: .82em; font-weight: 700; }
.subtitle { margin-top: 0; }
.hero { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 1rem; margin: 1.2rem 0; }
button, .button { font: inherit; font-weight: 650; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 44px; padding: .45rem .85rem; border: 1px solid var(--edge); border-radius: .7rem; color: var(--green); background: var(--paper); text-decoration: none; }
button:disabled { cursor: default; opacity: .65; }
.map-link { background: var(--sage); justify-content: space-between; width: 100%; }
.tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .65rem 0; margin: .5rem 0; position: sticky; top: 0; background: var(--paper); z-index: 2; border-bottom: 1px solid #c8d3c9; }
.size { display: flex; gap: .35rem; }
.player { flex: 1 1 15rem; }
audio { width: 100%; display: block; max-width: 27rem; }
#speech-status:empty { display: none; }
#reading { font-size: 1.15rem; }
#tour-text img { max-width: 100%; height: auto; }
.highlight-text { padding-left: 1rem; border-left: 3px solid var(--green); }
.directions, .selection { background: var(--sage); padding: 1.2rem; margin: 1.5rem 0; border-radius: 1rem; }
.bottom { margin-bottom: 1.5rem; }
#map { height: clamp(19rem, 55vh, 36rem); border-radius: 1rem; margin-top: 1rem; background: #e7e8dc; }
#map[hidden] { display: none; }
.map-marker { display: grid; place-items: center; border: 2px solid white; border-radius: .7rem; background: var(--green); color: white; font-weight: 750; box-shadow: 0 1px 4px #263e33; }
.map-marker.selected { background: #773c17; }
.map-marker.origin { outline: 2px solid #773c17; outline-offset: 1px; }
.map-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
#stop-list { padding-left: 1.65rem; }
#stop-list li { margin: .2rem 0; }
#stop-list button { text-align: left; justify-content: start; width: 100%; }
#stop-list [aria-pressed="true"] { background: var(--sage); }
.route-detail { display: flex; flex-wrap: wrap; gap: .55rem; }
[hidden] { display: none !important; }
#tour-text img { border-radius: .7rem; }
#tour-text a { overflow-wrap: anywhere; }
.hero { height: auto; }
.borghi-badge { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
