/* ==============================================
   FRONTIER TRAILS — pages.css
   Content pages (everything except the homepage film).
   Loaded after style.css: reuses its tokens, reset, menu,
   footer and waitlist form, and adds the page layouts.
   ============================================== */

/* ── Shared type ── */
.page {
  padding: clamp(7rem, 12vw, 9rem) clamp(1rem, 4vw, 3rem) clamp(5rem, 8vw, 7rem);
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 1.2rem 0 1.4rem;
  text-wrap: balance;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.65;
  color: var(--text);
  max-width: 40ch;
  text-wrap: pretty;
}

.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
  text-wrap: balance;
}

.section-lede {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 52ch;
  margin-bottom: 2.4rem;
}

.page-head { max-width: 980px; margin: 0 auto 3.5rem; }

.crumbs {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.crumbs a { color: var(--text-secondary); }
.crumbs a:hover { color: var(--accent); }

/* ── Buttons and links ──
   One gold pill for every call to action on the content pages. */
.btn,
.btn-outline {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1.05rem 1.6rem;
  min-height: 44px;
  transition: background 0.3s ease, color 0.3s ease;
  touch-action: manipulation;
}
.btn { background: var(--accent); color: var(--bg); }
.btn:hover, .btn:focus-visible { background: var(--text); color: var(--bg); }
.btn-outline { border: 1px solid rgba(var(--accent-rgb), 0.6); color: var(--accent); }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--accent); color: var(--bg); }

.text-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.7rem 0;
}
.text-link:hover { color: var(--text); }

.text-button {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: none;
  border: 0;
  padding: 0.8rem 0;
  min-height: 44px;
  cursor: pointer;
}
.text-button:hover { color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chips li {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(240, 235, 224, 0.3);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
}

/* ── Forms (reuse the homepage waitlist look) ── */
.ft-form { display: flex; flex-direction: column; gap: 0.85rem; max-width: 460px; }
.ft-form .waitlist-input { font-size: 16px; }
.waitlist-success { text-align: left; }
.waitlist-error a { color: inherit; text-decoration: underline; }

/* ── Apply band (every page ends here) ── */
.apply-band {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  /* Plain ground, no photo: the hero photo stays on the homepage only (Tom, 2026-11-29) */
  background: var(--bg-raised);
}
.apply-inner { max-width: 1100px; margin: 0 auto; }
.apply-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 1.2rem 0 1rem;
}
.apply-sub { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 2rem; }

/* ── About: a reading page ── */
.prose { max-width: 680px; margin: 0 auto; font-size: 1.12rem; line-height: 1.8; color: var(--text-secondary); }
.prose .page-title { font-style: normal; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.06; }
.prose p { margin: 0 0 1.3rem; text-wrap: pretty; }
.prose .prose-lead { color: var(--text); }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.85rem;
  line-height: 1.25;
  color: var(--text);
  margin: 3rem 0 1rem;
}
.prose a:not(.btn):not(.text-link) { color: var(--accent); }
.prose-figure { margin: 2.2rem 0; }
.prose-figure img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 78%; }
.prose-figure figcaption {
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.signoff { font-family: var(--font-display); font-size: 1.6rem; color: var(--text); margin-top: 2.4rem; }

/* ── FAQ: the roadbook ──
   One dashed gold route runs down the page from START to FINISH. Every
   question is a junction with its own tulip; opening it turns the arrow
   towards the answer. Plain <details>, so it works without JS. */
.roadbook {
  --n: 64px;
  --t: 92px;
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  border-top: 1px solid rgba(240, 235, 224, 0.22);
  border-bottom: 1px solid rgba(240, 235, 224, 0.22);
}
.roadbook::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: calc(var(--n) + var(--t) / 2);
  border-left: 2px dashed rgba(var(--accent-rgb), 0.45);
}
.rb-row { display: grid; grid-template-columns: var(--n) var(--t) minmax(0, 1fr); }
.rb-marker {
  position: relative;
  align-items: center;
  padding: 0.9rem 0;
  background: var(--bg-raised);
  border-bottom: 1px solid rgba(240, 235, 224, 0.22);
}
.rb-stage, .rb-flag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.rb-flag { color: var(--accent); }
.rb-tulip-cell { display: flex; justify-content: center; align-items: center; position: relative; }
.rb-start { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.rb-chequer {
  width: 24px; height: 24px;
  background: conic-gradient(var(--accent) 25%, #000 0 50%, var(--accent) 0 75%, #000 0) 0 0 / 12px 12px;
}
.rb-qa { position: relative; border-bottom: 1px solid var(--rule); }
.rb-qa summary { list-style: none; cursor: pointer; align-items: center; min-height: 92px; }
html.has-custom-cursor .rb-qa summary { cursor: none; }
.rb-qa summary::-webkit-details-marker { display: none; }
.rb-num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: center;
}
.rb-tulip { display: block; width: 56px; height: 56px; background: var(--bg); }
.rb-arrow { transform-origin: 28px 28px; transition: transform 0.35s var(--ease-out); }
.rb-qa[open] .rb-arrow { transform: rotate(90deg); }
.rb-q {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.32;
  padding: 1rem 1rem 1rem 0;
}
.rb-qa summary:hover .rb-q,
.rb-qa summary:hover .rb-num { color: var(--accent); }
.rb-a { padding: 0 1rem 1.6rem 0; }
.rb-a p { font-size: 1.05rem; line-height: 1.75; color: var(--text-secondary); max-width: 62ch; }
.rb-finish { border-bottom: 0; padding: 1.8rem 0; }
.rb-finish-body { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; justify-content: space-between; padding-right: 1rem; }
.rb-finish-body p { color: var(--text-secondary); margin-top: 0.4rem; max-width: 40ch; }
.rb-finish-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ── Landscape pages ── */
.land-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  padding: 8rem clamp(1rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.15) 35%, rgba(0, 0, 0, 0.55) 70%, #000 100%),
    var(--hero) center / cover;
}
.land-hero-inner { max-width: 1100px; width: 100%; margin: 0 auto; }
.land-hero-title { display: flex; align-items: center; gap: 1.4rem; margin-top: 1.6rem; }
.land-hero-title img { flex: none; }
.land-hero-title .page-title { margin: 0.6rem 0 0; }
.land-hero .lede { margin: 1.4rem 0 1.4rem; text-shadow: var(--shadow-text); }

.land-body { padding: clamp(4rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem); }
.land-body-inner { max-width: 820px; margin: 0 auto; }
.land-why p { font-size: 1.15rem; line-height: 1.8; color: var(--text-secondary); margin-bottom: 1.2rem; max-width: 62ch; }
.land-todo { margin-top: 4rem; }
.todo-group { margin-top: 2.4rem; }
.todo-activity {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--rule);
}
.poi { padding: 1.4rem 0; border-bottom: 1px solid var(--rule-faint); }
.poi-name { font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; line-height: 1.25; margin-bottom: 0.5rem; }
.poi-what { font-size: 1.05rem; line-height: 1.7; color: var(--text); max-width: 62ch; }
.poi-practical { font-size: 0.98rem; line-height: 1.7; color: var(--text-secondary); max-width: 62ch; margin-top: 0.3rem; }
.land-season { margin-top: 4rem; padding: 1.6rem 1.8rem; border: 1px solid rgba(var(--accent-rgb), 0.4); }
.land-season p { margin-top: 0.6rem; font-size: 1.1rem; line-height: 1.6; }

.other-lands { padding: 0 clamp(1rem, 4vw, 3rem) clamp(4rem, 8vw, 6rem); }
.other-lands-inner { max-width: 1100px; margin: 0 auto; }
.other-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1px;
  margin: 1.2rem 0 1rem;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.other-land { display: flex; gap: 0.9rem; align-items: center; padding: 1.1rem; background: var(--bg); }
.other-land:hover .other-name { color: var(--accent); }
.land-place {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.other-name { display: block; font-family: var(--font-display); font-size: 1.15rem; margin-top: 0.2rem; }

/* ── Journal: the roll ── */
.roll {
  overflow-x: auto;
  background: #0d0b09;
  margin: 0 calc(-1 * clamp(1rem, 4vw, 3rem));
  scrollbar-width: thin;
  scrollbar-color: var(--accent) #0d0b09;
  scroll-snap-type: x proximity;
  scroll-padding-inline: clamp(1rem, 4vw, 3rem);
}
.roll::-webkit-scrollbar { height: 6px; }
.roll::-webkit-scrollbar-thumb { background: var(--accent); }
.roll-in { display: inline-block; min-width: 100%; vertical-align: top; }
.sprocket {
  height: 10px;
  margin: 14px 0;
  background-image: repeating-linear-gradient(90deg, rgba(240, 235, 224, 0.16) 0 12px, transparent 12px 30px);
}
.frames { display: flex; gap: 18px; padding: 0 clamp(1rem, 4vw, 3rem); }
/* Every frame on the roll is the same size, like a strip of film: a
   panorama shows its first part here, and the whole picture on its story. */
.frame { flex: 0 0 clamp(240px, 24vw, 330px); scroll-snap-align: start; display: block; }
.frame-img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #000; }
.frame-img img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: left center;
  transition: transform 0.6s var(--ease-out), filter 0.6s var(--ease-out);
}
.frame-more {
  position: absolute; right: 8px; bottom: 8px;
  padding: 0.3rem 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
@media (hover: hover) {
  .frame-img img { filter: saturate(0.7) brightness(0.8); }
  .frame:hover .frame-img img { filter: none; transform: scale(1.03); }
}
.frame-edge {
  display: flex; justify-content: space-between;
  padding: 0.5rem 0.1rem 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  opacity: 0.8;
}
.frame-title { display: block; font-family: var(--font-display); font-size: 1.35rem; margin-top: 0.6rem; }
.frame:hover .frame-title { color: var(--accent); }
.frame-place {
  display: block; margin-top: 0.2rem; margin-bottom: 0.4rem;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
}
.dispatch { max-width: 980px; margin: clamp(4rem, 8vw, 6rem) auto 0; }

/* ── Journal: a story ── */
.story .crumbs { max-width: 1100px; margin: 0 auto 2rem; }
.story-body {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.story-figure { margin: 0; position: sticky; top: 6rem; }
.story-figure img { display: block; width: 100%; height: auto; }
.story-text .page-title { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.story-text p { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.6; margin-bottom: 1.2rem; text-wrap: pretty; }
.story-text p.specs {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-top: 2rem;
}
.story-text p:last-child { font-family: var(--font-body); font-size: 1rem; }
/* Wide stories (panoramas, or several photos): the picture runs edge to
   edge as a sideways-scrolling strip, the text sits underneath. */
.story-wide .story-body { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; max-width: none; }
.story-wide .story-figure { min-width: 0; }
.story-wide .story-figure { position: static; margin: 0 calc(-1 * clamp(1rem, 4vw, 3rem)); }
.story-strip {
  display: flex;
  gap: 6px;
  height: min(72vh, 680px);
  overflow-x: auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
.story-strip img { height: 100%; width: auto; flex: none; display: block; }
.strip-hint {
  padding: 0.8rem clamp(1rem, 4vw, 3rem) 0;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted);
}
.story-strip.fits { justify-content: center; }
.strip-wrap { position: relative; }
.strip-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), 0.7); background: rgba(0, 0, 0, 0.65);
  color: var(--accent); font-size: 1.2rem; cursor: pointer;
  transition: opacity 0.3s ease, background 0.25s ease, color 0.25s ease;
}
.strip-arrow:hover { background: var(--accent); color: var(--bg); }
.strip-prev { left: clamp(1.5rem, 5vw, 3.5rem); }
.strip-next { right: clamp(1.5rem, 5vw, 3.5rem); }
.at-start .strip-prev, .at-end .strip-next, .strip-wrap:has(.fits) .strip-arrow { opacity: 0; pointer-events: none; }
.strip-wrap:has(.fits) + .strip-hint { visibility: hidden; }
.story-wide .story-text { max-width: 680px; margin: 0 auto; width: 100%; }

.story-nav {
  max-width: 1100px; margin: clamp(4rem, 8vw, 6rem) auto 0;
  display: flex; justify-content: space-between; gap: 2rem;
  border-top: 1px solid var(--rule); padding-top: 1.6rem;
}
.story-nav a { display: flex; flex-direction: column; gap: 0.4rem; font-family: var(--font-display); font-size: 1.3rem; }
.story-nav a.next { text-align: right; }
.story-nav a:hover span:last-child { color: var(--accent); }

/* ── Community: see community.css ── */

/* ── Dream trip ── */
.dream-form { max-width: 980px; margin: 0 auto; }
.dream-form .ft-form { max-width: 720px; gap: 1.4rem; }
.checks { border: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.field-label {
  display: block; width: 100%; margin-bottom: 0.6rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-secondary);
}
.check { position: relative; cursor: pointer; }
.check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check span {
  display: inline-block; padding: 0.7rem 1rem; min-height: 44px;
  border: 1px solid rgba(240, 235, 224, 0.25); border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.check:hover span { border-color: var(--accent); color: var(--accent); }
.check input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.field { display: block; }
.dream-form select.waitlist-input { appearance: auto; }
.dream-form textarea.waitlist-input { resize: vertical; font-family: var(--font-body); }
.form-note { margin-top: 1.4rem; color: var(--text-muted); font-size: 0.9rem; }
.field-optional { text-transform: none; letter-spacing: 0; color: var(--text-muted); }

/* ── 404: you're off route ── */
.off-route { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.off-route .lede { margin: 0 auto 2rem; }
.compass { width: min(220px, 50vw); margin-bottom: 1rem; }
.compass text { fill: var(--text-muted); font-family: var(--font-mono); font-size: 12px; }
.compass-tulip { transform-origin: 100px 100px; transition: transform 0.25s ease-out; }
.off-route-links { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; justify-content: center; }

/* ── Small screens ── */
@media (max-width: 768px) {
  .roadbook { --n: 30px; --t: 62px; }
  .rb-tulip { width: 46px; height: 46px; }
  .story-body { grid-template-columns: 1fr; }
  .story-figure { position: static; }
  .land-hero { min-height: 70vh; }
  .land-hero-title img { width: 64px; height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .rb-arrow, .frame-img img, .compass-tulip { transition: none; }
}
