/* White Wedding page (index.html): sage green, ivory and antique gold, like the printed invitation.
   Loaded after style.css; reuses its sections and palette slots, then adds the stationery touches:
   the sage envelope, an arched card with gold eucalyptus, a satin ribbon, gold wax seals and a save-the-date calendar. */
body.white-wedding {
  --paper: #faf3e3;
  --ink: #33401b;
  --cocoa: #5b6b2e;
  --gold: #a8894a;
  --gold-dk: #7a5f27;
  --gold-lt: #e6d3a0;
  --sage: #93a898;
  --beige: #d6bf9c;
  --line: #e2d6bc;
  --muted: #6b6852;
  --white: #fffcf4;
  /* fine linen weave */
  --linen:
    repeating-linear-gradient(0deg, rgba(110, 90, 50, 0.045) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(110, 90, 50, 0.035) 0 1px, transparent 1px 4px);
  /* antique gold foil for the names */
  --foil: linear-gradient(100deg, #8c6e33 0%, #a8894a 28%, #d6bf9c 46%, #a8894a 62%, #8c6e33 100%);
  /* scalloped edge, paper-coloured bumps along the bottom of a band */
  --scallops: radial-gradient(circle at 12px 13px, var(--paper) 11px, transparent 11.5px) 0 0 / 24px 13px repeat-x;
  background: var(--linen), var(--paper);
  /* dates and phone numbers in even, lining figures */
  font-variant-numeric: lining-nums;
}
.white-wedding p,
.white-wedding h2,
.white-wedding h3 {
  text-wrap: pretty;
}
.ww-intro {
  text-wrap: balance;
}
.ww-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.white-wedding .site-header {
  background: rgba(250, 243, 227, 0.95);
}
.white-wedding .monogram {
  font-family: "Great Vibes", cursive;
  font-size: 36px;
  letter-spacing: 0;
  color: var(--gold-dk);
}
.white-wedding .monogram span {
  font-size: 24px;
  font-style: normal;
  margin: 0 3px;
}
.white-wedding .event-tabs a[aria-current="page"] {
  background: var(--cocoa);
}
/* decorations that lean past the edges (sprigs, the tilted calendar) must never cause sideways scrolling */
.white-wedding main {
  overflow-x: clip;
}
.white-wedding h2 em,
.white-wedding h3 em {
  color: var(--gold-dk);
}
/* Buttons: gold outline, sage fill on hover */
.white-wedding .btn {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  font-weight: 600;
}
.white-wedding .btn:hover {
  background: var(--sage);
  color: #1f2814;
  border-color: var(--gold);
}

/* Hero: sage linen with window-light eucalyptus shadows, a gold satin ribbon, and the arched invitation card.
   It reaches up behind the header (see the envelope notes in style.css). */
.ww-hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: calc(-1 * var(--header-h));
  min-height: max(calc(700px + var(--header-h)), 100svh);
  padding: calc(56px + var(--header-h)) 24px 80px;
  overflow: hidden;
  background:
    var(--linen),
    radial-gradient(ellipse at 30% 18%, rgba(255, 255, 255, 0.55), transparent 60%),
    linear-gradient(160deg, #dfe6da, #b9c8bb 60%, #a3b5a6);
}
.ww-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 13px;
  background: var(--scallops);
}
.ww-shadows {
  position: absolute;
  top: calc(var(--header-h) - 60px);
  right: -80px;
  width: min(520px, 60%);
  opacity: 0.12;
  mix-blend-mode: multiply;
  pointer-events: none;
}
/* sized from the part of the hero below the header */
.ww-ribbon {
  position: absolute;
  left: 0;
  bottom: calc((100% - var(--header-h)) * 0.04);
  width: 100%;
  height: calc((100% - var(--header-h)) * 0.34);
  pointer-events: none;
  filter: drop-shadow(0 6px 6px rgba(50, 60, 40, 0.18));
}
.ww-stage {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  max-width: 560px;
}
.ww-stage > * {
  grid-area: 1 / 1;
}

/* Envelope colours for this page (the envelope itself is in style.css) */
.white-wedding .envelope {
  --env-inside: #6f8574;
  --env-front-a: #a6b8a9;
  --env-front-b: #8a9f8d;
  --env-flap-a: #8a9e8d;
  --env-flap-b: #9fb2a2;
  --env-ink: rgba(255, 251, 238, 0.95);
  --env-paper: var(--linen), #fffcf4;
}
.white-wedding .env-greeting-from {
  color: var(--gold-dk);
}
.white-wedding .env-greeting-title {
  font-family: "Great Vibes", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(44px, 12vw, 64px);
  font-size: clamp(44px, 13cqw, 64px);
  font-style: normal;
  font-weight: 400;
  line-height: 1.25;
  color: var(--gold-dk);
}
.white-wedding .env-to {
  left: 0;
  right: 0;
  bottom: 9%;
  font-size: clamp(11px, 2.4vw, 15px);
  font-size: clamp(11px, 3cqw, 15px);
  text-align: center;
  letter-spacing: 0.2em;
}
/* The letter matches the card: a sage band with gold dots along its top, and a fine gold inset frame */
.white-wedding .env-letter {
  padding-top: 10%;
  outline-color: rgba(168, 137, 74, 0.45);
  outline-offset: -15px;
}
.white-wedding .env-letter::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 12px;
  background:
    radial-gradient(circle, var(--gold-lt) 1.6px, transparent 2.1px) 0 50% / 12px 12px repeat-x,
    var(--sage);
}
.white-wedding .env-letter-text {
  font-family: "Great Vibes", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 7.6vw, 44px);
  font-size: clamp(28px, 8.6cqw, 44px);
  font-style: normal;
  line-height: 1.25;
  color: var(--gold-dk);
}
.white-wedding .env-letter-text small {
  margin-bottom: 2px;
}
/* a fine gold line with a dot between the names and the date */
.white-wedding .env-letter-date::before {
  content: "";
  display: block;
  width: 64px;
  height: 7px;
  margin: 0 auto 8px;
  background:
    radial-gradient(circle, var(--gold) 2.4px, transparent 2.9px) center / 7px 7px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left center / 24px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right center / 24px 1px no-repeat;
  opacity: 0.75;
}
.white-wedding .env-letter-date {
  color: var(--gold-dk);
}
/* As the letter rises, ivory petals, eucalyptus leaves and gold flecks are tossed up (script.js scatters them) */
.white-wedding .env-burst i {
  width: 12px;
  height: 17px;
  border-radius: 100% 0;
  background: linear-gradient(135deg, #fffdf6, #eadfc7);
  box-shadow: 0 1px 2px rgba(60, 50, 30, 0.28);
  animation-name: ww-petal;
  animation-duration: 1.7s;
}
.white-wedding .env-burst i:nth-child(3n) {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c9d6cb, #8ea393 75%);
}
.white-wedding .env-burst i:nth-child(3n + 1) {
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: linear-gradient(135deg, #f3e2ae, #a8894a);
}
@keyframes ww-petal {
  from {
    opacity: 0;
    transform: translate(0, 0) rotate(0deg) scale(0.3);
  }
  12% {
    opacity: 1;
  }
  55% {
    opacity: 1;
    transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(calc(var(--x) + 18px), calc(var(--y) + 90px)) rotate(calc(var(--r) + 140deg)) scale(0.85);
  }
}

/* Wax seals on this page: antique gold with a script monogram */
.white-wedding .wax-seal {
  background: radial-gradient(circle at 35% 30%, #f1dca1, #c9a862 50%, #8c6e33);
  color: #6a4f1f;
  font-family: "Great Vibes", cursive;
  font-size: 30px;
  text-shadow: 0 1px 0 rgba(255, 245, 210, 0.55);
}
.white-wedding .wax-seal::before {
  border-color: rgba(106, 79, 31, 0.4);
}
.white-wedding .wax-seal i {
  font-style: normal;
  font-size: 0.6em;
  margin: 0 2px;
}

/* The invitation card: an ivory welcome-sign arch with a thin gold border, gold eucalyptus on its shoulders */
.ww-arch-card {
  position: relative;
  width: 100%;
}
.ww-card {
  position: relative;
  padding: 150px 52px 54px;
  border: 1.5px solid var(--gold);
  border-radius: 999px 999px 10px 10px;
  background: var(--linen), radial-gradient(ellipse at 50% 30%, #fffdf6, #faf3e3 70%);
  box-shadow: 0 34px 70px rgba(40, 55, 35, 0.28);
  text-align: center;
}
.ww-card::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(168, 137, 74, 0.45);
  border-radius: 999px 999px 6px 6px;
  pointer-events: none;
}
.ww-sprig {
  position: absolute;
  top: -26px;
  width: 44%;
  height: auto;
  pointer-events: none;
}
.ww-sprig-left {
  left: -28px;
}
.ww-sprig-right {
  right: -28px;
  transform: scaleX(-1);
}
.ww-card .eyebrow {
  margin-bottom: 0;
  color: var(--gold-dk);
}
.ww-names {
  margin: 14px -0.3em 18px;
  padding: 0.04em 0.3em 0.18em;
  font-family: "Great Vibes", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(56px, 8vw, 84px);
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: none;
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(90, 70, 30, 0.2));
}
.ww-amp {
  display: block;
  font-size: 0.6em;
  line-height: 1;
}
.ww-second {
  display: block;
  white-space: nowrap;
}
.ww-intro {
  max-width: 360px;
  margin: 0 auto;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px;
  font-style: italic;
  line-height: 1.45;
  color: var(--cocoa);
}
.ww-card .ww-save {
  margin-top: 26px;
}
.ww-date {
  margin-top: 6px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--cocoa);
}
.ww-meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}
.ww-card .btn {
  margin-top: 28px;
}

/* Save the date: a little month calendar with the wedding day circled */
.ww-when {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 80px;
  align-items: center;
}
.ww-calendar {
  padding: 30px 26px 24px;
  border: 12px solid #b7c6b9;
  border-radius: 4px;
  background: var(--linen), #fffcf4;
  box-shadow:
    inset 0 0 0 1px var(--gold),
    0 24px 50px rgba(50, 60, 40, 0.14);
  transform: rotate(-1.5deg);
}
.ww-calendar table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.ww-calendar caption {
  padding-bottom: 14px;
}
.ww-cal-month {
  display: block;
  font-family: "Great Vibes", "Cormorant Garamond", Georgia, serif;
  font-size: 58px;
  line-height: 1.15;
  color: var(--gold-dk);
}
.ww-cal-year {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4em;
  color: var(--muted);
}
.ww-calendar th {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.ww-calendar td {
  position: relative;
  height: 44px;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  color: var(--ink);
}
.ww-calendar .is-traditional::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 1px var(--cocoa);
}
.ww-calendar .is-wedding {
  font-weight: 600;
  color: var(--cocoa);
}
.ww-day {
  position: relative;
}
.ww-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  overflow: visible;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 170;
}
.ww-ring-heart {
  fill: var(--sage);
  stroke: none;
  transform-box: fill-box;
  transform-origin: center;
}
/* drawn in by hand once the section scrolls into view */
.ww-when:not(.is-pending) .ww-ring path:first-child {
  animation: ww-draw 1.4s ease 0.5s both;
}
.ww-when:not(.is-pending) .ww-ring-heart {
  animation: ww-pop 0.4s ease 1.8s both;
}
.ww-cal-key {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}
.ww-cal-key i {
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}
.ww-key-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 1px var(--cocoa);
}
.ww-key-ring {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
}
.ww-when-copy h2 {
  margin-bottom: 30px;
}
.ww-facts {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ww-facts li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.ww-facts li:last-child {
  border-bottom: 1px solid var(--line);
}
.ww-facts .icon {
  width: 22px;
  height: 22px;
  margin-top: 6px;
  color: var(--gold);
}
.ww-facts h3 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--cocoa);
}
.ww-facts p {
  margin-top: 4px;
  font-size: 13px;
}
.ww-facts .calendar-links,
.ww-facts li > div > .text-link {
  margin-top: 12px;
}

/* Portrait in a sage arch with a gold border */
.ww-portrait {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 90px;
  align-items: center;
  border-top: 1px solid var(--line);
}
.ww-arch {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 420px;
}
.ww-arch-frame {
  padding: 14px;
  border: 1.5px solid var(--gold);
  border-radius: 999px 999px 8px 8px;
  background: var(--linen), var(--sage);
  box-shadow: 0 30px 60px rgba(40, 55, 35, 0.2);
}
.ww-arch-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 999px 999px 4px 4px;
  box-shadow: 0 0 0 1px rgba(230, 211, 160, 0.8);
}
.ww-arch-sprig {
  position: absolute;
  top: -22px;
  left: -26px;
  width: 46%;
  height: auto;
  pointer-events: none;
}
.ww-arch-seal {
  position: absolute;
  left: 50%;
  bottom: -30px;
  margin-left: -37px;
}
.ww-portrait-copy h2 {
  margin-bottom: 24px;
}
.ww-portrait-copy > p:not(.eyebrow) {
  max-width: 420px;
}
.ww-portrait-copy .ww-numerals {
  margin-top: 34px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.ww-numerals span {
  font-size: 0.5em;
  vertical-align: middle;
}

/* Countdown band: olive with scalloped edges and gold eucalyptus at each side */
.white-wedding .countdown {
  overflow: hidden;
  background: var(--linen), var(--cocoa);
}
.white-wedding .countdown::before,
.white-wedding .countdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 13px;
}
.white-wedding .countdown::before {
  top: -1px;
  background: radial-gradient(circle at 12px 0, var(--paper) 11px, transparent 11.5px) 0 0 / 24px 13px repeat-x;
}
.white-wedding .countdown::after {
  bottom: -1px;
  background: var(--scallops);
}
.white-wedding .countdown > :not(img) {
  position: relative;
}
.white-wedding .countdown h2 em,
.white-wedding .countdown .eyebrow {
  color: var(--gold-lt);
}
.white-wedding .count-grid strong {
  font-weight: 500;
}
.ww-count-sprig {
  position: absolute;
  top: 10px;
  width: auto;
  height: 82%;
  aspect-ratio: 1;
  opacity: 0.45;
  pointer-events: none;
}
.ww-count-left {
  left: 1%;
}
.ww-count-right {
  right: 1%;
  transform: scaleX(-1);
}

/* RSVP as a reply card: a sage band with gold dots and a wax seal */
.white-wedding .rsvp-copy h2 {
  font-size: clamp(38px, 4.4vw, 58px);
}
.white-wedding .rsvp-form {
  position: relative;
  padding-top: 60px;
  background: var(--linen), var(--white);
  border-color: var(--beige);
}
.white-wedding .rsvp-form::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 16px;
  border-radius: 8px 8px 0 0;
  background:
    radial-gradient(circle, var(--gold-lt) 1.8px, transparent 2.3px) 0 50% / 14px 14px repeat-x,
    var(--sage);
}
.ww-reply-seal {
  position: absolute;
  top: -30px;
  left: 50%;
  margin-left: -37px;
}
.white-wedding .rsvp-form h3 {
  font-family: "Great Vibes", "Cormorant Garamond", Georgia, serif;
  font-size: 50px;
  color: var(--gold-dk);
  text-align: center;
}
.rsvp-to {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}
.rsvp-to strong {
  color: var(--ink);
  font-weight: 600;
}
.white-wedding .rsvp-form .btn {
  margin-top: 16px;
}

/* Footer */
.white-wedding footer {
  background: var(--linen), #f0e8d6;
}
.ww-sage-band {
  height: 22px;
  margin-bottom: 55px;
  background:
    radial-gradient(circle, var(--gold-lt) 2.2px, transparent 2.7px) 0 50% / 16px 16px repeat-x,
    var(--sage);
  box-shadow: inset 0 1px 0 var(--gold), inset 0 -1px 0 var(--gold);
}
.ww-footer-seal {
  position: relative;
  margin: 0 auto 22px;
}
.white-wedding .footer-names {
  margin: 0 -0.3em 18px;
  padding: 0 0.3em 0.15em;
  font-family: "Great Vibes", cursive;
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.white-wedding .footer-names em {
  font-style: normal;
  color: inherit;
}
.ww-closing {
  margin: 10px 0 14px;
  font-family: "Great Vibes", cursive;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.25;
  color: var(--gold-dk);
}

@keyframes ww-draw {
  from {
    stroke-dashoffset: 170;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes ww-pop {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
}

@media (max-width: 900px) {
  .ww-when,
  .ww-portrait {
    gap: 48px;
  }
}

@media (max-width: 600px) {
  .ww-hero {
    min-height: 100svh;
    padding: calc(30px + var(--header-h)) 14px 60px;
  }
  .ww-shadows {
    top: calc(var(--header-h) - 40px);
    right: -30%;
    width: 80%;
  }
  .ww-ribbon {
    bottom: calc((100% - var(--header-h)) * 0.03);
    height: calc((100% - var(--header-h)) * 0.22);
  }
  .ww-card {
    padding: 112px 20px 40px;
  }
  .ww-card::before {
    inset: 7px;
  }
  .ww-sprig {
    top: -18px;
    width: 42%;
  }
  .ww-sprig-left {
    left: -14px;
  }
  .ww-sprig-right {
    right: -14px;
  }
  .ww-names {
    margin: 12px -0.3em 14px;
    font-size: clamp(44px, 14.4vw, 56px);
  }
  .ww-intro {
    font-size: 19px;
    max-width: 280px;
  }
  .ww-date {
    font-size: 26px;
  }
  .ww-when,
  .ww-portrait {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .ww-calendar {
    padding: 22px 12px 18px;
    border-width: 10px;
    transform: none;
  }
  .ww-cal-month {
    font-size: 48px;
  }
  .ww-calendar td {
    height: 40px;
    font-size: 18px;
  }
  .ww-ring {
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
  }
  .ww-facts h3 {
    font-size: 24px;
  }
  .ww-arch {
    max-width: 300px;
  }
  .ww-arch-sprig {
    left: -16px;
    width: 44%;
  }
  .ww-count-sprig {
    display: none;
  }
  .white-wedding .rsvp-copy h2 {
    font-size: 36px;
  }
}

/* even, lining figures in the countdown */
.white-wedding .count-grid strong {
  font-variant-numeric: lining-nums tabular-nums;
}

/* Music player in olive and gold, the couple's photo as the record */
.white-wedding #musicToggle {
  background: rgba(62, 74, 30, 0.9);
  border-color: rgba(230, 211, 160, 0.35);
}
.white-wedding #musicToggle:hover {
  background: rgba(62, 74, 30, 0.97);
}
.white-wedding .music-cover {
  background: var(--sage) url("../images/white-wedding.jpeg") 50% 22% / 150% auto;
}
.white-wedding #musicProgress {
  stroke: var(--gold-lt);
}
.white-wedding .music-bars i {
  background: var(--gold-lt);
}
.white-wedding #musicStatus {
  background: rgba(62, 74, 30, 0.95);
}

/* the groom's name leads, on its own unbreakable line */
.ww-first {
  display: block;
  white-space: nowrap;
}
