/*
  Cedar Hollow: campsite booking website (Screenery template)
  Mid-century park posters in five flat inks (paper, pine, rust, gold, lake) with grain, Bevan slab lettering and framed borders.
  Each section is its own print: sunburst hero, paper site map, pine trail posters, gold pack list, lake rules, paper questions.

  Contents
   1. Tokens
   2. Base and browser surfaces
   3. Shared kit: buttons, headings, chips, checks, steppers, fields
   4. Header
   5. Hero poster
   6. Booking: map, panel, calendar, detail, extras, summary, form, ticket, empty states
   7. Trails and profiles
   8. What to bring
   9. Rules of the valley
  10. Questions
  11. Footer
  12. Motion
  13. Narrow screens
*/

/* ---------- 1. Tokens ---------- */
:root {
  /* The five inks */
  --paper: #f2e8cf;
  --pine: #1d3a31;
  --rust: #c4532a;
  --gold: #e3a943;
  --lake: #2f5f6e;

  /* Derived tones (all mixed from the inks) */
  --pine-deep: color-mix(in srgb, var(--pine) 70%, #000);
  --pine-light: color-mix(in srgb, var(--pine) 55%, var(--paper));
  --pine-soft: color-mix(in srgb, var(--pine) 84%, var(--paper));     /* secondary text on paper */
  --paper-light: color-mix(in srgb, var(--paper) 55%, #fff);
  --paper-dim: color-mix(in srgb, var(--paper) 90%, var(--lake));     /* secondary text on lake and pine */
  --gold-light: color-mix(in srgb, var(--gold) 55%, var(--paper));
  --rust-light: color-mix(in srgb, var(--rust) 80%, var(--gold));
  --rust-ink: color-mix(in srgb, var(--rust) 72%, var(--pine));        /* rust as text or a filled button */
  --lake-pale: color-mix(in srgb, var(--lake) 45%, var(--paper));
  --lake-deep: color-mix(in srgb, var(--lake) 70%, var(--pine));
  --meadow: color-mix(in srgb, var(--gold) 26%, var(--paper));
  --meadow-deep: color-mix(in srgb, var(--pine) 22%, var(--meadow));
  --lane: color-mix(in srgb, var(--pine) 14%, var(--paper));
  --wood: color-mix(in srgb, var(--rust) 55%, var(--pine));
  --g-cut: var(--paper);                                              /* the cut-out lines inside map glyphs */

  /* Type */
  --display: "Bevan", "Rockwell", Georgia, serif;
  --body: "Cabin", "Gill Sans", "Trebuchet MS", sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.625rem;
  --fs-h2: clamp(2.1rem, 1.2rem + 3vw, 3.75rem);
  --fs-h1: clamp(3rem, 0.8rem + 7.2vw, 6rem);

  /* Space */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 72px;
  --s-9: 112px;
  --gutter: clamp(16px, 3vw, 40px);
  --wrap: 1320px;

  /* Shape and depth */
  --r-sm: 3px;
  --r-md: 6px;
  --line: 3px;
  --shadow: 0 14px 34px -12px color-mix(in srgb, var(--pine-deep) 55%, transparent);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Grain: one turbulence tile, multiplied over every ink */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.15 0 0 0 0 0.12 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 2. Base and browser surfaces ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; scrollbar-color: var(--pine) var(--paper); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--pine);
  font: 400 var(--fs-md)/1.6 var(--body);
  accent-color: var(--rust);
  caret-color: var(--rust);
  overflow-x: clip;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.22;
  mix-blend-mode: multiply;
}
::selection { background: var(--gold); color: var(--pine-deep); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--pine); border: 3px solid var(--paper); border-radius: 8px; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; border-radius: 2px; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--rust); }
img, svg { display: block; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s-4); top: -60px; z-index: 100; background: var(--gold); color: var(--pine); padding: var(--s-3) var(--s-4); font-weight: 700; border-radius: var(--r-sm); }
.skip:focus { top: var(--s-3); }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g { width: 18px; height: 18px; flex: none; color: currentColor; }
[hidden] { display: none !important; }

/* ---------- 3. Shared kit ---------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--pine);
  text-shadow: 0.05em 0.05em 0 var(--gold);   /* the second ink, printed slightly off register */
}
.sec-head { display: grid; gap: var(--s-4); max-width: 62ch; margin-bottom: var(--s-7); }
.sec-head p { font-size: var(--fs-lg); color: var(--pine-soft); max-width: 60ch; }
.sec-head-light .display { color: var(--paper); text-shadow: 0.05em 0.05em 0 var(--rust); }
.sec-head-light p { color: var(--paper-dim); }
.lbl { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pine-soft); margin-bottom: var(--s-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5);
  border: var(--line) solid var(--pine); border-radius: var(--r-sm);
  font: 700 var(--fs-sm)/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-lg { min-height: 56px; padding: 0 var(--s-6); font-size: var(--fs-md); }
.btn-sm { min-height: 44px; padding: 0 var(--s-4); font-size: var(--fs-xs); }
.btn-gold { background: var(--gold); color: var(--pine); }
.btn-rust { background: var(--rust-ink); color: var(--paper); border-color: var(--pine-deep); }
.btn-pine { background: var(--pine); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--pine); }
.btn-ghost:hover { background: var(--paper); }

/* Chips and segmented choices: radio inputs, visually hidden, drawn as printed tabs */
.chips, .seg { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip, .seg-opt { position: relative; }
.chip input, .seg-opt input, .check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span, .seg-opt span {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 44px; padding: 0 var(--s-4);
  border: 2px solid var(--pine); border-radius: 999px;
  background: var(--paper-light); font-weight: 600; font-size: var(--fs-sm); cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.chip span .g, .seg-opt span .g { --g-cut: var(--paper-light); }
.chip span:hover, .seg-opt span:hover { background: var(--gold-light); }
.chip input:checked + span, .seg-opt input:checked + span { background: var(--pine); color: var(--paper); }
.chip input:checked + span .g, .seg-opt input:checked + span .g { --g-cut: var(--pine); }
.chip input:focus-visible + span, .seg-opt input:focus-visible + span, .check input:focus-visible ~ .box { outline: 3px solid var(--rust); outline-offset: 2px; }

.check { position: relative; display: flex; align-items: center; gap: var(--s-3); min-height: 44px; cursor: pointer; font-weight: 500; }
.check .box {
  display: grid; place-items: center; flex: none; width: 24px; height: 24px;
  border: 2px solid var(--pine); border-radius: var(--r-sm); background: var(--paper-light);
  transition: background-color 0.2s var(--ease);
}
.check .box .i { width: 16px; height: 16px; stroke-width: 3; color: var(--paper); opacity: 0; transform: scale(0.6); transition: opacity 0.2s var(--ease), transform 0.3s var(--ease); }
.check input:checked ~ .box { background: var(--pine); }
.check input:checked ~ .box .i { opacity: 1; transform: none; }
.check input:disabled ~ * { opacity: 0.5; cursor: not-allowed; }

.stepper { display: grid; }
.step-ctl { display: inline-flex; align-items: center; border: 2px solid var(--pine); border-radius: 999px; background: var(--paper-light); }
.step-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; border-radius: 999px; }
.step-btn:hover:not(:disabled) { background: var(--gold-light); }
.step-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.step-ctl output { min-width: 2.2ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; font-size: var(--fs-lg); }

.field { display: grid; gap: var(--s-1); align-content: start; margin-bottom: var(--s-4); }
.field label { font-weight: 700; font-size: var(--fs-sm); }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 0 var(--s-3);
  border: 2px solid var(--pine); border-radius: var(--r-sm); background: var(--paper-light);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d3a31' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input::placeholder { color: color-mix(in srgb, var(--pine) 72%, var(--paper)); }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--gold); outline-offset: 0; border-color: var(--pine); }
.field [aria-invalid="true"] { border-color: var(--rust-ink); background: color-mix(in srgb, var(--rust) 8%, var(--paper-light)); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-4); }
.hint { font-size: var(--fs-xs); color: var(--pine-soft); }
.err { font-size: var(--fs-sm); font-weight: 600; color: var(--rust-ink); min-height: 0; }
.err:empty { display: none; }

/* ---------- 4. Header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: var(--s-5);
  min-height: 68px; padding: 0 var(--gutter);
  background: var(--pine); color: var(--paper);
  border-bottom: var(--line) solid var(--pine-deep);
}
.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; font-family: var(--display); font-size: 1.35rem; letter-spacing: 0.01em; }
.brand-mark { width: 40px; height: 40px; }
.nav { display: flex; gap: var(--s-5); margin-left: auto; }
.nav a { font-weight: 600; text-decoration: none; padding: var(--s-2) 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--gold); }
.top-book { min-height: 44px; border-color: var(--pine-deep); }
.menu-btn { display: none; place-items: center; width: 44px; height: 44px; margin-left: auto; border: 2px solid var(--paper); border-radius: var(--r-sm); background: none; color: var(--paper); }

/* ---------- 5. Hero poster ---------- */
.hero { padding: var(--s-5) var(--gutter) var(--s-8); }
.poster { position: relative; border: 4px solid var(--pine); border-radius: var(--r-md); overflow: hidden; background: var(--pine); }
.hero-poster { max-width: 1440px; margin: 0 auto; box-shadow: var(--shadow); }
.hero-poster::after { content: ""; position: absolute; inset: 10px; border: 2px solid var(--paper); border-radius: 2px; pointer-events: none; }
.scene { width: 100%; height: clamp(360px, 62vh, 640px); }
.rays, .sun { transform-box: view-box; transform-origin: 720px 500px; }
.hero-band {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--s-6);
  padding: var(--s-6) clamp(26px, 4vw, 64px) clamp(34px, 4vw, 56px);
  background: var(--pine);
}
.hero-place { font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); font-size: var(--fs-sm); margin-bottom: var(--s-2); }
.hero-title {
  font-family: var(--display); font-weight: 400; font-size: var(--fs-h1); line-height: 0.95; letter-spacing: -0.01em;
  color: var(--paper);
  -webkit-text-stroke: 0.09em var(--rust);
  paint-order: stroke fill;
  text-shadow: 0.06em 0.07em 0 var(--pine-deep);
}
.hero-lede { margin-top: var(--s-4); max-width: 54ch; font-size: var(--fs-lg); color: var(--paper-dim); }
.hero-act { display: grid; gap: var(--s-3); justify-items: start; max-width: 300px; }
.hero-note { font-size: var(--fs-sm); color: var(--paper-dim); }

/* ---------- 6. Booking ---------- */
.book { padding: var(--s-8) 0 var(--s-9); }
.noscript { padding: var(--s-4); border: 2px solid var(--rust-ink); border-radius: var(--r-sm); margin-bottom: var(--s-5); font-weight: 600; }
.book-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(360px, 1fr); gap: var(--s-6); align-items: start; }
.map-col { position: sticky; top: 88px; }
.map-frame { margin: 0; border: var(--line) solid var(--pine); border-radius: var(--r-md); background: var(--meadow); overflow: hidden; box-shadow: var(--shadow); }
.map-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.map { width: 100%; height: auto; }
.map-pines path { stroke: var(--pine-deep); stroke-width: 0.6; }
.map-water { font: 400 20px var(--display); fill: var(--paper); letter-spacing: 0.04em; }
.map-area { font: italic 400 14px var(--body); fill: var(--pine); letter-spacing: 0.12em; text-transform: uppercase; }
.facility rect, .facility circle { fill: var(--pine); }
.facility > text:not(.fac-label) { font: 700 16px var(--body); fill: var(--paper); }
.fac-icon { fill: none; stroke: var(--paper); stroke-width: 2; stroke-linejoin: round; }
.fac-label { font: 700 11px var(--body); fill: var(--pine); paint-order: stroke; stroke: var(--meadow); stroke-width: 4px; stroke-linejoin: round; }
.compass circle { fill: var(--paper); stroke: var(--pine); stroke-width: 2; }
.compass path { fill: var(--rust); }
.compass text, .scale text { font: 700 11px var(--body); fill: var(--pine); }
.scale path { stroke: var(--pine); stroke-width: 2; fill: none; }

.pitch { cursor: pointer; outline: none; }
.pitch-hit { fill: transparent; }
.pitch-ring { fill: var(--paper); stroke: var(--pine); stroke-width: 2.5; transition: fill 0.2s var(--ease), stroke-width 0.2s var(--ease); }
.pitch use { color: var(--pine); --g-cut: var(--paper); }
.pitch-x { stroke: var(--rust); stroke-width: 3.5; stroke-linecap: round; opacity: 0; }
.pitch-id { font: 700 12px var(--body); fill: var(--pine); text-anchor: middle; paint-order: stroke; stroke: var(--meadow); stroke-width: 4px; stroke-linejoin: round; }
.pitch:hover .pitch-ring { stroke-width: 4; fill: var(--gold-light); }
.pitch:focus-visible .pitch-ring { stroke: var(--rust); stroke-width: 5; }
.pitch.is-booked .pitch-ring { fill: url(#hatch); }
.pitch.is-booked use { opacity: 0.45; }
.pitch.is-booked .pitch-x { opacity: 1; }
.pitch.is-dim { opacity: 0.32; }
.pitch.is-picked .pitch-ring { fill: var(--rust); stroke: var(--pine-deep); stroke-width: 3.5; }
.pitch.is-picked use { color: var(--paper); --g-cut: var(--rust); }
.pitch.is-picked .pitch-id { fill: var(--rust-ink); }
.pitch.is-picked.is-booked .pitch-ring { fill: var(--gold-light); }
.pitch.is-picked.is-booked use { color: var(--pine); --g-cut: var(--gold-light); }

.map-key { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); padding: var(--s-3) var(--s-4); border-top: 2px solid var(--pine); background: var(--paper); font-size: var(--fs-sm); font-weight: 600; }
.map-key span { display: inline-flex; align-items: center; gap: var(--s-2); }
.key { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--pine); }
.key-free { background: var(--paper-light); }
.key-pick { background: var(--rust); }
.key-booked { background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 3l6 6M9 3l-6 6' stroke='%23c4532a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.key-dim { opacity: 0.4; }
.map-hint { display: none; margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--pine-soft); }

.panel {
  display: grid; gap: var(--s-5);
  padding: var(--s-5);
  background: var(--paper-light);
  border: var(--line) solid var(--pine); border-radius: var(--r-md);
}
.panel > :is(.filters, .detail, .extras, .summary, .book-form) { padding-top: var(--s-5); border-top: 2px dashed color-mix(in srgb, var(--pine) 40%, transparent); }
.panel-row { display: grid; gap: var(--s-4); }
.guests { display: flex; gap: var(--s-5); flex-wrap: wrap; }
.date-pick { position: relative; }
.date-btn {
  display: flex; align-items: center; gap: var(--s-3); width: 100%;
  min-height: 52px; padding: 0 var(--s-4);
  border: 2px solid var(--pine); border-radius: var(--r-sm);
  background: var(--paper); font-weight: 700; text-align: left; font-variant-numeric: tabular-nums;
}
.date-btn:hover { background: var(--gold-light); }
.date-btn small { margin-left: auto; font-weight: 600; color: var(--pine-soft); font-size: var(--fs-sm); white-space: nowrap; }

.cal {
  position: absolute; z-index: 20; top: calc(100% + 8px); left: 0;
  width: min(340px, calc(100vw - 2 * var(--gutter)));
  padding: var(--s-4);
  background: var(--paper); border: var(--line) solid var(--pine); border-radius: var(--r-md);
  box-shadow: var(--shadow);
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-3); }
.cal-title { font-family: var(--display); font-size: var(--fs-lg); }
.cal-nav { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--pine); border-radius: 50%; background: var(--paper-light); }
.cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { font-size: var(--fs-xs); font-weight: 700; text-align: center; padding: var(--s-1) 0; color: var(--pine-soft); }
.cal-day {
  height: 42px; border: 0; border-radius: var(--r-sm); background: none;
  font-weight: 600; font-variant-numeric: tabular-nums; position: relative;
}
.cal-day:hover:not(:disabled) { background: var(--gold-light); }
.cal-day:disabled { color: color-mix(in srgb, var(--pine) 60%, var(--paper)); cursor: not-allowed; text-decoration: line-through; text-decoration-thickness: 1px; }
.cal-day.is-today { box-shadow: inset 0 -3px 0 var(--lake); }
.cal-day.in-range { background: var(--gold-light); border-radius: 0; }
.cal-day.is-start, .cal-day.is-end { background: var(--rust-ink); color: var(--paper); }
.cal-day.is-taken::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: 6px; height: 3px; border-radius: 2px; background: var(--rust); }
.cal-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-3); }
.cal-hint { font-size: var(--fs-sm); color: var(--pine-soft); }
.cal-key { font-size: var(--fs-xs); color: var(--pine-soft); margin-top: var(--s-2); }

.filters { border: 0; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.filters legend { padding: 0; margin-bottom: var(--s-2); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pine-soft); }
.toggles { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); }
.toggles .check > .i { color: var(--pine); }
.free-count { font-weight: 700; font-variant-numeric: tabular-nums; }

.empty { display: grid; gap: var(--s-3); padding: var(--s-5); background: var(--lake); color: var(--paper); border-radius: var(--r-sm); }
.empty h3 { font-family: var(--display); font-weight: 400; font-size: var(--fs-xl); line-height: 1.1; }
.empty p { color: var(--paper-dim); }
.empty .alts { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.empty .btn { border-color: var(--paper); text-transform: none; letter-spacing: 0; font-size: var(--fs-sm); height: auto; padding-block: var(--s-2); line-height: 1.3; }

.detail { display: grid; gap: var(--s-3); }
.detail-title { font-family: var(--display); font-weight: 400; font-size: var(--fs-xl); line-height: 1.1; }
.detail-top { display: flex; align-items: center; gap: var(--s-3); }
.detail-badge { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--rust-ink); color: var(--paper); font: 700 var(--fs-md) var(--body); }
.detail-kind { font-size: var(--fs-sm); font-weight: 600; color: var(--pine-soft); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2) var(--s-4); margin: 0; }
.facts div { min-width: 0; }
.facts dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.facts dd { display: flex; gap: var(--s-2); align-items: flex-start; margin: 0; font-size: var(--fs-sm); font-weight: 600; }
.facts .i { margin-top: 2px; color: var(--lake); }
.facts .no { color: var(--pine-soft); font-weight: 400; }
.status { display: inline-flex; align-items: center; gap: var(--s-2); justify-self: start; padding: var(--s-1) var(--s-3); border-radius: 999px; font-size: var(--fs-sm); font-weight: 700; border: 2px solid currentColor; }
.status-free { color: var(--lake-deep); background: color-mix(in srgb, var(--lake) 12%, var(--paper-light)); }
.status-booked, .status-dim { color: var(--rust-ink); background: color-mix(in srgb, var(--rust) 10%, var(--paper-light)); }
.quick { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.quick button { min-height: 44px; min-width: 52px; padding: 0 var(--s-3); border: 2px solid var(--pine); border-radius: var(--r-sm); background: var(--paper); font-weight: 700; }
.quick button:hover { background: var(--gold-light); }
.quick-lbl { font-size: var(--fs-sm); font-weight: 600; color: var(--pine-soft); }

.extras { border: 0; margin: 0; padding-left: 0; padding-right: 0; padding-bottom: 0; display: grid; gap: var(--s-2); }
.extras legend { float: left; width: 100%; padding: 0; margin-bottom: var(--s-2); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pine-soft); }
.extra { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.extra-text { display: grid; }
.extra-name { font-weight: 700; }
.extra-note { font-size: var(--fs-sm); color: var(--pine-soft); }
.extra.check { flex-direction: row; }

.summary-title, .form-title { font-family: var(--display); font-weight: 400; font-size: var(--fs-xl); margin-bottom: var(--s-3); }
.lines { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.lines td { padding: var(--s-2) 0; border-bottom: 1px solid color-mix(in srgb, var(--pine) 22%, transparent); font-size: var(--fs-sm); vertical-align: top; }
.lines td:last-child { text-align: right; font-weight: 700; padding-left: var(--s-3); white-space: nowrap; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-top: var(--s-3); }
.total span { font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--fs-sm); }
.total strong { font: 400 2.25rem/1 var(--display); font-variant-numeric: tabular-nums; color: var(--rust-ink); }
.pay-note { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--pine-soft); }

.form-alert { display: grid; gap: var(--s-3); padding: var(--s-4); margin-bottom: var(--s-4); border: 2px solid var(--rust-ink); border-radius: var(--r-sm); background: color-mix(in srgb, var(--rust) 10%, var(--paper-light)); color: var(--pine); font-weight: 600; }
.form-alert strong { color: var(--rust-ink); }
.form-alert .btn { justify-self: start; }
.agree { align-items: flex-start; font-size: var(--fs-sm); }
.agree .box { margin-top: 1px; }
.submit { width: 100%; margin-top: var(--s-4); position: relative; }
.spinner { display: none; width: 20px; height: 20px; border: 3px solid color-mix(in srgb, var(--paper) 35%, transparent); border-top-color: var(--paper); border-radius: 50%; animation: spin 0.8s linear infinite; }
.submit.is-loading { pointer-events: none; }
.submit.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.ticket {
  display: grid; gap: var(--s-4); padding: var(--s-5);
  background: var(--paper); border: var(--line) solid var(--pine); border-radius: var(--r-md);
  -webkit-mask: radial-gradient(circle 9px at 0 128px, #0000 98%, #000) , radial-gradient(circle 9px at 100% 128px, #0000 98%, #000);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.ticket:focus { outline: none; }
.ticket-top { display: flex; gap: var(--s-4); align-items: center; padding-bottom: var(--s-4); border-bottom: 2px dashed var(--pine); }
.ticket-art { width: 96px; height: 56px; flex: none; border: 2px solid var(--pine); border-radius: var(--r-sm); }
.ticket-kind { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lake-deep); }
.ticket-title { font-family: var(--display); font-weight: 400; font-size: var(--fs-xl); line-height: 1.1; }
.ticket-facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-4); margin: 0; font-variant-numeric: tabular-nums; }
.ticket-facts dt { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pine-soft); }
.ticket-facts dd { margin: 0; font-weight: 700; }
.ticket-note { font-size: var(--fs-sm); color: var(--pine-soft); }
.ticket .btn { justify-self: start; }

/* ---------- 7. Trails ---------- */
.trails { padding: var(--s-9) 0; background: var(--pine); color: var(--paper); position: relative; }
.trail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
.trail {
  --tr-fill: var(--lake-pale); --tr-line: var(--lake-deep);
  display: grid; grid-template-rows: auto 1fr;
  background: var(--paper); color: var(--pine);
  border: 4px solid var(--pine-deep); border-radius: var(--r-md); overflow: hidden;
  position: relative;
}
.trail::after { content: ""; position: absolute; inset: 8px; border: 2px solid color-mix(in srgb, var(--pine) 50%, transparent); border-radius: 2px; pointer-events: none; }
.trail-falls { grid-column: 1 / -1; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-rows: auto; --tr-fill: color-mix(in srgb, var(--rust) 30%, var(--paper)); --tr-line: var(--rust-ink); }
.trail-ridge { --tr-fill: var(--gold-light); --tr-line: var(--pine); }
.trail-poster svg { width: 100%; height: 100%; min-height: 200px; max-height: 260px; }
.trail-falls .trail-poster svg { max-height: none; }
.trail-poster { border-bottom: 4px solid var(--pine-deep); }
.trail-falls .trail-poster { border-bottom: 0; border-right: 4px solid var(--pine-deep); }
.trail-body { display: grid; gap: var(--s-4); align-content: start; padding: var(--s-6); }
.trail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); }
.trail-name { font-family: var(--display); font-weight: 400; font-size: var(--fs-xl); line-height: 1.1; }
.trail-falls .trail-name { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); }
.grade { flex: none; padding: var(--s-1) var(--s-3); border: 2px solid var(--pine); border-radius: 999px; font-weight: 700; font-size: var(--fs-sm); }
.grade-easy { background: var(--lake-pale); }
.grade-mid { background: var(--gold); }
.grade-hard { background: var(--rust-ink); color: var(--paper); border-color: var(--pine-deep); }
.trail-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: var(--s-2) var(--s-6); margin: 0; font-variant-numeric: tabular-nums; }
.trail-stats dt { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pine-soft); }
.trail-stats dd { margin: 0; font-weight: 700; font-size: var(--fs-lg); }
.trail-text { max-width: 62ch; }
.trail-start { display: flex; gap: var(--s-2); align-items: center; font-size: var(--fs-sm); font-weight: 600; color: var(--pine-soft); }
.profile { width: 100%; height: auto; touch-action: pan-y; cursor: crosshair; overflow: visible; }
.profile-grid line { stroke: color-mix(in srgb, var(--pine) 25%, transparent); stroke-width: 1; stroke-dasharray: 3 4; }
.profile-grid text { font: 600 12px var(--body); fill: var(--pine-soft); font-variant-numeric: tabular-nums; }
.profile-fill { fill: var(--tr-fill); }
.profile-line { fill: none; stroke: var(--tr-line); stroke-width: 3; stroke-linejoin: round; }
.profile-scrub { opacity: 0; transition: opacity 0.2s var(--ease); pointer-events: none; }
.profile.is-scrub .profile-scrub { opacity: 1; }
.scrub-line { stroke: var(--pine); stroke-width: 1.5; }
.scrub-dot { fill: var(--paper); stroke: var(--pine); stroke-width: 3; }
.scrub-tag rect { fill: var(--pine); }
.scrub-tag text { font: 700 13px var(--body); fill: var(--paper); font-variant-numeric: tabular-nums; }

/* ---------- 8. What to bring ---------- */
.pack { padding: var(--s-9) 0; background: var(--gold); }
.pack .display { text-shadow: 0.05em 0.05em 0 var(--paper); }
.pack .sec-head p { color: var(--pine); }
.pack-poster { position: relative; padding: clamp(24px, 4vw, 56px); border: 4px solid var(--pine); border-radius: var(--r-md); }
.pack-poster::before { content: ""; position: absolute; inset: 8px; border: 2px solid var(--pine); border-radius: 2px; pointer-events: none; }
.pack-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-5) var(--s-6); margin-bottom: var(--s-7); }
.seg { align-items: center; }
.seg .lbl { width: 100%; color: var(--pine); }
.pack-progress { display: grid; gap: var(--s-2); min-width: 220px; flex: 1; max-width: 360px; }
.pack-progress p { font-variant-numeric: tabular-nums; font-weight: 600; }
.pack-progress strong { font: 400 var(--fs-xl) var(--display); }
.bar { height: 12px; border: 2px solid var(--pine); border-radius: 999px; background: var(--paper-light); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--rust-ink); transition: width 0.5s var(--ease); }
.pack-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); }
.pack-group h3 { font-family: var(--display); font-weight: 400; font-size: var(--fs-lg); padding-bottom: var(--s-3); margin-bottom: var(--s-3); border-bottom: var(--line) solid var(--pine); }
.pack-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.pack-group .check { align-items: flex-start; font-weight: 600; padding: var(--s-2) 0; }
.pack-group .check > span:last-child { display: grid; }
.pack-group small { font-size: var(--fs-sm); font-weight: 400; color: var(--pine); }
.pack-group .box { margin-top: 1px; }
.pack-group input:checked ~ span:last-child { text-decoration: line-through; text-decoration-color: var(--rust-ink); text-decoration-thickness: 2px; }

/* ---------- 9. Rules of the valley ---------- */
.rules { padding: var(--s-9) 0; background: var(--lake); color: var(--paper); }
.rules-wrap { display: grid; grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.rules-poster { position: sticky; top: 92px; border: 4px solid var(--pine-deep); border-radius: var(--r-md); overflow: hidden; background: var(--pine); box-shadow: var(--shadow); }
.rules-poster::after { content: ""; position: absolute; inset: 8px; border: 2px solid var(--paper); border-radius: 2px; pointer-events: none; }
.rules-art { width: 100%; height: auto; aspect-ratio: 360 / 400; }
.rules-caption { display: grid; gap: var(--s-3); padding: var(--s-5) var(--s-6) var(--s-6); }
.rules-caption .display { color: var(--paper); text-shadow: 0.05em 0.05em 0 var(--rust); font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem); }
.rules-caption p { color: var(--paper-dim); }
.rule-list { list-style: none; margin: 0; padding: 0; display: grid; }
.rule-list li { display: grid; grid-template-columns: 56px 1fr; gap: var(--s-4); padding: var(--s-5) 0; border-bottom: 2px solid color-mix(in srgb, var(--paper) 30%, transparent); }
.rule-list li:first-child { padding-top: 0; }
.rule-list .i { width: 56px; height: 56px; padding: 13px; border-radius: 50%; background: var(--paper); color: var(--lake-deep); stroke-width: 2; }
.rule-list h3 { font-family: var(--display); font-weight: 400; font-size: var(--fs-xl); line-height: 1.15; margin-bottom: var(--s-2); }
.rule-list p { color: var(--paper-dim); max-width: 62ch; }

/* ---------- 10. Questions ---------- */
.faq { padding: var(--s-9) 0 var(--s-8); }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s-7); align-items: start; }
.faq-list { border-bottom: var(--line) solid var(--pine); }
.faq details { border-top: var(--line) solid var(--pine); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 64px; padding: var(--s-3) 0; list-style: none; cursor: pointer; font-weight: 700; font-size: var(--fs-lg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 28px; height: 28px; padding: 4px; border: 2px solid var(--pine); border-radius: 50%; transition: transform 0.3s var(--ease), background-color 0.3s var(--ease); }
.faq details[open] summary .i { transform: rotate(45deg); background: var(--gold); }
.faq details p { padding: 0 0 var(--s-5); max-width: 64ch; color: var(--pine-soft); }

/* ---------- 11. Footer ---------- */
.foot { background: var(--pine-deep); color: var(--paper); }
.foot-ridge { width: 100%; height: 90px; background: var(--paper); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: var(--s-6); padding: var(--s-6) 0 var(--s-7); }
.foot-name { font-family: var(--display); font-size: var(--fs-xl); color: var(--gold); margin-bottom: var(--s-2); }
.foot-brand p:not(.foot-name) { color: var(--paper-dim); max-width: 32ch; }
.foot-contact { font-style: normal; display: grid; gap: var(--s-3); }
.foot-contact p { display: flex; gap: var(--s-3); align-items: flex-start; }
.foot-contact .i { margin-top: 3px; }
.foot-contact .i { color: var(--gold); }
.foot-links { display: grid; gap: var(--s-2); align-content: start; }
.foot-links a { text-decoration: none; font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.foot-links a:hover { color: var(--gold); }
.foot-small { padding: var(--s-4) 0 var(--s-6); border-top: 1px solid color-mix(in srgb, var(--paper) 25%, transparent); font-size: var(--fs-sm); color: var(--paper-dim); }

/* ---------- 12. Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* The signature: the sun lifts over the ridge and the sunburst fans open behind it */
  .sun { animation: sun-rise 2.8s var(--ease) both; }
  .rays { animation: rays-fan 3.2s var(--ease) both; }
  .smoke { animation: smoke 6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: bottom center; }
  .pitch.is-picked .pitch-ring { animation: pick 0.6s var(--ease); transform-box: fill-box; transform-origin: center; }
  .detail.is-new, .ticket:not([hidden]), .empty:not([hidden]) { animation: lift 0.5s var(--ease); }
  .cal:not([hidden]) { animation: lift 0.35s var(--ease); }

  @supports (animation-timeline: scroll()) {
    .layer-far, .layer-mid { animation-timeline: scroll(root); animation-range: 0 90vh; animation-fill-mode: both; animation-timing-function: linear; }
    .layer-far { animation-name: drift-far; }
    .layer-mid { animation-name: drift-mid; }
  }
}
@keyframes sun-rise { from { transform: translateY(90px); } }
@keyframes rays-fan { from { transform: rotate(-14deg) scale(0.9); } }
@keyframes smoke { to { transform: translate(-6px, -4px) skewX(-6deg); } }
@keyframes pick { 0% { transform: scale(1.5); } }
@keyframes lift { from { opacity: 0.4; transform: translateY(8px); } }
@keyframes drift-far { to { transform: translateY(40px); } }
@keyframes drift-mid { to { transform: translateY(22px); } }

/* ---------- 13. Narrow screens ---------- */
@media (max-width: 1180px) {
  .book-grid { grid-template-columns: minmax(0, 1fr); }
  .map-col { position: static; }
  .pack-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { gap: var(--s-4); }
}
@media (max-width: 980px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: var(--s-2) var(--gutter) var(--s-4); background: var(--pine); border-bottom: var(--line) solid var(--pine-deep); }
  .nav.is-open { display: flex; }
  .nav a { padding: var(--s-3) 0; border-bottom: 1px solid color-mix(in srgb, var(--paper) 20%, transparent); }
  .menu-btn { display: grid; }
  .top-book { order: 3; }
  .menu-btn { order: 2; }
  .hero-band { grid-template-columns: 1fr; }
  .hero-act { max-width: none; }
  .trail-falls { grid-template-columns: 1fr; }
  .trail-falls .trail-poster { border-right: 0; border-bottom: 4px solid var(--pine-deep); }
  .trail-falls .trail-poster svg { max-height: 260px; }
  .rules-wrap, .faq-wrap { grid-template-columns: 1fr; }
  .rules-poster { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-links { grid-column: 1 / -1; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 760px) {
  .trail-grid { grid-template-columns: 1fr; }
  .trail-stats { grid-template-columns: repeat(2, auto); }
  .trail-body { padding: var(--s-5); }
  .map { width: 760px; max-width: none; }
  .map-hint { display: block; }
  .profile-grid text { font-size: 21px; }
  .profile-line { stroke-width: 4; }
  .rules-art { aspect-ratio: 360 / 330; }
  .field-pair { grid-template-columns: 1fr; }
  .pack-groups { grid-template-columns: 1fr; gap: var(--s-5); }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .top { gap: var(--s-3); }
  .brand { font-size: 1.1rem; }
  .brand-mark { width: 34px; height: 34px; }
  .top-book { padding: 0 var(--s-3); }
  .hero { padding: var(--s-3) var(--s-3) var(--s-7); }
  .scene { height: 52vh; min-height: 320px; }
  .hero-band { padding: var(--s-5) var(--s-5) var(--s-6); }
  .panel { padding: var(--s-4); }
  .facts, .ticket-facts { grid-template-columns: 1fr; }
  .rule-list li { grid-template-columns: 44px 1fr; gap: var(--s-3); }
  .rule-list .i { width: 44px; height: 44px; padding: 10px; }
  .book, .trails, .pack, .rules, .faq { padding-top: var(--s-8); padding-bottom: var(--s-8); }
  .pack-poster::before, .hero-poster::after { inset: 6px; }
}
@media (max-width: 400px) {
  .top-book { display: none; }
}
