/* ============================================================
   LAMI & ANDREW — WEDDING WEBSITE
   Dartmouth House · Mayfair · 13 June 2026
   style.css — shared styles for index.html and rsvp.html
============================================================ */


/* ============================================================
   1. FONTS & CUSTOM PROPERTIES
============================================================ */

/* Font import — display=swap keeps text readable while fonts load */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400;1,500;1,600&family=Jost:wght@300;400;500&family=Playfair+Display:ital,wght@1,400;1,500&display=swap');

:root {
  /* Palette */
  --ivory:        #F5F0E8;
  --ivory-2:      #EDE5D4;  /* slightly deeper for section alternation */
  --ivory-rule:   #D8CEBC;  /* dividers / borders */
  --onyx:         #0F0F0F;
  --onyx-soft:    #1C1814;  /* body text — lifted for readability */
  --muted:        #5C5247;  /* secondary labels — was too faint, now readable */
  --muted-light:  #8A7E6E;  /* used only for truly tertiary items */
  --gold:         #C9A84C;
  --cherry:       #8B1A2F;
  --dark-bg:      #16110D;  /* RSVP banner background */

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-hero:    'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --section-py:   8rem;
  --container:    1200px;
  --narrow:        760px;

  /* Transitions */
  --ease:         0.3s ease;
}


/* ============================================================
   2. RESET & BASE
============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Prevent overscroll glow on iOS */
  overscroll-behavior-y: none;
}

body {
  background-color: var(--ivory);
  color: var(--onyx-soft);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Prevent rubber-band scroll revealing white under-colour on iOS */
  overscroll-behavior-y: none;
  /* Safe area for iPhone notch / Dynamic Island */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Remove iOS tap highlight on interactive elements */
a, button, label, [role="button"] {
  -webkit-tap-highlight-color: transparent;
}

img,
iframe {
  display: block;
  max-width: 100%;
  height: auto; /* prevent layout shift — never let height be undefined */
}

address {
  font-style: normal;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
}


/* ============================================================
   3. LAYOUT UTILITIES
============================================================ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.container--narrow {
  max-width: var(--narrow);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section {
  padding: var(--section-py) 0;
}

/* ============================================================
   4. SHARED TYPOGRAPHY
============================================================ */

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

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.1;
  color: var(--onyx);
  letter-spacing: -0.01em;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header--center {
  text-align: center;
}

/*
  Optional intro line below a section title — one quiet sentence
  that sets context without competing with the heading.
*/
.section-intro {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 0.9rem;
  line-height: 1.7;
}

.col-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--onyx);
  margin-bottom: 2rem;
}


/* ============================================================
   5. ANIMATIONS — fade up on scroll
============================================================ */

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

/* Hero animates on load via CSS keyframe instead */
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0);    }
}


/* ============================================================
   6. BUTTONS
============================================================ */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--onyx);
  border: 1px solid var(--gold);
  padding: 1rem 2.75rem;
  cursor: pointer;
  background: transparent;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}

.btn:hover,
.btn:focus-visible {
  background-color: var(--cherry);
  border-color: var(--cherry);
  color: var(--ivory);
  outline: none;
}

/* Hero CTA — precise editorial proportions */
.btn--hero {
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  border: 1px solid rgba(201, 168, 76, 0.48);
  padding: 0.8rem 3.5rem;                         /* intentional height, proportionate width */
  color: var(--onyx);
  transition: border-color 0.5s ease, color 0.5s ease, letter-spacing 0.5s ease;
}

.btn--hero:hover,
.btn--hero:focus-visible {
  background-color: transparent;
  border-color: rgba(201, 168, 76, 0.78);
  color: var(--onyx);
  letter-spacing: 0.40em;
  outline: none;
}

.btn--light {
  color: var(--ivory);
  border-color: rgba(245, 240, 232, 0.35);
}

.btn--light:hover,
.btn--light:focus-visible {
  background-color: var(--ivory);
  border-color: var(--ivory);
  color: var(--onyx);
}


/* ============================================================
   7. NAVIGATION
============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 2.5rem;
  /* Safe area for notched iPhones */
  padding-left: max(2.5rem, env(safe-area-inset-left));
  padding-right: max(2.5rem, env(safe-area-inset-right));
  transition: background-color 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background-color: rgba(245, 240, 232, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 2.5rem;
  border-bottom-color: var(--ivory-rule);
}

/* Brand mark */
.nav-monogram {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--onyx);
  flex-shrink: 0;
  transition: color var(--ease);
}

.nav-monogram:hover {
  color: var(--cherry);
}

.nav-pipe {
  color: var(--gold);
  font-weight: 300;
}

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links li a {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--onyx);
  transition: color var(--ease);
}

.nav-links li a:hover,
.nav-links li a:focus-visible {
  color: var(--cherry);
  outline: none;
}

/* RSVP nav button — aligned with nav link scale, clean gold outline */
.nav-cta {
  padding: 0.42rem 1.1rem;
  border: 1px solid rgba(201, 168, 76, 0.48);
  letter-spacing: 0.2em !important;              /* matches sibling links exactly */
  transition: background-color var(--ease), color var(--ease), border-color var(--ease) !important;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background-color: transparent !important;
  border-color: rgba(201, 168, 76, 0.82) !important;
  color: var(--onyx) !important;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 210;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background-color: var(--onyx);
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger → ✕ */
.nav-toggle--open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle--open span:nth-child(2) { opacity: 0; }
.nav-toggle--open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Overlay behind mobile menu */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.35);
  z-index: 190;
  opacity: 0;
  pointer-events: none; /* never block clicks when not visible */
  transition: opacity 0.3s ease;
}

.nav-overlay--visible {
  opacity: 1;
  pointer-events: auto; /* only capture clicks when the drawer is open */
}


/* ============================================================
   8. HERO
============================================================ */

.hero {
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height — prevents iOS browser chrome clipping */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: var(--ivory);
  background-image:
    radial-gradient(ellipse 80% 70% at 50% 45%,
      rgba(242, 236, 224, 0.9) 0%,
      rgba(245, 240, 232, 0)   70%),
    radial-gradient(ellipse 100% 100% at 50% 100%,
      rgba(220, 210, 192, 0.25) 0%,
      rgba(245, 240, 232, 0)    60%);
}

/* Very faint edge vignette */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 110% 110% at 50% 50%,
    transparent 50%,
    rgba(30, 22, 14, 0.055) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 5.5rem 2rem 5rem;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  animation: heroReveal 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ---- Names ---- */
/*
  Playfair Display italic — sharper, more confident than Cormorant at this weight.
  Feels like a fashion masthead: editorial authority without calligraphic softness.
*/
.hero-names {
  font-family: var(--font-hero);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3.2rem, 9.2vw, 6.8rem);       /* restrained focal point — luxurious, not dominant */
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--onyx);
  margin-bottom: 1.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;                                     /* measured gap — neither cramped nor loose */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.hero-line {
  display: block;
  line-height: 1;
}

.hero-amp {
  font-size: 0.82em;
  letter-spacing: -0.02em;
  opacity: 0.9;
}

/* ---- Date + Venue ---- */
.hero-date-block {
  margin-bottom: 2rem;
}

.hero-date {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--onyx);
  margin-bottom: 0.55rem;
}

.hero-venue {
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #52453C;                                 /* slightly deeper than before — improved legibility, still secondary */
  margin-bottom: 0;
}

/* RSVP deadline copy beneath hero CTA */
.hero-deadline {
  font-family: var(--font-body);
  font-size: 0.54rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-top: 0.85rem;
  opacity: 0.85;
}

/* ---- Divider ---- */
.hero-rule {
  width: 15px;
  height: 0.75px;
  background: rgba(201, 168, 76, 0.5);
  margin: 0 auto 2rem;
}


/* ============================================================
   9. OUR STORY
============================================================ */

.section--story {
  border-top: 1px solid var(--ivory-rule);
  padding-top: 7.5rem;
  padding-bottom: 7.5rem;
}

.section--story.section {
  padding-top: 7.5rem;
  padding-bottom: 7.5rem;
}

/*
  Shared section rule — replaces arbitrary numbered labels (I., II., etc.)
  A short gold hairline anchors the heading without decoration for its own sake.
*/
.section-rule {
  width: 24px;
  height: 1px;
  background-color: var(--gold);
  margin-bottom: 1.25rem;
  opacity: 0.7;
}

.section-rule--center {
  margin-left: auto;
  margin-right: auto;
}

.section--story .section-header {
  margin-bottom: 3.25rem;
}

.section--story .section-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
}

/* ---- Grid ---- */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 500px) 1fr;
  gap: clamp(5rem, 7vw, 7rem);
  align-items: center;
}

/* ---- Body text ---- */
.story-text {
  max-width: 500px;
}

/*
  Opening sentence — larger serif italic to anchor the section.
  Reads as an editorial statement before the body copy follows.
*/
.story-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.4;
  color: var(--onyx);
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem !important;
}

.story-text p {
  font-size: 1rem;
  line-height: 1.78;
  color: rgba(28, 24, 20, 0.82);   /* slightly softer than --onyx-soft — more luxurious */
  margin-bottom: 1.6rem;
}

.story-text p:last-child {
  margin-bottom: 0;
}

/* ---- Quote ---- */
/*
  The aside sits at grid center.
  The gold border-left is the dividing line — precise and continuous.
  Padding-left creates the measured gap between rule and text.
  No extra markup, no decorative elements.
*/
.story-aside {
  padding-top: 0;
}

.story-quote {
  border-left: 1px solid rgba(201, 168, 76, 0.7);  /* slightly stronger than before */
  padding-left: 2.25rem;                             /* 36px — wider gap, more authoritative */
}

.story-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;                                  /* was 300 — 400 gives it editorial presence */
  font-size: clamp(1.7rem, 3vw, 2.4rem);            /* larger — a statement, not an aside */
  line-height: 1.5;                                  /* airy but not loose */
  color: rgba(15, 15, 15, 0.82);                    /* darker than before — anchored */
  letter-spacing: -0.01em;
}

/* ---- Couple portrait — Story page ---- */
/*
  B&W editorial portrait. Revealed by JS when src is present.
  Aspect ratio 3:4 — portrait orientation, editorial proportion.
  object-position: center 15% keeps faces in frame.
  Slight vignette via box-shadow inset adds depth without filtering.
*/
.story-photo {
  display: none;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-top: 3rem;
  position: relative;
}

.story-photo.story-photo--loaded {
  display: block;
}

.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  filter: contrast(1.04) brightness(0.98);
}

/* Restrained inner vignette — depth, not effect */
.story-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 40px rgba(15, 10, 6, 0.12);
  pointer-events: none;
}


/* ---- Traditional attire photo ---- */
/*
  Full-bleed portrait with black letterbox bars cropped away.
  object-position: center 18% pulls focus to faces and bodies,
  cutting the dead black at top and bottom of the original frame.
  Displayed below the colour swatches as a visual anchor for the section.
*/
.trad-photo-wrap {
  margin-top: 3.5rem;
  border-top: 1px solid var(--ivory-rule);
  padding-top: 3.5rem;
}

.trad-photo {
  margin: 0 auto;
  max-width: 480px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
}

.trad-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  filter: contrast(1.06) brightness(1.02) saturate(1.05);
}

/* Inner vignette — consistent with portrait treatment */
.trad-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 48px rgba(15, 10, 6, 0.1);
  pointer-events: none;
}

@media (max-width: 640px) {
  .story-photo {
    max-width: 100%;
  }

  .trad-photo {
    max-width: 100%;
  }

  .trad-photo-wrap {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
  }
}


/* ============================================================
   10. THE CELEBRATION
============================================================ */

.section--celebration {
  background-color: var(--ivory-2);
  border-top: 1px solid var(--ivory-rule);
  border-bottom: 1px solid var(--ivory-rule);
}

.celebration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(4rem, 6vw, 6.5rem);
  align-items: start;
}

/* ---- Timeline (left column) ---- */
.timeline {
  margin-top: 0;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--ivory-rule);
}

.timeline-item:first-child {
  padding-top: 0;
}

.timeline-item--last {
  border-bottom: none;
  padding-bottom: 0;
}

.timeline-time {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  min-width: 60px;
  padding-top: 0.28rem;
  flex-shrink: 0;
}

.timeline-event {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--onyx);
  margin-bottom: 0.15rem;
  line-height: 1.3;
}

.timeline-note {
  font-size: 0.8rem;
  color: var(--muted-light);
  line-height: 1.7;
}

/* ---- Venue (right column) ---- */

/* Venue name block */
.venue-block {
  margin-bottom: 2rem;
}

.venue-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  color: var(--onyx);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.venue-address {
  font-size: 0.82rem;
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 2;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* Elegant location card — replaces iframe map */
.location-card {
  border: 1px solid var(--ivory-rule);
  padding: 1.4rem 1.75rem;
  margin-bottom: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background-color: var(--ivory);
}

.location-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.location-card-pin {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.1rem;
  opacity: 0.85;
}

.location-card-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--onyx);
  line-height: 1.2;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.location-card-address {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--muted);
  line-height: 1.6;
}

.location-card-link {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.56rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid rgba(216, 206, 188, 0.7);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color var(--ease), border-color var(--ease);
}

.location-card-link:hover,
.location-card-link:focus-visible {
  color: var(--cherry);
  border-color: var(--cherry);
  outline: none;
}


/* FAQ inline link (used in contact answer) */
.faq-inline-link {
  color: var(--onyx-soft);
  border-bottom: 1px solid var(--ivory-rule);
  padding-bottom: 1px;
  transition: color var(--ease), border-color var(--ease);
}

.faq-inline-link:hover {
  color: var(--cherry);
  border-color: var(--cherry);
}

/* Optional venue image — hidden until src is provided (see index.html) */
.venue-photo {
  display: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 2rem;
}

.venue-photo.venue-photo--loaded {
  display: block;
}

.venue-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Getting Here */
.travel-block {
  border-top: 1px solid var(--ivory-rule);
  padding-top: 1.75rem;
}

.travel-heading {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--onyx);
  margin-bottom: 1.4rem;
}

.travel-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.travel-item {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
}

.travel-mode {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--onyx);
  white-space: nowrap;
  flex-shrink: 0;
}

.travel-detail {
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.72;
  color: var(--muted);
}


/* ---- Subsections: Dress Code + Traditional Attire ---- */
.cel-sub {
  border-top: 1px solid var(--ivory-rule);
  padding-top: 5rem;
  margin-top: 5rem;
}

.cel-sub-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  line-height: 1.05;
  color: var(--onyx);
  letter-spacing: -0.015em;
  margin-bottom: 2.25rem;
}

/* ---- Dress Code ---- */
.dresscode-main {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--onyx);
  margin-bottom: 1.75rem;
}

/*
  Flowing dress code copy — one unified block rather than 3 columns.
  The copy addresses ladies, gentlemen, and the avoid note in natural prose.
*/
.dresscode-flow {
  max-width: 600px;
}

.dresscode-flow p {
  font-size: 0.95rem;
  line-height: 1.95;
  color: var(--onyx-soft);
  margin-bottom: 1rem;
}

.dresscode-flow p:last-child {
  margin-bottom: 0;
}

.dresscode-avoid {
  font-weight: 500;
  color: var(--onyx) !important;
  letter-spacing: 0.01em;
}

.dresscode-trad-note {
  font-size: 0.88rem !important;
  color: var(--muted) !important;
}

.dresscode-intro {
  max-width: 560px;
  font-size: 0.95rem;
  line-height: 1.95;
  color: var(--onyx-soft);
  margin-bottom: 1rem;
}

.dresscode-intro:last-of-type {
  margin-bottom: 3rem;
}

.dresscode-intro--note {
  font-size: 0.88rem;
  color: var(--muted);
}

.dresscode-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--ivory-rule);
  margin-bottom: 3.5rem;
}

.dresscode-col-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--onyx);
  margin-bottom: 1rem;
}

.dresscode-col p {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--onyx-soft);
}

/* Wedding colour swatches */
.palette {
  padding-top: 2.5rem;
  border-top: 1px solid var(--ivory-rule);
}

.palette-label {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 1.5rem;
}

.swatches {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.swatch-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.swatch {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}

.swatch--outlined {
  outline: 2px solid #B8AA96;
}

.swatch-name {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-light);
}

/* ---- Traditional Attire ---- */
.trad-body {
  margin-bottom: 2.5rem;
}

/* Gold hero feature */
.trad-gold-feature {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.5rem;
  background-color: var(--ivory);
  border: 1px solid rgba(201, 168, 76, 0.3);
  margin-bottom: 3rem;
  max-width: 420px;
}

.trad-gold-swatch {
  width: 72px;
  height: 96px;
  background: #C9A84C;
  flex-shrink: 0;
}

.trad-gold-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.trad-gold-label {
  font-family: var(--font-body);
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.trad-gold-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--onyx);
  letter-spacing: -0.01em;
}

/* Sub-label above supporting swatches */
.trad-sub-label {
  font-family: var(--font-body);
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/*
  Supporting colour swatches — tall rectangles in a contained grid.
  Five colours: renders as a single row on desktop, 2-col grid on mobile.
*/
.trad-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.trad-swatch-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}

.trad-swatch {
  display: block;
  width: clamp(52px, 6vw, 64px);
  height: clamp(68px, 8vw, 84px);
  flex-shrink: 0;
}

.trad-swatch-name {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-light);
}


/* ============================================================
   11. WHERE TO STAY
============================================================ */

.section--stay {
  border-top: 1px solid var(--ivory-rule);
}

.stay-intro-block {
  max-width: 560px;
  margin-bottom: 3.5rem;
}

.stay-intro {
  font-size: 0.95rem;
  line-height: 1.95;
  color: var(--onyx-soft);
  margin-bottom: 0.85rem;
}

.stay-intro:last-child {
  margin-bottom: 0;
}

.stay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  border-top: 1px solid var(--ivory-rule);
  padding-top: 2.75rem;
}

/* Hotel category tag */
.stay-hotel-tag {
  font-family: var(--font-body);
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
  opacity: 0.9;
}

.stay-hotel-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  color: var(--onyx);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 0.45rem;
}

.stay-hotel-area {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.stay-hotel-note {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.stay-hotel-link {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid rgba(216, 206, 188, 0.7);
  padding-bottom: 2px;
  transition: color var(--ease), border-color var(--ease);
}

.stay-hotel-link:hover {
  color: var(--cherry);
  border-color: var(--cherry);
}


/* ============================================================
   12. GIFTS
============================================================ */

.section--gifts {
  background-color: var(--ivory-2);
  border-top: 1px solid var(--ivory-rule);
  border-bottom: 1px solid var(--ivory-rule);
  text-align: center;
}

.gifts-intro {
  font-size: 1rem;
  line-height: 1.95;
  color: var(--onyx-soft);
  max-width: 480px;
  margin: 0 auto 3.5rem;
}

.gifts-paths {
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--ivory-rule);
  border-bottom: 1px solid var(--ivory-rule);
  padding: 3rem 0;
}

.gifts-path {
  flex: 1;
  padding: 0 2.5rem;
}

.gifts-path-divider {
  width: 1px;
  background-color: var(--ivory-rule);
  flex-shrink: 0;
  align-self: stretch;
}

.gifts-path-label {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

/*
  Path headline — serif italic, reads as an invitation rather than a UI label.
  Sits between the uppercase category label and the body note.
*/
.gifts-path-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.25;
  color: var(--onyx);
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}

.gifts-path-note {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--onyx-soft);
  margin-bottom: 1.5rem;
}

.gifts-path-link {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid rgba(216, 206, 188, 0.7);
  padding-bottom: 2px;
  transition: color var(--ease), border-color var(--ease);
}

.gifts-path-link:hover {
  color: var(--cherry);
  border-color: var(--cherry);
}


/* ============================================================
   13. FAQ
============================================================ */

.section--faq {
  border-top: 1px solid var(--ivory-rule);
}

.faq-list {
  border-top: 1px solid var(--ivory-rule);
}

.faq-item {
  border-bottom: 1px solid var(--ivory-rule);
}

.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.5rem 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 400;
  color: var(--onyx);
  text-align: left;
  transition: color var(--ease);
}

.faq-btn:hover,
.faq-btn:focus-visible {
  color: var(--cherry);
  outline: none;
}

/* +/× icon */
.faq-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  position: relative;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--gold);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.faq-icon::before {
  width: 1px;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.faq-icon::after {
  height: 1px;
  width: 100%;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.faq-item--open .faq-icon::before {
  transform: translateX(-50%) rotate(90deg);
  background-color: var(--cherry);
}

.faq-item--open .faq-icon::after {
  background-color: var(--cherry);
}

.faq-panel {
  padding-bottom: 1.75rem;   /* was 1.5rem — more breathing room when open */
}

.faq-panel p {
  font-size: 0.92rem;          /* was 0.9rem */
  line-height: 1.95;           /* was 1.9 */
  color: var(--onyx-soft);
}


/* ============================================================
   14. RSVP BANNER
============================================================ */

.rsvp-banner {
  background-color: var(--dark-bg);
  padding: var(--section-py) 0;
  text-align: center;
}

.rsvp-banner-inner {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 2rem;
}

.rsvp-banner-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.75rem;
}

.rsvp-banner-heading {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  line-height: 1.2;
  color: var(--ivory);
  margin-bottom: 1.5rem;
}

.rsvp-banner-deadline {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.75rem;
}


/* ============================================================
   STICKY MOBILE RSVP BAR
   Appears at bottom of viewport on mobile — disappears when user
   scrolls into the RSVP banner section. Lightweight JS toggles
   the .rsvp-float--hidden class.
============================================================ */

.rsvp-float {
  display: none; /* shown via media query below */
}

@media (max-width: 640px) {
  .rsvp-float {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 150;
    padding: 0.85rem 1.25rem;
    padding-bottom: max(0.85rem, env(safe-area-inset-bottom));
    background-color: rgba(245, 240, 232, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--ivory-rule);
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transform: translateY(0);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.35s ease;
    opacity: 1;
  }

  .rsvp-float--hidden {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
  }

  .rsvp-float-text {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.4;
  }

  .rsvp-float-text strong {
    display: block;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.92rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--onyx);
  }

  .rsvp-float-btn {
    flex-shrink: 0;
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.58rem;
    font-weight: 400;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--onyx);
    border: 1px solid var(--gold);
    padding: 0.7rem 1.4rem;
    background: transparent;
    white-space: nowrap;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    transition: background-color var(--ease), color var(--ease), border-color var(--ease);
  }

  .rsvp-float-btn:hover,
  .rsvp-float-btn:active {
    background-color: var(--cherry);
    border-color: var(--cherry);
    color: var(--ivory);
  }

  /* Add bottom padding to body so sticky bar doesn't overlap content */
  body:has(.rsvp-float:not(.rsvp-float--hidden)) {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
}




.footer {
  background-color: var(--ivory);
  border-top: 1px solid var(--ivory-rule);
  padding: 3.5rem 0;
  text-align: center;
}

.footer-monogram {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.footer-names {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--onyx);
  margin-bottom: 0.6rem;
}

.footer-detail {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.footer-hashtag {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.72rem;
  color: var(--muted-light);
  letter-spacing: 0.04em;
  margin-top: 1.1rem;
  opacity: 0.8;
}

.footer-hashtag em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.06em;
}


/* ============================================================
   16. RSVP PAGE — page-level layout
============================================================ */

.rsvp-page {
  min-height: 100vh;
  padding: 9rem 0 4rem;
}

.rsvp-page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.rsvp-page-eyebrow {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.rsvp-page-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.05;
  color: var(--onyx);
  margin-bottom: 1.25rem;
}

.rsvp-page-sub {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-light);   /* tertiary date/venue line */
  margin-bottom: 0.4rem;
}

.rsvp-page-deadline {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Form wrapper */
.form-wrap {
  max-width: 490px;
  margin: 0 auto;
  padding: 0 2rem;
}

.form-rule {
  width: 100%;
  height: 1px;
  background-color: var(--ivory-rule);
  margin: 2rem 0;
  border: none;
}

/* Form group */
.form-group {
  margin-bottom: 1.75rem;
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--onyx);
  margin-bottom: 0.85rem;
}

.form-label .optional {
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  margin-left: 0.35rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ivory-rule);
  padding: 0.55rem 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--onyx-soft);
  line-height: 1.6;
  transition: border-color var(--ease);
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted);
  font-weight: 300;
  opacity: 0.85;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

/* Select custom arrow */
.form-select-wrap {
  position: relative;
}

.form-select-wrap::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* Radio group — attendance */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--onyx);
  transition: color var(--ease);
}

.radio-option:hover {
  color: var(--cherry);
}

.radio-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border: 1px solid var(--ivory-rule);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  transition: border-color var(--ease);
}

.radio-option input[type="radio"]:checked {
  border-color: var(--gold);
}

.radio-option input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background-color: var(--gold);
}

/* Conditional guest field */
.guest-row {
  display: none;
}

.guest-row.guest-row--visible {
  display: block;
}

/* Submit */
.form-submit {
  margin-top: 2rem;
  text-align: center;
}

.btn-submit {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--onyx);
  background: transparent;
  border: 1px solid var(--gold);
  padding: 1rem 2.75rem;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}

.btn-submit:hover,
.btn-submit:focus-visible {
  background-color: var(--cherry);
  border-color: var(--cherry);
  color: var(--ivory);
  outline: none;
}

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 4rem 0;
}

/* RSVP page — restrained footer sign-off */
.rsvp-page ~ .footer {
  padding: 2rem 0;
}

.form-success.form-success--visible {
  display: block;
}

.form-success-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.75rem;
  font-weight: 300;
  color: var(--onyx);
  margin-bottom: 1rem;
}

.form-success-text {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--muted);        /* readable at new #5C5247 */
  max-width: 380px;
  margin: 0 auto 2rem;
}

.return-link {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-light);  /* tertiary — deliberately softer */
  transition: color var(--ease);
}

.return-link:hover {
  color: var(--cherry);
}


/* ============================================================
   17. STORY TEASER (homepage) + STORY PAGE
============================================================ */

/* ---- Homepage teaser ---- */

.section--story-teaser {
  background-color: var(--ivory-2);
  border-top: 1px solid var(--ivory-rule);
  border-bottom: 1px solid var(--ivory-rule);
  text-align: center;
}

.story-teaser {
  max-width: 520px;
  margin: 0 auto;
}

.story-teaser-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 300;
  color: var(--onyx);
  line-height: 1.3;
  margin-bottom: 1.1rem;
}

.story-teaser-body {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.95;
  color: var(--onyx-soft);
  margin-bottom: 2rem;
}

.story-teaser-link {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid rgba(216, 206, 188, 0.7);
  padding-bottom: 2px;
  transition: color var(--ease), border-color var(--ease);
}

.story-teaser-link:hover {
  color: var(--cherry);
  border-color: var(--cherry);
}

/* ---- Story page ---- */

.story-page {
  min-height: 100vh;
  padding: 9rem 0 5rem;
}

.story-page-header {
  text-align: center;
  margin-bottom: 4rem;
}

.story-page-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.story-page-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08;
  color: var(--onyx);
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

.story-page-rule {
  width: 2.5rem;
  height: 1px;
  background-color: var(--gold);
  margin: 0 auto;
  opacity: 0.55;
}

.story-page-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 5rem;
  align-items: start;
  max-width: 860px;
  margin: 0 auto;
}

.story-page-text p {
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 300;
  line-height: 2;
  color: var(--onyx-soft);
  margin-bottom: 1.4rem;
}

.story-page-text .story-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 300;
  color: var(--onyx);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.story-page-aside {
  padding-top: 0.5rem;
  position: sticky;
  top: 7rem;
}

.story-page-return {
  margin-top: 3rem;
}

/* Restrained footer on story page */
.story-page ~ .footer {
  padding: 2rem 0;
}

/* nav active state */
.nav-active {
  color: var(--gold) !important;
}


/* ============================================================
   18. CONTRIBUTION PAGE
============================================================ */

.contrib-page {
  min-height: 100vh;
  padding: 9rem 0 5rem;
  background-color: var(--ivory);
}

.contrib-header {
  max-width: 560px;
  margin: 0 auto 4rem;
  text-align: center;
}

.contrib-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.contrib-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1.08;
  color: var(--onyx);
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

.contrib-rule {
  width: 2.5rem;
  height: 1px;
  background-color: var(--gold);
  margin: 0 auto;
  opacity: 0.55;
}

.contrib-body {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 2rem;
}

.contrib-intro {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--onyx);
  margin-bottom: 1.5rem;
}

.contrib-text {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.95;
  color: var(--onyx-soft);
  margin-bottom: 3.5rem;
}

.contrib-details {
  border-top: 1px solid var(--ivory-rule);
  border-bottom: 1px solid var(--ivory-rule);
  padding: 2.5rem 0;
  margin-bottom: 3rem;
}

.contrib-subheading {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.75rem;
}

.contrib-dl {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contrib-dl-row {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(216, 206, 188, 0.45);
}

.contrib-dl-row:last-child {
  border-bottom: none;
}

.contrib-dt {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
  min-width: 8rem;
}

.contrib-dd {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--onyx);
  letter-spacing: 0.01em;
}

.contrib-dd--copy {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.contrib-dd-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--onyx);
  letter-spacing: 0.04em;
}

.contrib-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0.2rem;
  cursor: pointer;
  color: var(--muted-light);
  transition: color var(--ease);
  line-height: 1;
}

.contrib-copy-btn:hover,
.contrib-copy-btn:focus-visible {
  color: var(--gold);
  outline: none;
}

.contrib-reference {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--muted-light);
  letter-spacing: 0.02em;
  line-height: 1.7;
  margin-top: 1.5rem;
}

.contrib-closing {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--onyx-soft);
  margin-bottom: 3rem;
}

.contrib-return {
  text-align: center;
}

/* Restrained footer on contrib page */
.contrib-page ~ .footer {
  padding: 2rem 0;
}



/* ============================================================
   19. RESPONSIVE — tablet  (≤ 900px)
============================================================ */

@media (max-width: 900px) {
  :root {
    --section-py: 5.5rem;
  }

  /* Story (full page grid) */
  .story-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .story-aside {
    border-top: 1px solid var(--ivory-rule);
    padding-top: 2.5rem;
  }

  .section--story .section-title {
    font-size: clamp(2.6rem, 7vw, 3.8rem);
  }

  /* The Day */
  .celebration-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .travel-item {
    grid-template-columns: 5.5rem 1fr;
  }

  .cel-sub {
    padding-top: 3.5rem;
    margin-top: 3.5rem;
  }

  .dresscode-cols {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem;
  }

  .dresscode-cols .dresscode-col:last-child {
    grid-column: 1 / -1;
  }

  /* Stay */
  .stay-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Fix: last-child shouldn't be half-width in a 2-col grid */
  .stay-grid .stay-hotel:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 1rem);
  }

  /* Story page */
  .story-page-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .story-page-aside {
    position: static;
    border-top: 1px solid var(--ivory-rule);
    padding-top: 2.5rem;
  }
}


/* ============================================================
   20. RESPONSIVE — mobile  (≤ 640px)
============================================================ */

@media (max-width: 640px) {
  :root {
    --section-py: 3.75rem;
  }

  /* ---- Base layout ---- */
  .container,
  .container--narrow {
    padding: 0 1.25rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  /* ---- Navigation ---- */
  .nav {
    padding: 1.1rem max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
  }

  .nav--scrolled {
    padding: 0.85rem max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
  }

  /* Show hamburger, hide desktop links */
  .nav-toggle {
    display: flex;
    padding: 8px;           /* enlarged tap target */
    margin: -8px;           /* offset to preserve visual position */
  }

  .nav-overlay {
    display: block;
  }

  /* Slide-in drawer */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(280px, 82vw);
    background-color: var(--ivory);
    border-left: 1px solid var(--ivory-rule);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    padding: 4.5rem 2rem 3rem;
    transform: translateX(110%);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 205;           /* above nav bar (200) and overlay (190) */
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links--open {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--ivory-rule);
  }

  .nav-links li:last-child {
    border-bottom: none;
    padding-top: 1.75rem;
  }

  .nav-links li a {
    display: block;
    padding: 1rem 0;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    min-height: 44px;       /* WCAG touch target */
    display: flex;
    align-items: center;
  }

  /* RSVP in drawer — gold outline, full-width feel */
  .nav-links li:last-child .nav-cta {
    border: 1px solid rgba(201, 168, 76, 0.55);
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.2em;
    min-height: 44px;
  }

  /* ---- Hero ---- */
  .hero {
    /* dvh is now set in the base rule — no override needed */
    min-height: 100svh; /* svh as fallback for older iOS */
  }

  .hero-inner {
    padding: 6rem 1.25rem 4rem;
  }

  .hero-names {
    /* "Lami &" on line 1, "Andrew" on line 2 preserved by HTML structure */
    font-size: clamp(2.8rem, 13.5vw, 4.4rem);
    margin-bottom: 1.5rem;
    gap: 0.08em;
  }

  .hero-date {
    font-size: 0.65rem;
    letter-spacing: 0.26em;
  }

  .hero-venue {
    font-size: 0.6rem;
    letter-spacing: 0.18em;
  }

  .hero-date-block {
    margin-bottom: 1.5rem;
  }

  .hero-rule {
    margin-bottom: 1.5rem;
  }

  /* ---- Shared section typography ---- */
  .section-title {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .section-intro {
    font-size: 0.82rem;
  }

  /* ---- The Day ---- */
  .cel-sub {
    padding-top: 2.5rem;
    margin-top: 2.5rem;
  }

  .cel-sub-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    margin-bottom: 1.5rem;
  }

  .dresscode-main {
    font-size: clamp(2.4rem, 11vw, 4rem);
  }

  .dresscode-cols {
    grid-template-columns: 1fr;
  }

  .dresscode-cols .dresscode-col:last-child {
    grid-column: auto;
  }

  /* Travel — stack mode/detail vertically */
  .travel-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }

  /* Traditional attire */
  .trad-gold-feature {
    max-width: 100%;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .trad-gold-swatch {
    width: 60px;
    height: 80px;
  }

  .trad-swatches {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 1.25rem 2rem;
    justify-content: start;
  }

  /* ---- Story (full page) ---- */
  .section--story {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .section--story.section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .section--story .section-title {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .story-text p {
    font-size: 0.95rem;
  }

  .story-aside {
    border-top: 1px solid var(--ivory-rule);
    padding-top: 2rem;
  }

  .story-quote {
    padding-left: 1.1rem;
  }

  .story-quote p {
    font-size: clamp(1.3rem, 6vw, 1.6rem);
  }

  /* ---- Story teaser (homepage) ---- */
  .story-teaser-lead {
    font-size: clamp(1.15rem, 5vw, 1.4rem);
  }

  /* ---- Where to Stay ---- */
  .stay-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .stay-hotel {
    padding: 2rem 0;
    border-bottom: 1px solid var(--ivory-rule);
  }

  .stay-hotel:first-child {
    padding-top: 0;
  }

  .stay-hotel:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .stay-grid .stay-hotel:last-child {
    grid-column: auto;
    max-width: 100%;
  }

  /* ---- Gifts ---- */
  .gifts-intro {
    margin-bottom: 2rem;
    font-size: 0.92rem;
  }

  .gifts-paths {
    flex-direction: column;
    padding: 0;
    border-top: none;
    border-bottom: none;
    gap: 0;
  }

  .gifts-path {
    padding: 2rem 0;
    border-top: 1px solid var(--ivory-rule);
    text-align: left;
  }

  .gifts-path:last-of-type {
    border-bottom: 1px solid var(--ivory-rule);
  }

  .gifts-path-divider {
    display: none;
  }

  /* ---- FAQ ---- */
  .faq-btn {
    padding: 1.25rem 0;
    font-size: 1rem;
    gap: 1rem;
    /* Ensure comfortable touch target */
    min-height: 52px;
  }

  .faq-panel p {
    font-size: 0.88rem;
  }

  /* ---- Location card ---- */
  .location-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
  }

  /* ---- Hotel tag ---- */
  .stay-hotel-tag {
    font-size: 0.52rem;
  }

  /* ---- RSVP banner ---- */
  .rsvp-banner-heading {
    font-size: clamp(1.65rem, 7vw, 2.4rem);
  }

  /* ---- RSVP page ---- */
  .rsvp-page {
    padding: 7rem 0 3rem;
  }

  .rsvp-page-header {
    margin-bottom: 2.25rem;
  }

  .form-wrap {
    padding: 0;          /* container handles horizontal padding */
  }

  .form-input,
  .form-textarea,
  .form-select {
    font-size: 1rem;     /* prevent iOS zoom on focus */
    padding: 0.65rem 0;
  }

  .radio-option {
    font-size: 0.95rem;
    min-height: 44px;    /* touch target */
  }

  .radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .btn-submit {
    width: 100%;
    padding: 1rem 1.5rem;
    text-align: center;
  }

  /* ---- Contribution page ---- */
  .contrib-page {
    padding: 7rem 0 3rem;
  }

  .contrib-header {
    margin-bottom: 2.5rem;
    padding: 0 1.25rem;
  }

  .contrib-body {
    padding: 0;          /* container handles padding */
  }

  .contrib-dl-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 1rem 0;
  }

  .contrib-dt {
    min-width: 0;
  }

  /* ---- Story page ---- */
  .story-page {
    padding: 7rem 0 3rem;
  }

  .story-page-header {
    margin-bottom: 2.5rem;
    padding: 0 1.25rem;
  }

  .story-page-grid {
    max-width: 100%;
  }

  .story-page-text p {
    font-size: 0.95rem;
  }

  /* ---- Footer ---- */
  .footer {
    padding: 2.5rem 0;
  }
}


/* ============================================================
   25. REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-inner {
    animation: none;
  }

  .nav,
  .nav-links,
  .rsvp-float,
  .faq-icon::before,
  .faq-icon::after,
  .nav-toggle span {
    transition: none;
  }
}



/* ============================================================
   21. RESPONSIVE — narrow mobile  (≤ 390px)
   Targets iPhone SE, 12 mini, older Androids at 320–390px
============================================================ */

@media (max-width: 390px) {
  .container,
  .container--narrow {
    padding: 0 1rem;
  }

  .hero-inner {
    padding: 5.5rem 1rem 3.5rem;
  }

  .hero-names {
    font-size: clamp(2.6rem, 14vw, 3.6rem);
  }

  .hero-date {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
  }

  .hero-venue {
    font-size: 0.55rem;
    letter-spacing: 0.14em;
  }

  .nav {
    padding: 1rem max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .nav--scrolled {
    padding: 0.8rem max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .nav-links {
    padding: 4rem 1.5rem 2.5rem;
    width: min(260px, 88vw);
  }

  /* Tighten section heading at very small widths */
  .section-title {
    font-size: clamp(1.85rem, 10vw, 2.4rem);
  }

  .cel-sub-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .dresscode-main {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .trad-swatches {
    gap: 0.75rem 1rem;
  }

  /* Trad swatches slightly smaller at 320px */
  .trad-swatch {
    width: 48px;
    height: 62px;
  }

  .trad-gold-swatch {
    width: 52px;
    height: 70px;
  }

  .gifts-intro {
    font-size: 0.88rem;
  }

  .rsvp-banner-heading {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .contrib-header,
  .story-page-header {
    padding: 0 1rem;
  }
}
