:root {
  --cream: #f5edda;
  --paper: #fffaf0;
  --butter: #e7ad31;
  --ochre: #c57a16;
  --molasses: #321a12;
  --brown: #5e351f;
  --rust: #8c3e20;
  --line: rgba(50, 26, 18, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--molasses); background: var(--cream); font-family: "Trebuchet MS", "Avenir Next", Avenir, sans-serif; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.site-frame { min-height: 100vh; display: flex; flex-direction: column; }

.site-header { position: sticky; top: 0; z-index: 1000; min-height: 76px; padding: 0 clamp(22px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(245,237,218,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.brand-pie { width: 36px; height: 36px; display: grid; place-items: center; background: var(--butter); border: 1px solid var(--molasses); border-radius: 50%; font-size: 20px; }
nav { display: flex; gap: clamp(18px, 3vw, 42px); }
nav a { font-size: 12px; font-weight: 800; letter-spacing: .11em; text-decoration: none; text-transform: uppercase; }
nav a:hover, nav a:focus-visible, nav a[aria-current="page"] { color: var(--rust); }
nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }

#app { flex: 1; }
.page { min-height: calc(100vh - 134px); }
.eyebrow, .section-kicker { margin: 0 0 20px; color: var(--rust); font-size: 12px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
.route-title { margin: 0; font-size: clamp(52px, 7vw, 104px); line-height: .9; letter-spacing: -.05em; }
.button { min-height: 48px; padding: 14px 21px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--molasses); color: inherit; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.button-primary { color: #fff8e8; background: var(--molasses); box-shadow: 4px 4px 0 var(--butter); }
.button:hover, .button:focus-visible { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--butter); }

.text-link { font-weight: 800; text-underline-offset: 5px; }

.about-page { padding: clamp(72px,9vw,126px) clamp(24px,6vw,96px); display: flex; align-items: center; background: var(--butter); }
.about-grid { width: 100%; display: grid; grid-template-columns: 1.1fr 1fr .55fr; gap: clamp(36px,6vw,90px); align-items: center; }
.about-grid p { font-family: Georgia, serif; font-size: 18px; line-height: 1.65; }
.about-grid .lead { color: var(--brown); font-size: 22px; }
.about-actions { margin-top: 28px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.about-grid aside { padding-left: 28px; border-left: 1px solid rgba(50,26,18,.35); font-size: 11px; font-weight: 900; letter-spacing: .09em; line-height: 1.5; text-transform: uppercase; }
.big-number { display: block; margin-bottom: 12px; font-family: Georgia, serif; font-size: 82px; line-height: 1; letter-spacing: -.06em; }

.what-page { width: min(100%,1600px); margin: 0 auto; padding: clamp(42px,5vw,76px) clamp(22px,5vw,76px); background: var(--paper); }
.what-intro { width: min(100%,1240px); margin: 0 auto clamp(38px,5vw,66px); }
.what-intro .section-kicker { margin-bottom: 10px; }
.what-intro .route-title { font-size: clamp(48px,6vw,92px); line-height: .9; }
.what-intro > p { width: 100%; margin: 22px 0 0; color: var(--brown); font-family: Georgia, serif; font-size: clamp(18px,1.7vw,23px); line-height: 1.55; }
.comparison-intro { width: min(100%,1240px); margin: 0 auto 26px; padding-top: 28px; border-top: 1px solid var(--line); }
.comparison-intro .section-kicker { margin-bottom: 9px; }
.comparison-intro h2 { margin-bottom: 14px; font-size: clamp(34px,4vw,56px); line-height: .95; }
.comparison-intro > p { width: 100%; margin: 0; color: var(--brown); font-family: Georgia, serif; font-size: clamp(16px,1.4vw,20px); line-height: 1.55; }
.pie-comparison { position: relative; width: min(100%,1240px); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px,2.5vw,34px); }
.comparison-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--molasses); background: var(--cream); }
.comparison-card figure { min-width: 0; margin: 0; display: flex; flex-direction: column; overflow: hidden; border-top: 4px solid var(--butter); background: var(--molasses); }
.comparison-card img { width: 100%; height: clamp(180px,17vw,240px); display: block; object-fit: cover; }
.comparison-card figcaption { padding: 7px 10px; color: #e6d7c3; background: var(--molasses); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.comparison-card figcaption a { color: #fff5df; font-weight: 900; text-underline-offset: 3px; }
.comparison-copy { padding: clamp(20px,2.2vw,30px); flex: 1 1 auto; display: flex; flex-direction: column; background: var(--cream); }
.comparison-number { margin-bottom: 8px; color: var(--rust); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.comparison-copy h2 { margin-bottom: 14px; font-size: clamp(36px,4vw,58px); line-height: .92; }
.comparison-copy > p:not(.comparison-number) { max-width: 610px; color: var(--brown); font-family: Georgia, serif; font-size: clamp(15px,1.25vw,18px); line-height: 1.6; }
.comparison-copy dl { margin: auto 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.comparison-copy dl div { padding: 10px 0; display: grid; grid-template-columns: 90px 1fr; gap: 12px; border-bottom: 1px solid var(--line); }
.comparison-copy dt { color: var(--rust); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.comparison-copy dd { margin: 0; font-family: Georgia, serif; font-size: 14px; }
.preference-block { margin-top: clamp(52px,7vw,96px); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; align-items: stretch; overflow: hidden; color: #fff5df; background: var(--molasses); }
.preference-copy { padding: clamp(30px,4vw,62px); display: flex; flex-direction: column; justify-content: center; }
.preference-copy .section-kicker { margin-bottom: 12px; color: var(--butter); }
.preference-copy h2 { margin-bottom: 20px; color: #fff5df; font-size: clamp(34px,4vw,60px); line-height: .96; }
.survey-stat { margin: 2px 0 24px; padding: 14px 0; display: flex; align-items: center; gap: 16px; border-top: 1px solid rgba(255,250,240,.2); border-bottom: 1px solid rgba(255,250,240,.2); }
.survey-stat strong { color: var(--butter); font-family: Georgia, serif; font-size: clamp(44px,5vw,72px); line-height: .8; letter-spacing: -.05em; }
.survey-stat span { max-width: 90px; color: #fff5df; font-size: 10px; font-weight: 900; letter-spacing: .1em; line-height: 1.35; text-transform: uppercase; }
.preference-summary { max-width: 600px; margin: 0; color: #dccbb5; font-family: Georgia, serif; font-size: clamp(16px,1.5vw,20px); line-height: 1.6; }
.preference-source { max-width: 600px; margin: 20px 0 0; padding-top: 17px; color: #dccbb5; border-top: 1px solid rgba(255,250,240,.2); font-family: Georgia, serif; font-size: clamp(16px,1.5vw,20px); line-height: 1.6; }
.preference-source a { color: var(--butter); font-weight: 900; text-underline-offset: 3px; }
.preference-block figure { min-width: 0; min-height: 0; height: 100%; margin: 0; display: flex; flex-direction: column; overflow: hidden; background: #fff; }
.preference-block img { flex: 1 1 0; width: 100%; min-height: 0; height: auto; display: block; object-fit: contain; object-position: center; }
.preference-block figcaption { padding: 8px 12px; color: #e6d7c3; background: var(--molasses); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.preference-block figcaption a { color: #fff5df; font-weight: 900; text-underline-offset: 3px; }

.map-page { padding: 22px clamp(20px,4vw,58px); background: var(--paper); }
.map-view-toggle { display: none; }
.map-shell { height: clamp(400px,calc(100vh - 260px),540px); min-height: 400px; display: grid; grid-template-columns: minmax(0,1fr) 310px; overflow: hidden; border: 1px solid var(--molasses); background: #e8ddbd; box-shadow: 10px 10px 0 rgba(197,122,22,.28); }
#map { min-height: 0; height: 100%; background: #e8dfbd; }
#map .leaflet-tile-pane { filter: saturate(.72) brightness(1.06) contrast(.82) sepia(.05); }
.pie-map-marker { display: grid; place-items: start center; border: 0; background: transparent; }
.pie-map-marker span { width: 38px; height: 38px; display: grid; place-items: center; border: 2px solid var(--molasses); border-radius: 50% 50% 50% 8px; background: #fff2c8; box-shadow: none; transform: rotate(-45deg); }
.pie-map-marker i { display: block; font-size: 20px; font-style: normal; line-height: 1; transform: rotate(45deg); }
.pie-map-marker:hover span, .pie-map-marker.is-selected span { background: var(--butter); }
.leaflet-tooltip { padding: 8px 10px; border: 1px solid var(--molasses); border-radius: 0; color: var(--molasses); background: var(--paper); font-size: 11px; line-height: 1.35; box-shadow: none; }
.leaflet-control-zoom { border: 1px solid var(--molasses) !important; border-radius: 0 !important; box-shadow: none !important; }
.spot-panel { min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--cream); border-left: 1px solid var(--molasses); }
.spot-card { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.spot-count { margin-bottom: 6px; color: var(--rust); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.spot-icon { display: none; }
.spot-card h3 { margin: 4px 0; font-family: Georgia, serif; font-size: 19px; line-height: 1.05; }
.spot-town { margin-bottom: 3px; color: var(--rust); font-weight: 900; }
.spot-address { min-height: 0; margin-bottom: 10px; color: var(--brown); font-size: 11px; line-height: 1.3; }
.spot-card .button { min-height: 38px; padding: 9px 12px; }
.button.full { width: 100%; }
.spot-list { min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.spot-list button { width: 100%; padding: 10px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.spot-list button:hover, .spot-list button.active { background: #f0dca8; }
.spot-list span { font-family: Georgia, serif; font-size: 13px; font-weight: 700; }
.spot-list small { color: var(--brown); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.map-verification-note { width: 100%; margin: 14px 0 0; color: var(--brown); font-family: Georgia, serif; font-size: 12px; line-height: 1.5; }
.map-verification-note span { margin-right: 6px; color: var(--rust); font-family: "Trebuchet MS", sans-serif; font-weight: 900; }
.map-submit-cta { margin-top: 16px; padding: 13px 16px 13px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--molasses); background: #f0dca8; }
.map-submit-cta div { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.map-submit-cta strong { font-family: Georgia, serif; font-size: 19px; }
.map-submit-cta div span { color: var(--brown); font-size: 12px; }
.map-submit-cta .button { min-height: 40px; padding: 10px 16px; white-space: nowrap; }

.history-page { padding: clamp(46px,6vw,82px) clamp(24px,6vw,96px); color: var(--paper); background: var(--molasses); }
.history-top { display: grid; grid-template-columns: 1fr; gap: clamp(44px,6vw,78px); align-items: start; }
.history-intro { width: 100%; }
.history-page .section-kicker { color: var(--butter); }
.history-page .route-title { font-size: clamp(48px,5.5vw,80px); }
.history-intro > p { width: 100%; margin-top: 28px; color: #dccbb5; font-family: Georgia, serif; font-size: 19px; line-height: 1.65; }
.timeline { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 34px; list-style: none; }
.timeline li { padding: 26px 0; display: grid; grid-template-columns: 86px 1fr; gap: 20px; border-top: 1px solid rgba(255,250,240,.22); }
.timeline li:nth-last-child(-n+2) { border-bottom: 1px solid rgba(255,250,240,.22); }
.timeline .timeline-wide { grid-column: 1 / -1; }
.timeline .timeline-today { border-bottom: 1px solid rgba(255,250,240,.22); }
.timeline > li > span { color: var(--butter); font-family: Georgia, serif; font-size: 23px; font-style: italic; white-space: nowrap; }
.timeline h3 { margin-bottom: 9px; color: #fff5df; font-family: Georgia, serif; font-size: 21px; }
.timeline p { margin: 0; color: #ccbba7; line-height: 1.6; }
.timeline a { color: var(--butter); font-weight: 900; text-underline-offset: 3px; }
.history-notes { margin-top: clamp(50px,7vw,90px); display: grid; grid-template-columns: repeat(2,1fr); color: var(--molasses); background: #f0dca8; border-top: 1px solid var(--butter); border-left: 1px solid var(--butter); }
.history-notes article { padding: clamp(24px,3vw,42px); border-right: 1px solid rgba(50,26,18,.32); border-bottom: 1px solid rgba(50,26,18,.32); }
.history-notes h2 { margin: 10px 0 15px; color: var(--molasses); font-size: clamp(24px,2.4vw,35px); line-height: 1.05; }
.history-notes article > p:last-child { margin: 0; color: var(--brown); line-height: 1.7; }
.history-notes a { color: var(--rust); font-weight: 800; text-underline-offset: 4px; }
.history-label { margin: 0; color: var(--rust); }

.contact-page { padding: clamp(34px,4vw,64px) clamp(24px,6vw,96px); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px,8vw,130px); align-items: center; background: var(--butter); }
.contact-copy p:not(.section-kicker) { max-width: 430px; margin-top: 26px; font-family: Georgia, serif; font-size: 19px; line-height: 1.55; }
.contact-pie { margin-top: 24px; font-size: 70px; }
form { padding: clamp(24px,3vw,42px); background: var(--paper); border: 1px solid var(--molasses); box-shadow: 9px 9px 0 var(--molasses); }
form label { display: block; margin-bottom: 18px; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
form label span { color: var(--brown); font-weight: 500; letter-spacing: 0; text-transform: none; }
input, textarea, select { width: 100%; margin-top: 8px; padding: 13px 0; border: 0; border-bottom: 1px solid var(--molasses); border-radius: 0; color: var(--molasses); background: transparent; font-family: Georgia, serif; font-size: 17px; outline: 0; }
select { cursor: pointer; }
textarea { padding: 14px; border: 1px solid var(--line); resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--ochre); box-shadow: 0 2px 0 var(--ochre); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.form-footer { margin-top: 28px; display: flex; align-items: center; gap: 20px; }
.form-footer p { margin: 0; color: var(--brown); font-size: 12px; line-height: 1.4; }
.form-footer p.is-success { color: #405c2d; font-weight: 800; }
.form-footer p.is-error { color: #8b2f20; font-weight: 800; }
.form-footer .button:disabled { cursor: wait; opacity: .7; transform: none; box-shadow: 4px 4px 0 var(--butter); }

.compact-footer { min-height: 58px; padding: 13px clamp(22px,4vw,64px); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; color: #d8c8b3; background: var(--molasses); font-size: 10px; letter-spacing: .04em; }

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-grid aside { grid-column: 2; }
  .comparison-card img { height: clamp(180px,25vw,230px); }
  .map-shell { height: auto; grid-template-columns: 1fr; }
  #map { height: 560px; }
  .spot-panel { border-top: 1px solid var(--molasses); border-left: 0; display: grid; grid-template-columns: 1fr 1fr; }
  .spot-card { border-right: 1px solid var(--line); border-bottom: 0; }
  .spot-list { max-height: 350px; }
  .history-top { grid-template-columns: 1fr; }
  .contact-page { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header { padding: 11px 18px; align-items: flex-start; flex-wrap: wrap; }
  .brand { font-size: 16px; }
  .brand-pie { width: 30px; height: 30px; font-size: 16px; }
  nav { width: 100%; gap: 12px 16px; padding: 4px 0 6px; flex-wrap: wrap; }
  nav a { font-size: 9px; }
  .about-grid, .timeline, .field-row, .pie-comparison, .preference-block, .history-notes { grid-template-columns: 1fr; }
  .comparison-card img { height: clamp(180px,54vw,240px); }
  .preference-block img { flex: none; height: min(135vw,620px); }
  .timeline .timeline-wide { grid-column: auto; }
  .about-grid aside { grid-column: 1; }
  #map { height: 500px; }
  .map-view-toggle { margin-bottom: 12px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--molasses); background: var(--paper); }
  .map-view-toggle button { min-height: 42px; border: 0; color: var(--molasses); background: transparent; font: 900 10px/1 "Trebuchet MS", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
  .map-view-toggle button + button { border-left: 1px solid var(--molasses); }
  .map-view-toggle button.active { color: var(--paper); background: var(--molasses); }
  .map-shell[data-mobile-view="map"] .spot-panel { display: none; }
  .map-shell[data-mobile-view="list"] #map { display: none; }
  .map-shell[data-mobile-view="list"] { min-height: 0; }
  .spot-panel { grid-template-columns: 1fr; }
  .spot-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .spot-list { max-height: 300px; }
  .map-submit-cta, .form-footer { align-items: flex-start; flex-direction: column; }
  .history-page { align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
