/* White wedding page: soft whites, stone greys and taupe from the printed card.
   Loaded after style.css; reuses its sections and palette slots, then adds the stationery touches:
   the envelope opening, lace, satin ribbon, calla lilies, wax seals, a save-the-date calendar and a fabric mood board. */
body.white-wedding {
  --paper: #f5f3ef;
  --ink: #3d2b21;
  --cocoa: #6d635b;
  --gold: #a2896b;
  --line: #ddd7cf;
  --muted: #756b63;
  --white: #fdfcfa;
  --script-ink: #4b2e22;
  /* fine paper grain */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .25 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  /* white eyelet lace: large and small holes */
  --eyelets:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 2.4px, transparent 2.9px) 0 0 / 12px 12px,
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 1.1px, transparent 1.5px) 6px 6px / 12px 12px;
  /* 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;
}
.ww-defs {
  position: absolute;
  overflow: hidden;
}
.ww-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.white-wedding .site-header {
  background: rgba(245, 243, 239, 0.95);
}
/* decorations that lean past the edges (lilies, tilted swatches) must never cause sideways scrolling */
.white-wedding main {
  overflow-x: clip;
}
.white-wedding .btn:hover {
  background: #574e47;
}

/* Hero: stone background with window-light leaf shadows, a satin ribbon, and the invitation.
   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(640px + var(--header-h)), 100svh);
  padding: calc(56px + var(--header-h)) 24px 80px;
  overflow: hidden;
  background:
    var(--grain),
    radial-gradient(ellipse at 25% 15%, rgba(255, 255, 255, 0.6), transparent 60%),
    linear-gradient(160deg, #e4e0da, #cdc6bd);
}
.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.1;
  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(60, 48, 38, 0.18));
}
.ww-stage {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  max-width: 620px;
}
.ww-stage > * {
  grid-area: 1 / 1;
}

/* Envelope colours for this page (the envelope itself is in style.css) */
.white-wedding .envelope {
  --env-inside: #675d56;
  --env-front-a: #91877f;
  --env-front-b: #7f756e;
  --env-flap-a: #7d736c;
  --env-flap-b: #8e847c;
  --env-ink: rgba(255, 250, 242, 0.9);
  --env-paper: var(--grain), #fbfaf7;
}
.white-wedding .env-greeting-title {
  font-family: "Pinyon Script", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(40px, 11vw, 60px);
  font-size: clamp(40px, 12cqw, 60px);
  font-style: normal;
  font-weight: 400;
  color: var(--script-ink);
}
/* The letter matches the lace card: eyelet lace with a scalloped edge along its top, and a fine inset frame */
.white-wedding .env-letter {
  padding-top: 10%;
  outline-color: #e4ded6;
  outline-offset: -17px;
}
.white-wedding .env-letter::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 14px;
  background:
    radial-gradient(circle at 6px 9px, #fbfaf7 1.6px, transparent 2.1px) 0 0 / 12px 14px repeat-x,
    radial-gradient(circle at 3px 4px, rgba(255, 255, 255, 0.95) 1.3px, transparent 1.8px) 0 0 / 6px 8px repeat-x,
    radial-gradient(circle at 6px 8px, #e3d9cd 6px, transparent 6.5px) 0 0 / 12px 14px repeat-x,
    linear-gradient(#e3d9cd, #e3d9cd) 0 0 / 100% 8px no-repeat;
}
.white-wedding .env-letter-text {
  font-family: "Pinyon Script", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(26px, 7.6vw, 42px);
  font-size: clamp(26px, 8.4cqw, 42px);
  font-style: normal;
  line-height: 1.25;
  color: var(--script-ink);
}
.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;
}
/* As the letter rises, ivory petals and pearls are tossed up from the envelope (script.js scatters them) */
.white-wedding .env-burst i {
  width: 12px;
  height: 17px;
  border-radius: 100% 0;
  background: linear-gradient(135deg, #fffdf9, #e9dfd3);
  box-shadow: 0 1px 2px rgba(60, 48, 38, 0.28);
  animation-name: ww-petal;
  animation-duration: 1.7s;
}
.white-wedding .env-burst i:nth-child(3n) {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #e6ded4 75%);
}
.white-wedding .env-burst i:nth-child(3n + 1) {
  width: 14px;
  height: 20px;
  background: linear-gradient(135deg, #fbf5ee, #e3d3c2);
}
@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);
  }
}

/* The invitation card on lace, like the printed one */
.ww-lace {
  position: relative;
  width: 100%;
  padding: 18px;
  border-radius: 4px;
  background: var(--eyelets), rgba(255, 255, 255, 0.45);
  box-shadow: 0 30px 70px rgba(60, 48, 38, 0.22);
}
.ww-card {
  position: relative;
  padding: 60px 56px 56px;
  background: var(--grain), #fbfaf7;
  outline: 1px solid #e4ded6;
  outline-offset: -12px;
  text-align: center;
}
.ww-card .eyebrow {
  margin-bottom: 0;
  color: var(--muted);
}
.ww-names {
  margin: 18px 0 22px;
  font-family: "Pinyon Script", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(56px, 7vw, 88px);
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--script-ink);
  text-shadow: none;
}
.ww-amp {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.55em;
  font-style: italic;
  color: var(--gold);
}
.ww-second {
  display: block;
}
.ww-intro {
  max-width: 400px;
  margin: 0 auto;
}
.ww-card .ww-save {
  margin-top: 28px;
}
.ww-date {
  margin-top: 6px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  line-height: 1.3;
  color: var(--script-ink);
}
.ww-meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}
.ww-card .btn {
  margin-top: 28px;
}
.ww-lilies,
.ww-arch-lily,
.ww-fabric-lily {
  position: absolute;
  aspect-ratio: 200 / 420;
  pointer-events: none;
  filter: drop-shadow(0 10px 14px rgba(60, 48, 38, 0.18));
  /* stems fade out instead of ending abruptly */
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 60%, transparent 92%);
}
.ww-lilies {
  top: 12%;
  right: -86px;
  width: 170px;
}

/* Save the date: a little January calendar with the 23rd circled */
.ww-when {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 80px;
  align-items: center;
}
.ww-calendar {
  padding: 34px 30px 26px;
  border: 14px solid transparent;
  border-radius: 4px;
  background:
    var(--grain) padding-box,
    linear-gradient(#fbfaf7, #fbfaf7) padding-box,
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 2.4px, transparent 2.9px) 0 0 / 12px 12px border-box,
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 1.1px, transparent 1.5px) 6px 6px / 12px 12px border-box,
    linear-gradient(#ddd6cd, #ddd6cd) border-box;
  box-shadow: 0 24px 50px rgba(60, 48, 38, 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: "Pinyon Script", "Cormorant Garamond", Georgia, serif;
  font-size: 56px;
  line-height: 1.1;
  color: var(--script-ink);
}
.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-umembeso::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--gold);
}
.ww-calendar .is-wedding {
  font-weight: 600;
  color: var(--script-ink);
}
.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: #c79a8a;
  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: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.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;
  line-height: 1.2;
}
.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 lace arch */
.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-radius: 999px 999px 8px 8px;
  background: var(--eyelets), #ddd6cd;
  box-shadow: 0 30px 60px rgba(60, 48, 38, 0.18);
}
.ww-arch-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 28%;
  border-radius: 999px 999px 4px 4px;
  filter: saturate(0.55) sepia(0.14) contrast(0.97) brightness(1.04);
}
.ww-arch-lily {
  right: -44px;
  bottom: -40px;
  width: 130px;
}
.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: scalloped edges and white lilies at each side */
.white-wedding .countdown {
  overflow: hidden;
}
.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(svg) {
  position: relative;
}
.white-wedding .countdown h2 em,
.white-wedding .countdown .eyebrow {
  color: #ece2d3;
}
.ww-count-lily {
  position: absolute;
  bottom: -30px;
  height: 92%;
  width: auto;
  aspect-ratio: 200 / 420;
  opacity: 0.3;
  pointer-events: none;
}
.ww-count-left {
  left: 3%;
}
.ww-count-right {
  right: 3%;
  transform: scaleX(-1);
}

/* Dress code: fabric swatches pinned to a mood board */
.ww-fabrics {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 18px;
}
.ww-fabric {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(90, 70, 50, 0.05) 0 1px, transparent 1px 3px),
    var(--c);
  outline: 1.5px dashed rgba(110, 90, 70, 0.28);
  outline-offset: -10px;
  box-shadow: 0 14px 28px rgba(60, 48, 38, 0.14);
  transform: rotate(var(--r));
}
.ww-fabric span {
  position: absolute;
  left: 50%;
  bottom: 14px;
  padding: 3px 14px 5px;
  background: #fffdf8;
  box-shadow: 0 2px 6px rgba(60, 48, 38, 0.12);
  font-family: "Pinyon Script", "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  line-height: 1.2;
  color: var(--script-ink);
  white-space: nowrap;
  transform: translateX(-50%);
}
.ww-fabric-lily {
  top: -40px;
  right: -26px;
  width: 110px;
  transform: rotate(18deg);
}

/* RSVP as a reply card: eyelet edge and a wax seal */
.white-wedding .rsvp-form {
  position: relative;
  padding-top: 60px;
  background: var(--grain), var(--white);
}
.white-wedding .rsvp-form::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 16px;
  border-radius: 8px 8px 0 0;
  background: var(--eyelets), #ddd6cd;
}
.ww-reply-seal {
  position: absolute;
  top: -30px;
  left: 50%;
  margin-left: -37px;
}
.white-wedding .rsvp-form h3 {
  font-family: "Pinyon Script", "Cormorant Garamond", Georgia, serif;
  font-size: 46px;
  color: var(--script-ink);
  text-align: center;
}

/* Footer */
.white-wedding footer {
  background: #ebe7e1;
}
.ww-lace-band {
  height: 22px;
  margin-bottom: 55px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 2.4px, transparent 2.9px) 0 50% / 14px 14px repeat-x,
    var(--cocoa);
}
.ww-footer-seal {
  position: relative;
  margin: 0 auto 22px;
}

@keyframes ww-pulse {
  50% {
    opacity: 0.45;
  }
}
@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-lilies {
    right: -40px;
    width: 130px;
  }
  .ww-when,
  .ww-portrait {
    gap: 48px;
  }
}

@media (max-width: 600px) {
  .ww-hero {
    min-height: 100svh;
    padding: calc(28px + 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-lace {
    padding: 11px;
  }
  .ww-card {
    padding: 44px 22px 40px;
    outline-offset: -8px;
  }
  .ww-names {
    margin: 14px 0 18px;
    font-size: 54px;
  }
  .ww-date {
    font-size: 24px;
  }
  .ww-lilies {
    top: auto;
    right: -6px;
    bottom: -44px;
    width: 72px;
  }
  .ww-when,
  .ww-portrait {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .ww-calendar {
    padding: 24px 14px 18px;
    border-width: 11px;
    transform: none;
  }
  .ww-cal-month {
    font-size: 46px;
  }
  .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-lily {
    right: -18px;
    width: 90px;
  }
  .ww-count-lily {
    display: none;
  }
  .ww-fabrics {
    gap: 16px;
    padding: 8px;
  }
  .ww-fabric span {
    bottom: 10px;
    font-size: 20px;
  }
  .ww-fabric-lily {
    top: -30px;
    right: 14px;
    width: 76px;
  }
}
