:root {
  --paper: #f2efe7;
  --ink: #171713;
  --muted: #6e6b62;
  --line: #cbc6b8;
  --red: #d73324;
  --white: #fbfaf6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; }
button { font: inherit; }
main {
  min-height: 100vh;
  overflow: clip;
  background:
    linear-gradient(rgba(23,23,19,.035) 1px, transparent 1px),
    linear-gradient(90deg,rgba(23,23,19,.035) 1px, transparent 1px),
    var(--paper);
  background-size: 56px 56px;
}
.site-header {
  width: min(1240px, calc(100% - 48px)); height: 94px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 13px; text-decoration: none;
  font-family: monospace; font-size: 13px; font-weight: 700; letter-spacing: .12em;
}
.trail-mark { position: relative; width: 36px; height: 22px; display: block; background: #fff; border: 1px solid var(--ink); }
.trail-mark i { position: absolute; left: 0; right: 0; top: 7px; height: 7px; background: var(--red); }
nav { display: flex; gap: 28px; }
nav a { color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }
nav a:hover { color: var(--red); }
.hero {
  width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 90px 0 76px;
  display: grid; grid-template-columns: 1.35fr .65fr; align-items: end; gap: 9vw;
}
.eyebrow {
  margin: 0 0 22px; color: var(--red); font-family: monospace; font-size: 11px;
  font-weight: 750; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase;
}
.hero h1 { max-width: 820px; margin: 0; font-size: clamp(62px,8.4vw,124px); line-height: .86; letter-spacing: -.065em; }
.hero-lead { max-width: 610px; margin: 42px 0 32px; color: #4d4b44; font-size: 18px; line-height: 1.65; }
.primary-link { display: inline-flex; gap: 18px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); font-size: 14px; font-weight: 750; text-decoration: none; }
.primary-link:hover { color: var(--red); border-color: var(--red); }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.hero-stats div { padding: 20px 8px 24px 0; border-bottom: 1px solid var(--line); }
.hero-stats div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
.hero-stats strong { display: block; font-size: 38px; letter-spacing: -.05em; }
.hero-stats span { color: var(--muted); font-size: 12px; }
.sample-note { grid-column: 1/-1; margin: 20px 0 0; color: var(--muted); font: 10px monospace; text-transform: uppercase; letter-spacing: .08em; }
.route-section { padding: 94px max(24px,calc((100vw - 1240px)/2)) 110px; background: var(--white); border-top: 1px solid var(--ink); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 54px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2,.about h2 { margin: 0; font-size: clamp(42px,5vw,72px); line-height: .95; letter-spacing: -.05em; }
.section-heading>p { max-width: 290px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.route-layout { display: grid; grid-template-columns: minmax(0,1.03fr) minmax(360px,.97fr); gap: 56px; align-items: start; }
.days-list { border-top: 1px solid var(--ink); }
.day-card { border-bottom: 1px solid var(--line); transition: background .2s ease; }
.day-card.is-active { background: #eeeadf; }
.day-main {
  width: 100%; padding: 24px 14px 22px 0; display: grid; grid-template-columns: 48px 1fr 28px;
  gap: 14px; align-items: start; background: transparent; border: 0; text-align: left; cursor: pointer;
}
.day-number { color: var(--red); font: 700 12px monospace; }
.day-copy { display: grid; gap: 6px; }
.day-date { color: var(--muted); font: 10px monospace; letter-spacing: .08em; text-transform: uppercase; }
.day-copy strong { font-size: 19px; letter-spacing: -.025em; }
.day-meta { color: var(--muted); font-size: 12px; }
.map-arrow { color: var(--muted); font-size: 18px; transition: transform .2s ease; }
.day-main:hover .map-arrow { color: var(--red); transform: translate(2px,-2px); }
.day-files { display: flex; flex-wrap: wrap; gap: 9px; max-height: 0; padding: 0 14px 0 62px; overflow: hidden; transition: max-height .25s,padding .25s; }
.day-card.is-active .day-files { max-height: 90px; padding-bottom: 24px; }
.day-files a { padding: 8px 11px; border: 1px solid var(--line); color: #57544d; font-size: 11px; font-weight: 700; text-decoration: none; }
.day-files a:hover { border-color: var(--red); color: var(--red); }
.file-icon { color: var(--red); font-family: monospace; }
.map-column { position: sticky; top: 28px; }
.map-card { border: 1px solid var(--ink); background: var(--paper); }
.map-head,.map-caption { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.map-head { padding: 22px 24px 20px; }
.map-head .eyebrow { margin: 0 0 4px; }
.map-head h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.map-distance { font: 12px monospace; }
.map-wrap { position: relative; height: 420px; border-block: 1px solid var(--ink); background: #ddd8cb; }
.map { width: 100%; height: 100%; z-index: 1; }
.map-state {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 40px;
  background: #e7e2d6; color: var(--muted); font-size: 13px; text-align: center;
}
.map-state[hidden] { display: none; }
.map-error { background: rgba(231,226,214,.92); }
.map-caption { padding: 16px 24px; font-size: 12px; }
.map-caption>span { color: var(--muted); }
.map-caption a { font-weight: 750; text-decoration: none; white-space: nowrap; }
.map-caption a:hover { color: var(--red); }
.about { padding: 110px max(24px,calc((100vw - 1240px)/2)); color: var(--paper); background: var(--ink); }
.about .eyebrow { margin-bottom: 44px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; }
.about h2 { color: #fff; }
.about-grid>div { max-width: 500px; font-size: 17px; line-height: 1.75; }
.about-grid p { margin-top: 0; }
.template-tip { margin-top: 30px!important; padding-top: 24px; border-top: 1px solid #45453f; color: #aaa79c; font-size: 12px; }
.template-tip code { color: #fff; font-family: monospace; }
footer { display: flex; justify-content: space-between; gap: 30px; padding: 30px max(24px,calc((100vw - 1240px)/2)); border-top: 1px solid #3b3b36; color: #9e9b91; background: var(--ink); font: 10px monospace; letter-spacing: .08em; text-transform: uppercase; }
footer a { text-decoration: none; }
footer a:hover { color: #fff; }
@media (max-width:900px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 70px; }
  .hero-stats { max-width: 500px; }
  .route-layout { grid-template-columns: 1fr; }
  .map-column { position: static; order: -1; }
  .map-wrap { height: 380px; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width:600px) {
  .site-header { width: calc(100% - 32px); height: 74px; }
  nav { gap: 14px; } nav a:last-child { display: none; }
  .hero { width: calc(100% - 32px); padding: 62px 0 58px; gap: 56px; }
  .hero h1 { font-size: clamp(55px,18vw,78px); }
  .hero-lead { margin-top: 30px; font-size: 16px; }
  .route-section { padding-top: 70px; padding-bottom: 80px; }
  .section-heading { align-items: start; flex-direction: column; margin-bottom: 38px; }
  .section-heading>p { margin: 0; }
  .map-wrap { height: 320px; }
  .map-caption { align-items: start; flex-direction: column; }
  .day-main { grid-template-columns: 36px 1fr 18px; gap: 10px; }
  .day-copy strong { font-size: 16px; }
  .day-files { padding-left: 46px; }
  .day-card.is-active .day-files { max-height: 140px; }
  .about { padding-top: 80px; padding-bottom: 80px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { transition: none!important; }
}
