/* ==========================================================================
   Flagstaff Underground — stylesheet
   Traditional editorial layout: warm paper, ink serif display, flat surfaces.
   No 3D transforms, no perspective, no depth effects.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Dark, lantern-lit palette taken from the flyer: near-black ground, bone
     type, gold rules, with the rust accent kept for calls to action. */
  --bg:           #0b0a09;
  --bg-alt:       #121110;
  --panel:        #191614;

  --gold:         #c9a227;
  --gold-lt:      #e2c169;
  --gold-dim:     rgba(201, 162, 39, 0.42);

  /* Names kept from the light build so existing rules keep working:
     --ink is body type, --paper is type that sits on the darkest bands. */
  --ink:          #ece5d8;
  --ink-soft:     #b9b1a3;
  --ink-faint:    #8b8478;
  --paper:        #f2ece1;
  --paper-warm:   var(--bg-alt);
  --card:         var(--panel);
  --charcoal:     #121110;
  --charcoal-alt: #17140f;

  --rule:         #2b2723;
  --rule-strong:  #3f3931;
  --rule-dark:    #2b2723;

  --accent:       #a2481e;
  --accent-deep:  #c25a25;
  --accent-soft:  #e8b98f;

  --focus:        var(--gold-lt);

  /* Type — headings set in the UI sans, uppercase, to echo the flyer's
     condensed caps; the serif is kept for ledes and pull quotes. */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
                  Georgia, "Times New Roman", serif;
  --font-sans:    "Josefin Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
                  Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Fluid scale */
  --step--1: clamp(0.80rem, 0.77rem + 0.15vw, 0.88rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.13rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.40vw, 1.45rem);
  --step-2:  clamp(1.45rem, 1.30rem + 0.75vw, 1.95rem);
  --step-3:  clamp(1.80rem, 1.50rem + 1.50vw, 2.75rem);
  --step-4:  clamp(2.10rem, 1.55rem + 2.75vw, 4.00rem);

  /* Space */
  --gap-xs: 0.5rem;
  --gap-sm: 0.875rem;
  --gap-md: 1.5rem;
  --gap-lg: 2.5rem;
  --gap-xl: 4rem;
  --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);

  --shell: 1180px;
  --shell-narrow: 760px;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

address { font-style: normal; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

/* The header is sticky, so jumping to an in-page anchor would otherwise land
   with the section's first rows hidden underneath it. */
:target,
section[id] { scroll-margin-top: clamp(4.5rem, 3rem + 5vw, 8.5rem); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: #12100a;
  padding: 0.75rem 1.25rem;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. Shared pieces
   -------------------------------------------------------------------------- */
.eyebrow {
  margin: 0 0 var(--gap-sm);
  font-size: var(--step--1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.eyebrow--light { color: var(--gold); }

.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper-warm); }
.section--dark  { background: var(--charcoal); color: var(--paper); }

.section-head { margin-bottom: var(--gap-lg); }
.section-head__title {
  font-size: var(--step-3);
  margin-bottom: var(--gap-md);
}
.section-head__rule {
  display: block;
  width: 74px;
  height: 2px;
  background: var(--accent);
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn--accent:hover,
.btn--accent:focus-visible {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(246, 242, 233, 0.55);
  color: var(--paper);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--bg);
}

.btn--lg { padding: 1.05rem 2.1rem; }
.btn--sm { padding: 0.6rem 1.1rem; letter-spacing: 0.1em; }

/* A button that is still on the page but has nowhere to go yet — the tour is
   running, the online booking link just isn't live. Pair it with .booking-note. */
.btn--disabled {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

.booking-note {
  margin-top: var(--gap-sm);
  font-size: var(--step--1);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-sm);
  padding-block: 0.9rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  flex-shrink: 0;
}
.header-actions__cta { display: none; }
@media (min-width: 30em) { .header-actions__cta { display: inline-flex; } }

/* Wordmark */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

/* The badge artwork is white line work on a solid black square rather than on
   transparency. `screen` drops that black into the header behind it, so the
   mark sits on the page without a visible tile edge. */
.wordmark__badge {
  flex-shrink: 0;
  width: clamp(2.2rem, 1.6rem + 2vw, 3.1rem);
  aspect-ratio: 1;
  background: url("../img/logo-badge.png") center / contain no-repeat;
  mix-blend-mode: screen;
}
.wordmark__rule {
  width: 22px;
  height: 1px;
  background: var(--rule-strong);
  flex-shrink: 0;
}
/* The flanking rules are decorative — drop them before the name itself shrinks. */
@media (max-width: 26em) { .wordmark__rule { display: none; } }
.wordmark__text { display: block; text-align: center; }
.wordmark__lead {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-left: 0.4em;
}
.wordmark__main {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  padding: 0.5rem 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 17px;
  height: 12px;
}
.nav-toggle__label { white-space: nowrap; }
@media (max-width: 22.5em) { .nav-toggle__label { display: none; } }

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--ink);
  opacity: 0.9;
  transition: opacity 0.18s ease;
}

/* Primary nav — its own full-width tier below the wordmark, which keeps all
   nine destinations on a single centred line instead of wrapping mid-row. */
.primary-nav { display: none; }

.primary-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 clamp(0.6rem, 1.5vw, 1.6rem);
}
.primary-nav__list a {
  display: block;
  padding: 0.7rem 0;
  font-size: clamp(0.63rem, 0.52rem + 0.22vw, 0.74rem);
  font-weight: 600;
  letter-spacing: clamp(0.09em, 0.02em + 0.09vw, 0.13em);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.primary-nav__list a:hover,
.primary-nav__list a:focus-visible { color: var(--ink); border-bottom-color: var(--accent); }
.primary-nav__list a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* Mobile: revealed as a panel under the header bar. */
.primary-nav.is-open {
  display: block;
  background: var(--bg);
  border-top: 1px solid var(--rule);
  padding-block: var(--gap-xs) var(--gap-md);
}
.primary-nav.is-open .primary-nav__list { display: block; }
.primary-nav.is-open .primary-nav__list li + li { border-top: 1px solid var(--rule); }
.primary-nav.is-open .primary-nav__list a {
  padding: 0.85rem 0;
  border-bottom: none;
  font-size: 0.8rem;
  white-space: normal;
}

@media (min-width: 62.5em) {
  .nav-toggle { display: none; }
  .primary-nav { display: block; border-top: 1px solid var(--rule); }
  /* Let the nav tier run wider than the content shell so all nine links hold
     a single line; it still centres and still respects the page gutters. */
  .primary-nav .shell { max-width: 1400px; }
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--charcoal);
  color: var(--paper);
  overflow: hidden;
}

/* Flat "strata" banding — evokes layers of rock, purely 2D gradients. */
.hero__strata {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0) 45%),
    repeating-linear-gradient(
      177deg,
      rgba(255, 245, 230, 0.045) 0px,
      rgba(255, 245, 230, 0.045) 1px,
      transparent 1px,
      transparent 26px
    ),
    radial-gradient(120% 90% at 78% 8%, rgba(162, 72, 30, 0.30) 0%, rgba(162, 72, 30, 0) 58%),
    linear-gradient(165deg, #35322c 0%, #24221e 55%, #191713 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  padding-block: clamp(3.5rem, 2rem + 9vw, 8rem);
  max-width: 62rem;
}

.hero__title {
  font-size: var(--step-4);
  max-width: 25ch;
  margin-bottom: var(--gap-md);
  text-wrap: balance;
}

.hero__lede {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-style: italic;
  color: #ded5c4;
  max-width: 44ch;
  margin-bottom: var(--gap-lg);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  margin-bottom: var(--gap-xl);
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: var(--gap-md);
  border-top: 1px solid var(--rule-dark);
  padding-top: var(--gap-md);
  max-width: 40rem;
}
.hero__fact-value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.1;
}
.hero__fact-value--sm { font-size: var(--step-1); }
.hero__fact-label {
  display: block;
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a9a091;
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   5b. Page hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  background: #060505;
  color: var(--paper);
  overflow: hidden;
}

/* Same ground as the home page's showcase band: black, with a faint lantern
   glow from the top left. */
.page-hero__strata {
  position: absolute;
  inset: 0;
  background: radial-gradient(58% 62% at 10% 6%, rgba(201, 162, 39, 0.10) 0%, rgba(201, 162, 39, 0) 66%);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  padding-block: clamp(2.75rem, 1.5rem + 6vw, 5.5rem);
  max-width: 56rem;
}

.page-hero__title {
  font-size: var(--step-4);
  max-width: 20ch;
  text-wrap: balance;
}

.page-hero__lede {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-style: italic;
  color: #ded5c4;
  max-width: 50ch;
  margin-top: var(--gap-md);
}

.page-hero__when {
  margin-top: var(--gap-md);
  font-size: var(--step-0);
  color: var(--ink);
}
.page-hero__when span {
  display: inline-block;
  margin-right: 0.6rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  margin-top: var(--gap-lg);
}

/* --------------------------------------------------------------------------
   6. Ribbon (quick links)
   -------------------------------------------------------------------------- */
.ribbon { background: var(--charcoal-alt); }

.ribbon__grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 48em) {
  .ribbon__grid { grid-template-columns: repeat(3, 1fr); }
}

.ribbon__card {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: 1.6rem clamp(0.5rem, 2vw, 1.5rem);
  text-decoration: none;
  color: var(--paper);
  border-bottom: 1px solid rgba(246, 242, 233, 0.14);
  transition: background-color 0.18s ease;
}
.ribbon__card:hover,
.ribbon__card:focus-visible { background: rgba(162, 72, 30, 0.22); }

@media (min-width: 48em) {
  .ribbon__card { border-bottom: none; border-right: 1px solid rgba(246, 242, 233, 0.14); }
  .ribbon__card:last-child { border-right: none; }
}

.ribbon__index {
  font-family: var(--font-display);
  font-size: var(--step-0);
  color: var(--accent-soft);
  flex-shrink: 0;
}
.ribbon__text {
  flex: 1;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.5;
}
.ribbon__arrow { flex-shrink: 0; color: var(--accent-soft); }

/* --------------------------------------------------------------------------
   7. Welcome
   -------------------------------------------------------------------------- */
.welcome__inner { max-width: var(--shell-narrow); margin-inline: auto; }

.welcome__body {
  font-family: var(--font-display);
  text-transform: none;
  font-size: var(--step-2);
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: var(--gap-md);
  text-wrap: pretty;
}

.welcome__meta {
  color: var(--ink-soft);
  border-left: 2px solid var(--rule-strong);
  padding-left: var(--gap-md);
  margin-bottom: var(--gap-lg);
}

.welcome__cta { margin: 0; }

/* --------------------------------------------------------------------------
   7b. Prose (interior page body copy)
   -------------------------------------------------------------------------- */
.prose {
  max-width: var(--shell-narrow);
  margin-inline: auto;
}

.prose p { max-width: 66ch; }

.prose__lead {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: var(--gap-md);
  text-wrap: pretty;
}

.prose__closer {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-style: italic;
  color: var(--gold);
  margin-top: var(--gap-lg);
}
.prose__closer a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.prose__closer a:hover, .prose__closer a:focus-visible { color: var(--gold-lt); }

/* Highlight list — flat square markers, drawn with a pseudo-element. */
.highlights { display: grid; gap: var(--gap-sm); max-width: 60ch; }

.highlights li {
  position: relative;
  padding-left: 1.9rem;
  font-size: var(--step-1);
  font-family: var(--font-display);
  line-height: 1.45;
  border-bottom: 1px solid var(--rule);
  padding-bottom: var(--gap-sm);
}
.highlights li:last-child { border-bottom: none; }
.highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  background: var(--accent);
}

/* Contact note ----------------------------------------------------------- */
.contact-note {
  margin-top: var(--gap-lg);
  padding: var(--gap-md);
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
}
.contact-note p { margin-bottom: 0.35rem; color: var(--ink-soft); }
.contact-note p:last-child { margin-bottom: 0; }
.contact-note a { overflow-wrap: anywhere; }
.contact-note__label {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold) !important;
}
.contact-note__email {
  font-family: var(--font-display);
  font-size: var(--step-1);
  margin-bottom: 0;
}
.contact-note__email a { color: var(--gold); overflow-wrap: anywhere; }

/* Detail cards (contact / social / private tour particulars) --------------- */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: var(--gap-md);
  margin-top: var(--gap-lg);
}

.detail-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  padding: var(--gap-md);
}

.detail-card__label {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.4rem;
}

/* Sized so the longest value (the email address) holds one line in the
   narrowest card the grid produces; `anywhere` is only a safety net. */
.detail-card__value {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 0.86rem + 0.42vw, 1.15rem);
  line-height: 1.4;
  margin-bottom: 0;
}
.detail-card__value a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  overflow-wrap: anywhere;
}
.detail-card__value a:hover,
.detail-card__value a:focus-visible { color: var(--accent-deep); }

/* --------------------------------------------------------------------------
   8. Tours
   -------------------------------------------------------------------------- */
/* minmax sized so the five tours settle into one clean row on wide screens
   and step down to 3 / 2 / 1 as the viewport narrows. */
.tours__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: var(--gap-md);
}

.tour-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--gap-lg);
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  padding: var(--gap-md);
  min-height: 11rem;
  transition: border-color 0.18s ease;
}
.tour-card:hover { border-color: var(--rule-strong); border-top-color: var(--accent-deep); }

.tour-card__name {
  font-size: var(--step-1);
  text-wrap: balance;
}

.tour-card__link {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  border-bottom: 1px solid currentColor;
  align-self: flex-start;
  padding-bottom: 2px;
}
.tour-card__link:hover,
.tour-card__link:focus-visible { color: var(--ink); }

/* --------------------------------------------------------------------------
   8b. Tours showcase — dark band carrying the illustrated cards and the reel
   -------------------------------------------------------------------------- */
/* Black ground, like the printed flyer. The only light is a faint lantern
   glow from the top left — the same place the flyer's lantern sits. */
.showcase {
  position: relative;
  background: #060505;
  color: var(--paper);
  padding-block: var(--section-y);
  overflow: hidden;
  --gold: #c9a227;
  --gold-line: rgba(201, 162, 39, 0.55);
}

.showcase__wash {
  position: absolute;
  inset: 0;
  background: radial-gradient(58% 42% at 10% 4%, rgba(201, 162, 39, 0.10) 0%, rgba(201, 162, 39, 0) 66%);
  pointer-events: none;
}

.showcase__inner { position: relative; }

.showcase__head {
  margin-bottom: var(--gap-lg);
  text-align: center;
}

.showcase__logo {
  width: 100%;
  max-width: 34rem;
  height: auto;
  margin: 0 auto clamp(1rem, 2.5vw, 1.75rem);
}

/* Set in the UI sans rather than the site's serif, to echo the flyer's
   condensed all-caps lockup. */
.showcase__title {
  font-family: var(--font-sans);
  font-size: clamp(1.15rem, 0.7rem + 1.9vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--paper);
  text-wrap: balance;
}
.showcase__sub {
  font-family: var(--font-sans);
  font-size: clamp(1.02rem, 0.62rem + 1.7vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0.15rem 0 0;
  text-wrap: balance;
}

.showcase__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
  align-items: start;
}
@media (min-width: 62.5em) {
  .showcase__body { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
}

/* ---- Card grid ---- */
/* Six cards: two-up on phones, three-up (a clean 3x2) from tablet upward.
   Only the very narrowest screens go single file. */
.tour-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-md);
}
@media (min-width: 40em) {
  .tour-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 20em) {
  .tour-grid { grid-template-columns: 1fr; }
}

/* Each cell stacks its panel above a Book button, and the buttons line up
   across a row because the panels are all the same shape. */
.tour-grid > li {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}
.card-book {
  width: 100%;
}

/* Every card is one 3:4 panel, matching the proportions of the supplied
   artwork so nothing is cropped. Cards carrying a photo are the photo alone —
   the tour name and strapline are already burnt into it. Cards with a drawn
   scene lay the same wording over the top, so the six read as one set. */
.card {
  position: relative;
  display: block;
  /* 7:10 rather than 3:4. The supplied artwork ranges from 0.646 to 0.763,
     and this is the shape every file can fill by cropping alone — no black
     padding, no mirrored edges — while still clearing the type burnt into
     each one. */
  aspect-ratio: 7 / 10;
  overflow: hidden;
  background: #000;
  text-decoration: none;
}

/* Every card wears the same frame, drawn above the artwork. The supplied
   images each carried their own gold rule at a different inset, which is what
   made the grid look ragged; those are cropped off and every file normalised
   to 3:4 so this single rule governs all six identically. */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 0 0 2px var(--gold-dim);
  transition: box-shadow 0.18s ease;
}
.card:hover::after,
.card:focus-visible::after { box-shadow: inset 0 0 0 2px var(--gold); }

.card > img,
.card > svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--gap-sm);
  padding: clamp(0.7rem, 1.6vw, 1.15rem);
  text-align: center;
  /* Scrims top and bottom so the wording stays legible over the scene. */
  background:
    linear-gradient(180deg, rgba(5, 4, 3, 0.85) 0%, rgba(5, 4, 3, 0) 34%),
    linear-gradient(0deg, rgba(5, 4, 3, 0.85) 0%, rgba(5, 4, 3, 0) 32%);
}

/* Photography runs much brighter than the drawn scenes, so the wording needs a
   heavier scrim and a light overall wash to stay legible over it. */
.card--photo .card__overlay {
  background:
    linear-gradient(180deg, rgba(4, 3, 2, 0.92) 0%, rgba(4, 3, 2, 0.15) 42%, rgba(4, 3, 2, 0) 55%),
    linear-gradient(0deg, rgba(4, 3, 2, 0.92) 0%, rgba(4, 3, 2, 0.15) 38%, rgba(4, 3, 2, 0) 52%),
    rgba(4, 3, 2, 0.22);
}

.card__title {
  font-family: var(--font-sans);
  font-size: clamp(0.88rem, 0.74rem + 0.5vw, 1.15rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
  /* The body sets break-word, which was splitting "UNDERGOUND" across lines. */
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
  color: var(--paper);
}

.card__caption {
  font-size: var(--step--1);
  line-height: 1.35;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #cbc2b2;
}

/* ---- Video reel ---- */
/* A single thin gold rule tight to the footage, matching the flyer's frame. */
.reel {
  padding: 0;
  background: #000;
  box-shadow: inset 0 0 0 1px var(--gold-line);
  max-width: 24rem;
  margin-inline: auto;
  width: 100%;
}
@media (min-width: 62.5em) {
  .reel { max-width: none; position: sticky; top: var(--gap-md); }
}

.reel__video {
  width: 100%;
  height: auto;
  /* Matches the source clip so the frame never letterboxes. */
  aspect-ratio: 266 / 474;
  object-fit: cover;
  background: #000;
}

.reel__fallback { margin: 0; padding: 1rem; color: #a9a091; font-size: var(--step--1); }

/* --------------------------------------------------------------------------
   9. FAQ
   -------------------------------------------------------------------------- */
.faq__inner { max-width: var(--shell-narrow); margin-inline: auto; }

.faq__list { border-top: 1px solid var(--rule); }

.qa { border-bottom: 1px solid var(--rule); }

.qa__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--gap-md);
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.3;
  color: var(--ink);
}
.qa__q::-webkit-details-marker { display: none; }
.qa__q:hover { color: var(--accent-deep); }

/* Flat +/− indicator drawn with two bars; no rotation in 3D space. */
.qa__mark {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 0.4em;
}
.qa__mark::before,
.qa__mark::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: opacity 0.18s ease;
}
.qa__mark::before { top: 7px; left: 0; width: 16px; height: 2px; }
.qa__mark::after  { left: 7px; top: 0; width: 2px; height: 16px; }
.qa[open] .qa__mark::after { opacity: 0; }

.qa__a {
  padding: 0 0 1.4rem;
  color: var(--ink-soft);
  max-width: 52ch;
}
.qa__a strong {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: var(--step--1);
}

/* The map is a light image on a dark page, so it gets the same gold rule the
   tour cards wear rather than floating as a bright rectangle. */
.meet__map {
  margin: 0;
  max-width: 22rem;
  grid-column: 1 / -1;
}

/* Stacked into one column, the map belongs directly under the Where We Meet
   address rather than below all three blocks. */
@media (max-width: 39.99em) {
  .meet__col:nth-of-type(1) { order: 1; }
  .meet__map               { order: 2; }
  .meet__col:nth-of-type(2) { order: 3; }
  .meet__col:nth-of-type(3) { order: 4; }
}
@media (min-width: 40em) {
  .meet__map { margin-top: var(--gap-md); }
}
.meet__map figcaption {
  margin-top: 0.6rem;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.meet__map img {
  width: 100%;
  height: auto;
  box-shadow: inset 0 0 0 2px var(--gold-dim), 0 0 0 2px var(--gold-dim);
}

.meet__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap-md);
  margin-top: var(--gap-lg);
  padding-top: var(--gap-lg);
  border-top: 1px solid var(--rule);
}
.meet__faq {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.meet__faq:hover, .meet__faq:focus-visible { color: var(--gold-lt); }

.faq__more { margin-top: var(--gap-md); }
.faq__more a {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.faq__more a:hover, .faq__more a:focus-visible { color: var(--gold-lt); }

/* --------------------------------------------------------------------------
   10. Meeting point
   -------------------------------------------------------------------------- */
.meet__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
}
@media (min-width: 40em) {
  .meet__grid { grid-template-columns: repeat(2, 1fr); gap: var(--gap-lg) var(--gap-xl); }
}
@media (min-width: 62.5em) {
  .meet__grid { grid-template-columns: repeat(3, 1fr); }
}

.meet__col { border-top: 2px solid var(--accent); padding-top: var(--gap-md); }

.meet__title {
  font-size: var(--step-2);
  margin-bottom: var(--gap-sm);
  color: inherit;
}
.meet__note { color: var(--ink-faint); font-style: italic; }

.meet__address { color: var(--ink-soft); line-height: 1.8; }

.meet__directions {
  margin-top: var(--gap-sm);
  padding-top: var(--gap-sm);
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: var(--step--1);
  line-height: 1.65;
  max-width: 34ch;
}

/* A fixed target for "back to top". The header is sticky, so scrolling to it
   lands wherever it is currently pinned instead of at the document start. */
.anchor-top {
  display: block;
  height: 0;
  scroll-margin-top: 0;
}

/* Still used on the dark private-tours band, where the type must lighten. */
.section--dark .meet__title { color: var(--paper); }
.section--dark .meet__address { color: #cbc2b2; }
.section--dark .meet__note { color: #a9a091; }

/* --------------------------------------------------------------------------
   11. Closing CTA
   -------------------------------------------------------------------------- */
.closing {
  background: var(--paper-warm);
  border-top: 1px solid var(--rule);
  padding-block: var(--section-y);
  text-align: center;
}

.closing__inner { max-width: 46rem; margin-inline: auto; }

.closing__kicker {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-style: italic;
  line-height: 1.3;
  margin-bottom: var(--gap-lg);
  text-wrap: balance;
}

.closing__alt { margin: var(--gap-md) 0 0; }
.closing__alt a {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  /* Darker than the band above it, so the two do not merge into one block. */
  background: var(--bg);
  border-top: 1px solid var(--rule);
  color: #b8b0a2;
  padding-block: var(--gap-xl) var(--gap-lg);
  font-size: var(--step--1);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
  padding-bottom: var(--gap-lg);
  border-bottom: 1px solid var(--rule-dark);
}
@media (min-width: 48em) {
  .site-footer__top { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--gap-xl); }
}

/* The supplied logo is cream artwork on transparency, so it only reads on a
   dark ground — the footer. The light header keeps the text wordmark. */
.site-footer__logo {
  width: 100%;
  max-width: 17rem;
  height: auto;
  margin-bottom: var(--gap-sm);
}
.site-footer__tag { max-width: 34ch; line-height: 1.7; }

.site-footer__nav ul { display: grid; gap: 0.55rem; }
.site-footer__nav a {
  color: #b8b0a2;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.site-footer__nav a:hover,
.site-footer__nav a:focus-visible { color: var(--paper); }

.site-footer__label {
  color: var(--accent-soft);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.site-footer__meet address { margin-bottom: var(--gap-md); line-height: 1.8; }
.site-footer__meet p { margin-bottom: var(--gap-md); }
.site-footer__meet p:last-child { margin-bottom: 0; }

.site-footer__email a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  overflow-wrap: anywhere;
}
.site-footer__email a:hover, .site-footer__email a:focus-visible { color: var(--accent-soft); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-sm);
  padding-top: var(--gap-md);
}
.site-footer__bottom p { margin: 0; letter-spacing: 0.06em; }

.to-top {
  color: #b8b0a2;
  text-decoration: none;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.to-top:hover, .to-top:focus-visible { color: var(--paper); }

/* --------------------------------------------------------------------------
   13. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .ribbon, .hero__actions, .closing, .to-top { display: none; }
  body { background: #fff; color: #000; }
  .hero, .section--dark, .site-footer { background: #fff; color: #000; }
  .qa__a { display: block; }
}

/* --------------------------------------------------------------------------
   14. Underground tour page — its own display face
   Rye is a wild-west slab. It is loaded only on this page, and only for
   display type: at body sizes it is hard to read, and it carries no italic.
   The stack falls back to the site's sans if the font does not arrive.
   -------------------------------------------------------------------------- */
.page-underground .page-hero__title,
.page-underground .section-head__title,
.page-underground .closing__kicker {
  font-family: "Rye", "Iowan Old Style", Georgia, var(--font-sans);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-transform: none;
}

.page-underground .page-hero__title { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem); }
.page-underground .section-head__title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); }
.page-underground .closing__kicker { font-size: clamp(1.3rem, 1rem + 1.3vw, 2rem); }

.page-underground .eyebrow { letter-spacing: 0.26em; }
