:root {
  --pine: #24382c;
  --pine-2: #2f4839;
  --moss: #4f6b45;
  --lichen: #c8d4a3;
  --birch: #f3f5f0;
  --paper: #ffffff;
  --ink: #18231d;
  --ink-soft: #4a574f;
  --sun: #e9b949;
  --line: #d5dccf;
  --error: #a23b2a;

  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --text: "Literata", Georgia, "Times New Roman", serif;

  --wrap: 72rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: env(safe-area-inset-top, 0px); }
body {
  margin: 0;
  background: var(--birch);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; letter-spacing: -0.025em; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.875rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--sun); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: calc(1rem + env(safe-area-inset-top, 0px)); }
.textlink { font-weight: 500; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  color: var(--birch);
  background: var(--pine);
  overflow: hidden;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(24, 35, 29, .92) 0%, rgba(24, 35, 29, .55) 38%, rgba(24, 35, 29, 0) 65%),
              linear-gradient(to bottom, rgba(24, 35, 29, .5), rgba(24, 35, 29, 0) 22%);
}
.topbar, .hero__body { position: relative; z-index: 1; }
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(1.25rem + env(safe-area-inset-top, 0px)) clamp(1.25rem, 4vw, 3rem) 1.25rem;
}
.wordmark {
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  text-decoration: none; letter-spacing: -0.01em; margin: 0;
}
.topbar__cta {
  font-family: var(--display); font-weight: 700; text-decoration: none;
  padding: .55rem 1.1rem; border-radius: 999px;
  background: rgba(243, 245, 240, .14); border: 1px solid rgba(243, 245, 240, .5);
  backdrop-filter: blur(6px);
}
.topbar__cta:hover { background: rgba(243, 245, 240, .26); }
.hero__body {
  align-self: end;
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(2rem, 6vh, 4rem);
  max-width: 78rem;
}
.hero h1 {
  font-size: clamp(3rem, 9.5vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: .92;
  max-width: 11ch;
  margin-bottom: 1.5rem;
}
.hero__lede { max-width: 38rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(243, 245, 240, .92); }
.facts {
  display: flex; flex-wrap: wrap; gap: .75rem 2.5rem;
  margin: 2rem 0 0; padding-top: 1.25rem;
  border-top: 1px solid rgba(243, 245, 240, .35);
}
.facts dt { font-size: .85rem; color: rgba(243, 245, 240, .7); }
.facts dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.2rem; }

/* Intro */
.intro {
  display: grid; gap: 2rem;
  grid-template-columns: 1.2fr 1fr;
  padding-block: clamp(4rem, 10vw, 8rem);
  align-items: start;
}
.intro__big {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.1; letter-spacing: -0.02em;
  max-width: 18ch; margin: 0;
}
.intro__text { max-width: 36rem; padding-top: .4rem; }

/* Route: a ridge line with the stops sitting on it */
.route {
  background: var(--pine);
  color: var(--birch);
  padding-block: clamp(4rem, 9vw, 7rem) clamp(3rem, 7vw, 5rem);
}
.route__note { color: rgba(243, 245, 240, .7); margin-top: .75rem; }
.route__stops {
  --band: 170px;
  list-style: none; padding: 0;
  margin-top: 3rem;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding-top: calc(var(--band) + 2rem);
}
.route__stops::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: var(--band);
  background: linear-gradient(to bottom, #5d7c52, var(--pine-2));
  clip-path: polygon(0% 100%, 0% 96%, 10% 90%, 30% 45%, 50% 10%, 70% 30%, 90% 75%, 100% 86%, 100% 100%);
}
.route__stops li { position: relative; padding: 0 1.1rem 0 0; }
.route__stops li::before {
  content: "";
  position: absolute;
  left: calc(50% - 7px);
  top: calc(-1 * (var(--band) + 2rem) + var(--band) * (1 - var(--lift)) - 7px);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--sun); box-shadow: 0 0 0 4px var(--pine);
}
.route__stops li::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(-1 * (var(--band) + 2rem) + var(--band) * (1 - var(--lift)) + 10px);
  bottom: calc(100% + .75rem);
  border-left: 1px dashed rgba(200, 212, 163, .55);
}
.route__stops h3 { color: var(--lichen); margin-bottom: .5rem; }
.route__stops p { font-size: .98rem; color: rgba(243, 245, 240, .88); margin: 0; }

/* Reel of trail clips */
.reel { background: var(--pine); padding-bottom: clamp(3rem, 7vw, 5rem); }
.reel__track {
  display: flex; gap: .75rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  scroll-padding-inline: clamp(1.25rem, 4vw, 3rem);
  scrollbar-width: thin; scrollbar-color: var(--moss) transparent;
}
.reel figure {
  margin: 0; flex: 0 0 auto;
  width: clamp(260px, 38vw, 540px);
  scroll-snap-align: start;
}
.reel video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--pine-2); }

/* Practical info */
.practical { padding-block: clamp(4rem, 9vw, 7rem); }
.practical__grid {
  display: grid; gap: 2.5rem 3rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2.5rem;
}
.practical h3 { margin-bottom: .75rem; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: .55rem 0; border-top: 1px solid var(--line); }
.plain li:last-child { border-bottom: 1px solid var(--line); }

/* Booking */
.book {
  background: var(--paper);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding-block: clamp(4rem, 9vw, 7rem);
}
.book__sub { color: var(--ink-soft); max-width: 40rem; margin-top: .75rem; }
.book__grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  margin-top: 2.5rem; align-items: start;
}
.step { border: 0; padding: 0; margin: 0 0 2.5rem; min-width: 0; }
.step legend { font-family: var(--display); font-weight: 700; font-size: 1.35rem; margin-bottom: 1rem; padding: 0; }

.slots { display: grid; gap: 1rem; }
.day { display: grid; grid-template-columns: 9rem 1fr; gap: .75rem; align-items: center; }
.day__name { font-family: var(--display); font-weight: 700; }
.day__name span { display: block; font-family: var(--text); font-weight: 400; font-size: .9rem; color: var(--ink-soft); }
.day__times { display: flex; flex-wrap: wrap; gap: .6rem; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.slot span {
  display: grid; min-width: 7.5rem;
  padding: .6rem .9rem; border-radius: 8px;
  border: 1.5px solid var(--line); background: var(--birch);
  line-height: 1.25; cursor: pointer;
}
.slot b { font-family: var(--display); font-size: 1.15rem; }
.slot small { font-size: .82rem; color: var(--ink-soft); }
.slot small.low { color: var(--error); }
.slot input:checked + span { border-color: var(--pine); background: var(--pine); color: var(--birch); }
.slot input:checked + span small { color: var(--lichen); }
.slot input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.slot input:disabled + span { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.slot input:not(:disabled):not(:checked):hover + span { border-color: var(--moss); }

.qty { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.qty__btn {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1.5px solid var(--ink); background: transparent;
  font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.qty__btn:disabled { opacity: .3; cursor: not-allowed; }
.qty output { font-family: var(--display); font-weight: 800; font-size: 2rem; min-width: 2ch; text-align: center; }
.qty__hint { color: var(--moss); font-size: .95rem; }

.tiers { border-collapse: collapse; margin-top: 1.25rem; width: 100%; max-width: 26rem; font-size: .95rem; }
.tiers td { padding: .4rem .6rem; border-bottom: 1px solid var(--line); }
.tiers td:last-child { text-align: right; font-family: var(--display); font-weight: 700; }
.tiers tr.is-active td { background: #e8eedc; }

.fields { display: grid; gap: 1rem; max-width: 34rem; }
.fields label { display: grid; gap: .35rem; font-weight: 500; font-size: .95rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
input, textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: .7rem .8rem; border-radius: 8px;
  border: 1.5px solid var(--line); background: var(--birch);
}
input:focus, textarea:focus { border-color: var(--moss); outline: none; box-shadow: 0 0 0 3px rgba(79, 107, 69, .2); }
[aria-invalid="true"] { border-color: var(--error); }

.summary {
  position: sticky; top: calc(1.5rem + env(safe-area-inset-top, 0px));
  background: var(--birch);
  border: 1.5px solid var(--line); border-radius: 14px;
  padding: 1.5rem;
}
.summary h3 { margin-bottom: 1rem; }
.summary__list { margin: 0; }
.summary__list div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.summary__list dt { color: var(--ink-soft); }
.summary__list dd { margin: 0; text-align: right; font-weight: 500; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; margin: 1rem 0 1.25rem; }
.summary__total strong { font-family: var(--display); font-size: 2rem; font-weight: 800; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .6rem; font-size: .9rem; line-height: 1.45; margin-bottom: 1.25rem; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--pine); padding: 0; }

.btn {
  display: inline-block; width: 100%;
  font-family: var(--display); font-weight: 700; font-size: 1.1rem;
  padding: 1rem 1.25rem; border: 0; border-radius: 999px;
  background: var(--sun); color: var(--ink); cursor: pointer;
  text-align: center; text-decoration: none;
}
.btn:hover { background: #f0c863; }
.btn[disabled] { opacity: .6; cursor: progress; }
.error { color: var(--error); font-weight: 500; margin: 1rem 0 0; }

/* FAQ */
.faq { padding-block: clamp(4rem, 9vw, 7rem); }
.faq > * { max-width: 48rem; }
.faq h2 { margin-bottom: 2rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  padding: 1.1rem 2rem 1.1rem 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .9rem; font-size: 1.5rem; font-weight: 500; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-soft); padding-right: 2rem; }

/* Footer */
.footer { background: var(--pine); color: var(--birch); padding-block: 3rem calc(3rem + env(safe-area-inset-bottom, 0px)); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: space-between; align-items: baseline; }
.footer p { margin: 0; }
.footer a { color: var(--birch); margin-right: 1.25rem; }

/* Simple pages (success, terms, privacy, admin) */
.page { min-height: 100svh; display: flex; flex-direction: column; }
.page__bar { background: var(--pine); color: var(--birch); padding: calc(1.1rem + env(safe-area-inset-top, 0px)) clamp(1.25rem, 4vw, 3rem) 1.1rem; }
.page__main { flex: 1; padding-block: clamp(3rem, 8vw, 5rem); }
.prose { max-width: 42rem; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1.5rem; }
.prose h2 { font-size: 1.5rem; margin: 2.25rem 0 .75rem; letter-spacing: -0.01em; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.todo { background: #fff3cd; padding: 0 .25rem; border-radius: 3px; }
.ticket { background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 1.5rem; margin: 2rem 0; }
.ticket dl { margin: 0; }
.ticket dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.ticket dl div:last-child { border-bottom: 0; }
.ticket dt { color: var(--ink-soft); }
.ticket dd { margin: 0; font-weight: 500; text-align: right; }

@media (max-width: 860px) {
  .intro { grid-template-columns: 1fr; }
  .book__grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .route__stops { grid-template-columns: 1fr; padding-top: 0; gap: 1.75rem; padding-left: 2rem; }
  .route__stops::before { display: none; }
  .route__stops li { padding: 0; }
  .route__stops li::before { left: -2rem; top: .35rem; }
  .route__stops li::after { left: calc(-2rem + 6px); top: 1.6rem; bottom: -1.5rem; }
  .route__stops li:last-child::after { display: none; }
}
@media (max-width: 600px) {
  .practical__grid { grid-template-columns: 1fr; }
  .day { grid-template-columns: 1fr; gap: .4rem; }
  .facts { gap: .75rem 1.75rem; }
  .slot span { min-width: 6.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
