/* ==========================================================================
   Aisle to Away — Components
   Shared UI pieces. Requires /css/tokens.css loaded first.
   ========================================================================== */

/* ---------- Premium typography baseline ------------------------------------ */
/* Applied sitewide via :root-level rules. Enables the OpenType features
   Instrument Serif ships with (ligatures, kerning, discretionary-ligatures,
   old-style numerals) and refines default display tracking. */

html {
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5,
.hero h1, .hero-overlay h1,
.editorial-title, .nl-title, .cinematic-text h2,
.guide-h2, .display, .gate-title,
.dest-info h2, .venue-name, .place-name, .hero-badge + h1 {
  font-feature-settings: "kern" 1, "liga" 1, "dlig" 1, "calt" 1, "onum" 1;
  font-optical-sizing: auto;
  text-wrap: balance;
}

/* Display-class headings (hero H1 in particular) deserve tighter tracking. */
.hero h1,
.hero-overlay h1,
.cinematic-text h2,
.display {
  letter-spacing: -0.036em;
  line-height: 0.98;
  font-feature-settings: "kern" 1, "liga" 1, "dlig" 1, "calt" 1, "salt" 1;
}

/* Emphasised italic inside serif headings reads more editorial. */
h1 em, h2 em, h3 em,
.display em, .hero h1 em, .hero-overlay h1 em {
  font-style: italic;
  font-feature-settings: "kern" 1, "liga" 1, "dlig" 1, "calt" 1, "salt" 1;
  color: var(--accent);
}

/* All-caps labels: more air on larger sizes, taut on small. */
.hero-label, .dest-label, .editorial-label, .nl-label,
.stories-label, .section-label, .guide-label, .header-label,
.kicker, .gate-label {
  font-feature-settings: "kern" 1, "ss01" 1;
}

/* ---------- Canonical 3-Tier Button System ------------------------------- */
/* Per design-model.yaml:
   - .btn-primary  → THE committed action per page (ink pill + gold rule)
   - .btn-secondary → main nav actions (text + growing gold rule)
   - .btn-tertiary → ghost / alternative (muted text)
   - .share-channel → outlined pill for grouped share peers
   Legacy aliases at the end of this block keep existing markup working. */

.btn-primary,
.btn-secondary,
.btn-tertiary {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--sans);
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  background: transparent;
  color: inherit;
  transition: background 320ms var(--ease-editorial),
              color 320ms var(--ease-editorial);
}
.btn-primary[disabled],
.btn-secondary[disabled],
.btn-tertiary[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Tier 1 — Primary (the committed action) */
/* Engraved-plaque inversion: tiny label × wide tracking × generous frame.
   Inner 1px bevel (letterpress optical) + arrow motion signature. */
.btn-primary {
  background: var(--ink);
  color: var(--cream);
  padding: 22px 48px;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  transition: background 320ms var(--ease-editorial),
              color 320ms var(--ease-editorial),
              letter-spacing 600ms var(--ease-editorial);
}
.btn-primary > .ln {
  display: inline-block;
  width: auto;
  height: auto;
  background: transparent;
  color: var(--accent);
  font-size: 1em;
  line-height: 1;
  transition: transform 500ms var(--ease-editorial),
              color 320ms var(--ease-editorial);
}
.btn-primary > .ln::before {
  content: '→';
  display: inline-block;
}
.btn-primary:hover:not([disabled]) {
  background: var(--accent);
  letter-spacing: 0.34em;
}
.btn-primary:hover:not([disabled]) > .ln {
  transform: translateX(4px);
  color: var(--cream);
}

/* Tier 2 — Secondary (main nav / important action) */
.btn-secondary {
  color: var(--text1);
  padding: 14px 0;
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  transition: color 320ms var(--ease-editorial),
              letter-spacing 600ms var(--ease-editorial);
}
.btn-secondary > .ln {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  transition: width 500ms var(--ease-editorial);
}
.btn-secondary:hover:not([disabled]) { letter-spacing: 0.18em; }
.btn-secondary:hover:not([disabled]) > .ln { width: 72px; }

/* Tier 3 — Tertiary (ghost / alternative option) */
.btn-tertiary {
  color: var(--text3);
  padding: 8px 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}
.btn-tertiary:hover:not([disabled]) { color: var(--accent); }

/* Share channel pill (grouped peers only — not a hierarchy button) */
.share-channel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border-visible);
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 300ms var(--ease-editorial),
              color 300ms var(--ease-editorial),
              background 300ms var(--ease-editorial);
}
.share-channel:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}

/* Legacy aliases — shared selectors inherit tier styles.
   Existing markup keeps working; new code should use .btn-primary/secondary/tertiary.
   These extend the same declarations above so the LOOK is identical across the site. */

/* All Tier 1 (Primary) aliases */
.hero-cta--primary,
.quiz-promo-cta,
.submit-btn,
.buy-btn,
.lib-state .btn-primary,
.quiz-cta--primary {
  background: var(--ink);
  color: var(--cream);
  padding: 22px 48px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  transition: background 320ms var(--ease-editorial),
              letter-spacing 600ms var(--ease-editorial);
}

/* Re-skin legacy .line hairlines as the canonical arrow motion signature.
   These buttons use `.quiz-promo-cta-line`/`.quiz-cta-line`/`.submit-btn-line`
   instead of `.ln`, so the rules above never matched. */
.quiz-promo-cta-line,
.quiz-cta-line,
.submit-btn-line {
  display: inline-block;
  width: auto;
  height: auto;
  background: transparent !important;
  color: var(--accent);
  font-size: 1em;
  line-height: 1;
  transition: transform 500ms var(--ease-editorial),
              color 320ms var(--ease-editorial);
}
.quiz-promo-cta-line::before,
.quiz-cta-line::before,
.submit-btn-line::before {
  content: '→';
  display: inline-block;
}
.quiz-promo-cta:hover .quiz-promo-cta-line,
.quiz-cta--primary:hover .quiz-cta-line,
.submit-btn:hover .submit-btn-line {
  transform: translateX(4px);
  color: var(--cream);
  width: auto !important;
  background: transparent !important;
}

/* Mobile: shrink engraved-plaque so the label never wraps on narrow screens. */
@media (max-width: 560px) {
  .btn-primary,
  .hero-cta--primary,
  .quiz-promo-cta,
  .submit-btn,
  .lib-state .btn-primary,
  .quiz-cta--primary {
    padding: 20px 28px;
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    gap: 12px;
  }
  .btn.btn--ink,
  .btn.btn--cream {
    --btn-pad-y: 20px;
    --btn-pad-x: 28px;
    --btn-fs: 0.68rem;
    --btn-ls: 0.24em;
  }
  .btn--xl {
    --btn-pad-y: 22px;
    --btn-pad-x: 36px;
    --btn-fs: 0.7rem;
    --btn-ls: 0.28em;
  }
}
.hero-cta--primary > .ln,
.quiz-promo-cta > .ln,
.submit-btn > .ln,
.lib-state .btn-primary > .ln,
.quiz-cta--primary > .ln {
  display: inline-block;
  width: auto;
  height: auto;
  background: transparent;
  color: var(--accent);
  font-size: 1em;
  line-height: 1;
  transition: transform 500ms var(--ease-editorial),
              color 320ms var(--ease-editorial);
}
.hero-cta--primary > .ln::before,
.quiz-promo-cta > .ln::before,
.submit-btn > .ln::before,
.lib-state .btn-primary > .ln::before,
.quiz-cta--primary > .ln::before {
  content: '→';
  display: inline-block;
}
.hero-cta--primary:hover:not([disabled]),
.quiz-promo-cta:hover:not([disabled]),
.submit-btn:hover:not([disabled]),
.lib-state .btn-primary:hover:not([disabled]),
.quiz-cta--primary:hover:not([disabled]) {
  background: var(--accent);
  letter-spacing: 0.34em;
}
.hero-cta--primary:hover:not([disabled]) > .ln,
.quiz-promo-cta:hover:not([disabled]) > .ln,
.submit-btn:hover:not([disabled]) > .ln,
.lib-state .btn-primary:hover:not([disabled]) > .ln,
.quiz-cta--primary:hover:not([disabled]) > .ln {
  transform: translateX(4px);
  color: var(--cream);
}

/* All Tier 2 (Secondary) aliases */
.quiz-cta,
.dest-quiz-link,
.lib-quiz-link,
.gold-link,
.editorial-link,
.about-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  background: transparent;
  color: var(--text1);
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: color 300ms var(--ease-editorial);
}

/* All Tier 3 (Tertiary) aliases */
.hero-cta--ghost,
.quiz-back,
.lib-state .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  background: transparent;
  color: var(--text3);
  border: none;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color 320ms var(--ease-editorial);
}
.hero-cta--ghost:hover:not([disabled]),
.quiz-back:hover:not([disabled]),
.lib-state .btn-ghost:hover:not([disabled]) {
  color: var(--accent);
}

/* Editorial link alias */
.statement-quiz-link {
  /* Already serif italic + rule — maps to .link-editorial. */
}

/* Share channel alias */
.quiz-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border-visible);
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 300ms var(--ease-editorial),
              color 300ms var(--ease-editorial),
              background 300ms var(--ease-editorial);
}
.quiz-share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}

/* ---------- Premium button system ----------------------------------------- */
/* Three variants, one base. Use .btn + a modifier. Safe to layer over legacy
   classes (e.g. class="buy-btn btn btn--ink") without breaking existing CSS. */

.btn {
  --btn-pad-y: 22px;
  --btn-pad-x: 48px;
  --btn-gap: 14px;
  --btn-fs: 0.72rem;
  --btn-ls: 0.32em;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--btn-gap);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-family: var(--sans);
  font-size: var(--btn-fs);
  font-weight: 500;
  letter-spacing: var(--btn-ls);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  background: none;
  color: inherit;
  transition:
    background 420ms var(--ease-editorial),
    color 420ms var(--ease-editorial),
    border-color 420ms var(--ease-editorial),
    transform 420ms var(--ease-editorial),
    box-shadow 420ms var(--ease-editorial),
    letter-spacing 600ms var(--ease-editorial);
  will-change: transform;
}
.btn:focus-visible { outline-offset: 4px; }

/* Ink — filled primary. For the single most important action on a page.
   Subtle rise on hover, gold rule sweeps in under the label. */
.btn--ink {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}
.btn--ink::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 24px;
  height: 1px;
  background: var(--accent);
  transform: translateX(-50%) scaleX(0);
  transition: transform 520ms var(--ease-editorial);
}
.btn--ink:hover {
  transform: translateY(-1px);
  letter-spacing: calc(var(--btn-ls) + 0.02em);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 14px 40px -12px rgba(31, 31, 31, 0.45);
}
.btn--ink:hover::after { transform: translateX(-50%) scaleX(1); }
.btn--ink:active { transform: translateY(0); }

/* Cream — inverse for dark sections. Same mechanics as ink. */
.btn--cream {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}
.btn--cream::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 24px;
  height: 1px;
  background: var(--accent);
  transform: translateX(-50%) scaleX(0);
  transition: transform 520ms var(--ease-editorial);
}
.btn--cream:hover {
  transform: translateY(-1px);
  letter-spacing: calc(var(--btn-ls) + 0.02em);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 14px 40px -12px rgba(0, 0, 0, 0.35);
}
.btn--cream:hover::after { transform: translateX(-50%) scaleX(1); }

/* Size modifier for the single most prominent purchase CTA. */
.btn--xl {
  --btn-pad-y: 26px;
  --btn-pad-x: 72px;
  --btn-fs: 0.76rem;
  --btn-ls: 0.36em;
}

/* ---------- Climate strip -------------------------------------------------- */
/* 12-cell monthly strip: ideal / shoulder / avoid states with hover detail. */

.climate-strip {
  margin: 48px 0 32px;
}
.climate-strip-label {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.climate-months {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
  border: 1px solid var(--border-visible);
  background: var(--border-visible);
}
.climate-cell {
  position: relative;
  background: var(--cream-warm);
  border: none;
  padding: 14px 4px 12px;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing:var(--ls-caps-tight);
  text-transform: uppercase;
  color: var(--text3);
  cursor: pointer;
  transition: background 300ms var(--ease-editorial),
              color 300ms var(--ease-editorial);
}
.climate-cell::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin: 0 auto 8px;
  background: currentColor;
  opacity: 0.35;
  transition: opacity 300ms, transform 300ms var(--ease-editorial);
}
.climate-cell[data-state="ideal"] { color: var(--accent); }
.climate-cell[data-state="ideal"]::before { background: var(--accent); opacity: 1; }
.climate-cell[data-state="shoulder"] { color: var(--accent-soft); }
.climate-cell[data-state="shoulder"]::before { background: var(--accent-soft); opacity: 0.7; }
.climate-cell[data-state="avoid"] { color: var(--text3); }
.climate-cell[data-state="avoid"]::before { background: var(--text3); opacity: 0.25; }

.climate-cell:hover,
.climate-cell:focus-visible,
.climate-cell.is-active {
  background: var(--cream);
  color: var(--text1);
}
.climate-cell:hover::before,
.climate-cell:focus-visible::before,
.climate-cell.is-active::before { transform: scale(1.3); opacity: 1; }

.climate-detail {
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--accent-subtle);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: baseline;
  min-height: 58px;
  transition: opacity 300ms var(--ease-editorial);
}
.climate-detail-month {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--text1);
  letter-spacing: -0.005em;
}
.climate-detail-note {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text2);
}
.climate-detail-state {
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.climate-detail-state[data-state="shoulder"] { color: var(--accent-soft); }
.climate-detail-state[data-state="avoid"] { color: var(--text3); }

.climate-legend {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-visible);
  display: flex;
  gap: 20px 24px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
}
.climate-legend-label {
  color: var(--text3);
  opacity: 0.7;
  margin-right: 4px;
}
.climate-legend-label::after { content: ':'; margin-left: 2px; }
.climate-legend .lg-ideal { color: var(--accent); }
.climate-legend .lg-shoulder { color: var(--accent-soft); }
.climate-legend .lg-avoid { color: var(--text3); }
/* Back-compat: existing templates use plain <span class="lg-*"> */
.climate-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.climate-legend > span.lg-ideal::before,
.climate-legend > span.lg-shoulder::before,
.climate-legend > span.lg-avoid::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

@media (max-width: 640px) {
  .climate-cell { font-size: 0.55rem; padding: 10px 2px 8px; letter-spacing: 0.04em; }
  .climate-cell::before { width: 5px; height: 5px; margin-bottom: 6px; }
  .climate-detail {
    grid-template-columns: 1fr;
    gap: 6px;
    min-height: 0;
  }
  .climate-detail-state { justify-self: start; }
}

/* ---------- Site nav (single source of truth) ----------------------------- */
/* Persistent translucent bar across all pages. Per-page <style> blocks should
   not redefine `nav` rules — variants (e.g. start-planning back link) extend
   via additional classes only. */

nav.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 clamp(20px, 4vw, 64px);
  background: color-mix(in srgb, var(--cream) 70%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid transparent;
  transform: translateY(0);
  transition:
    transform 520ms var(--ease-editorial),
    background 420ms var(--ease-editorial),
    border-color 420ms var(--ease-editorial);
}
nav.site-nav.scrolled {
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  border-bottom-color: var(--border-visible);
  height: 64px;
}
/* Auto-hide on scroll down; reveal on scroll up (Apple/Aman pattern) */
nav.site-nav.nav-hidden {
  transform: translateY(-100%);
}

nav.site-nav a { color: var(--text1); text-decoration: none; }

.site-nav .nav-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing:var(--ls-h3);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  line-height: 1;
  color: var(--text1);
}
.site-nav .nav-logo::before {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: var(--accent);
  opacity: 0.55;
  transition: width 420ms var(--ease-editorial), opacity 420ms var(--ease-editorial);
}
.site-nav:hover .nav-logo::before { width: 32px; opacity: 0.8; }

.site-nav .nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 36px);
  list-style: none;
}
.site-nav .nav-links a {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: 0.005em;
  text-transform: none;
  color: var(--text2);
  position: relative;
  padding: 8px 0;
  transition: color 320ms var(--ease-editorial);
}
.site-nav .nav-links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
  transform: translateX(-50%);
  transition: width 520ms var(--ease-editorial);
}
.site-nav .nav-links a:hover { color: var(--text1); }
.site-nav .nav-links a:hover::after { width: 22px; }
.site-nav .nav-links a[aria-current="page"] { color: var(--text1); }
.site-nav .nav-links a[aria-current="page"]::after { width: 14px; }
.site-nav .nav-links .nav-cta-inline,
.site-nav .nav-links .nav-cta {
  color: var(--accent);
}
.site-nav .nav-links .nav-cta-inline:hover,
.site-nav .nav-links .nav-cta:hover { color: var(--gold-light); }

/* Hamburger (mobile) */
.site-nav .nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 101;
}
.site-nav .nav-toggle span,
.site-nav .nav-toggle span::before,
.site-nav .nav-toggle span::after {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: all 320ms var(--ease-editorial);
  position: relative;
}
.site-nav .nav-toggle span::before,
.site-nav .nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
}
.site-nav .nav-toggle span::before { top: -6px; }
.site-nav .nav-toggle span::after  { top:  6px; }
.site-nav .nav-toggle.open span { background: transparent; }
.site-nav .nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.site-nav .nav-toggle.open span::after  { top: 0; transform: rotate(-45deg); }

/* Back link variant (start-planning, account screens) */
.site-nav .nav-back {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text2);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: color 280ms var(--ease-editorial);
}
.site-nav .nav-back::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--accent);
  transition: width 360ms var(--ease-editorial);
}
.site-nav .nav-back:hover { color: var(--text1); }
.site-nav .nav-back:hover::before { width: 28px; }

/* Default: body gets a 64px top spacer so content sits below the nav. Pages
   with a full-bleed hero opt out via <body class="flush-hero">, letting their
   hero scroll under the translucent bar (Apple-style). */
body { padding-top: 64px; }
body.flush-hero { padding-top: 0; }

@media (max-width: 1100px) {
  .site-nav .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .site-nav .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: color-mix(in srgb, var(--cream) 96%, transparent);
    -webkit-backdrop-filter: saturate(160%) blur(22px);
    backdrop-filter: saturate(160%) blur(22px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--border);
  }
  .site-nav .nav-links.open { display: flex; }
  .site-nav .nav-links li { width: 100%; }
  .site-nav .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
  }
  .site-nav .nav-links a::after { display: none; }
}

/* ---------- Quiz: "Find Your Honeymoon" ---------------------------------- */
/* Reuses the .climate-cell selection pattern, .a2a-progress hairline, and the
   destination card pattern. No new tokens introduced. */

.quiz-progress {
  position: fixed;
  top: 72px;          /* below the fixed nav */
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  z-index: 99;
  pointer-events: none;
}
.quiz-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 60%, transparent), var(--accent) 60%, var(--accent));
  box-shadow: 0 0 6px color-mix(in srgb, var(--accent) 30%, transparent);
  transition: width 620ms var(--ease-editorial);
}

.quiz-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 48px) var(--sp-section-2xl);
}

.quiz-step {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 360ms var(--ease-editorial), transform 360ms var(--ease-editorial);
}
.quiz-step.is-active {
  opacity: 1;
  transform: none;
}
.quiz-step[hidden] { display: none; }

.quiz-eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.quiz-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing:var(--ls-h1);
  color: var(--ink);
  margin-bottom: 20px;
}
.quiz-title em { font-style: italic; color: var(--accent); }

/* Welcome (discovery) step */
.quiz-howit {
  margin: 48px 0 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border-visible);
}
.quiz-howit-label {
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.quiz-howit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.quiz-howit-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.quiz-howit-list li:last-child { border-bottom: none; }
.quiz-howit-num {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: -0.005em;
  opacity: 0.85;
}
.quiz-howit-body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text2);
}
.quiz-howit-body strong {
  font-weight: 500;
  color: var(--text1);
}

.quiz-welcome-cta {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.quiz-welcome-meta {
  font-family: var(--sans);
  font-size: var(--fs-caption);
  color: var(--text3);
  margin: 0;
}

.quiz-q-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: var(--ls-h2);
  color: var(--ink);
  margin-bottom: 14px;
  text-wrap: balance;
}
.quiz-q-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text2);
  margin-bottom: 40px;
  letter-spacing: -0.005em;
  max-width: 52ch;
}
.quiz-q-title + .quiz-q-body { margin-top: 40px; }

/* Cross-fade between questions */
.quiz-step--question .quiz-q-body {
  animation: quiz-q-fade-in 420ms var(--ease-editorial) both;
}
@keyframes quiz-q-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .quiz-step--question .quiz-q-body { animation: none; }
}

/* Slim fading progress hairline at top of quiz page */
.quiz-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  z-index: 90;
  pointer-events: none;
}
.quiz-progress-bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent) 100%);
  transition: width 620ms var(--ease-editorial);
}



.quiz-intro {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 540px;
}

/* Form fields (intro screen) */
.quiz-form { display: flex; flex-direction: column; gap: 24px; }
.quiz-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 540px) {
  .quiz-name-row { grid-template-columns: 1fr; }
}
.quiz-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--sans);
}
.quiz-label {
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text3);
}
.quiz-label-optional {
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--text4);
  font-weight: 400;
  margin-left: 4px;
}
.quiz-field input {
  border: none;
  border-bottom: 1px solid var(--border-input);
  background: transparent;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 12px 0;
  color: var(--ink);
  outline: none;
  transition: border-color 320ms var(--ease-editorial);
}
.quiz-field input:focus { border-bottom-color: var(--accent); }

/* Toggle (same-device) */
.quiz-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text2);
  margin-top: 4px;
}
.quiz-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-toggle-track {
  width: 36px;
  height: 20px;
  background: color-mix(in srgb, var(--ink) 12%, transparent);
  position: relative;
  flex-shrink: 0;
  transition: background 280ms var(--ease-editorial);
}
.quiz-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--cream);
  transition: transform 280ms var(--ease-editorial);
}
.quiz-toggle input:checked + .quiz-toggle-track { background: var(--accent); }
.quiz-toggle input:checked + .quiz-toggle-track .quiz-toggle-knob { transform: translateX(16px); }
.quiz-toggle input:focus-visible + .quiz-toggle-track { outline: 2px solid var(--accent); outline-offset: 4px; }

/* CTA button — text + growing gold hairline (matches .btn--rule) */
.quiz-cta {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 0;
  align-self: flex-start;
  transition: color 280ms var(--ease-editorial);
}
.quiz-cta-line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  transition: width 480ms var(--ease-editorial);
}
.quiz-cta:hover:not([disabled]) .quiz-cta-line { width: 72px; }
.quiz-cta[disabled] { color: var(--text4); cursor: not-allowed; }
.quiz-cta[disabled] .quiz-cta-line { background: var(--border-visible); }

.quiz-back {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text3);
  padding: 14px 0;
  transition: color 280ms var(--ease-editorial);
}
.quiz-back-line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--border-visible);
  transition: background 280ms var(--ease-editorial);
}
.quiz-back:hover { color: var(--text1); }
.quiz-back:hover .quiz-back-line { background: var(--accent); }

.quiz-q-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Pills — clones the climate-cell pattern */
.quiz-q-body { display: flex; flex-direction: column; gap: 32px; }
.quiz-pill-row { display: flex; flex-direction: column; gap: 12px; }
.quiz-pill-row-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--accent);
  margin-bottom: 14px;
  padding-left: 2px;
  line-height: 1;
}
.quiz-pill {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid var(--border-visible);
  padding: 18px 24px 18px 28px;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.45;
  color: var(--text1);
  cursor: pointer;
  overflow: hidden;
  transition: background 360ms var(--ease-editorial),
              border-color 360ms var(--ease-editorial),
              padding-left 420ms var(--ease-editorial),
              color 300ms var(--ease-editorial);
  min-height: 56px;
}
/* Gold slide-in accent on the left edge (hover + selected) */
.quiz-pill::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--accent);
  transition: width 360ms var(--ease-editorial);
}
.quiz-pill:hover {
  background: color-mix(in srgb, var(--cream-warm) 85%, var(--accent) 6%);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border-visible));
  padding-left: 32px;
}
.quiz-pill:hover::before { width: 2px; }
.quiz-pill:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
.quiz-pill[data-state="selected"] {
  background: color-mix(in srgb, var(--cream-warm) 70%, var(--accent) 10%);
  border-color: var(--accent);
  padding-left: 32px;
}
.quiz-pill[data-state="selected"]::before { width: 3px; }

/* Image-pill variant — used for region + vibe questions */
.quiz-pill-row--image {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.quiz-image-pill {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--cream-warm);
  border: 1px solid var(--border-visible);
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  color: inherit;
  overflow: hidden;
  transition: border-color 320ms var(--ease-editorial), transform 320ms var(--ease-editorial);
}
.quiz-image-pill:hover { border-color: var(--text3); }
.quiz-image-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.quiz-image-pill[data-state="selected"] {
  border-color: var(--accent);
  border-width: 1px;
  box-shadow: 0 0 0 3px var(--accent-subtle);
}
.quiz-image-pill-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  filter: saturate(0.88);
  transition: filter 600ms var(--ease-editorial), transform 8s var(--ease-editorial);
}
.quiz-image-pill:hover .quiz-image-pill-img,
.quiz-image-pill[data-state="selected"] .quiz-image-pill-img { filter: saturate(1); }
.quiz-image-pill[data-state="selected"] .quiz-image-pill-img { transform: scale(1.04); }
.quiz-image-pill-body {
  display: block;
  padding: 18px 22px;
  background: var(--cream-warm);
  position: relative;
  z-index: 1;
}
.quiz-image-pill-label {
  display: block;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing:var(--ls-h3);
  color: var(--ink);
}
.quiz-image-pill-caption {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: var(--fs-body-sm);
  line-height: 1.5;
  color: var(--text2);
}
.quiz-image-pill[data-state="selected"]::after {
  content: '';
  position: absolute;
  top: 14px;
  right: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--cream);
  z-index: 2;
}
@media (max-width: 640px) {
  .quiz-pill-row--image { grid-template-columns: 1fr; gap: 16px; }
  .quiz-image-pill-img { aspect-ratio: 5 / 3; }
  .quiz-image-pill-label { font-size: 1.2rem; }
}

/* Same-device dual-input mode: two columns side-by-side */
.quiz-couple-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 720px) {
  .quiz-couple-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* 2x2 axis viz on result page */
.quiz-axis-grid {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  margin: 40px auto 32px;
  border: 1px solid var(--border-visible);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.quiz-axis-cell {
  border: 1px solid var(--border);
  margin: -1px 0 0 -1px;
  padding: 16px;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--text4);
  display: flex;
  align-items: flex-end;
  line-height: 1.2;
}
.quiz-axis-cell[data-active="true"] {
  background: var(--accent-subtle);
  color: var(--accent);
}
/* Axis labels — sit just outside the grid */
.quiz-axis-label {
  position: absolute;
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text3);
  white-space: nowrap;
  z-index: 4;
}
.quiz-axis-label--y-top { top: -22px; left: 50%; transform: translateX(-50%); }
.quiz-axis-label--y-bot { bottom: -22px; left: 50%; transform: translateX(-50%); }
.quiz-axis-label--x-left {
  left: -16px; top: 50%; transform: translate(-100%, -50%);
}
.quiz-axis-label--x-right {
  right: -16px; top: 50%; transform: translate(100%, -50%);
}
.quiz-axis-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px var(--cream), 0 2px 8px rgba(0,0,0,0.12);
  z-index: 2;
}
.quiz-axis-dot--partner { background: var(--ink); }
.quiz-axis-dot-label {
  position: absolute;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text1);
  background: var(--cream);
  padding: 2px 6px;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  z-index: 3;
  box-shadow: 0 0 0 2px var(--cream);
}
.quiz-axis-dot-label--partner { color: var(--text1); }
@media (max-width: 540px) {
  .quiz-axis-grid { max-width: 280px; }
  .quiz-axis-cell { font-size: 0.85rem; padding: 12px; }
}

.quiz-axis-mini {
  margin-top: 32px;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text2);
}

.quiz-disagreement {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text2);
  margin: 24px 0 48px;
  max-width: 56ch;
  letter-spacing: -0.003em;
  padding-left: 20px;
  border-left: 1px solid var(--accent);
}
.quiz-disagreement::before {
  content: '"';
  font-family: var(--serif);
  font-size: 2em;
  line-height: 0;
  vertical-align: -0.35em;
  color: var(--accent);
  opacity: 0.5;
  margin-right: 0.15em;
}

/* Joint result — stagger-reveal each section on load */
.quiz-step--joint > * {
  opacity: 0;
  transform: translateY(8px);
  animation: quiz-joint-rise 560ms var(--ease-editorial) forwards;
}
.quiz-step--joint > *:nth-child(1) { animation-delay: 60ms; }
.quiz-step--joint > *:nth-child(2) { animation-delay: 180ms; }
.quiz-step--joint > *:nth-child(3) { animation-delay: 300ms; }
.quiz-step--joint > *:nth-child(4) { animation-delay: 420ms; }
.quiz-step--joint > *:nth-child(5) { animation-delay: 540ms; }
.quiz-step--joint > *:nth-child(6) { animation-delay: 660ms; }
.quiz-step--joint > *:nth-child(7) { animation-delay: 780ms; }
.quiz-step--joint > *:nth-child(n+8) { animation-delay: 900ms; }
@keyframes quiz-joint-rise {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .quiz-step--joint > * { animation: none; opacity: 1; transform: none; }
}

/* Keepsake card — the result as a print-quality, shareable-looking moment */
.quiz-keepsake {
  position: relative;
  margin: 40px 0 56px;
  padding: 56px clamp(24px, 4vw, 56px);
  background: linear-gradient(180deg, var(--cream-warm), var(--cream));
  border: 1px solid var(--accent);
  text-align: center;
  overflow: hidden;
}
.quiz-keepsake::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--accent);
  opacity: 0.18;
  pointer-events: none;
}
/* Ink-stamp reveal: the frame draws in, text settles afterward */
.quiz-keepsake::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cream);
  transform: scaleX(1);
  transform-origin: right;
  animation: keepsake-wipe 900ms var(--ease-editorial) 400ms forwards;
  pointer-events: none;
}
.quiz-keepsake > * {
  opacity: 0;
  animation: keepsake-settle 620ms var(--ease-editorial) forwards;
}
.quiz-keepsake > *:nth-child(1) { animation-delay: 1100ms; }
.quiz-keepsake > *:nth-child(2) { animation-delay: 1220ms; }
.quiz-keepsake > *:nth-child(3) { animation-delay: 1340ms; }
.quiz-keepsake > *:nth-child(4) { animation-delay: 1460ms; }
@keyframes keepsake-wipe {
  to { transform: scaleX(0); }
}
@keyframes keepsake-settle {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .quiz-keepsake::after { animation: none; opacity: 0; }
  .quiz-keepsake > * { animation: none; opacity: 1; transform: none; }
}

/* Save-as-image action beneath the keepsake */
.quiz-keepsake-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: -24px 0 48px;
  flex-wrap: wrap;
}
.quiz-keepsake-save {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--cream-warm);
  border: 1px solid var(--accent);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  cursor: pointer;
  transition: background 320ms var(--ease-editorial),
              color 320ms var(--ease-editorial),
              transform 320ms var(--ease-editorial);
}
.quiz-keepsake-save:hover {
  background: var(--accent);
  color: var(--cream);
  transform: translateY(-1px);
}
.quiz-keepsake-save[data-saved="true"] { color: var(--accent); }
.quiz-keepsake-save[data-saved="true"]::after { content: ' ✓'; }
.quiz-keepsake-eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.quiz-keepsake-couple {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text2);
  margin-bottom: 16px;
  letter-spacing: -0.005em;
}
.quiz-keepsake-couple em {
  font-style: italic;
  color: var(--accent);
}
.quiz-keepsake-archetype {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: var(--ls-h1);
  color: var(--ink);
  margin-bottom: 20px;
}
.quiz-keepsake-destinations {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--text2);
  letter-spacing: 0;
}
.quiz-keepsake-destinations span {
  color: var(--accent);
  margin: 0 6px;
  opacity: 0.6;
}

/* Result destination cards (mirrors /destinations/index.html .card) */
.quiz-results { display: flex; flex-direction: column; gap: 24px; margin-bottom: 48px; }
.quiz-result-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  background: var(--cream-warm);
  border: 1px solid var(--border-visible);
  padding: 0;
  text-decoration: none;
  color: inherit;
  transition: border-color 320ms var(--ease-editorial);
}
.quiz-result-card:hover { border-color: var(--accent); }
.quiz-result-card-img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  background-size: cover;
  background-position: center;
  filter: saturate(0.9);
}
.quiz-result-card-body { padding: 24px 28px 24px 0; display: flex; flex-direction: column; gap: 6px; }
.quiz-result-card-rank {
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.quiz-result-card-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing:var(--ls-h3);
  color: var(--ink);
  margin: 0;
}
.quiz-result-card-region {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text3);
}
.quiz-result-card-blurb {
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text2);
  margin: 8px 0 12px;
}
.quiz-result-card-tier {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text3);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.quiz-result-card-tier .ln {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  transition: width 480ms var(--ease-editorial);
}
.quiz-result-card:hover .quiz-result-card-tier .ln { width: 56px; }
@media (max-width: 540px) {
  .quiz-result-card { grid-template-columns: 1fr; }
  .quiz-result-card-img { min-height: 220px; }
  .quiz-result-card-body { padding: 24px 24px 28px; }
}

.quiz-result-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* Fact interstitial card (between question blocks) */
.quiz-fact-card {
  background: var(--cream-warm);
  border-top: 1px solid var(--accent);
  padding: clamp(40px, 6vw, 64px) clamp(28px, 5vw, 48px);
  text-align: left;
}
.quiz-fact-stat {
  font-family: var(--serif);
  font-size: var(--fs-display);
  line-height: 0.95;
  letter-spacing: var(--ls-display);
  color: var(--accent);
  margin: 16px 0 24px;
}
.quiz-fact-headline {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing:var(--ls-h3);
  color: var(--ink);
  margin: 0 0 32px;
  text-wrap: balance;
}
.quiz-fact-source {
  font-family: var(--sans);
  font-size: var(--fs-caption);
  letter-spacing: 0.05em;
  color: var(--text3);
  font-style: italic;
  margin: 0 0 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Result-page share buttons */
.quiz-share-row {
  margin: 64px 0 40px;
  padding: 44px 0 40px;
  border-top: 1px solid var(--border-visible);
  border-bottom: 1px solid var(--border-visible);
  text-align: center;
}
.quiz-share-row .quiz-eyebrow {
  margin-bottom: 24px;
  font-size: 0.72rem;
  letter-spacing: var(--ls-eyebrow);
  color: var(--accent);
}
.quiz-share-row::before {
  content: '';
  display: block;
  width: 1px;
  height: 32px;
  background: var(--accent);
  opacity: 0.4;
  margin: 0 auto 24px;
}
.quiz-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 640px;
  margin: 0 auto;
}
.quiz-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: transparent;
  border: 1px solid var(--border-visible);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text2);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 320ms var(--ease-editorial),
              color 320ms var(--ease-editorial),
              background 320ms var(--ease-editorial),
              transform 320ms var(--ease-editorial);
}
.quiz-share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
  transform: translateY(-1px);
}
.quiz-share-btn[data-copied="true"] {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}

/* Share card on initiator-result + pending — editorial double-border frame */
.quiz-share-card {
  position: relative;
  background: var(--cream-warm);
  border: 1px solid var(--accent);
  padding: 40px clamp(24px, 4vw, 44px) 36px;
  margin: 40px 0;
}
.quiz-share-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid var(--accent);
  opacity: 0.15;
  pointer-events: none;
}
.quiz-share-eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--accent);
  margin-bottom: 10px;
  line-height: 1.3;
}
.quiz-share-copy {
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text2);
  margin-bottom: 28px;
  max-width: 52ch;
}
.quiz-share-link-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--accent);
  background: var(--cream);
  transition: border-color 320ms var(--ease-editorial);
}
.quiz-share-link-wrap:focus-within {
  border-color: var(--ink);
}
.quiz-share-link {
  border: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 0.88rem;
  padding: 14px 16px;
  color: var(--text1);
  outline: none;
  min-width: 0;
  letter-spacing: 0.003em;
}
.quiz-share-copy-btn {
  background: transparent;
  border: none;
  border-left: 1px solid var(--accent);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0 22px;
  cursor: pointer;
  transition: color 280ms var(--ease-editorial), background 280ms var(--ease-editorial);
}
.quiz-share-copy-btn:hover { color: var(--cream); background: var(--accent); }
.quiz-share-copy-btn[data-copied="true"] { color: var(--cream); background: var(--accent); }
.quiz-share-copy-btn[data-copied="true"]::after { content: ' ✓'; }
.quiz-share-or {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text3);
  text-align: center;
  margin: 24px 0 20px;
  position: relative;
}
.quiz-share-or::before,
.quiz-share-or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 48px;
  height: 1px;
  background: var(--border-visible);
}
.quiz-share-or::before { left: calc(50% - 80px); }
.quiz-share-or::after { right: calc(50% - 80px); }
.quiz-share-status {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text2);
}
.quiz-share-status[data-state="error"] { color: #C75B4A; }

/* Footer */
.quiz-footer {
  border-top: 1px solid var(--border);
  padding: 32px clamp(20px, 5vw, 48px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--sans);
  font-size: var(--fs-caption);
  color: var(--text3);
}
.quiz-footer-logo {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text1);
  text-decoration: none;
}

/* ---------- View Transitions (progressive enhancement) -------------------- */
@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 320ms;
  animation-timing-function: var(--ease-editorial, ease);
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

/* ---------- Editorial polish ---------------------------------------------- */
/* Old-style numerals for editorial price/stat displays. */
.price,
.bundle-price,
.stat-num,
.guide-card-price {
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1, "pnum" 1;
  font-variant-numeric: oldstyle-nums proportional-nums;
}

/* Slightly warmer body background on light pages for a softer feel. */
body {
  background:
    radial-gradient(ellipse at 50% -10%, color-mix(in srgb, var(--cream) 92%, var(--gold) 8%), transparent 60%),
    var(--cream);
}

/* Softer focus ring — 1px gold rather than harsh 2px */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

/* Editorial body type — tight leading for long-form reading */
body {
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

/* Italic serif punctuation in display headings — subtle editorial flourish */
h1, h2,
.hero h1, .hero-overlay h1,
.nl-title, .editorial-title {
  text-wrap: balance;
  hyphens: none;
}

/* Hairline dividers that fade at the ends — softer than a flat rule */
.rule-fade {
  width: 96px;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--accent) 35%, var(--accent) 65%, transparent);
  opacity: 0.7;
}

/* Image reveals — warmer settle rather than a pop-in */
.article-img img,
.card-img img,
.guide-card-img img,
.hero-slide img,
.hero img {
  transition:
    transform 1200ms var(--ease-editorial),
    filter 800ms var(--ease-editorial);
}

/* Softer section-heading tracking for large serif H2s */
h2 {
  letter-spacing:var(--ls-h2);
}

/* Links inside body copy: gold underline-offset, slower motion */
article a:not([class]),
.content a:not([class]),
.story a:not([class]) {
  color: var(--text1);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 320ms var(--ease-editorial);
}
article a:not([class]):hover,
.content a:not([class]):hover,
.story a:not([class]):hover {
  text-decoration-color: var(--text1);
}

/* ---------- Editorial long-form polish ----------------------------------- */
/* Drop-cap on first paragraph of journal articles */
article.reading > p:first-of-type::first-letter,
.article-body > p:first-of-type::first-letter,
.story > p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 3.4em;
  font-weight: 400;
  float: left;
  line-height: 0.85;
  margin: 0.1em 0.1em 0 0;
  color: var(--accent);
  font-feature-settings: "onum" 1;
}

/* Block quotes — big italic serif with ornamental punctuation */
blockquote,
.pullquote,
.sp-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-quote);
  line-height: 1.5;
  color: var(--text1);
  letter-spacing: -0.005em;
  text-align: center;
  max-width: 680px;
  margin: var(--sp-section-md) auto;
  position: relative;
}
blockquote::before,
.pullquote::before {
  content: '"';
  font-family: var(--serif);
  font-size: 2.4em;
  line-height: 0;
  vertical-align: -0.35em;
  color: var(--accent);
  opacity: 0.5;
  margin-right: 0.08em;
}

/* Subtle corner rounding on imagery wrappers — 3px feels contemporary
   without losing the editorial rectilinear feel */
.card-img,
.article-img,
.guide-card-img,
.quiz-image-pill,
.quiz-image-pill-img,
.hero-slide,
.cover-img,
.dest-card-img,
.result-card-img,
.related-img,
.full-bleed,
.image-block,
.og-image {
  border-radius: 3px;
  overflow: hidden;
}

/* Card image: gentler saturate on rest, full color on hover — more cinematic */
.card-img img,
.article-img img,
.guide-card-img img {
  filter: saturate(0.82);
  transition:
    transform 1200ms var(--ease-editorial),
    filter 900ms var(--ease-editorial);
}
.card:hover img,
.article-item:hover img,
.guide-card:hover img {
  filter: saturate(1.02);
}

/* Section dividers that sit above high-contrast sections */
section + section {
  position: relative;
}

/* Tabular numerals for time/date meta (like "5 min read · Apr 2026") */
.article-meta,
time,
.ft-copy {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Softer dark-section background on newsletter + footer */
.newsletter,
footer {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(184, 132, 94, 0.06), transparent 55%),
    var(--dark-bg-deep);
}

/* Refined focus hover for card containers — gentle rise instead of harsh scale */
.card,
.article-item,
.guide-card {
  transition:
    transform 480ms var(--ease-editorial),
    box-shadow 480ms var(--ease-editorial);
}
.card:hover {
  transform: translateY(-2px);
}
.guide-card:hover {
  transform: translateY(-2px);
}

/* Subtle Ken Burns on hero images for cinematic warmth.
   The hero-slide.active image drifts slowly. */
@keyframes ken-burns {
  0%   { transform: scale(1.0) translate3d(0, 0, 0); }
  100% { transform: scale(1.08) translate3d(-1.2%, -0.8%, 0); }
}
.hero-slide.active img,
.hero > img:not(.no-kb) {
  animation: ken-burns 28s var(--ease-editorial) forwards;
  animation-play-state: running;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.active img,
  .hero > img:not(.no-kb) { animation: none; }
}

/* Section dividers — slim fading gold hairline between major sections */
.statement + section,
.quiz-promo + section,
.destinations + section,
.featured + section,
.editorial-four + section,
.newsletter + footer {
  border-top: none;
}
section:not(:first-of-type)::before {
  content: none;
}

/* Utility: fading hairline rule */
.rule-fade {
  width: 96px;
  height: 1px;
  margin: 0 auto var(--sp-xl);
  background: linear-gradient(90deg, transparent, var(--accent) 35%, var(--accent) 65%, transparent);
  opacity: 0.7;
}

/* Hero dek (subtitle under H1) — tighten typographic hierarchy */
.hero-sub,
.hero-overlay p,
.header-sub {
  font-feature-settings: "kern" 1, "liga" 1, "ss01" 1;
  max-width: 48ch;
}

/* More editorial kerning for small-caps labels */
.hero-label,
.dest-label,
.editorial-label,
.section-label,
.nl-label,
.guide-label,
.header-label,
.header-eyebrow,
.kicker,
.gate-label,
.stories-label {
  font-feature-settings: "kern" 1, "ss01" 1, "c2sc" 1;
}

/* ---------- Canonical footer ---------------------------------------------- */
footer {
  background: var(--dark-bg-deep, #121210);
  color: var(--cream);
  padding: 0 var(--sp-section-sm) 40px;
  border-top: 1px solid var(--accent, #8c5c3c);
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 80px 0 56px;
}
.ft-logo {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin-bottom: 14px;
  letter-spacing:var(--ls-h3);
}
.ft-tagline {
  font-size: 0.8rem;
  color: rgba(250, 248, 244, 0.45);
  line-height: 1.65;
}
.ft-hd {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light, #b8845e);
  margin-bottom: 22px;
}
.ft-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  margin: 0;
}
.ft-links a {
  font-family: var(--serif);
  font-size: 0.98rem;
  color: rgba(250, 248, 244, 0.55);
  text-decoration: none;
  transition: color 320ms var(--ease-editorial, ease);
}
.ft-links a:hover { color: var(--cream); }
.ft-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(250, 248, 244, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ft-copy {
  font-size: 0.72rem;
  color: rgba(250, 248, 244, 0.25);
  letter-spacing: 0.04em;
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; padding: 64px 0 48px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 56px 0 40px; }
  .ft-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
