/* =====================================================================
   Siyabonga & Thobeka — Digital Wedding Invitation
   style.css
   ---------------------------------------------------------------------
   Contents
     1.  Design tokens (colours, fonts, spacing)  ← edit colours here
     2.  Base & reset
     3.  Shared pieces (headings, buttons, ornaments, sprigs)
     3b. Header & page switch (White Wedding ⇄ Traditional)
     4.  Opening envelope screen
     5.  Hero
     6.  Countdown
     7.  Wedding sections (White Wedding + Traditional Wedding / Umabo)
     8.  RSVP form
     9.  Gifts
     10. Footer
     11. Floating music button & toast
     12. Scroll animations & reduced motion
     13. Zulu heritage (traditional page: gates, crest, ihawu, ukhamba)
   ---------------------------------------------------------------------
   Contrast rules used throughout (WCAG AA):
     • Gold, olive and caramel are NEVER used for small text.
     • Text that sits directly on the full sage colour uses --forest-deep.
   ===================================================================== */


/* =====================================================================
   1. DESIGN TOKENS
   ===================================================================== */
:root {
  /* ---- WHITE WEDDING · "Sage Green Wedding" palette ---------------- */
  --ivory:        #F3EDE6;  /* Soft Ivory – main page background            */
  --ivory-light:  #FAF7F2;  /* lighter ivory – card & form surfaces         */
  --ivory-deep:   #E9E0D3;  /* deeper ivory – envelope flap shading          */
  --forest:       #3F4A3C;  /* Deep Forest – headings, body text, buttons    */
  --forest-hover: #333D31;  /* button hover                                  */
  --forest-deep:  #2A3328;  /* text placed ON sage boxes (keeps AA contrast) */
  --olive:        #7B8C6A;  /* Olive Green – accents, icons, borders         */
  --sage:         #A8B5A2;  /* Sage Green – countdown boxes, soft accents    */
  --sage-soft:    #DFE4DA;  /* sage blended into ivory – soft section bg     */
  --gold:         #D4B483;  /* Champagne Gold – lines, frames, seal ONLY     */
  --gold-light:   #EBD6AE;  /* seal highlight                                */
  --gold-deep:    #B8955E;  /* seal shading                                  */
  --gold-shadow:  #8C6C3C;  /* seal deepest shade                            */
  --seal-ink:     #6A4E27;  /* pressed letters in the wax seal               */
  --error:        #8E2F25;  /* form error text                               */

  /* ---- TRADITIONAL WEDDING · Zulu-inspired nude & brown ------------ */
  --nude:         #E9D6C3;  /* Nude – section / panel background            */
  --nude-light:   #F3E7DB;  /* Light Nude – card background                  */
  --brown:        #5A3A28;  /* Brown – headings, buttons                     */
  --brown-hover:  #4A2F20;  /* button hover                                  */
  --brown-dark:   #3B2619;  /* Dark Brown – body text                        */
  --caramel:      #B88A62;  /* Caramel – accent lines & patterns ONLY        */
  --nude-deep:    #DCC2A7;  /* deeper nude – envelope shading                */
  --clay-deep:    #24160E;  /* darkest clay – ukhamba (pot) shadow & opening */
  --bead-light:   #FBF5EC;  /* light beads in the beadwork pattern           */

  /* ---- Fonts ------------------------------------------------------- */
  --font-script: 'Pinyon Script', 'Snell Roundhand', 'Apple Chancery', cursive;
  --font-serif:  'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --font-sans:   'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  /* ---- Layout & effects -------------------------------------------- */
  --header-h:  64px;
  --container: 1120px;
  --gutter:    clamp(1rem, 5vw, 2.5rem);
  --section-y: clamp(4.25rem, 12vw, 7.5rem);
  --radius:    4px;
  --ease:      cubic-bezier(.22, .61, .36, 1);
  --shadow-card: 0 28px 50px -30px rgb(42 51 40 / .38), 0 2px 6px rgb(42 51 40 / .05);
  --shadow-trad: 0 28px 50px -30px rgb(59 38 25 / .45), 0 2px 6px rgb(59 38 25 / .06);

  /* Subtle paper grain (tiny inline SVG noise) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .24 0 0 0 0 .2 0 0 0 0 .15 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- TRADITIONAL PAGE THEME -----------------------------------------
   traditional-wedding.html has <body class="theme-traditional">.
   Every component on that page is styled with the "white wedding" colour
   names, so here they are re-pointed at the traditional palette — the whole
   page (envelope, hero, countdown, RSVP, footer) becomes nude & brown.
   Contrast stays AA: dark brown text on nude, nude text on brown buttons. */
.theme-traditional {
  --ivory:        var(--nude);        /* page background          */
  --ivory-light:  var(--nude-light);  /* cards & form             */
  --ivory-deep:   var(--nude-deep);   /* shading                  */
  --forest:       var(--brown);       /* headings, buttons        */
  --forest-hover: var(--brown-hover);
  --forest-deep:  var(--brown-dark);  /* text on caramel boxes    */
  --olive:        var(--brown);       /* icons, input borders     */
  --sage:         var(--caramel);     /* countdown boxes          */
  --sage-soft:    var(--nude-light);  /* soft section background  */
  --gold:         var(--caramel);     /* lines & frames           */
  --gold-light:   #DDBB98;            /* seal highlight (clay)    */
  --gold-deep:    #96683F;            /* seal shading             */
  --gold-shadow:  #6B4529;            /* seal deepest shade       */
  --seal-ink:     var(--brown-dark);  /* seal letters             */
  --shadow-card:  var(--shadow-trad);
  color: var(--brown-dark);           /* body text                */
}


/* =====================================================================
   2. BASE & RESET
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

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

/* While the envelope is showing, the page underneath can't scroll */
html.is-locked,
html.is-locked body { overflow: hidden; }

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-serif);
  font-size: 1.1875rem;          /* 19px – Cormorant has a small x-height */
  font-weight: 500;
  line-height: 1.6;
  color: var(--forest);
  background-color: var(--ivory);
  background-image: var(--grain);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
strong { font-weight: 600; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
}
[tabindex="-1"]:focus { outline: none; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-y);
}


/* =====================================================================
   3. SHARED PIECES
   ===================================================================== */

/* Small uppercase label — Montserrat with wide letter-spacing */
.eyebrow,
.label {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  line-height: 1.5;
}
.eyebrow {
  margin-bottom: .6rem;
  padding-left: .32em;        /* balances the trailing letter-spacing when centred */
}

/* Script headings — Pinyon Script */
.section-title {
  margin: 0;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.9rem, 11vw, 4.4rem);
  line-height: 1.15;
  color: var(--forest);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.section-lead {
  margin: .9rem auto 0;
  max-width: 34ch;
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
}

/* Leaf ornament divider */
.ornament {
  width: 190px;
  height: 27px;
  margin: 0 auto 1.25rem;
}
.ornament--sm { width: 150px; height: 21px; margin: .85rem auto 0; }

/* Eucalyptus sprigs — decorative, placed per section */
.sprig {
  position: absolute;
  width: 80px;
  height: 210px;
  pointer-events: none;
  overflow: visible;
}

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 50px;
  padding: .8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), box-shadow .25s var(--ease), transform .15s ease;
}
.btn .icon { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background-color: var(--forest);
  color: var(--ivory);
}
.btn--primary:hover { background-color: var(--forest-hover); }

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

.btn--block { display: flex; width: 100%; }

/* Line icons */
.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* =====================================================================
   3b. HEADER — monogram + switch between the two invitation pages
       (White Wedding = index.html · Traditional = traditional-wedding.html)
   ===================================================================== */
html { scroll-padding-top: calc(var(--header-h) + 12px); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  padding: 0 var(--gutter);
  background-color: color-mix(in srgb, var(--ivory) 92%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 70%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform .7s var(--ease), opacity .5s ease, visibility .5s;
}
/* Hidden while the envelope is closed, slides in once it opens */
html.is-locked .site-header {
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
}

.monogram {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-script);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--forest);
  text-decoration: none;
  white-space: nowrap;
}
.monogram span { margin: 0 .08em; font-size: .7em; color: var(--olive); }

.event-tabs {
  display: flex;
  flex: 0 1 340px;
  padding: 4px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background-color: var(--ivory-light);
}
.event-tabs a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 3px 8px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .07em;
  line-height: 1.25;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--forest);
  transition: background-color .2s, color .2s;
}
.event-tabs a span {
  font-family: var(--font-serif);
  font-size: .9rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.event-tabs a[aria-current="page"] {
  background-color: var(--forest);
  color: var(--ivory);
}
.event-tabs a:not([aria-current]):hover { background-color: var(--sage-soft); }
.event-tabs a:focus-visible { outline-offset: 1px; }

@media (max-width: 359px) {
  .site-header { gap: .5rem; padding: 0 .75rem; }
  .monogram { font-size: 1.7rem; }
  .event-tabs a { padding: 3px 5px; letter-spacing: .03em; }
}


/* =====================================================================
   4. OPENING ENVELOPE SCREEN
   ===================================================================== */
.envelope { display: none; }

.js .envelope {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--sage-soft);
  background-image: var(--grain);
}

.envelope__paper {
  --flap-h: clamp(130px, 27vh, 240px);
  --seal-size: clamp(88px, 25vw, 112px);
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: var(--ivory);
  background-image: var(--grain);
}
@supports (height: 1svh) {
  .envelope__paper { --flap-h: clamp(130px, 27svh, 240px); }
}

/* Gold double-line frame */
.envelope__paper::before,
.envelope__paper::after {
  content: "";
  position: absolute;
  z-index: 3;
  pointer-events: none;
  border: 1px solid var(--gold);
}
.envelope__paper::before { inset: 12px; }
.envelope__paper::after  { inset: 17px; opacity: .55; }

/* On larger screens the envelope becomes a card on a sage backdrop */
@media (min-width: 640px) and (min-height: 600px) {
  .envelope__paper {
    --flap-h: clamp(120px, 22vh, 200px);
    width: min(480px, 92vw);
    height: min(800px, 92vh);
    box-shadow: 0 40px 80px -30px rgb(42 51 40 / .45), 0 4px 12px rgb(42 51 40 / .08);
  }
}

.envelope__flap {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: var(--flap-h);
  overflow: visible;
  transform-origin: 50% 0;
  filter: drop-shadow(0 10px 12px rgb(63 74 60 / .14));
}
.envelope__flap-fill { fill: var(--ivory-deep); }
.envelope__flap-line { fill: none; stroke: var(--gold); stroke-width: 1; }

.envelope__seal {
  position: absolute;
  left: 50%;
  top: var(--flap-h);
  z-index: 4;
  width: var(--seal-size);
  height: var(--seal-size);
  transform: translate(-50%, -58%);
}
.envelope__seal .seal {
  position: relative;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 8px rgb(90 62 25 / .32));
}
.sprig--seal-l,
.sprig--seal-r {
  width: 46%;
  height: auto;
  aspect-ratio: 80 / 210;
  top: -8%;
}
.sprig--seal-l { left: -8%;  transform: rotate(-58deg); transform-origin: 50% 100%; }
.sprig--seal-r { right: -8%; transform: scaleX(-1) rotate(-58deg); transform-origin: 50% 100%; }

.envelope__content {
  position: relative;
  z-index: 3;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--flap-h) + var(--seal-size) * .5 + 1.5rem) 2rem calc(2.5rem + env(safe-area-inset-bottom));
}

.envelope__invite {
  font-style: italic;
  font-size: 1.15rem;
}

.envelope__names {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: .5rem 0 .9rem;
  font-family: var(--font-script);
  font-size: clamp(3rem, 14.5vw, 4.4rem);
  line-height: 1.05;
}
.envelope__names .amp {
  font-size: .8em;
  color: var(--olive);         /* large text: olive passes AA-large */
  margin: .05em 0 .1em;
}

.envelope__event {
  margin-bottom: .2rem;
  font-size: 1.2rem;
  font-style: italic;
}
.envelope__dates {
  font-family: var(--font-sans);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  padding-left: .26em;
}

.btn--open {
  margin-top: 1.75rem;
  min-width: 230px;
  min-height: 54px;
  box-shadow: inset 0 0 0 4px var(--forest), inset 0 0 0 5px var(--gold);
}
.btn--open:hover { box-shadow: inset 0 0 0 4px var(--forest-hover), inset 0 0 0 5px var(--gold); }

/* Sprigs in the lower corners */
.sprig--env-bl,
.sprig--env-br {
  bottom: -46px;
  width: 64px;
  height: 168px;
  z-index: 1;
  opacity: .9;
}
.sprig--env-bl { left: 4px;  transform: rotate(-36deg); }
.sprig--env-br { right: 4px; transform: scaleX(-1) rotate(-36deg); }

/* ---- Traditional envelope: brown flap, beadwork along the bottom ---- */
.theme-traditional .envelope__flap-fill { fill: var(--brown); }
.theme-traditional .envelope__flap-line { stroke: var(--caramel); }
.theme-traditional .envelope__flap { filter: drop-shadow(0 10px 14px rgb(59 38 25 / .3)); }
.theme-traditional .envelope__paper::before { inset: 12px 12px 54px; }
.theme-traditional .envelope__paper::after  { inset: 17px 17px 59px; }
.theme-traditional .envelope__content { padding-bottom: calc(2.5rem + 44px + env(safe-area-inset-bottom)); }
.envelope__paper .envelope__beads {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
}

/* ---- Opening animation (classes added by script.js) ---------------- */
.envelope.is-opening .envelope__seal    { animation: seal-lift .6s var(--ease) forwards; }
.envelope.is-opening .envelope__flap    { animation: flap-open .9s .2s var(--ease) forwards; }
.envelope.is-opening .envelope__content { animation: content-rise .9s .15s var(--ease) forwards; }
.envelope.is-opening                    { animation: fade-away .75s .75s ease forwards; }

@keyframes seal-lift {
  0%   { transform: translate(-50%, -58%) scale(1); }
  35%  { transform: translate(-50%, -58%) scale(1.08); }
  100% { transform: translate(-50%, -80%) scale(.7) rotate(-14deg); opacity: 0; }
}
@keyframes flap-open {
  to { transform: perspective(1100px) rotateX(178deg); opacity: 0; }
}
@keyframes content-rise {
  to { transform: translateY(-18px); opacity: 0; }
}
@keyframes fade-away {
  to { opacity: 0; visibility: hidden; }
}


/* =====================================================================
   5. HERO
   ===================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  /* Fills the whole first screen (below the header), content centred */
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 10vw, 5rem) var(--gutter) clamp(4.5rem, 12vw, 6.5rem);
  text-align: center;
  background-color: var(--ivory);
  background-image:
    radial-gradient(ellipse 70% 45% at 50% 40%, color-mix(in srgb, var(--sage) 28%, transparent), transparent 70%),
    var(--grain);
}

.sprig--hero-tl,
.sprig--hero-tr {
  top: -38px;
  width: 78px;
  height: 205px;
  opacity: .85;
}
.sprig--hero-tl { left: -6px;  transform: rotate(-142deg); }
.sprig--hero-tr { right: -6px; transform: scaleX(-1) rotate(-142deg); }

@supports (height: 1svh) {
  .hero { min-height: calc(100svh - var(--header-h)); }
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}

.hero__intro {
  max-width: 30ch;
  margin: .4rem auto 0;
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.45;
}

/* ---- Arch photo ------------------------------------------------------ */
.arch {
  position: relative;
  width: min(84vw, 400px);
  margin: 2.25rem auto 2rem;
}
.arch__frame {
  position: relative;
  padding: 9px;
  border: 1px solid var(--gold);
  border-radius: 999px 999px 0 0;
}
.arch__frame::before {               /* second, outer gold line */
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid var(--gold);
  border-radius: 999px 999px 0 0;
  opacity: .6;
  pointer-events: none;
}
.arch__window {
  position: relative;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  border-radius: 999px 999px 0 0;
  background-color: var(--sage);
  background-image:
    radial-gradient(circle at 50% 36%, color-mix(in srgb, var(--gold-light) 70%, transparent), transparent 46%),
    linear-gradient(180deg, var(--ivory-light) 0%, var(--sage-soft) 38%, var(--sage) 100%);
}
.arch__photo {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 114%;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
}
/* Traditional page photo (back-to-back pose) sits a little lower so the headdress clears the arch */
.theme-traditional .arch__photo { width: 104%; }

.arch__fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding-top: 10%;
  font-family: var(--font-script);
  font-size: clamp(3.5rem, 18vw, 5rem);
  color: var(--forest-deep);
}
.arch.is-fallback picture { display: none; }
.arch.is-fallback .arch__fallback { display: flex; }

.sprig--arch-l,
.sprig--arch-r {
  bottom: -26px;
  width: 70px;
  height: 184px;
}
.sprig--arch-l { left: -40px;  transform: rotate(-24deg); }
.sprig--arch-r { right: -40px; transform: scaleX(-1) rotate(-24deg); }

/* ---- Names ----------------------------------------------------------- */
.hero__names {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  font-weight: 400;
}
.hero__name { display: flex; flex-direction: column; align-items: center; }
.hero__first {
  font-family: var(--font-script);
  font-size: clamp(3.8rem, 18vw, 7.2rem);
  line-height: 1.02;
}
.hero__surname {
  margin-top: .2rem;
  font-family: var(--font-sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .42em;
  text-transform: uppercase;
  padding-left: .42em;
}
.hero__amp {
  margin: .5rem 0 .2rem;
  font-family: var(--font-script);
  font-size: clamp(3.1rem, 14vw, 4.4rem);
  line-height: 1;
  color: var(--olive);           /* large text: olive passes AA-large */
}

/* ---- This page's event & date --------------------------------------- */
.hero__event {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem auto 0;
}
.hero__event .label {               /* event name between two fine lines */
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: .68rem;
  letter-spacing: .26em;
}
.hero__event .label::before,
.hero__event .label::after {
  content: "";
  width: 34px;
  height: 1px;
  background-color: var(--gold);
}
.hero__day {
  margin-top: .7rem;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.2;
}
.hero__date-text {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.25;
}
.hero__meta {
  margin-top: .3rem;
  font-size: 1.1rem;
}
.hero__meta .dot { margin: 0 .4rem; }

/* ---- Scroll cue ------------------------------------------------------ */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  font-family: var(--font-sans);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
  padding-left: .3em;
}
.scroll-cue .icon { width: 20px; height: 20px; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---- Desktop: photo left, words right ------------------------------- */
@media (min-width: 960px) {
  .hero { padding-block: 3.5rem 5.5rem; }
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas:
      "arch ."
      "arch top"
      "arch bottom"
      "arch .";
    column-gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
  }
  .hero__text-top    { grid-area: top; }
  .hero__text-bottom { grid-area: bottom; }
  .arch { grid-area: arch; width: min(100%, 440px); margin: 0 auto; }
  .hero__intro { margin-bottom: 1.25rem; }
  .sprig--hero-tl, .sprig--hero-tr { width: 96px; height: 252px; }
}


/* =====================================================================
   6. COUNTDOWN
   ===================================================================== */
.countdown { padding-top: clamp(3.5rem, 10vw, 6rem); }

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.45rem, 2.4vw, 1rem);
  max-width: 580px;
  margin: 2.25rem auto 0;
}
.countdown__box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.05rem .2rem .9rem;
  border-radius: var(--radius);
  background-color: var(--sage);
  color: var(--forest-deep);
}
.countdown__box::after {           /* fine ivory inner line */
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid color-mix(in srgb, var(--ivory) 60%, transparent);
  border-radius: 2px;
  pointer-events: none;
}
.countdown__num {
  font-size: clamp(2.1rem, 10vw, 3.2rem);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.countdown__label {
  margin-top: .45rem;
  font-family: var(--font-sans);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.countdown__done {
  margin-top: 2rem;
  text-align: center;
  font-family: var(--font-script);
  font-size: clamp(3rem, 12vw, 4.6rem);
  line-height: 1.1;
}
.countdown__caption {
  margin-top: 1.6rem;
  text-align: center;
  font-size: 1.15rem;
  font-style: italic;
}
.countdown__caption .dot { margin: 0 .35rem; }
.countdown__line { display: block; }
.countdown__intro { margin: 3rem 0 0; text-align: center; }
.countdown__intro + .countdown__grid { margin-top: .9rem; }

/* ---- 6b. "Save the Date" month calendar ------------------------------
   Dark card (forest on the White page, brown on the Traditional page),
   built by script.js. The wedding day gets a hand-drawn loop that draws
   itself in; the other wedding day gets a dotted ring. */
.month {
  position: relative;
  max-width: 420px;
  margin: 2.5rem auto 0;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--ivory);
  background-color: var(--forest);
  background-image: var(--grain);
  box-shadow: var(--shadow-card);
}
.month::before,
.month::after {                      /* fine double frame */
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
  border: 1px solid var(--gold);
}
.month::before { inset: 8px; opacity: .8; }
.month::after  { inset: 13px; opacity: .4; }
.month--beads::before { inset: 44px 8px 8px; }
.month--beads::after  { inset: 49px 13px 13px; }
.month__beads { display: block; }

.month__body { position: relative; padding: 2.1rem 1.4rem 1.5rem; }
.month__fallback { text-align: center; font-size: 1.3rem; }

.month__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.month__caption { margin-bottom: 1rem; text-align: center; }
.month__name {
  display: block;
  font-family: var(--font-script);
  font-size: 3.1rem;
  line-height: 1.1;
}
.month__year {
  display: block;
  margin-top: .15rem;
  padding-left: .3em;
  font-family: var(--font-sans);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.month__table th {
  padding: .35rem 0 .55rem;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  font-family: var(--font-sans);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .08em;
}
.month__table td {
  position: relative;
  height: 2.75rem;
  padding: 0;
  text-align: center;
  vertical-align: middle;
  font-size: 1.2rem;
  font-variant-numeric: lining-nums tabular-nums;
  color: color-mix(in srgb, var(--ivory) 80%, transparent);
}
.month__table tbody tr:first-child td { height: 3.2rem; padding-top: .45rem; }
/* Weekend columns softly tinted — both celebrations fall on the weekend */
.month__table .is-weekend { background-color: color-mix(in srgb, var(--ivory) 8%, transparent); }

.month__marked { font-weight: 600; color: var(--ivory); }
.month__date { position: relative; z-index: 1; }
.month__marked--this .month__date { font-size: 1.45rem; }

.month__loop {                       /* the hand-drawn circle */
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(155%, 4rem);
  height: auto;
  aspect-ratio: 1;
  translate: -50% -50%;
  overflow: visible;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.6;
  stroke-linecap: round;
  pointer-events: none;
}
.month__charm {                      /* heart (white) / bead diamond (traditional) */
  position: absolute;
  top: -.15rem;
  right: -.1rem;
  z-index: 2;
  width: 1rem;
  height: 1rem;
  fill: var(--gold);
  transform: rotate(14deg);
}
.month__marked--other::after {       /* dotted ring for the other wedding day */
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.25rem;
  height: 2.25rem;
  translate: -50% -50%;
  border: 1.5px dashed color-mix(in srgb, var(--gold) 85%, transparent);
  border-radius: 50%;
}

/* Draw the loop in once the calendar scrolls into view, then pop the charm */
.js .month .month__loop {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.3s var(--ease) .6s;
}
.js .month.is-visible .month__loop { stroke-dashoffset: 0; }
.js .month .month__charm {
  opacity: 0;
  transform: rotate(14deg) scale(.3);
  transition: opacity .4s ease 1.7s, transform .6s var(--ease) 1.7s;
}
.js .month.is-visible .month__charm { opacity: 1; transform: rotate(14deg) scale(1); }

.month__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem 1.4rem;
  margin: 1rem 0 0;
  padding: .75rem 0 0;
  border-top: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  list-style: none;
}
.month__legend li,
.month__legend a {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  font-size: 1.05rem;
  line-height: 1.2;
  text-align: left;
}
.month__legend a { color: inherit; text-decoration: none; }
.month__legend a:hover > span:nth-child(2) { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.month__legend small {
  display: block;
  font-family: var(--font-sans);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.month__legend-date {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  font-weight: 600;
  font-variant-numeric: lining-nums;
}
.month__legend .is-other .month__legend-date { border-style: dashed; }
.month :focus-visible { outline-color: var(--ivory); }
.nowrap { white-space: nowrap; }


/* =====================================================================
   7. WEDDING SECTIONS
      7a. shared detail card  ·  7b. White Wedding (sage)
      7c. Traditional Wedding / Umabo (Zulu-inspired nude & brown)
   ===================================================================== */
.wedding {
  position: relative;
  overflow: hidden;
}

/* ---- 7a. Shared detail card ----------------------------------------- */
.event {
  position: relative;
  max-width: 640px;
  margin: 2.75rem auto 0;
}
.event__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 3rem clamp(1.4rem, 6vw, 3rem) 2.5rem;
}

/* Detail rows (icon + label + value) */
.event__details { margin: 0; }
.detail { position: relative; padding-left: 3.4rem; }
.detail + .detail { margin-top: .9rem; padding-top: 1.9rem; }
.detail__label {
  margin-bottom: .15rem;
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.detail__icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: .55rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
}
.detail + .detail .detail__icon { top: 1.9rem; }
.detail__value {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.45;
}
.detail__value--song { font-style: italic; }
.detail__note {
  display: block;
  margin-top: .2rem;
  font-size: 1.05rem;
  font-style: italic;
}

/* Colour swatches */
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.1rem;
  margin: .45rem 0 0;
  padding: 0;
  list-style: none;
}
.swatch {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.1rem;
}
.swatch__dot {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  background-color: var(--c);
  box-shadow: 0 0 0 2px var(--ivory-light), 0 0 0 3px var(--gold);
}

/* Closing ornament above the buttons */
.event__body > .event__end { margin: 0 auto; padding-top: 2.25rem; box-sizing: content-box; }

/* Buttons sit side by side when there's room, stacked when there isn't */
.event__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 196px), 1fr));
  gap: .75rem;
  padding-top: 1.5rem;
}
.event__actions .btn { padding-inline: .85rem; letter-spacing: .12em; }

/* ---- 7b. WHITE WEDDING section (sage palette, leaves, gold frame) --- */
.wedding--white {
  background-color: var(--sage-soft);
  background-image: var(--grain);
}

.event--white {
  background-color: var(--ivory-light);
  background-image: var(--grain);
  box-shadow: var(--shadow-card);
}
.event--white::before,
.event--white::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid var(--gold);
}
.event--white::before { inset: 10px; }
.event--white::after  { inset: 15px; opacity: .55; }

.event--white .detail__icon { color: var(--olive); }
.event--white .detail + .detail::before {
  content: "";
  position: absolute;
  top: .3rem;
  left: 3.4rem;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.sprig--card-l,
.sprig--card-r {
  top: -68px;
  width: 50px;
  height: 132px;
  z-index: 2;
}
.sprig--card-l { left: -20px;  transform: rotate(-55deg); }
.sprig--card-r { right: -20px; transform: scaleX(-1) rotate(-55deg); }

/* ---- 7c. TRADITIONAL WEDDING section (Zulu-inspired) ---------------- */
.wedding--traditional {
  color: var(--brown-dark);
  background-color: var(--nude);
  /* woven-mat texture (icansi-inspired lattice) + paper grain */
  background-image:
    repeating-linear-gradient(45deg,  color-mix(in srgb, var(--caramel) 10%, transparent) 0 1px, transparent 1px 15px),
    repeating-linear-gradient(-45deg, color-mix(in srgb, var(--caramel) 10%, transparent) 0 1px, transparent 1px 15px),
    var(--grain);
}
.wedding__inner { padding-block: var(--section-y); }

.wedding--traditional .eyebrow,
.wedding--traditional .section-title,
.wedding--traditional .detail__label { color: var(--brown); }
.wedding--traditional :focus-visible { outline-color: var(--brown); }

/* Beadwork borders running along the top and bottom of the section,
   finished with a dark-brown band and a fine caramel line */
.beadwork {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 28px;
  box-shadow: 0 3px 0 var(--brown-dark), 0 6px 0 var(--nude), 0 7px 0 var(--caramel);
}
.beadwork--bottom { transform: scaleY(-1); }   /* mirrored, so the band faces inwards */

.bead-divider {
  width: 150px;
  height: 20px;
  margin: .9rem auto 0;
}
.section-head .bead-divider { margin: .5rem auto .25rem; }

/* Detail card: light nude, double caramel line, square corners (bold geometry) */
.event--traditional {
  background-color: var(--nude-light);
  background-image: var(--grain);
  border: 1px solid var(--caramel);
  box-shadow: var(--shadow-trad);
}
.event--traditional::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--caramel);
  opacity: .5;
  pointer-events: none;
}

.event--traditional .detail__icon {
  color: var(--brown);
  border-color: var(--caramel);
  border-radius: 0;
  transform: rotate(45deg) scale(.86);          /* diamond-shaped icon frame */
}
.event--traditional .detail__icon use { transform: rotate(-45deg); transform-box: view-box; transform-origin: 50% 50%; }

/* Beadwork diamond motif between details (pure CSS, uses the palette variables) */
.event--traditional .detail + .detail::before {
  content: "";
  position: absolute;
  top: .3rem;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    var(--caramel) 12%, var(--caramel) calc(50% - 34px),
    transparent calc(50% - 34px), transparent calc(50% + 34px),
    var(--caramel) calc(50% + 34px), var(--caramel) 88%,
    transparent);
}
.event--traditional .detail + .detail::after {
  content: "";
  position: absolute;
  top: calc(.3rem - 5px);
  left: calc(50% - 5.5px);
  width: 11px;
  height: 11px;
  transform: rotate(45deg);
  background-color: var(--caramel);
  box-shadow:
    inset 0 0 0 3px var(--brown),
    10px -10px 0 -3px var(--brown-dark),
    -10px 10px 0 -3px var(--brown-dark),
    17px -17px 0 -4px var(--caramel),
    -17px 17px 0 -4px var(--caramel);
}

.event--traditional .swatch__dot { box-shadow: 0 0 0 2px var(--nude-light), 0 0 0 3px var(--caramel); border-radius: 2px; transform: rotate(45deg) scale(.86); }

.event--traditional .btn--primary { background-color: var(--brown); color: var(--nude-light); }
.event--traditional .btn--primary:hover { background-color: var(--brown-hover); }
.event--traditional .btn--outline { color: var(--brown); border-color: var(--brown); }
.event--traditional .btn--outline:hover { background-color: var(--brown); color: var(--nude-light); }
.event--traditional .btn { border-radius: 0; }


/* ---- 7d. VENUE — embedded Google Map + directions ------------------- */
.venue { overflow: hidden; }

.venue__layout {
  display: grid;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 2.75rem auto 0;
  align-items: center;
}
@media (min-width: 900px) {
  .venue__layout { grid-template-columns: 1.25fr 1fr; gap: 4rem; }
}

.venue__map { position: relative; margin: 0; }

/* White page: ivory mount with a gold double line */
.venue__map-frame {
  position: relative;
  padding: 10px;
  border: 1px solid var(--gold);
  background-color: var(--ivory-light);
  box-shadow: var(--shadow-card);
}
.venue__map-frame::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid var(--gold);
  opacity: .55;
  pointer-events: none;
}
.venue__map iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 0;
  background-color: var(--sage-soft);
  filter: saturate(.85) sepia(.08);      /* gently warms the map to sit with the palette */
}
@media (min-width: 600px) { .venue__map iframe { aspect-ratio: 4 / 3; } }

/* Sprig on the top-right corner — the map's own "Open in Maps" button sits top-left */
.sprig--map {
  top: -50px;
  right: -16px;
  z-index: 2;
  width: 52px;
  height: 136px;
  transform: scaleX(-1) rotate(-52deg);
}

/* Traditional page: square mount with beadwork top and bottom */
.theme-traditional .venue__map-frame {
  padding: 0;
  border-color: var(--caramel);
  background-color: var(--nude-light);
}
.theme-traditional .venue__map-frame::before { display: none; }
.theme-traditional .venue__map iframe { filter: sepia(.22) saturate(.85); }
/* Beadwork bands stay outside the map so Google's credits and buttons remain visible */
.venue__beads {
  display: block;
  box-sizing: content-box;
  box-shadow: none;
  border-bottom: 3px solid var(--brown-dark);   /* faces the map on both bands (bottom one is mirrored) */
}

.venue__info { text-align: center; }
.venue__icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--olive);
}
.theme-traditional .venue__icon { border-radius: 0; transform: rotate(45deg) scale(.9); }
.theme-traditional .venue__icon .icon { transform: rotate(-45deg); }

.venue__name { font-size: 1.8rem; font-weight: 600; line-height: 1.25; }
.venue__address { margin-top: .25rem; font-size: 1.2rem; }
.venue__note { margin-top: .3rem; font-size: 1.05rem; font-style: italic; }
.venue__when { margin-top: 1.1rem; font-size: 1.15rem; font-style: italic; }
.venue__when::before {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  margin: 0 auto 1.1rem;
  background-color: var(--gold);
}
.venue__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: .75rem;
  margin-top: 1.75rem;
}
.venue__actions .btn { padding-inline: .9rem; letter-spacing: .12em; }

/* Bold, square buttons throughout the traditional page */
.theme-traditional .btn { border-radius: 0; }


/* =====================================================================
   8. RSVP FORM
   ===================================================================== */
.rsvp-card {
  position: relative;
  max-width: 640px;
  margin: 2.75rem auto 0;
  padding: 2.75rem clamp(1.4rem, 6vw, 3rem) 2.5rem;
  background-color: var(--ivory-light);
  background-image: var(--grain);
  box-shadow: var(--shadow-card);
}
.rsvp-card::before,
.rsvp-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid var(--gold);
}
.rsvp-card::before { inset: 10px; }
.rsvp-card::after  { inset: 15px; opacity: .55; }

.rsvp-card__hint {
  margin-bottom: 1.75rem;
  text-align: center;
  font-style: italic;
  font-size: 1.1rem;
}

.field {
  margin: 0 0 1.6rem;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field__label {
  display: block;
  margin-bottom: .6rem;
  padding: 0;
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
}
.field__hint { text-transform: none; letter-spacing: .02em; font-weight: 500; }
.req { color: var(--error); }

.input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: .7rem .95rem;
  font-size: 1.15rem;           /* ≥16px stops iPhones zooming in on focus */
  line-height: 1.4;
  color: var(--forest);
  background-color: var(--ivory);
  border: 1px solid var(--olive);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s, opacity .2s;
}
.input::placeholder { color: var(--forest); opacity: .85; font-style: italic; }  /* ≥4.5:1 */
.input:hover { border-color: var(--forest); }
.input:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 1px;
  border-color: var(--forest);
}
.input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
textarea.input { min-height: 104px; resize: vertical; }

.select-wrap { position: relative; }
.select-wrap select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 3rem;
  cursor: pointer;
}
.select-wrap__icon {
  position: absolute;
  right: .9rem;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  pointer-events: none;
}
.field.is-disabled { opacity: .5; }
.field.is-disabled select { cursor: not-allowed; }

/* Choice cards (checkboxes) */
.choices { display: grid; gap: .65rem; }
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: .9rem;
  min-height: 60px;
  padding: .75rem 1rem;
  border: 1px solid var(--olive);
  border-radius: var(--radius);
  background-color: var(--ivory);
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.choice:hover { border-color: var(--forest); }
.choice:has(input:checked) { border-color: var(--forest); background-color: var(--sage-soft); }

.choice input {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  display: grid;
  place-content: center;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 1.5px solid var(--forest);
  border-radius: 3px;
  background-color: var(--ivory-light);
  cursor: pointer;
}
.choice input::before {           /* tick mark */
  content: "";
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--ivory);
  border-bottom: 2px solid var(--ivory);
  transform: translateY(-2px) rotate(-45deg) scale(0);
  transition: transform .15s ease;
}
.choice input:checked { background-color: var(--forest); border-color: var(--forest); }
.choice input:checked::before { transform: translateY(-2px) rotate(-45deg) scale(1); }

/* Keyboard focus: ring around the whole card where :has() is supported,
   otherwise around the checkbox itself */
.choice input:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
@supports selector(:has(*)) {
  .choice input:focus-visible { outline: none; }
  .choice:has(input:focus-visible) { outline: 2px solid var(--forest); outline-offset: 2px; }
}

.choice__text { display: flex; flex-direction: column; line-height: 1.3; }
.choice__title { font-size: 1.2rem; font-weight: 600; }
.choice__meta { font-size: 1rem; font-style: italic; }

.choices__or {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: .2rem 0;
  font-family: var(--font-sans);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.choices__or::before,
.choices__or::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--gold);
}

.field__error {
  margin-top: .5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--error);
}

/* Send area */
.rsvp-send {
  position: relative;
  margin-top: 2.25rem;
  padding-top: 2rem;
  text-align: center;
}
.rsvp-send::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.rsvp-send__label {
  margin-bottom: 1.1rem;
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.form-alert {
  margin: 0 0 1.1rem;
  padding: .75rem 1rem;
  border: 1px solid var(--error);
  border-radius: var(--radius);
  background-color: var(--ivory);
  color: var(--error);
  font-weight: 600;
  font-size: 1.05rem;
}

.contacts { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .contacts { grid-template-columns: 1fr 1fr; } }
.contact { display: flex; flex-direction: column; align-items: center; }
.contact .btn { min-height: 54px; }
.contact .btn .icon { width: 22px; height: 22px; }

.contact__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 44px;
  padding: .25rem .5rem;
  font-size: 1.05rem;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}
.contact__call .icon { width: 16px; height: 16px; }
.contact__call:hover { text-decoration-color: var(--forest); }

.rsvp-status {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-style: italic;
}
.rsvp-status:empty { display: none; }


/* =====================================================================
   9. GIFTS
   ===================================================================== */
.gifts {
  background-color: var(--sage-soft);
  background-image: var(--grain);
}
.gifts__card {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
}
.gifts__text {
  max-width: 32ch;
  margin: 1rem auto 0;
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.55;
}


/* =====================================================================
   10. FOOTER
   ===================================================================== */
.footer {
  padding: 3.5rem var(--gutter) calc(6.5rem + env(safe-area-inset-bottom));
  text-align: center;
  background-color: var(--forest);
  color: var(--ivory);
}
/* Traditional page: beadwork band across the top of the footer */
.footer--beads { position: relative; padding-top: calc(3.5rem + 28px); }
.footer--beads .beadwork { position: absolute; top: 0; left: 0; }
.theme-traditional .footer { background-color: var(--brown-dark); }

.seal--footer {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  filter: drop-shadow(0 4px 6px rgb(0 0 0 / .3));
}
.footer__names {
  margin-top: .9rem;
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 10vw, 3.4rem);
  line-height: 1.15;
}
.footer__date {
  margin-top: .35rem;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  padding-left: .28em;
}
.footer__rule {
  display: block;
  width: 64px;
  height: 1px;
  margin: 1.6rem auto 1rem;
  background-color: var(--gold);
}
.footer__credit { font-size: 1.05rem; }
.footer__credit a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}
.footer__credit a:hover { text-decoration-color: var(--ivory); }
.footer :focus-visible { outline-color: var(--ivory); }


/* =====================================================================
   11. FLOATING MUSIC PLAYER & TOAST
       A pill in the bottom-right corner: the couple's photo in a circle
       (with play/pause and a ring that fills as the song plays), the song
       name, and little sound bars. Forest & gold on the White page,
       brown & caramel on the Traditional page (via the theme colours).
   ===================================================================== */
.music-toggle {
  position: fixed;
  right: max(.75rem, env(safe-area-inset-right));
  bottom: max(.75rem, env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 56px;
  max-width: calc(100vw - 1.5rem);
  padding: 4px 1rem 4px 4px;
  border: 1px solid color-mix(in srgb, var(--gold) 70%, transparent);
  border-radius: 999px;
  background-color: color-mix(in srgb, var(--forest) 92%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ivory);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 30px -12px rgb(42 51 40 / .6);
  animation: pop-in .5s var(--ease) both;
  transition: background-color .2s, transform .2s;
}
.music-toggle:hover { background-color: var(--forest-hover); }
.music-toggle:active { transform: scale(.97); }
.music-toggle:focus-visible { outline-color: var(--forest); outline-offset: 3px; }

/* The circle: couple photo + progress ring + play/pause */
.music-disc {
  position: relative;
  flex: none;
  width: 48px;
  height: 48px;
}
.music-cover,
.music-icon {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
}
.music-cover {                       /* the photo itself is set in each page's HTML */
  background-color: var(--sage);
  background-repeat: no-repeat;
  background-size: 180% auto;        /* zoomed in on the couple's faces */
  background-position: 47% 12%;
}
.theme-traditional .music-cover {    /* back-to-back pose is wider, so zoom less */
  background-size: 122% auto;
  background-position: 44% 16%;
}
.music-icon {
  display: grid;
  place-items: center;
  background-color: rgb(20 24 18 / .38);
  transition: background-color .3s;
}
.music-toggle.is-playing .music-icon { background-color: rgb(20 24 18 / .12); }
.music-icon .icon { grid-area: 1 / 1; width: 16px; height: 16px; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .5)); }
.music-icon .icon--play { margin-left: 2px; }
.music-icon .icon--pause,
.music-toggle.is-playing .music-icon .icon--play { display: none; }
.music-toggle.is-playing .music-icon .icon--pause { display: block; }
.music-toggle.is-playing .music-icon .icon--pause { opacity: 0; transition: opacity .2s; }
.music-toggle.is-playing:hover .music-icon .icon--pause,
.music-toggle.is-playing:focus-visible .music-icon .icon--pause { opacity: 1; }

/* r = 15.9155 makes the circumference 100, so dashoffset = "percent still to play" */
.music-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 2.2;
  transform: rotate(-90deg);
}
.music-ring circle:first-child { stroke: color-mix(in srgb, var(--ivory) 22%, transparent); }
.music-ring__progress {
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset .3s linear;
}
.music-toggle.is-loading .music-ring__progress { stroke-dashoffset: 72; }
.music-toggle.is-loading .music-ring { animation: music-spin .9s linear infinite; }

/* Song name + state */
.music-label {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.music-label strong {
  overflow: hidden;
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.music-label span {
  font-family: var(--font-sans);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Little sound bars that dance while the song plays */
.music-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  flex: none;
}
.music-bars i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background-color: var(--gold);
  opacity: .5;
  transform: scaleY(.25);
  transform-origin: bottom;
  transition: transform .3s, opacity .3s;
}
.music-toggle.is-playing .music-bars i { opacity: 1; animation: music-bar .9s ease-in-out infinite alternate; }
.music-toggle.is-playing .music-bars i:nth-child(2) { animation-duration: .7s;  animation-delay: -.3s; }
.music-toggle.is-playing .music-bars i:nth-child(3) { animation-duration: 1.1s; animation-delay: -.6s; }
.music-toggle.is-playing .music-bars i:nth-child(4) { animation-duration: .8s;  animation-delay: -.2s; }

@keyframes music-bar  { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@keyframes music-spin { to { transform: rotate(270deg); } }
@keyframes pop-in {
  from { transform: scale(.6); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(5.5rem + env(safe-area-inset-bottom));
  z-index: 60;
  max-width: min(90vw, 420px);
  padding: .8rem 1.2rem;
  border-radius: var(--radius);
  background-color: var(--forest);
  color: var(--ivory);
  font-size: 1.05rem;
  text-align: center;
  box-shadow: 0 14px 30px -12px rgb(42 51 40 / .55);
  transform: translate(-50%, 12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }


/* =====================================================================
   12. SCROLL ANIMATIONS & REDUCED MOTION
   ===================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js .reveal { opacity: 1; transform: none; transition: none; }

  .scroll-cue .icon,
  .music-toggle,
  .music-toggle.is-loading .music-ring,
  .music-toggle.is-playing .music-bars i { animation: none; }
  .music-toggle.is-playing .music-bars i { transform: scaleY(.7); }

  /* Envelope simply fades instead of flipping open */
  .envelope.is-opening .envelope__seal,
  .envelope.is-opening .envelope__flap,
  .envelope.is-opening .envelope__content { animation: none; }
  .envelope.is-opening { animation: fade-away .3s ease forwards; }

  *, *::before, *::after { transition-duration: .01ms !important; }
}


/* =====================================================================
   13. ZULU HERITAGE — traditional page only
       The artwork (ihawu shield, isagila knobkerrie, ukhamba clay pot,
       crest and divider) is drawn as SVG symbols in traditional-wedding.html.
       a. Opening screen: "the gates of ekhaya"
       b. Hero: the couple before the family crest
       c. Dividers, ukhamba emblem, watermarks
       d. Gifts (brown feature section) & footer crest
   ===================================================================== */

/* ---- a. Opening screen: two beadwork-framed gates ------------------- */
.js .envelope--gates { background: none; }

.gate {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.2%;
  overflow: hidden;
  background-color: var(--brown-dark);
  background-image:
    radial-gradient(ellipse 130% 55% at var(--glow-x) 42%, color-mix(in srgb, var(--caramel) 26%, transparent), transparent 70%),
    repeating-linear-gradient(45deg,  color-mix(in srgb, var(--caramel) 11%, transparent) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(-45deg, color-mix(in srgb, var(--caramel) 11%, transparent) 0 1px, transparent 1px 18px),
    var(--grain);
}
.gate--left  { left: 0;  --glow-x: 100%; }
.gate--right { right: 0; --glow-x: 0%; }

/* Photo behind the gates (images/intro-cattle.jpg; original in _source/download (1).jfif).
   Each gate holds a full-screen copy lined up with the screen, so the photo
   reads as one picture and splits down the middle when the gates open.
   Multiplied with a warm brown it becomes a brown duotone — dark enough for
   the light text (AA) while the cattle stay visible. */
.gate::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc(100% / .502);              /* = full screen width */
  background-color: var(--intro-tint);
  background-image: url("images/intro-cattle.jpg");
  background-size: cover;
  background-position: var(--intro-pos);
  background-blend-mode: multiply;
}
.gate--left::before  { left: 0; }
.gate--right::before { right: 0; }
.envelope--gates {
  --intro-tint: color-mix(in srgb, var(--brown) 70%, var(--caramel));
  --intro-pos: 62% 40%;                  /* keeps the bull's head and horns in view */
}
/* Wide screens: the photo is portrait and small, so instead of stretching it
   (blurry) it stands at full height in the centre, its sides fading softly
   into the brown. */
@media (min-aspect-ratio: 1/1) {
  .envelope--gates { --intro-pos: center; }
  .gate::before {
    --intro-edge: color-mix(in srgb, var(--intro-tint) 92%, #000);
    background-image:
      linear-gradient(90deg,
        var(--intro-edge) calc(50% - 35vh), transparent calc(50% - 22vh),
        transparent calc(50% + 22vh), var(--intro-edge) calc(50% + 35vh)),
      url("images/intro-cattle.jpg");
    background-size: auto, auto 100%;
    background-repeat: no-repeat;
    background-position: center, center;
    background-blend-mode: normal, multiply;
  }
}
/* As the gates part, the photo warms and brightens */
.envelope--gates.is-opening .gate::before { animation: intro-glow 1.1s .2s ease forwards; }
@keyframes intro-glow { to { filter: brightness(1.35) saturate(1.1); } }
/* The seam where the gates meet — fades out behind the words in the middle */
.gate::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--caramel) 0 8%, transparent 13% 87%, var(--caramel) 92% 100%);
}
.gate--left::after  { right: 0; }
.gate--right::after { left: 0; }

/* Beadwork along the top, bottom and outer edge of each gate */
.gate__band { position: absolute; }
.gate__band--top    { top: 0; left: 0; }
.gate__band--bottom { bottom: 0; left: 0; }
.gate__band--side   { width: 140vh; max-width: none; transform-origin: 0 0; }
.gate--left  .gate__band--side { top: 100%; left: 0; transform: rotate(-90deg); }
.gate--right .gate__band--side { top: 0; left: 100%; transform: rotate(90deg); }

.gates__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: calc(28px + 1.5rem) calc(28px + 1.4rem) calc(28px + 1.75rem + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--nude-light);
}
.gates__content .eyebrow { margin-bottom: .1rem; color: var(--nude); }
.gates__content > p { text-shadow: 0 1px 10px rgb(20 12 7 / .6); }
.gates__crest {
  width: clamp(140px, 44vw, 210px);
  height: auto;
  aspect-ratio: 300 / 340;
  margin: .2rem 0 .3rem;
  filter: drop-shadow(0 14px 18px rgb(0 0 0 / .5));
  animation: crest-in 1.1s var(--ease) .15s both;
}
.envelope--gates .envelope__invite { color: var(--nude); }
.envelope--gates .envelope__names {
  margin: .15rem 0 .55rem;
  font-size: clamp(2.6rem, 12vw, 4rem);
  color: var(--nude-light);
}
.envelope--gates .envelope__names .amp { color: var(--caramel); }   /* large text: AA */
.envelope--gates .envelope__event { color: var(--nude); }
.envelope--gates .envelope__dates { color: var(--nude-light); }
.envelope--gates .btn--open {
  margin-top: 1.4rem;
  min-width: min(250px, 100%);
  min-height: 54px;
  padding-inline: 1.1rem;
  letter-spacing: .13em;
  white-space: nowrap;
  border-radius: 0;
  background-color: var(--nude-light);
  color: var(--brown-dark);
  box-shadow: inset 0 0 0 4px var(--nude-light), inset 0 0 0 5px var(--caramel),
              0 12px 26px -10px rgb(0 0 0 / .6);
}
.envelope--gates .btn--open:hover { background-color: var(--bead-light); }
.btn__sep { margin: 0 .55em; }
.envelope--gates :focus-visible { outline-color: var(--nude-light); }

@keyframes crest-in {
  from { opacity: 0; transform: translateY(-16px) scale(.9); }
  to   { opacity: 1; transform: none; }
}

/* Tapping "Vula": the words lift away, then the gates swing apart */
.envelope--gates.is-opening { animation: fade-away .35s 1.2s ease forwards; }
.envelope--gates.is-opening .gates__content { animation: content-rise .55s var(--ease) forwards; }
.envelope--gates.is-opening .gate--left  { animation: gate-left  1s .3s cubic-bezier(.7, 0, .3, 1) forwards; }
.envelope--gates.is-opening .gate--right { animation: gate-right 1s .3s cubic-bezier(.7, 0, .3, 1) forwards; }
@keyframes gate-left  { to { transform: translateX(-101%); } }
@keyframes gate-right { to { transform: translateX(101%); } }

/* ---- b. Hero: the couple before the family crest -------------------- */
/* Background: Nguni cowhide (images/hero-cowhide.jpg — a seamless tile made from
   _source/download.jfif) under a dark-brown wash. The wash is lighter behind the
   couple so the hide shows through, and darker where the words sit so the light
   text keeps AA contrast. */
.hero--crest {
  --olive: var(--nude);                 /* the "&" — large text, AA on the hide */
  --gold: var(--caramel);
  --hide-wash-light: color-mix(in srgb, var(--brown-dark) 52%, transparent);
  --hide-wash:       color-mix(in srgb, var(--brown-dark) 80%, transparent);
  color: var(--nude-light);
  padding-bottom: calc(clamp(4.5rem, 12vw, 6.5rem) + 28px);
  background-color: var(--brown-dark);
  background-image:
    radial-gradient(ellipse 62% 24% at 50% 47%, var(--hide-wash-light), var(--hide-wash)),
    url("images/hero-cowhide.jpg");
  background-size: auto, 320px auto;
  background-repeat: no-repeat, repeat;
  background-position: center, center top;
}
/* Keep the words crisp over the hide */
.hero--crest .hero__text-top,
.hero--crest .hero__text-bottom { text-shadow: 0 1px 12px rgb(20 12 7 / .55); }
.hero--crest :focus-visible { outline-color: var(--nude-light); }
.hero--crest .scroll-cue { bottom: calc(28px + .75rem); }
.hero__beads { position: absolute; left: 0; bottom: 0; z-index: 1; }

/* Runs edge to edge on phones (up to 480px wide) */
.crest-scene {
  position: relative;
  width: min(100vw, 480px);
  aspect-ratio: 300 / 340;
  margin: .5rem 0 1.75rem calc(50% - min(50vw, 240px));
}
.crest-scene__crest {
  position: absolute;
  top: 0;
  left: 50%;
  width: 96%;
  height: auto;
  aspect-ratio: 300 / 340;
  transform: translateX(-50%);
  filter: drop-shadow(0 16px 24px rgb(0 0 0 / .45));
}
.crest-scene picture {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  display: flex;
  justify-content: center;
}
.crest-scene__photo {
  width: 74%;
  height: auto;
  transform: translateX(5%);          /* centres the couple under the shield */
  filter: drop-shadow(0 10px 18px rgb(0 0 0 / .4));
  /* soften the photo's cropped side edges so they melt into the background */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 90%, transparent 100%);
}
.crest-scene__ground { position: absolute; left: 0; bottom: 0; z-index: 2; }
.crest-scene__ukhamba {
  position: absolute;
  left: 2%;
  bottom: 16px;
  z-index: 3;
  width: 27%;
  height: auto;
  aspect-ratio: 200 / 204;
  filter: drop-shadow(0 8px 12px rgb(0 0 0 / .45));
}
/* If the photo is missing: monogram medallion on the shield */
.crest-scene__fallback { inset: 30% 0 auto; padding: 0; }
.crest-scene__fallback span {
  display: grid;
  place-items: center;
  width: 6rem;
  height: 6rem;
  border: 2px solid var(--caramel);
  border-radius: 50%;
  background-color: var(--nude-light);
  color: var(--brown-dark);
  font-size: 2.6rem;
}
.crest-scene.is-fallback picture { display: none; }
.crest-scene.is-fallback .crest-scene__fallback { display: flex; }

@media (min-width: 960px) {
  .crest-scene { grid-area: arch; width: 100%; max-width: 500px; margin: 0 auto; }
  .hero--crest {                        /* lighter wash behind the crest on the left */
    background-image:
      radial-gradient(ellipse 30% 48% at 27% 48%, var(--hide-wash-light), var(--hide-wash)),
      url("images/hero-cowhide.jpg");
  }
}

/* ---- c. Dividers, ukhamba emblem, watermarks ------------------------ */
.shield-divider {
  display: block;
  width: 200px;
  height: 48px;
  margin: 0 auto .8rem;
}
.ukhamba-emblem {
  display: block;
  width: 86px;
  height: auto;
  aspect-ratio: 200 / 204;
  margin: 0 auto .7rem;
  filter: drop-shadow(0 8px 10px rgb(59 38 25 / .25));
}
/* Faint crests on either side of the Umabo details (wide screens only) */
.wedding__mark {
  position: absolute;
  top: 50%;
  z-index: 0;
  display: none;
  width: 230px;
  height: auto;
  aspect-ratio: 300 / 340;
  opacity: .12;
  pointer-events: none;
}
.wedding__mark--l { left: 3%;  transform: translateY(-50%) rotate(-10deg); }
.wedding__mark--r { right: 3%; transform: translateY(-50%) rotate(10deg) scaleX(-1); }
@media (min-width: 1000px) { .wedding__mark { display: block; } }
.wedding--traditional .wedding__inner { position: relative; z-index: 1; }

/* ---- d. Gifts (brown feature section) & footer crest ---------------- */
.gifts--ukhamba {
  color: var(--nude-light);
  background-color: var(--brown);
  background-image:
    radial-gradient(ellipse 50% 45% at 50% 30%, color-mix(in srgb, var(--caramel) 30%, transparent), transparent 75%),
    repeating-linear-gradient(45deg,  color-mix(in srgb, var(--caramel) 10%, transparent) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(-45deg, color-mix(in srgb, var(--caramel) 10%, transparent) 0 1px, transparent 1px 18px),
    var(--grain);
}
.gifts--ukhamba .eyebrow { color: var(--nude); }
.gifts--ukhamba .section-title { color: var(--nude-light); }
.gifts--ukhamba :focus-visible { outline-color: var(--nude-light); }
.gifts__ukhamba {
  display: block;
  width: clamp(130px, 38vw, 170px);
  height: auto;
  aspect-ratio: 200 / 204;
  margin: 0 auto 1.1rem;
  filter: drop-shadow(0 14px 20px rgb(0 0 0 / .4));
}

.footer__crest {
  display: block;
  width: 96px;
  height: auto;
  aspect-ratio: 300 / 340;
  margin: 0 auto;
  filter: drop-shadow(0 8px 12px rgb(0 0 0 / .45));
}

@media (prefers-reduced-motion: reduce) {
  .gates__crest,
  .envelope--gates.is-opening .gate,
  .envelope--gates.is-opening .gate::before,
  .envelope--gates.is-opening .gates__content { animation: none; }
  .envelope--gates.is-opening { animation: fade-away .3s ease forwards; }
}
