/* ===== Design tokens (from Figma) ===== */
:root {
  --ink: #2a3c47;          /* text */
  --ink-soft: #3a4b55;
  --paper: #eae6dc;

  --font-script: "american-scribe", "Pinyon Script", cursive;   /* Adobe Fonts */
  --font-serif: "Cardo", Georgia, "Times New Roman", serif;      /* Google Fonts */

  --pad-x: clamp(24px, 3.8vw, 55px);

  /* envelope motion tuning (translateY as % of the layer's full height) */
  --spring: cubic-bezier(0.34, 1.3, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --card-tuck: 12%;    /* pre-load: card sunk, text hidden */
  --card-rest: -2%;    /* on load: gently risen, names & venues visible */
  --card-hover: -9%;   /* hover: a touch more revealed */
  --card-open: -64%;   /* click: card clears the envelope entirely */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font-serif);
  color: var(--ink);
  background: #6d7f8c;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  padding: 34px var(--pad-x) clamp(20px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  background: #6d7f8c url("assets/bg.jpg") center 40% / cover no-repeat;
}
/* soft vignette to seat the composition */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 42%, transparent 52%, rgba(28, 40, 50, 0.30));
  pointer-events: none;
}
/* white chrome over the painterly scene (soft dark shadow keeps it legible) */
.hero .logo,
.hero .nav-links a,
.hero-footer .logo,
.hero-footer .date {
  color: #f4f2ec;
  text-shadow: 0 1px 14px rgba(18, 28, 38, 0.55), 0 1px 3px rgba(18, 28, 38, 0.45);
}
.hero .nav-links a:hover { border-bottom-color: rgba(244, 242, 236, 0.85); }
.hero .nav-toggle span { background: #f4f2ec; }

/* faint Pride & Prejudice excerpt behind everything */
.pp-quote {
  position: absolute;
  inset: 30px clamp(20px, 5vw, 90px) auto;
  margin: 0 auto;
  max-width: 1300px;
  font-size: clamp(13px, 1.5vw, 22px);
  line-height: 1.3;
  color: #26343d;
  opacity: 0.10;
  filter: blur(1.4px);
  pointer-events: none;
  user-select: none;
}

/* ===== Nav ===== */
.nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  font-family: var(--font-script);
  font-size: clamp(30px, 2.5vw, 38px);
  line-height: 1;
  color: var(--ink);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 40px);
  font-size: clamp(15px, 1.4vw, 20px);
  letter-spacing: -0.02em;
}
.nav-links a { padding-bottom: 3px; transition: opacity 0.2s ease; }
.nav-links a:hover { border-bottom: 1px solid var(--ink); }

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 34px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block;
  width: 27px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.32s var(--ease-out), opacity 0.2s ease;
}

/* ===== Stage (envelope + ticket) ===== */
.stage {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  min-height: min(74vh, 760px);
}

/* ---- Envelope group ---- */
.envelope {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: clamp(6px, 2.4vw, 26px);
  width: clamp(340px, 44vw, 600px);
  transform: translateX(-50%) rotate(-3deg);
  transform-origin: 50% 60%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 420ms var(--spring), opacity 520ms var(--ease-out);
  will-change: transform;
}
.envelope:focus-visible { outline: none; }
.envelope:focus-visible::before {
  content: "";
  position: absolute;
  inset: -14px -10px -6px;
  border: 2px solid rgba(42, 60, 71, 0.55);
  border-radius: 12px;
}

.env-layer {
  position: absolute;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
/* all three layers are pre-aligned on a shared canvas, so they stack
   at the same position — the back sits in flow to define the height */
.env-back  { position: relative; left: 0; top: 0; width: 100%; }
.env-front { left: 0; top: 0; width: 100%; }
.env-card  {
  left: 0; top: 0; width: 100%;
  transform: translateY(var(--card-tuck));
  transition: transform 560ms var(--spring);
  will-change: transform;
}
/* gentle slide-up on load, once the group is in view */
.envelope.is-ready .env-card { transform: translateY(var(--card-rest)); }

/* silhouette shadow lives on the back layer so it hugs the paper shape */
.env-back {
  filter: drop-shadow(0 20px 24px rgba(20, 30, 40, 0.30));
  transition: filter 420ms var(--ease-out);
}

/* Desktop hover / keyboard focus — lift, straighten, reveal */
@media (hover: hover) and (pointer: fine) {
  .envelope:hover,
  .envelope:focus-visible {
    transform: translateX(-50%) translateY(-6px) rotate(-1deg);
  }
  .envelope:hover .env-card,
  .envelope:focus-visible .env-card {
    transform: translateY(var(--card-hover)) scale(1.01);
  }
  .envelope:hover .env-back,
  .envelope:focus-visible .env-back {
    filter: drop-shadow(0 38px 40px rgba(20, 30, 40, 0.36));
  }
}

/* Touch press-confirm */
.envelope.is-press {
  transition: transform 100ms ease-out;
  transform: translateX(-50%) rotate(-3deg) scale(0.97);
}

/* Opening → card clears, envelope eases back and fades */
.envelope.is-open {
  transform: translateX(-50%) translateY(10px) rotate(-1deg) scale(0.96);
  opacity: 0;
  transition: transform 720ms var(--ease-out), opacity 620ms var(--ease-out) 120ms;
  pointer-events: none;
}
.envelope.is-open .env-card {
  transform: translateY(var(--card-open)) scale(1.05);
  transition: transform 720ms var(--ease-out);
}
.envelope.is-open .env-back {
  filter: drop-shadow(0 48px 48px rgba(20, 30, 40, 0.22));
}

/* ---- Keepsakes (map card + ticket): rotation/lift/shadow via vars ---- */
.map-card,
.ticket {
  --ry: 26px;              /* reveal rise (0 once settled) */
  --sh: 0.30;              /* shadow strength */
  --sy: 18px;              /* shadow y-offset */
  position: absolute;
  z-index: 1;
  opacity: 0;
  transform: translateY(var(--ry)) rotate(var(--rot));
  filter: drop-shadow(0 var(--sy) 28px rgba(20, 30, 40, var(--sh)));
  transition: transform 500ms var(--spring), opacity 720ms var(--ease-out),
    filter 420ms var(--ease-out);
  will-change: transform, filter;
  -webkit-tap-highlight-color: transparent;
}
.map-card.is-in,
.ticket.is-in { opacity: 1; --ry: 0px; }

.map-card {
  --rot: -8deg;
  left: clamp(-26px, 0.5vw, 40px);
  bottom: clamp(-18px, 1.5vw, 44px);
  width: clamp(188px, 28vw, 470px);
  transform-origin: 45% 55%;
}
.map-card img { width: 100%; }

.ticket {
  --rot: -7deg;
  right: -4%;
  bottom: clamp(-16px, 0.6vw, 14px);
  width: clamp(300px, 42vw, 600px);
  transform-origin: 60% 50%;
}

/* Desktop: a clear rotate toward upright + lift, like picking it up */
@media (hover: hover) and (pointer: fine) {
  .map-card:hover,
  .map-card:focus-visible {
    transform: translateY(-11px) rotate(-2.5deg) scale(1.035);
    filter: drop-shadow(0 34px 40px rgba(20, 30, 40, 0.40));
    outline: none;
  }
  .ticket:hover,
  .ticket:focus-visible {
    transform: translateY(-11px) rotate(-1.5deg) scale(1.035);
    filter: drop-shadow(0 34px 38px rgba(20, 30, 40, 0.40));
    outline: none;
  }
}

/* ===== Hero footer ===== */
.hero-footer {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4px 26px;
}
.logo--sm { font-size: clamp(26px, 2.2vw, 34px); }
.date {
  font-size: clamp(16px, 1.4vw, 20px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
}

/* ===== Excited / thank-you band ===== */
.excited {
  background: #d9d4c8 url("assets/paper.jpg") center / cover no-repeat;
  padding: clamp(64px, 9vw, 130px) var(--pad-x);
  display: grid;
  gap: clamp(28px, 4vw, 60px);
  grid-template-columns: 1fr;
  align-items: start;
  text-align: left;
}
.excited-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 78px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  max-width: 620px;
  margin: 0;
}
.excited-note {
  max-width: 520px;
  margin: 0;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.5;
  letter-spacing: -0.01em;
}
@media (min-width: 900px) {
  .excited {
    grid-template-columns: 1.1fr 1fr;
    text-align: left;
    align-items: center;
    gap: clamp(48px, 6vw, 120px);
    padding-block: clamp(90px, 10vw, 150px);
  }
  .excited-heading { margin: 0; }
  .excited-note { margin: 0; }
}

/* ===== Scroll reveals ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}
[data-reveal][data-delay="1"] { transition-delay: 0.12s; }
[data-reveal][data-delay="2"] { transition-delay: 0.26s; }
.envelope[data-reveal] { transform: translateX(-50%) rotate(-3deg) translateY(22px); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.envelope[data-reveal].is-visible { transform: translateX(-50%) rotate(-3deg); }

/* ===== Page-transition veil ===== */
.page-fade {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #6d7f8c;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 560ms var(--ease-out), visibility 0s linear 560ms;
}
.page-fade.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 560ms var(--ease-out);
}

/* ===== Responsive ===== */
/* Stack the three keepsakes vertically: envelope → ticket → map card */
@media (max-width: 900px) {
  .stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
  }
  /* the three keepsakes cascade and overlap, like a stack on a desk */
  .envelope {
    order: 1;
    z-index: 1;
    position: relative;
    left: 0;
    top: 0;
    transform: rotate(-3deg);
    margin: clamp(16px, 6vw, 44px) auto 0;
    width: min(86vw, 480px);
  }
  .envelope[data-reveal] { transform: rotate(-3deg) translateY(22px); }
  .envelope[data-reveal].is-visible,
  .envelope.is-visible { transform: rotate(-3deg); }
  .envelope.is-press { transform: rotate(-3deg) scale(0.97); }
  .envelope.is-open { transform: translateY(10px) rotate(-1deg) scale(0.96); }
  .ticket {
    order: 2;
    z-index: 2;
    position: relative;
    right: auto;
    bottom: auto;
    margin: clamp(-128px, -24vw, -66px) auto 0;
    width: min(95vw, 520px);
    --rot: -5deg;
  }
  .map-card {
    order: 3;
    z-index: 3;
    position: relative;
    left: auto;
    bottom: auto;
    margin: clamp(-104px, -19vw, -56px) auto 26px;
    width: min(82vw, 420px);
    --rot: -6deg;
  }
  /* quicker transform response so the scroll-tilt tracks smoothly */
  .map-card,
  .ticket {
    transition: transform 300ms var(--ease-out), opacity 720ms var(--ease-out),
      filter 300ms var(--ease-out);
  }
}

@media (max-width: 640px) {
  .hero { padding-top: 22px; }
  .envelope { width: min(92vw, 460px); }
  .ticket { width: min(97vw, 500px); }
  .map-card { width: min(88vw, 410px); }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .envelope[data-reveal].is-visible { transform: translateX(-50%) rotate(-3deg); }
  .envelope,
  .env-card,
  .env-back,
  .page-fade { transition-duration: 1ms !important; }
  /* keepsakes settle instantly, keep their rotation, no scroll-tilt */
  .map-card,
  .ticket {
    opacity: 1 !important;
    --ry: 0px !important;
    transition-duration: 1ms !important;
  }
}

/* ============================================================
   Schedule page
   ============================================================ */
.page--schedule { background: var(--blue, #7a9bb0); }
.page--schedule { --blue: #7a9bb0; }

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 34px var(--pad-x) clamp(48px, 6vw, 96px);
}

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

/* ---- Page heading ---- */
.sched-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(24px, 4vw, 60px);
  margin-bottom: clamp(28px, 5vw, 64px);
}
.sched-title {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--ink);
  font-size: clamp(92px, 21vw, 420px);
  line-height: 0.9;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}
.sched-sub {
  align-self: flex-end;
  margin-top: clamp(4px, 1vw, 16px);
  max-width: 480px;
  text-align: justify;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  opacity: 0.82;
}
/* Divider between the intro paragraph and the first event */
.sched-rule {
  border: 0;
  border-top: 1px solid rgba(42, 60, 71, 0.22);
  margin: 0 0 clamp(44px, 9vw, 100px);
}
.sched-rule + .event { margin-top: 0; }

/* ---- Event block ---- */
.event {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(36px, 5vw, 110px);
  margin: clamp(68px, 9vw, 140px) 0;
}
.event-copy { max-width: 560px; min-width: 0; }
.event-photos { min-width: 0; }
.event--text-right .event-copy { margin-left: auto; }

.event-label {
  font-size: clamp(15px, 1.2vw, 17px);
  letter-spacing: 0.02em;
  color: var(--ink);
  opacity: 0.85;
  margin-bottom: clamp(16px, 1.9vw, 26px);
}
.event-title {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--ink);
  font-size: clamp(40px, 5.4vw, 78px);
  line-height: 0.92;
  letter-spacing: 0;
}
.event-note {
  margin-top: clamp(20px, 2.6vw, 34px);
  max-width: 548px;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink);
  opacity: 0.9;
}
.event-meta {
  margin-top: clamp(30px, 3.8vw, 50px);
  max-width: 560px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px clamp(30px, 4vw, 68px);
  padding: 16px 2px;
  border-top: 1px solid rgba(42, 60, 71, 0.32);
  border-bottom: 1px solid rgba(42, 60, 71, 0.32);
  font-size: clamp(14px, 1.05vw, 16px);
  letter-spacing: 0.01em;
}
.event-meta dd { color: var(--ink); }

.event-photos img {
  width: 100%;
  height: auto;
}

/* ---- Ceremony divider note ---- */
.ceremony-note {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 60px);
  margin: clamp(40px, 6vw, 90px) auto;
  max-width: 1040px;
  color: var(--ink);
}
.ceremony-note::before,
.ceremony-note::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(42, 60, 71, 0.34);
}
.ceremony-note span {
  font-family: var(--font-script);
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1;
  white-space: nowrap;
}

/* ---- Shared standalone footer ---- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(22px, 3vw, 34px) var(--pad-x);
  background: var(--blue, #7a9bb0);
}
.site-footer .logo { font-size: clamp(26px, 2.2vw, 34px); }
.site-footer .date {
  font-size: clamp(16px, 1.4vw, 20px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
}

/* faint book excerpt woven behind the closing band */
.excited { position: relative; overflow: hidden; }
.excited-quote {
  position: absolute;
  inset: clamp(22px, 3vw, 44px) clamp(24px, 4vw, 70px) auto;
  margin: 0 auto;
  max-width: 1300px;
  font-size: clamp(13px, 1.4vw, 20px);
  line-height: 1.3;
  color: #2a2118;
  opacity: 0.09;
  filter: blur(1.3px);
  pointer-events: none;
  user-select: none;
}
.excited-heading,
.excited-note { position: relative; z-index: 1; }

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .event {
    grid-template-columns: 1fr;
    gap: clamp(24px, 5vw, 40px);
    margin: clamp(48px, 12vw, 80px) 0;
  }
  .event-copy,
  .event--text-right .event-copy { max-width: none; margin: 0; }
  /* photos first on the text-right block reads photo→text; flip to text→photo */
  .event--text-right .event-copy { order: -1; }
  .sched-sub { text-align: left; margin-left: 0; }
  .ceremony-note span { font-size: clamp(26px, 6vw, 40px); white-space: normal; text-align: center; }
}

@media (max-width: 520px) {
  .sched-title { font-size: clamp(44px, 12.5vw, 120px); line-height: 0.9; white-space: normal; }
  .event-title { font-size: clamp(27px, 8vw, 44px); line-height: 1.08; }
  .event-note { max-width: none; }
  .event-meta { gap: 4px 22px; }
}

/* ============================================================
   Mobile navigation (hamburger) + stacked title  ≤720px
   ============================================================ */
.m-only { display: none; }

@media (max-width: 720px) {
  .nav {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
  }
  .nav.is-open { z-index: 100; }
  .nav-toggle { display: flex; position: relative; z-index: 60; }
  .nav .logo { position: relative; z-index: 60; transition: color 0.3s ease; }
  .d-only { display: none; }
  .m-only { display: inline; }

  /* full-screen overlay menu */
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 12vh var(--pad-x) 9vh;
    background: var(--ink);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out), visibility 0s linear 0.4s;
  }
  .nav.is-open .nav-links {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s var(--ease-out);
  }
  .nav-links li { border-top: 1px solid rgba(242, 240, 234, 0.16); }
  .nav-links li:last-child { border-bottom: 1px solid rgba(242, 240, 234, 0.16); }
  .nav-links a {
    display: block;
    font-family: var(--font-script);
    font-size: clamp(46px, 15vw, 82px);
    line-height: 1.02;
    letter-spacing: 0;
    color: #f2f0ea;
    padding: clamp(20px, 5vw, 34px) 0;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  }
  .nav-links a:hover { border-bottom: 0; }
  .nav.is-open .nav-links a { opacity: 1; transform: none; }
  .nav.is-open .nav-links li:nth-child(1) a { transition-delay: 0.08s; }
  .nav.is-open .nav-links li:nth-child(2) a { transition-delay: 0.14s; }
  .nav.is-open .nav-links li:nth-child(3) a { transition-delay: 0.2s; }
  .nav.is-open .nav-links li:nth-child(4) a { transition-delay: 0.26s; }

  /* logo + hamburger sit above the overlay; go light when it opens */
  .nav.is-open .logo { color: #f2f0ea; }
  .nav.is-open .nav-toggle span { background: #f2f0ea; }
  .nav.is-open .nav-toggle span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav.is-open .nav-toggle span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

  .hero .nav { position: relative; }
}

/* Lock scroll behind the open full-screen menu */
body.menu-open { overflow: hidden; }

/* Stacked, left-aligned schedule title on narrower screens */
@media (max-width: 720px) {
  .sched-head { margin-top: clamp(18px, 4vw, 40px); align-items: flex-start; }
  .sched-title { text-align: left; line-height: 0.86; }
  .sched-title .t-the { display: block; margin-left: -0.08em; }
  .sched-title .t-sched { display: block; padding-left: 0.3em; }
  .sched-sub { align-self: flex-start; text-align: left; margin-left: 0; max-width: 420px; }
  .faq-head { justify-content: flex-start; }
}

/* ============================================================
   FAQ page — Questions & Answers
   ============================================================ */
.page--faq { background: #7a9bb0; }

.faq-head {
  display: flex;
  justify-content: center;
  margin-top: clamp(20px, 4vw, 56px);
  margin-bottom: clamp(40px, 6.5vw, 150px);
}
/* The title is an outlined-vector SVG (Figma 48-178) so the bespoke kerning
   holds exactly; it scales to the full width on desktop and mobile alike. */
.faq-title { width: 100%; line-height: 0; }
.faq-title img { display: block; width: 100%; height: auto; }

/* ---- Accordion ---- */
.faq-list { border-top: 1px solid rgba(42, 60, 71, 0.28); }
.faq { border-bottom: 1px solid rgba(42, 60, 71, 0.28); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(22px, 2.6vw, 34px) 4px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  font-family: var(--font-serif);
  -webkit-tap-highlight-color: transparent;
}
.faq-q-text {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease;
}
.faq-q:hover .faq-q-text { opacity: 0.72; }
.faq-q:focus-visible { outline: 2px solid rgba(42, 60, 71, 0.5); outline-offset: 3px; border-radius: 3px; }

/* chevron */
.faq-ico {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}
.faq-ico::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 11px;
  height: 11px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
  transform-origin: 60% 60%;
  transition: transform 0.38s var(--ease-out);
}
.faq-q[aria-expanded="true"] .faq-ico::before { transform: rotate(-135deg); }

/* animated answer panel */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out);
}
.faq-q[aria-expanded="true"] + .faq-a { grid-template-rows: 1fr; }
.faq-a-in { overflow: hidden; }
.faq-a p {
  max-width: 1015px;
  padding: 0 4px clamp(24px, 2.6vw, 34px);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--ink);
  opacity: 0.92;
}
.faq-a a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Signature footer ---- */
.sign-footer {
  position: relative;
  background: var(--ink);
  padding: clamp(20px, 3vw, 40px) var(--pad-x) clamp(16px, 2vw, 28px);
  overflow: hidden;
}
.sign-date {
  position: absolute;
  top: clamp(18px, 2.4vw, 30px);
  right: var(--pad-x);
  font-size: clamp(15px, 1.3vw, 19px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}
.sign-name {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(56px, 13vw, 190px);
  line-height: 1;
  color: var(--light, #b6d4da);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .faq-a { transition: none; }
  .faq-ico::before { transition: none; }
}

@media (max-width: 720px) {
  /* Footer: shrink the signature so the date fits alongside it. */
  .sign-name { font-size: clamp(22px, 6vw, 52px); }

  /* Legibility for the white nav over the home painting: a soft gradient veil at
     the very top rather than solid boxes behind the logo and hamburger. */
  .hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to bottom, rgba(18, 28, 38, 0.42), rgba(18, 28, 38, 0));
    pointer-events: none;
    z-index: 1;
  }

  /* Larger section headings on mobile, closer to the print layout. */
  .event-title { font-size: clamp(34px, 10vw, 58px); line-height: 0.98; }
  .tsection-title { font-size: clamp(28px, 7vw, 42px); }
}

/* ============================================================
   Travel Guide page
   ============================================================ */
.page--travel { background: #7a9bb0; }

.tguide-head {
  display: flex;
  justify-content: center;
  margin-top: clamp(18px, 3.5vw, 48px);
  margin-bottom: clamp(48px, 8vw, 180px);
}
.tguide-title {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--ink);
  font-size: clamp(92px, 21vw, 420px);
  line-height: 0.9;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

/* ---- Section (heading column + content column) ---- */
.tsection {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: clamp(36px, 6vw, 118px);
  align-items: start;
  margin: clamp(44px, 6vw, 82px) 0;
}
.tsection-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(24px, 2.5vw, 31px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.tsection-intro {
  margin-top: clamp(16px, 1.8vw, 24px);
  max-width: 430px;
  font-size: clamp(14px, 1.05vw, 15px);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink);
  opacity: 0.86;
}

.tsection-body {
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 3vw, 40px);
}
.tblock-label {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: clamp(8px, 1vw, 13px);
}
.tblock-text {
  max-width: 600px;
  font-size: clamp(14px, 1.05vw, 15px);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink);
  opacity: 0.86;
}

/* ---- Divider ---- */
.trule {
  border: 0;
  border-top: 1px solid rgba(42, 60, 71, 0.26);
  margin: clamp(36px, 5vw, 66px) 0;
}

/* ---- Hotel cards (external links) ---- */
.hotels {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.8vw, 24px);
}
.hotel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr clamp(200px, 38%, 262px);
  gap: clamp(18px, 2.4vw, 36px);
  align-items: center;
  min-height: 176px;
  padding: clamp(16px, 1.7vw, 24px) clamp(18px, 1.9vw, 26px);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.5s var(--ease-out), background 0.35s ease,
    box-shadow 0.5s var(--ease-out);
}
@media (hover: hover) {
  .hotel:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 46px rgba(20, 30, 40, 0.26);
  }
  .hotel:hover .hotel-img img {
    box-shadow: 0 16px 30px rgba(20, 30, 40, 0.30);
  }
}
.hotel:focus-visible {
  outline: 2px solid rgba(42, 60, 71, 0.55);
  outline-offset: 3px;
}
.hotel-text { min-width: 0; padding-right: 8px; }
.hotel-name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 25px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}
/* price as a small pill below the name */
.hotel-price {
  display: inline-block;
  margin-top: clamp(8px, 1vw, 13px);
  padding: 3px 11px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 2px;
  line-height: 1;
  opacity: 0.75;
}
.hotel-desc {
  margin-top: clamp(12px, 1.5vw, 18px);
  max-width: 280px;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.45;
  color: var(--ink);
  opacity: 0.82;
}
.hotel-img {
  align-self: stretch;
  display: flex;
}
.hotel-img img {
  width: 100%;
  aspect-ratio: 272 / 200;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 12px 24px rgba(20, 30, 40, 0.22);
  transition: box-shadow 0.5s var(--ease-out);
}
/* circular "open" button, top-right corner over the image */
.hotel-go {
  position: absolute;
  top: clamp(12px, 1.3vw, 18px);
  right: clamp(12px, 1.3vw, 18px);
  z-index: 2;
  width: clamp(40px, 3.2vw, 50px);
  height: clamp(40px, 3.2vw, 50px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(248, 249, 247, 0.92);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(20, 30, 40, 0.28);
  transition: background 0.4s var(--ease-out), color 0.4s ease,
    transform 0.5s var(--spring);
}
.hotel-go svg { transition: transform 0.5s var(--spring); }
@media (hover: hover) {
  .hotel:hover .hotel-go {
    background: var(--ink);
    color: #f2f0ea;
    transform: scale(1.08);
  }
  .hotel:hover .hotel-go svg { transform: translate(2px, -2px); }
}

/* elegant, gradual entrance — each card eases up as it enters view */
.hotels .hotel[data-reveal] {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out),
    background 0.35s ease, box-shadow 0.5s var(--ease-out), border-color 0.35s ease;
}
.hotels .hotel[data-reveal].is-visible { opacity: 1; transform: none; }
.hotels .hotel:nth-child(2) { transition-delay: 0.06s; }
.hotels .hotel:nth-child(3) { transition-delay: 0.12s; }
.hotels .hotel:nth-child(4) { transition-delay: 0.06s; }
.hotels .hotel:nth-child(5) { transition-delay: 0.12s; }
.hotels .hotel:nth-child(6) { transition-delay: 0.18s; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .tsection {
    grid-template-columns: 1fr;
    gap: clamp(22px, 4vw, 36px);
    margin: clamp(40px, 9vw, 64px) 0;
  }
  .tsection-intro { max-width: none; }
}
@media (max-width: 620px) {
  .tguide-title { font-size: clamp(46px, 13vw, 120px); white-space: normal; }
  .hotel {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
  }
  .hotel-img { order: -1; }
  .hotel-img img { aspect-ratio: 16 / 10; }
  .hotel-desc { max-width: none; margin-top: 10px; }
}

/* ============================================================
   Things to Do — interactive map + places list
   ============================================================ */
.page--ttd { background: #7a9bb0; overflow-x: clip; }

.ttd-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(18px, 3.5vw, 48px);
  margin-bottom: clamp(36px, 5vw, 90px);
}
.ttd-title {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--ink);
  font-size: clamp(84px, 20vw, 400px);
  line-height: 0.9;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}
.ttd-sub {
  align-self: flex-end;
  margin-top: clamp(4px, 1vw, 14px);
  max-width: 460px;
  text-align: justify;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
  opacity: 0.85;
}

/* ---- Filter chips ---- */
.explore-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(20px, 2.4vw, 32px);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-serif);
  font-size: clamp(13px, 1vw, 15px);
  letter-spacing: -0.01em;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(42, 60, 71, 0.22);
  border-radius: 999px;
  padding: 7px 15px 8px 13px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { background: rgba(255, 255, 255, 0.2); }
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #eef2f1;
}
.chip .cat-ic {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--c, var(--ink));
  transition: color 0.25s ease;
}
.chip.is-active .cat-ic { color: #eef2f1; }

/* ---- Layout: list + map ---- */
.explore-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(24px, 2.6vw, 46px);
  align-items: start;
}
/* The list scrolls with the page; the map column stays sticky beside it. */
.explore-list { padding-right: 2px; }
.explore-map { position: sticky; top: 18px; align-self: start; }
#map {
  height: 80vh;
  min-height: 420px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(20, 30, 40, 0.22);
  background: rgba(255, 255, 255, 0.14);
}
.explore.no-map .explore-body { grid-template-columns: 1fr; }
.map-fallback { padding: 16px; font-size: 14px; opacity: 0.8; }

/* ---- Place cards ---- */
.explore-list { display: flex; flex-direction: column; gap: 14px; padding-top: 16px; }
.place {
  display: flex;
  gap: clamp(12px, 1.2vw, 18px);
  padding: clamp(12px, 1.1vw, 15px);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
/* `.place { display: flex }` would otherwise override the [hidden] attribute,
   so filtered-out cards need this to actually disappear. */
.place[hidden] { display: none; }
/* Selected card state (Figma 46-23): brighter card, soft ring + shadow. */
.place.is-active {
  background: rgba(248, 248, 244, 0.6);
  box-shadow: 0 12px 30px rgba(20, 30, 40, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.55);
}
.place.pulse { animation: place-pulse 0.9s var(--ease-out); }
@keyframes place-pulse {
  0% { background: rgba(255, 255, 255, 0.5); }
  100% { background: rgba(255, 255, 255, 0.32); }
}

/* Media tile — photo when available, else a category-colored icon tile */
.place-media {
  position: relative;
  flex: 0 0 auto;
  width: clamp(88px, 9vw, 120px);
  align-self: stretch;
  min-height: 96px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--c, var(--ink));
  background-image: linear-gradient(150deg, rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f6f4ee;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
div.place-media { cursor: default; }
.place-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.place-media.has-photo img { opacity: 1; }
.place-media.has-photo .media-ic { opacity: 0; }
.media-ic { width: 40%; max-width: 46px; height: auto; opacity: 0.95; transition: opacity 0.3s ease; }
button.place-media:hover .media-ic { transform: scale(1.06); transition: transform 0.25s var(--ease-out); }
button.place-media:hover.has-photo img { transform: scale(1.04); transition: transform 0.4s var(--ease-out); }
.place-media:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* soft shimmer while a Google photo is resolving */
.place-media.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, 0.4) 50%, transparent 75%);
  transform: translateX(-100%);
  animation: media-shimmer 1.3s ease-in-out infinite;
}
@keyframes media-shimmer { to { transform: translateX(100%); } }

.place-body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.place-head {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
div.place-head { cursor: default; }
.place-head:focus-visible { outline: 2px solid rgba(42, 60, 71, 0.5); outline-offset: 3px; border-radius: 4px; }
.place-name {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.place-head:hover .place-name { text-decoration: underline; text-underline-offset: 3px; }

.place-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.place-pill .cat-ic { width: 14px; height: 14px; flex: 0 0 auto; color: var(--c, var(--ink)); }

.place-note {
  margin: 9px 0 0;
  font-size: clamp(13px, 1vw, 14.5px);
  line-height: 1.5;
  color: var(--ink);
  opacity: 0.86;
}
.place-actions { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.place-act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  opacity: 0.82;
  transition: opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.place-act:hover { opacity: 1; }
.place-act .act-ic { width: 15px; height: 15px; flex: 0 0 auto; }
.place-act span { border-bottom: 1px solid rgba(42, 60, 71, 0.32); padding-bottom: 1px; }
.place-act:hover span { border-color: var(--ink); }
.place-act.is-copied { opacity: 1; color: #4a7d5b; }
.place-act.is-copied span { border-color: transparent; }
.place-act:focus-visible { outline: 2px solid rgba(42, 60, 71, 0.5); outline-offset: 3px; border-radius: 3px; }

/* ---- Map pins + popup ---- */
/* Teardrop marker: AdvancedMarkerElement anchors content bottom-center, and the
   pin's tip sits at the bottom-center of the SVG, so it lands on the point. */
.map-pin {
  width: 30px;
  height: 40px;
  cursor: pointer;
  transform-origin: 50% 100%;
  transition: transform 0.16s var(--ease-out);
}
.map-pin .pin-svg { display: block; filter: drop-shadow(0 2px 3px rgba(20, 30, 40, 0.4)); }
.map-pin:hover,
.map-pin.is-active { transform: scale(1.22); z-index: 3; }
.map-pin.is-active .pin-body { stroke: var(--ink); stroke-width: 2.2; }
.map-pin:focus-visible { outline: none; }
.map-pin:focus-visible .pin-body { stroke: var(--ink); stroke-width: 2.4; }

/* Google InfoWindow bubble */
.gm-style .gm-style-iw-c {
  font-family: var(--font-serif);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(20, 30, 40, 0.25);
}
.pin-pop { color: var(--ink); min-width: 140px; padding-right: 6px; }
.pin-pop h4 { font-size: 18px; font-weight: 400; line-height: 1.12; }
.pin-pop-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 2px 9px 2px 7px;
  border-radius: 999px;
  background: rgba(42, 60, 71, 0.08);
  font-size: 11px;
  letter-spacing: 0.02em;
}
.pin-pop-pill .cat-ic { width: 13px; height: 13px; flex: 0 0 auto; color: var(--c, var(--ink)); }
.pin-pop-link {
  display: inline-block;
  margin-top: 9px;
  font-size: 13px;
  border-bottom: 1px solid rgba(42, 60, 71, 0.4);
}

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .explore-body { grid-template-columns: 1fr; gap: 20px; }
  .explore-map { position: relative; top: 0; order: -1; }
  #map { height: 340px; min-height: 0; }
  .explore-list { max-height: none; overflow: visible; }
  .ttd-sub { align-self: flex-start; text-align: left; }
}
@media (max-width: 620px) {
  .ttd-head { display: block; }
  .ttd-title { font-size: clamp(50px, 15vw, 130px); white-space: normal; text-align: left; }
  .ttd-sub { max-width: none; margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .place.pulse { animation: none; }
  .place-media.is-loading::before { animation: none; }
}

/* Schedule venue names link through to the interactive map */
.venue-link {
  color: var(--ink);
  border-bottom: 1px solid rgba(42, 60, 71, 0.4);
  transition: border-color 0.2s ease;
}
.venue-link:hover { border-color: var(--ink); }
