/* DELUXE Hikes
   Layout concept: a trailhead kiosk. Topo-map hero, a routed-wood stat sign
   on every hike, and orange paint blazes marking each section of the trail. */
:root {
  --paper: #ECEFE9;
  --surface: #F7F9F5;
  --ink: #15241C;
  --muted: #56655C;
  --line: #C9D2CA;
  --blaze: #C24518;
  --blaze-ink: #FFFFFF;
  --sign: #1D3328;
  --sign-ink: #EEF2EC;
  --sign-muted: #A9BBAF;
  --contour: #C3CEC5;
  --contour-index: #9DAEA2;
  --blaze-sign: #EE7745;
  --blaze-sign-ink: #1A0D06;
  --hero-contour: #284536;
  --hero-contour-index: #36594A;

  --f-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.2rem, 5vw, 3.2rem);
  --step-4: clamp(3.6rem, 13vw, 8.5rem);
  --wrap: 72rem;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1813; --surface: #15221B; --ink: #E4EBE3; --muted: #9AAAA0; --line: #2A3B31;
    --blaze: #F0773D; --blaze-ink: #1A0D06; --sign: #1F3529; --sign-ink: #EEF2EC; --sign-muted: #A9BBAF;
    --contour: #1F3127; --contour-index: #2E4538;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E1813; --surface: #15221B; --ink: #E4EBE3; --muted: #9AAAA0; --line: #2A3B31;
  --blaze: #F0773D; --blaze-ink: #1A0D06; --sign: #1F3529; --sign-ink: #EEF2EC; --sign-muted: #A9BBAF;
  --contour: #1F3127; --contour-index: #2E4538;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--f-body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--blaze); text-underline-offset: 3px; }
a:hover { color: var(--blaze); }
:focus-visible { outline: 3px solid var(--blaze); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: 1.02; text-wrap: balance; margin: 0; letter-spacing: 0.005em; }
h1 { font-size: var(--step-3); text-transform: uppercase; }
h2 { font-size: var(--step-2); text-transform: uppercase; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; }

/* Masthead */
.masthead { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--sign); color: var(--sign-ink); border-bottom: 1px solid var(--hero-contour); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; padding-block: 8px; }
.wordmark { display: block; flex: none; }
.wordmark img { display: block; height: 66px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-family: var(--f-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.06em; }
.nav a { color: var(--sign-ink); text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--blaze-sign); }
.nav a[aria-current="page"] { border-bottom-color: var(--blaze-sign); }

/* Shared bits */
.eyebrow { font-family: var(--f-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.eyebrow a { text-decoration: none; }
.eyebrow-on-dark { color: var(--sign-muted); }
.lede { font-size: var(--step-1); line-height: 1.45; max-width: 40ch; color: var(--ink); }
.blazed { display: flex; align-items: center; gap: 12px; }
.blazed::before { content: ""; flex: none; width: 9px; height: 0.95em; background: var(--blaze); border-radius: 1px; }
.section { padding-block: clamp(40px, 6vw, 72px); display: grid; gap: 24px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.more-link { font-family: var(--f-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.06em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fineprint { font-size: var(--step--1); color: var(--muted); max-width: 65ch; }
.notice { font-size: var(--step-0); color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; border-radius: var(--radius); font-family: var(--f-mono); font-size: var(--step--1); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-blaze { background: var(--blaze); color: var(--blaze-ink); }
.btn-blaze:hover { color: var(--blaze-ink); filter: brightness(1.08); }
.btn-blaze-sign { background: var(--blaze-sign); color: var(--blaze-sign-ink); }
.btn-blaze-sign:hover { color: var(--blaze-sign-ink); filter: brightness(1.08); }
.btn-ghost { border-color: currentColor; background: transparent; color: inherit; }
.btn-ghost:hover { color: var(--blaze); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { color: var(--paper); opacity: 0.88; }
.btn-small { min-height: 34px; padding: 4px 12px; }

/* Hero: the logo on dark green, over topo lines */
.hero { position: relative; overflow: hidden; background: var(--sign); color: var(--sign-ink); }
.topo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-inner { position: relative; display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(36px, 7vw, 96px); }
@media (min-width: 900px) { .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.hero-logo { margin: 0; line-height: 0; }
.hero-logo img { width: 100%; max-width: 560px; height: auto; }
.hero-copy { display: grid; gap: 16px; min-width: 0; }
.hero-tag { font-size: var(--step-2); line-height: 1.2; font-weight: 600; max-width: 24ch; text-wrap: balance; }
.hero-intro { font-size: var(--step-1); line-height: 1.45; max-width: 46ch; color: var(--sign-muted); }
.hero .actions { margin-top: 8px; }
.hero .btn-ghost { color: var(--sign-ink); }
.hero .btn-ghost:hover { color: var(--blaze-sign); }

/* Cards */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { min-width: 0; }
.card-link { display: grid; grid-template-rows: auto 1fr; align-content: start; height: 100%; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-link:hover { color: var(--ink); border-color: var(--blaze); }
.card-link:hover .card-title { text-decoration: underline; text-decoration-color: var(--blaze); }
.card-thumb, .video-poster {
  position: relative; display: block; aspect-ratio: 16 / 9; max-width: 100%;
  background-color: var(--sign);
  background-image: var(--thumb), repeating-radial-gradient(circle at 70% 120%, transparent 0 22px, var(--contour-index) 22px 23px);
  background-size: cover, auto; background-position: center;
}
.card-park { position: absolute; left: 10px; bottom: 10px; background: var(--sign); color: var(--sign-ink); font-family: var(--f-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 8px; border-radius: 3px; }
.card-body { min-width: 0; display: grid; gap: 10px; align-content: start; padding: 16px 16px 18px; }
.card-title { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; line-height: 1.05; text-transform: uppercase; overflow-wrap: anywhere; }
.card-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--f-mono); font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; }
.chip { justify-self: start; font-family: var(--f-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 8px; border-radius: 3px; border: 1px solid var(--blaze); color: var(--blaze); }
.diff::before { content: ""; display: inline-block; width: 7px; height: 11px; margin-right: 6px; background: var(--blaze); vertical-align: -1px; border-radius: 1px; }
.diff-1::before { box-shadow: none; }
.diff-2::before { box-shadow: 10px 0 0 var(--blaze); margin-right: 16px; }
.diff-3::before { box-shadow: 10px 0 0 var(--blaze), 20px 0 0 var(--blaze); margin-right: 26px; }

/* Hike page */
.hike-head { display: grid; gap: 14px; padding-block: clamp(32px, 5vw, 56px) 24px; }
.hike-head h1 { max-width: 20ch; }
.hike-video { padding-block-end: 8px; }
.video { border-radius: var(--radius); overflow: hidden; background: var(--sign); }
.video-poster { text-decoration: none; color: var(--sign-ink); }
.video-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 18, 14, 0.7), rgba(10, 18, 14, 0) 55%); }
.video-poster:hover { color: var(--sign-ink); }
.video-play { position: absolute; z-index: 1; left: 50%; top: 50%; translate: -50% -50%; width: clamp(64px, 10vw, 88px); aspect-ratio: 1; border-radius: 50%; background: var(--blaze); color: var(--blaze-ink); display: grid; place-items: center; transition: scale 0.15s ease; }
.video-play svg { width: 44%; margin-left: 6%; }
.video-poster:hover .video-play { scale: 1.06; }
.video-label { position: absolute; z-index: 1; left: 16px; bottom: 14px; font-family: var(--f-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.06em; }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }

.hike-grid { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: minmax(0, 1fr); padding-block: 28px 56px; align-items: start; }
@media (min-width: 900px) { .hike-grid { grid-template-columns: 300px minmax(0, 1fr); } .sign { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); } }
.hike-main { display: grid; gap: 44px; min-width: 0; }

.sign { background: var(--sign); color: var(--sign-ink); border-radius: var(--radius); padding: 20px; display: grid; gap: 18px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.sign-title { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.06em; padding-bottom: 12px; border-bottom: 1px dashed var(--sign-muted); }
.sign dl { margin: 0; display: grid; }
.sign-stats { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.sign dt { font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sign-muted); }
.sign dd { margin: 2px 0 0; }
.sign-stats dd { font-family: var(--f-display); font-weight: 800; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.sign-stats dd small { font-family: var(--f-mono); font-size: 0.8rem; font-weight: 400; color: var(--sign-muted); }
.sign-facts { gap: 12px; padding-top: 16px; border-top: 1px dashed var(--sign-muted); }
.sign-facts dd { font-size: 0.98rem; line-height: 1.4; }
.meter { display: inline-flex; gap: 3px; margin-right: 6px; vertical-align: -1px; }
.meter i { width: 7px; height: 13px; border-radius: 1px; background: var(--sign-muted); opacity: 0.35; }
.meter i.on { background: var(--blaze); opacity: 1; }

.before ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; max-width: 65ch; }
.before li { position: relative; padding-left: 28px; }
.before li::before { content: ""; position: absolute; left: 4px; top: 0.42em; width: 9px; height: 9px; border: 2px solid var(--blaze); border-radius: 50%; }

.prose { display: grid; gap: 16px; max-width: 65ch; }
.prose p { line-height: 1.7; }
.prose em { color: var(--muted); font-size: var(--step--1); }
.prose-page { padding-block: 8px 72px; }

.gear { display: grid; gap: 16px; }
.gear-list { display: grid; gap: 12px; }
.gear-list-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.gear-item { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.gear-item img { width: 72px; height: 72px; object-fit: contain; flex: none; }
.gear-text { flex: 1 1 220px; min-width: 0; display: grid; gap: 4px; }
.gear-name { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; line-height: 1.1; }
.gear-why { color: var(--muted); font-size: 0.98rem; line-height: 1.5; }
.gear-for { font-family: var(--f-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }

/* Merch band */
.band { background: var(--sign); color: var(--sign-ink); }
.band-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: clamp(36px, 5vw, 56px); }
.band-row > div { display: grid; gap: 10px; max-width: 46ch; }
.band h2 { font-size: var(--step-3); }
.band p { color: var(--sign-ink); }
.band .btn-ghost { color: var(--sign-ink); }

/* Home: what each guide covers */
.covers-grid { margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.covers-grid > div { background: var(--surface); padding: 22px 20px; display: grid; gap: 8px; align-content: start; }
.covers-grid dt { font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; text-transform: uppercase; line-height: 1.05; }
.covers-grid dd { margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.5; }

.partner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-top: 1px solid var(--line); }
.partner > div { display: grid; gap: 10px; max-width: 58ch; }
@media (max-width: 640px) { .partner { grid-template-columns: minmax(0, 1fr); } .partner .btn { justify-self: start; } }

/* Inner page headers */
.page-head { display: grid; gap: 14px; padding-block: clamp(36px, 6vw, 72px) 8px; }
.park-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.park-jump a { font-family: var(--f-mono); font-size: var(--step--1); text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.park-jump a:hover { border-color: var(--blaze); }
.contact { display: grid; gap: 10px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-email { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: var(--step-1); overflow-wrap: anywhere; }

/* Footer */
.footer { background: var(--sign); color: var(--sign-ink); }
.footer a { color: var(--sign-ink); text-decoration-color: var(--blaze-sign); }
.footer a:hover { color: var(--blaze-sign); }
.footer-logo { display: block; width: 150px; height: auto; margin-bottom: 10px; }
.footer-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) auto; padding-block: 40px 32px; }
.footer-name { font-family: var(--f-display); font-size: 1.5rem; text-transform: uppercase; font-weight: 600; letter-spacing: 0.04em; }
.footer-name b { font-weight: 900; }
.footer-tag { color: var(--sign-muted); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--f-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.05em; }
.disclosure, .copyright { grid-column: 1 / -1; font-size: var(--step--1); color: var(--sign-muted); max-width: 80ch; }
@media (max-width: 640px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

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