/* ============================================================
   BASE
   ============================================================ */

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-bark);
  background-color: var(--color-cream);
  line-height: 1.6;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-forest);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.625rem); }
h4 { font-size: 1.125rem; }

p { max-width: 65ch; }

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

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  width: min(100%, 72rem);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.container--narrow {
  width: min(100%, 48rem);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

section {
  padding-block: var(--space-xl);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */

/* Smooth scroll + nav height token */
html {
  scroll-behavior: smooth;
}

:root {
  --nav-height: 70px;
}

/* Offset all anchored sections for the fixed nav */
section[id] {
  scroll-margin-top: var(--nav-height);
}

/* ── Site header shell ──────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  background-color: var(--color-forest);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

/* ── Nav layout ─────────────────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

/* Playfair wordmark */
.nav__wordmark {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--color-cream);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

/* Right cluster: text link + CTA + hamburger */
.nav__right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(247, 243, 234, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--color-gold);
}

/* Hamburger — hidden on desktop */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--color-cream);
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-cream);
  border-radius: 2px;
  transition: opacity 0.2s, transform 0.25s;
}

/* ── Mobile full-screen overlay ─────────────────────────────── */

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background-color: var(--color-forest);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-overlay__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: none;
  border: none;
  color: var(--color-cream);
  cursor: pointer;
  padding: var(--space-xs);
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.nav-overlay__close:hover { opacity: 1; }

.nav-overlay__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  text-align: center;
}

.nav-overlay__link {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 700;
  color: var(--color-cream);
  text-decoration: none;
  line-height: 1;
  transition: color 0.2s;
}

.nav-overlay__link:hover,
.nav-overlay__link.is-active { color: var(--color-gold); }

.nav-overlay__link--cta {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-gold);
  border: 1.5px solid var(--color-gold);
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-pill);
  margin-top: var(--space-sm);
}

.nav-overlay__link--cta:hover {
  background-color: var(--color-gold);
  color: var(--color-forest);
}

@media (max-width: 700px) {
  .nav__link,
  .nav__right .btn--outline-gold {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background-color: var(--color-gold);
  color: var(--color-forest);
  border-color: var(--color-gold);
}

.btn--primary:hover {
  background-color: #b8892e;
  border-color: #b8892e;
  color: var(--color-forest);
  box-shadow: 0 4px 16px rgba(196, 154, 60, 0.4);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-cream);
  border-color: rgba(247, 243, 234, 0.4);
}

.btn--outline:hover {
  background-color: rgba(247, 243, 234, 0.1);
  border-color: var(--color-cream);
  color: var(--color-cream);
}

.btn--outline-dark {
  background-color: transparent;
  color: var(--color-forest);
  border-color: var(--color-forest);
}

.btn--outline-dark:hover {
  background-color: var(--color-forest);
  color: var(--color-cream);
}

.btn--forest {
  background-color: var(--color-forest);
  color: var(--color-cream);
  border-color: var(--color-forest);
}

.btn--forest:hover {
  background-color: #152e21;
  border-color: #152e21;
  color: var(--color-cream);
}

.btn--lg {
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
}

.btn--sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
}

.btn--outline-gold {
  background-color: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.btn--outline-gold:hover {
  background-color: var(--color-gold);
  color: var(--color-forest);
  border-color: var(--color-gold);
}

/* ============================================================
   HERO
   ============================================================ */

/* --- Layout shell --- */
.hero {
  position: relative;
  min-height: 100svh;          /* full viewport, respects mobile bars */
  min-height: 100vh;           /* fallback */
  background-color: var(--color-forest);
  color: var(--color-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-height); /* offset for fixed transparent nav */
  /* Subtle warm-tinted radial glow to add depth behind content */
  background-image:
    radial-gradient(ellipse 70% 60% at 55% 45%, rgba(74, 103, 65, 0.45) 0%, transparent 70%),
    radial-gradient(ellipse 50% 70% at 15% 85%, rgba(196, 154, 60, 0.10) 0%, transparent 60%);
}

/* --- SVG topo background --- */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* opacity controlled on the <rect fill> inside the SVG itself (0.08) */
}

.hero__topo {
  width: 100%;
  height: 100%;
}

/* --- Centre content --- */
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-inline: var(--space-lg);
  max-width: 680px;
  /* subtle fade-up entrance */
  animation: hero-fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Eyebrow */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background-color: var(--color-gold);
  opacity: 0.7;
}

/* Headline */
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--color-cream);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.hero__headline em {
  font-style: italic;
  color: var(--color-gold);
}

/* Sub */
.hero__sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.1875rem);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(247, 243, 234, 0.78);
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}

/* CTA row */
.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* --- Compass rose --- */
.hero__compass {
  position: absolute;
  right: clamp(1.5rem, 6vw, 6rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  opacity: 0.72;
  /* responsive sizing */
  width: clamp(80px, 14vw, 160px);
  height: clamp(80px, 14vw, 160px);
}

.compass-rose {
  width: 100%;
  height: 100%;
  animation: compass-spin 20s linear infinite;
  transform-origin: center center;
}

@keyframes compass-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Keep the N label visually stable by counter-rotating the text group.
   Since the text is inside the SVG we use a filter trick — the label
   wobble at this speed is actually charming, so we leave it as-is.
   If a fully fixed label is needed, split into two SVG layers. */

/* --- Scroll indicator --- */
.hero__scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(247, 243, 234, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
  animation: scroll-bob 2.4s ease-in-out infinite;
}

.hero__scroll:hover {
  color: var(--color-gold);
  transform: translateX(-50%) translateY(-2px);
  animation: none;
}

@keyframes scroll-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* --- Responsive --- */
@media (max-width: 700px) {
  .hero__compass {
    /* move to bottom-right corner on small screens */
    top: auto;
    bottom: 5rem;
    right: 1.25rem;
    transform: none;
    opacity: 0.45;
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 400px) {
  .hero__compass {
    display: none;
  }
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */

.section-heading {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-heading__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.section-heading h2 {
  margin-bottom: var(--space-sm);
}

.section-heading p {
  font-size: 1.0625rem;
  color: rgba(61, 43, 31, 0.7);
  max-width: 52ch;
  margin-inline: auto;
}

/* ============================================================
   HUNT BROWSE SECTION
   ============================================================ */

.hunts-browse {
  background-color: var(--color-cream);
  padding-block: var(--space-xl);
}

.hunts-browse__nudge {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(196, 154, 60, 0.35);
  text-align: center;
}

.hunts-browse__nudge a {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-gold);
  text-decoration: none;
  transition: opacity 0.2s;
  letter-spacing: 0.01em;
}

.hunts-browse__nudge a:hover {
  opacity: 0.75;
  color: var(--color-gold);
}

/* ============================================================
   HUNT CARDS
   ============================================================ */

.hunt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 900px) {
  .hunt-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .hunt-grid {
    grid-template-columns: 1fr;
  }
}

.hunt-card {
  background-color: #fff;
  border: 1px solid var(--color-mist);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
}

.hunt-card:hover {
  box-shadow: 0 12px 40px rgba(28, 58, 42, 0.14);
  transform: translateY(-4px);
  border-color: var(--color-gold);
}

/* --- Illustration area --- */

.hunt-card__illus {
  height: 200px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.hunt-card__illus svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hunt-card__illus--town {
  background: linear-gradient(155deg, var(--color-forest) 0%, #1e4430 50%, var(--color-moss) 100%);
}

.hunt-card__illus--museum {
  background: linear-gradient(155deg, var(--color-bark) 0%, #5a3a20 50%, #8b6240 100%);
}

.hunt-card__illus--trail {
  background: linear-gradient(155deg, #1e3d1a 0%, var(--color-moss) 55%, #6a9a50 100%);
}

/* Existing gradient variants kept for hunt.html cards */
.hunt-card__image {
  height: 180px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.hunt-card__image--variant-1 {
  background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-moss) 100%);
}

.hunt-card__image--variant-2 {
  background: linear-gradient(135deg, #2a4a3a 0%, var(--color-moss) 60%, #7a9c5c 100%);
}

.hunt-card__image--variant-3 {
  background: linear-gradient(135deg, #1a3524 0%, #3d6b4a 60%, #5a8a5c 100%);
}

.hunt-card__image--variant-4 {
  background: linear-gradient(135deg, var(--color-bark) 0%, #5a3e2a 60%, var(--color-gold) 100%);
}

/* "Free" badge — gold pill, top-left of illustration */
.hunt-card__free {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 1;
  background-color: var(--color-gold);
  color: var(--color-forest);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  line-height: 1.4;
}

/* Legacy badge style — kept for hunt.html */
.hunt-card__badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background-color: var(--color-gold);
  color: var(--color-forest);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
}

.hunt-card__icon {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* --- Card body --- */

.hunt-card__body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hunt-card__name,
.hunt-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-forest);
  margin-bottom: var(--space-sm);
  line-height: 1.25;
}

.hunt-card__desc {
  font-size: 0.9375rem;
  color: rgba(61, 43, 31, 0.7);
  line-height: 1.58;
  flex: 1;
  margin-bottom: var(--space-md);
}

/* Tag pill row */
.hunt-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: auto;
  padding-top: var(--space-sm);
}

.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background-color: rgba(28, 58, 42, 0.07);
  color: var(--color-moss);
  border: 1px solid rgba(74, 103, 65, 0.2);
  white-space: nowrap;
}

/* Legacy single-tag style — kept for hunt.html */
.hunt-card__tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
  background-color: rgba(28, 58, 42, 0.08);
  color: var(--color-moss);
}

/* --- Card footer --- */

.hunt-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--color-mist);
  background-color: rgba(247, 243, 234, 0.5);
}

/* Legacy meta — kept for hunt.html */
.hunt-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.8125rem;
  color: rgba(61, 43, 31, 0.6);
  margin-bottom: var(--space-sm);
}

.hunt-card__meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */

.how-it-works {
  background-color: var(--color-forest);
  color: var(--color-cream);
  padding-block: var(--space-xl);
}

.how-it-works .section-heading h2 {
  color: var(--color-cream);
}

.how-it-works .section-heading p {
  color: rgba(247, 243, 234, 0.65);
}

/* Steps row */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  position: relative;
}

/* Connector line between steps */
.steps::before {
  content: '';
  position: absolute;
  top: 52px;                           /* vertically centred on the icon */
  left: calc(50% / 3);                 /* starts inside step 1 icon */
  right: calc(50% / 3);
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(196, 154, 60, 0.35) 15%,
    rgba(196, 154, 60, 0.35) 85%,
    transparent
  );
  pointer-events: none;
}

@media (max-width: 700px) {
  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .steps::before {
    display: none;
  }
}

/* Individual step */
.step {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}

/* SVG icon wrapper */
.step__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  background-color: rgba(196, 154, 60, 0.08);
  border: 1.5px solid rgba(196, 154, 60, 0.25);
  border-radius: 50%;
  position: relative;
  z-index: 1;                          /* sits above the connector line */
}

.step__icon svg {
  width: 48px;
  height: 48px;
}

/* Step number */
.step__num {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--color-cream);
  margin-bottom: var(--space-sm);
}

.step p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(247, 243, 234, 0.65);
  max-width: 26ch;
  margin-inline: auto;
}

/* Section CTA */
.how-it-works__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(247, 243, 234, 0.1);
}

.how-it-works__cta p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: rgba(247, 243, 234, 0.8);
  max-width: none;
}

/* ============================================================
   SCROLL ANIMATION
   ============================================================ */

.animate-hidden {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1) var(--step-delay, 0ms),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) var(--step-delay, 0ms);
}

.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-hidden {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   CTA BANNER
   ============================================================ */

.cta-banner {
  background-color: var(--color-gold);
  text-align: center;
  padding-block: var(--space-xl);
}

.cta-banner h2 {
  color: var(--color-forest);
  margin-bottom: var(--space-md);
}

.cta-banner p {
  color: rgba(28, 58, 42, 0.75);
  font-size: 1.0625rem;
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background-color: var(--color-bark);
  color: var(--color-cream);
  padding-top: var(--space-2xl);
  padding-bottom: 0;
}

.footer__body {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: var(--space-xl) var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

/* Brand column */
.footer__brand .nav__wordmark {
  display: inline-block;
  font-size: 1.25rem;
}

.footer__tagline {
  font-size: 0.875rem;
  color: rgba(247, 243, 234, 0.45);
  margin-top: 0.4rem;
  letter-spacing: 0.04em;
}

/* Link columns */
.footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

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

.footer__col a {
  display: block;
  font-size: 0.9375rem;
  color: rgba(247, 243, 234, 0.6);
  text-decoration: none;
  padding-block: 0.3rem;
  transition: color 0.2s;
}

.footer__col a:hover { color: var(--color-cream); }

/* CTA column */
.footer__col-desc {
  font-size: 0.875rem;
  color: rgba(247, 243, 234, 0.5);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.footer__create-cta {
  display: inline-flex;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-gold);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__create-cta:hover { color: var(--color-cream); }

/* SVG trail divider */
.footer__trail-wrap {
  overflow: hidden;
  line-height: 0;
  padding-block: 0.25rem;
}

.footer__trail {
  display: block;
  width: 100%;
  height: auto;
}

/* Bottom bar */
.footer__bottom {
  background-color: rgba(0, 0, 0, 0.22);
  padding-block: var(--space-md);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(247, 243, 234, 0.35);
}

@media (max-width: 800px) {
  .footer__body {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer__body {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */

.page-hero {
  background-color: var(--color-forest);
  color: var(--color-cream);
  padding-top: calc(var(--nav-height) + var(--space-xl));
  padding-bottom: var(--space-xl);
  text-align: center;
}

.page-hero__eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.page-hero h1 {
  color: var(--color-cream);
  margin-bottom: var(--space-sm);
}

.page-hero p {
  font-size: 1.0625rem;
  color: rgba(247, 243, 234, 0.7);
  max-width: 52ch;
  margin-inline: auto;
}

/* ============================================================
   HUNT FILTER BAR
   ============================================================ */

.hunt-filters {
  background-color: #fff;
  border-bottom: 1px solid var(--color-mist);
  padding-block: var(--space-md);
  position: sticky;
  top: 65px;
  z-index: 50;
}

.hunt-filters__inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hunt-filters__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-bark);
  white-space: nowrap;
}

.hunt-filters__group {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.filter-chip {
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 400;
  border: 1px solid var(--color-mist);
  background-color: transparent;
  color: var(--color-bark);
  cursor: pointer;
  transition: all 0.15s;
}

.filter-chip:hover,
.filter-chip.is-active {
  background-color: var(--color-forest);
  border-color: var(--color-forest);
  color: var(--color-cream);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-grid__text h2 {
  margin-bottom: var(--space-md);
}

.about-grid__text p {
  color: rgba(61, 43, 31, 0.75);
  margin-bottom: var(--space-md);
  max-width: 50ch;
}

.about-grid__visual {
  background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-moss) 100%);
  border-radius: var(--radius-lg);
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

@media (max-width: 700px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-grid__visual {
    height: 220px;
  }
}

.funhunt-platform {
  background-color: var(--color-forest);
  color: var(--color-cream);
}

.funhunt-platform .section-heading h2 {
  color: var(--color-cream);
}

.funhunt-platform .section-heading p {
  color: rgba(247, 243, 234, 0.7);
}

.platform-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.platform-feature {
  padding: var(--space-lg);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(247, 243, 234, 0.1);
  border-radius: var(--radius-lg);
}

.platform-feature__icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.platform-feature h3 {
  color: var(--color-cream);
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.platform-feature p {
  font-size: 0.9375rem;
  color: rgba(247, 243, 234, 0.65);
}

/* ============================================================
   404 PAGE
   ============================================================ */

@keyframes x-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.2); opacity: 0.75; }
}

.error-page {
  min-height: 100vh;
  background-color: var(--color-forest);
  color: var(--color-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: calc(var(--nav-height) + var(--space-xl));
  padding-bottom: var(--space-2xl);
  gap: var(--space-xl);
}

.error-page__map {
  width: min(90vw, 460px);
  flex-shrink: 0;
}

.error-page__map-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  box-shadow:
    0 4px 32px rgba(0,0,0,0.45),
    0 1px 6px rgba(0,0,0,0.3),
    inset 0 0 0 1px rgba(139,105,20,0.3);
  transform: rotate(-1.5deg);
}

/* Animated X mark */
.map-x {
  transform-origin: center;
  animation: x-pulse 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .map-x { animation: none; }
}

.error-page__content {
  max-width: 44ch;
}

.error-page__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.error-page__content h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-cream);
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.error-page__content p {
  font-size: 1.0625rem;
  color: rgba(247, 243, 234, 0.65);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.error-page__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .error-page {
    gap: var(--space-lg);
  }
  .error-page__map {
    width: min(85vw, 340px);
  }
}

/* ============================================================
   UTILITIES
   ============================================================ */

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

.text-center   { text-align: center; }
.text-gold     { color: var(--color-gold); }
.text-cream    { color: var(--color-cream); }
.mt-sm         { margin-top: var(--space-sm); }
.mt-md         { margin-top: var(--space-md); }
.mt-lg         { margin-top: var(--space-lg); }


/* ============================================================
   HUNT DETAIL PAGE  (hunt.html?id=…)
   ============================================================ */

/* ── Hunt hero ──────────────────────────────────────────────── */

.hunt-detail-hero {
  position: relative;
  background-color: var(--color-forest);
  overflow: hidden;
}

.hunt-detail-hero__illus {
  position: relative;
  width: 100%;
}

.hunt-detail-hero__illus svg {
  width: 100%;
  min-height: 320px;
  max-height: 500px;
  display: block;
}

.hunt-detail-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 35%,
    rgba(28,58,42,0.55) 65%,
    rgba(28,58,42,0.97) 100%
  );
}

/* Info block overlaid at bottom */
.hunt-detail-hero .container {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

.hunt-detail-hero__info {
  padding-bottom: var(--space-xl);
  max-width: 820px;
}

.hunt-detail-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247,243,234,0.6);
  text-decoration: none;
  margin-bottom: var(--space-xs);
  transition: color 0.2s;
}
.hunt-detail-hero__back:hover { color: var(--color-cream); }

.hunt-detail-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--color-cream);
  line-height: 1.1;
  margin: 0 0 var(--space-sm);
}

.hunt-detail-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Tag pills */
.hunt-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: rgba(247,243,234,0.12);
  color: var(--color-cream);
  border: 1px solid rgba(247,243,234,0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hunt-tag--free {
  background: var(--color-gold);
  color: var(--color-forest);
  border-color: var(--color-gold);
  font-weight: 700;
}

.hunt-tag--difficulty {
  background: rgba(116,160,94,0.25);
  border-color: rgba(116,160,94,0.5);
}

/* ── Detail body (two-column layout) ────────────────────────── */

.hunt-detail-body {
  background-color: var(--color-cream);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-2xl);
}

.hunt-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 900px) {
  .hunt-detail-layout {
    grid-template-columns: 1fr;
  }
  .hunt-detail-sidebar {
    order: -1;
  }
}

/* ── Content sections ────────────────────────────────────────── */

.hunt-section {
  margin-bottom: var(--space-xl);
}
.hunt-section:last-child { margin-bottom: 0; }

.hunt-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  color: var(--color-forest);
  margin-bottom: var(--space-sm);
}

.hunt-section p {
  color: var(--color-bark);
  line-height: 1.75;
  margin-bottom: var(--space-sm);
}
.hunt-section p:last-child { margin-bottom: 0; }

.hunt-section__sub {
  font-size: 0.9375rem;
  color: var(--color-moss);
  margin-top: -0.25rem;
  margin-bottom: var(--space-md);
}

/* ── Hunt checklist ──────────────────────────────────────────── */

.hunt-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hunt-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--color-bark);
  line-height: 1.55;
}

.hunt-checklist__icon {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* ── Clue list ───────────────────────────────────────────────── */

.clue-list {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid rgba(28,58,42,0.14);
}

.clue {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: stretch;
  position: relative;
  border-bottom: 1.5px solid rgba(28,58,42,0.08);
  background: #fff;
}
.clue:last-of-type { border-bottom: none; }

.clue__number {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-moss);
  background: rgba(28,58,42,0.05);
  border-right: 1.5px solid rgba(28,58,42,0.08);
  padding: var(--space-sm) 0.5rem;
  text-align: center;
}

.clue__body {
  padding: var(--space-sm) var(--space-md);
}

.clue__text {
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-forest);
  line-height: 1.65;
  margin: 0 0 0.75rem;
}

.clue__hint {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--color-moss);
}

/* Locked clue styles */
.clue--locked {
  background: rgba(247,243,234,0.5);
}
.clue--locked .clue__number {
  opacity: 0.45;
}
.clue__body--blur .clue__text {
  filter: blur(5px);
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  color: var(--color-bark);
  margin-bottom: 0;
}
.clue__lock {
  position: absolute;
  right: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-moss);
  opacity: 0.55;
}

/* Locked state CTA */
.clue-locked-cta {
  background: var(--color-forest);
  color: var(--color-cream);
  padding: var(--space-md) var(--space-lg);
  text-align: center;
}
.clue-locked-cta__count {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}
.clue-locked-cta p {
  font-size: 0.9375rem;
  opacity: 0.8;
  margin-bottom: var(--space-sm);
}
.clue-locked-cta__actions {
  display: flex;
  justify-content: center;
}

/* ── Sticky sidebar ──────────────────────────────────────────── */

.hunt-detail-sidebar {
  position: sticky;
  top: calc(var(--space-md) + 64px);
}

.sidebar-card {
  background: var(--color-forest);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  color: var(--color-cream);
}

.sidebar-card__free {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-forest);
  background: var(--color-gold);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  margin-bottom: var(--space-sm);
}

.sidebar-card__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-cream);
  margin-bottom: 0.375rem;
}

.sidebar-card__sub {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: var(--space-md);
  line-height: 1.55;
}

.app-badges {
  display: flex;
  gap: 0.625rem;
  margin-bottom: var(--space-md);
}

.app-badge {
  flex: 1;
  display: block;
  transition: opacity 0.2s, transform 0.2s;
}
.app-badge:hover { opacity: 0.82; transform: translateY(-1px); }
.app-badge svg   { width: 100%; height: auto; display: block; }

.sidebar-card__meta {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(247,243,234,0.12);
  padding-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.sidebar-card__meta li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.75;
}

/* ── Make it yours banner ────────────────────────────────────── */

.make-it-yours {
  background: var(--color-mist);
  border-top: 1.5px solid rgba(28,58,42,0.1);
  padding-block: var(--space-2xl);
}

.make-it-yours__inner {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-xl);
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .make-it-yours__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .make-it-yours__illus { display: none; }
}

.make-it-yours__illus svg {
  width: 100%;
  height: auto;
}

.make-it-yours__eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.make-it-yours__text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 3vw, 2rem);
  color: var(--color-forest);
  margin-bottom: var(--space-sm);
}

.make-it-yours__text p {
  color: var(--color-bark);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

/* ============================================================
   FOCUS STYLES — WCAG AA visible focus for all interactive elements
   ============================================================ */

/* Remove default outline only when our custom style is applied */
*:focus {
  outline: none;
}

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

/* Buttons already have border-radius — match it */
.btn:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-pill);
}

/* Nav links */
.nav__wordmark:focus-visible,
.nav__right a:focus-visible,
.nav-overlay__nav a:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Hamburger toggle */
.nav__toggle:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* Hunt cards — card is the focusable element via its link */
.hunt-card:focus-within {
  box-shadow: 0 0 0 3px var(--color-gold);
}

/* Footer links */
.site-footer a:focus-visible {
  outline: 3px solid rgba(196, 154, 60, 0.8);
  outline-offset: 3px;
  border-radius: 2px;
}


