@font-face { font-family: "Slight"; src: url("fonts/Slight/Slight/Slight-Regular.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Serlio LH"; src: url("fonts/Serlio LH Regular.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("fonts/PlayfairDisplay-Regular.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }

:root {
  --wine: #4A1418;
  --ink: #6E1A22;
  --ink-soft: #7A3A40;
  --paper: #ECE5DA;
  --ivory: #F3EDE5;
  --ivory-soft: #E2D3C8;
  --line: #D9C3B6;
  --monogram-paper: #FDF5DC;
  --hero-paper: #F7F4EE;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
img { max-width: none; }
a { color: var(--ink); } a:hover { color: var(--wine); }

/* Full-screen invitation entrance. The animated monogram is intentionally the
   only visible element until the guest interacts with the page. */
html.welcome-pending,
html.welcome-pending body { overflow: hidden; }
.welcome-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  place-items: center;
  background: var(--monogram-paper);
  opacity: 1;
  visibility: visible;
  transition: opacity 700ms ease, visibility 700ms ease;
}
html.welcome-pending .welcome-gate { display: grid; }
.welcome-gate.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.welcome-gate__trigger {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.welcome-gate__trigger:focus-visible { outline: 2px solid var(--ink); outline-offset: -8px; }
.welcome-gate__trigger img {
  display: block;
  width: min(88vmin, 900px);
  height: min(88vmin, 900px);
  object-fit: contain;
}

.site { font-family: "Playfair Display", Georgia, serif; color: var(--ink); overflow-x: hidden; }

.paper {
  background-color: var(--paper);
  background-image: url("bg beige.png");
  background-image: image-set(url("bg beige.png") 1x, url("bg beige@2x.jpg") 2x);
  background-position: center;
  background-size: cover;
}
.wine {
  background-color: var(--wine);
  background-image: url("timeline bg.png");
  background-image: image-set(url("timeline bg.png") 1x, url("timeline bg@2x.jpg") 2x);
  background-position: center;
  background-size: cover;
}
.wine-plain { background: var(--wine); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
/* Slight's swashes reach well above its line box; iOS Safari clips that ink on animated
   (data-reveal) blocks, so give every script heading room inside its own box. */
.script { margin: 0; font-family: "Slight", cursive; font-weight: 400; line-height: 1.2; padding-top: .4em; padding-bottom: .15em; }
.script--light { color: var(--ivory); }

/* SCROLL REVEALS — sections 3 onward */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 1.15s ease,
    transform 1.15s cubic-bezier(.22, 1, .36, 1);
  transition-delay: 0s;
  will-change: opacity, transform;
}
.reveal-ready [data-reveal="flower"] {
  transform: translate3d(0, 22px, 0) scale(.96);
  transition-duration: 1.45s;
}
.reveal-ready [data-reveal].is-in-view {
  opacity: var(--reveal-opacity, 1);
  transform: translate3d(0, 0, 0) scale(1);
  transition-delay: var(--reveal-delay, 0s);
}

/* SCROLL BLOOM — flower heads lead, swell while rising, then lock beside section 3. */
.bloom-petals {
  --bloom-opacity: 0;
  --bloom-left-x: -52%;
  --bloom-right-x: 52%;
  --bloom-left-z: 78deg;
  --bloom-right-z: -78deg;
  --bloom-left-y: 0deg;
  --bloom-right-y: 0deg;
  --bloom-vertical: 22vh;
  --bloom-scale: 1;
  position: fixed;
  inset: 0;
  z-index: 4;
  visibility: hidden;
  pointer-events: none;
  perspective: 1100px;
}
.bloom-petals.is-active { visibility: visible; }
.bloom-petal {
  position: absolute;
  top: 51%;
  width: clamp(210px, 22vw, 300px);
  height: auto;
  opacity: var(--bloom-opacity);
  transform-style: preserve-3d;
  backface-visibility: visible;
  filter: drop-shadow(0 12px 18px rgba(74, 20, 24, .08));
  will-change: transform, opacity;
}
.bloom-petal--left {
  left: clamp(-92px, -5vw, -42px);
  transform-origin: 0 88%;
  transform:
    translate3d(var(--bloom-left-x), calc(-50% + var(--bloom-vertical)), 0)
    rotateZ(var(--bloom-left-z))
    rotateY(var(--bloom-left-y))
    scale(var(--bloom-scale));
}
.bloom-petal--right {
  right: clamp(-92px, -5vw, -42px);
  transform-origin: 100% 88%;
  transform:
    translate3d(var(--bloom-right-x), calc(-50% + var(--bloom-vertical)), 0)
    rotateZ(var(--bloom-right-z))
    rotateY(var(--bloom-right-y))
    scale(var(--bloom-scale));
}

/* NAV */
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; padding: 18px 16px; border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.nav a { text-decoration: none; padding: 12px 4px; }

/* HERO */
.hero { line-height: 0; background: var(--hero-paper); }
.hero__video { width: 100%; height: clamp(280px, 52vw, 760px); object-fit: cover; object-position: center; display: block; background: var(--hero-paper); }

/* INTRO */
.intro { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(64px, 9vw, 120px) 24px clamp(72px, 10vw, 140px); background: var(--monogram-paper); }
.intro__mono { width: clamp(120px, 16vw, 200px); height: auto; margin-bottom: 40px; }
.eyebrow { margin: 0; font-size: clamp(13px, 1.2vw, 16px); letter-spacing: .32em; text-transform: uppercase; }
.names { margin: 14px 0 32px; font-family: "Serlio LH", "Playfair Display", serif; font-weight: 400; font-size: clamp(34px, 5vw, 68px); letter-spacing: .12em; text-transform: uppercase; line-height: 1.1; }
.intro__date { margin: 0; font-size: clamp(14px, 1.3vw, 17px); letter-spacing: .14em; font-variant: small-caps; line-height: 1.8; }

/* LACE FRAMES (image + text overlay) */
.lace { position: relative; flex-shrink: 0; container-type: inline-size; }
.lace > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lace__content {
  --lace-fit-scale: 1;
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--ink);
  transform: scale(var(--lace-fit-scale));
  transform-origin: center;
}

/* LETTER */
.letter { display: flex; flex-direction: column; align-items: center; padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); color: var(--ivory); }
.lace--letter { width: min(1240px, 150vw); aspect-ratio: 1754 / 1240; }
.lace__content--letter { left: 26%; right: 26%; top: 16%; bottom: 16%; font-family: "Playfair Display", Georgia, serif; font-style: normal; font-weight: 400; font-size: clamp(10px, 1.55cqw, 20pt); letter-spacing: .15em; line-height: 1.5; }
.lace__content--letter p { margin: 0; }
.lace__content--letter .sign { margin-top: 1em; }
.letter .script { margin: 0 0 18px; font-size: clamp(34px, 4vw, 56px); text-align: center; padding: .4em 16px .15em; }
.countdown { display: flex; gap: clamp(14px, 3vw, 32px); }
.countdown div { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 52px; }
.countdown span { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.countdown small { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ivory-soft); }

/* DETAILS */
/* This section is very tall, so "cover" blew the paper texture up. Keep it at roughly the
   scale the carousel section shows it, repeating down the page instead of zooming. */
.details.paper { background-size: max(100%, 1100px) auto; background-repeat: repeat-y; background-position: center top; }
.details { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(72px, 9vw, 120px) 24px clamp(80px, 10vw, 140px); }
.details__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: clamp(64px, 7vw, 88px); max-width: 640px; width: 100%; }
.lily { position: absolute; opacity: .85; pointer-events: none; --reveal-opacity: .85; }
.lily--1 { left: -40px; top: 40px; width: 260px; }
.lily--4 { right: -40px; bottom: 120px; width: 260px; }
.venue, .dress { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.venue img { width: min(360px, 80vw); height: auto; margin-bottom: 14px; }
.venue h2 { margin: 0; font-family: "Serlio LH", serif; font-weight: 400; font-size: clamp(28px, 3.7vw, 40pt); letter-spacing: .08em; text-transform: uppercase; }
.venue__time { margin: 2px 0 0; font-family: "Playfair Display", Georgia, serif; font-weight: 400; font-size: clamp(20px, 2.6vw, 28pt); letter-spacing: .08em; text-transform: uppercase; }
.venue__name {
  margin: 0;
  max-width: 100%;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(20px, 2.6vw, 28pt);
  line-height: 1.25;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
}
.venue__addr { margin: 0; max-width: 440px; font-family: "Playfair Display", Georgia, serif; font-weight: 400; font-size: clamp(15px, 1.76vw, 19pt); letter-spacing: .08em; line-height: 1.55; color: var(--ink-soft); }
.dress__title { margin: 0; font-family: "Serlio LH", serif; font-weight: 400; font-size: clamp(34px, 4.63vw, 50pt); letter-spacing: .16em; text-transform: uppercase; }
.dress__sub { margin: 0 0 28px; font-family: "Playfair Display", Georgia, serif; font-weight: 400; font-size: clamp(20px, 2.6vw, 28pt); letter-spacing: .08em; text-transform: uppercase; }
.dress__fig { height: 220px; width: auto; }
.dress .script { margin-top: 8px; font-family: "Slight", cursive; font-weight: 400; font-size: clamp(34px, 4.07vw, 44pt); letter-spacing: 0; }
.note { margin: 0; max-width: 520px; font-family: "Playfair Display", Georgia, serif; font-weight: 400; font-size: clamp(15px, 1.76vw, 19pt); letter-spacing: .15em; line-height: 1.55; }
.dress__palette { width: 200px; height: auto; margin: 14px 0 44px; }

/* ENTOURAGE */
.entourage { display: flex; justify-content: center; align-items: center; min-height: 100vh; min-height: 100svh; padding: clamp(48px, 6vw, 90px) 0; overflow: hidden; }
.entourage__figure { margin: 0; display: flex; justify-content: center; width: min(1100px, 100%); line-height: 0; }
.entourage__figure img { width: 100%; height: auto; max-height: 92vh; object-fit: contain; }
@media (max-width: 640px) {
  /* Phones: scale the image so the paper card (x 15.96%–82.65% of the 1366px PNG) is
     ~88vw wide with 6vw of burgundy each side; the blush lily shapes run off-screen. */
  .entourage { padding: 32px 0; min-height: 0; }
  .entourage__figure { width: 100vw; justify-content: flex-start; }
  .entourage__figure img { flex: none; width: 131.9vw; max-width: none; max-height: none; margin-left: -15.05vw; } /* paper ≈ 88vw wide, 6vw burgundy each side */
}

/* TIMELINE */
.timeline { display: flex; justify-content: center; padding: clamp(48px, 6vw, 90px) 0; }
.lace--timeline { width: min(920px, 150vw); aspect-ratio: 853 / 836; }
/* The oval sits at x ≈ 52.8% in the asymmetric PNG. Shift the artwork and
   safe text box together so the visible paper is centered at every size. */
.lace--timeline > img { transform: translateX(-2.75%); }
.lace__content--timeline { left: 36.75%; width: 26.5%; top: 27%; bottom: 30.5%; justify-content: center; margin: 0; padding: 0; list-style: none; gap: clamp(6px, 2.2cqw, 22px); }
.lace__content--timeline li { display: flex; width: 100%; flex-direction: column; align-items: center; gap: .15em; text-align: center; line-height: 1.25; }
.lace__content--timeline .time { font-family: "Serlio LH", serif; font-size: clamp(10px, 2.1cqw, 19px); letter-spacing: .1em; }
.lace__content--timeline .t { font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: clamp(10px, 2cqw, 18px); letter-spacing: .12em; font-variant: small-caps; text-transform: lowercase; }
.lace__content--timeline .w { max-width: 100%; font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(8.5px, 1.45cqw, 13px); letter-spacing: .04em; text-wrap: balance; }

/* GALLERY */
.gallery { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 28px; padding: clamp(64px, 8vw, 110px) 16px; }
.lily--g1 { right: 2%; top: 20px; width: 200px; opacity: .8; --reveal-opacity: .8; }
.lily--g2 { left: 1%; bottom: 20px; width: 200px; opacity: .8; --reveal-opacity: .8; }
.slides { position: relative; width: min(880px, 100%); aspect-ratio: 3 / 2; background: #2A1A1A; overflow: hidden; }
.slides > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 900ms ease; }
.slides > img.is-active { opacity: 1; }
.slides__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(243,237,229,.7); background: rgba(74,20,24,.45); color: var(--ivory); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.slides__btn--prev { left: 12px; } .slides__btn--next { right: 12px; }
.dots { display: flex; flex-wrap: wrap; justify-content: center; }
.dots button { width: 32px; height: 44px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.dots button span { display: block; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ink); }
.dots button[aria-current="true"] span { background: var(--ink); }
.gallery__mono { width: 64px; height: auto; }

/* GIFTS */
.gifts { display: flex; justify-content: center; padding: clamp(72px, 8vw, 112px) 24px; color: var(--ivory); }
.gifts__inner { display: grid; grid-template-columns: minmax(380px, 450px) minmax(420px, 500px); align-items: center; justify-content: center; gap: clamp(44px, 5vw, 72px); max-width: 1050px; width: 100%; }
.gifts__text { display: grid; grid-template-columns: clamp(130px, 13vw, 190px) minmax(0, 340px); align-items: center; justify-content: center; text-align: center; gap: 12px; width: 100%; }
.gifts__text > img { justify-self: end; width: clamp(130px, 13vw, 190px); height: auto; }
.gifts__copy { max-width: 340px; }
.gifts__copy .script { margin: 0 0 10px; font-family: "Slight", cursive; font-weight: 400; font-size: clamp(34px, 4.17vw, 45pt); letter-spacing: 0; line-height: 1.1; }
.gifts__copy p { margin: 0; font-family: "Playfair Display", Georgia, serif; font-weight: 400; font-size: clamp(12px, 1.39vw, 15pt); letter-spacing: .15em; line-height: 1.65; }
.gifts__photos { position: relative; width: 100%; max-width: 500px; aspect-ratio: 5 / 4; }
.gifts__photos img { position: absolute; object-fit: cover; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.gifts__photos .p1 { left: 0; bottom: 0; width: 51%; height: 72%; }
.gifts__photos .p2 { right: 0; top: 0; width: 49%; height: 78%; }

/* RSVP */
.rsvp { display: flex; justify-content: center; padding: clamp(48px, 6vw, 90px) 0; }
.lace--rsvp { width: min(780px, 110vw); aspect-ratio: 846 / 876; }
/* Text box sits inside the frame's paper panel (measured from the PNG: x 25.2–69.4%, y 16.5–77.5%). */
.lace__content--rsvp { left: 28%; width: 38.5%; top: 20%; bottom: 25.5%; justify-content: center; gap: clamp(8px, 2.6cqw, 22px); transform-origin: center; }
.lace__content--rsvp .script { font-family: "Slight", cursive; font-weight: 400; font-size: clamp(22px, 5.5cqw, 44px); letter-spacing: 0; line-height: 1.3; padding: .3em .1em .1em; }
.lace__content--rsvp p { margin: 0; max-width: 100%; font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(10.5px, 1.9cqw, 15px); letter-spacing: .04em; line-height: 1.6; text-wrap: balance; }
.lace__content--rsvp .btn { min-height: 44px; padding: 0 8px; border: 0; font-family: "Serlio LH", serif; font-weight: 400; font-size: clamp(11px, 1.9cqw, 15px); letter-spacing: .2em; text-transform: uppercase; text-decoration: underline; text-underline-offset: .3em; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border: 1px solid var(--ink); text-decoration: none; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; }

.footer { text-align: center; padding: 28px 16px 40px; color: var(--ivory-soft); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; border-top: 1px solid rgba(226,211,200,.25); }

/* Background music: keep the Spotify player audio-only. */
.background-music {
  position: fixed;
  width: 300px;
  height: 80px;
  left: 0;
  bottom: 0;
  overflow: hidden;
  clip-path: inset(50%);
  pointer-events: none;
  opacity: 0;
}
.music-play {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 16px 8px 11px;
  border: 1px solid rgba(243, 237, 229, .7);
  border-radius: 999px;
  background: rgba(74, 20, 24, .92);
  color: var(--ivory);
  box-shadow: 0 8px 24px rgba(42, 26, 26, .24);
  font: 500 11px/1.2 "Playfair Display", Georgia, serif;
  letter-spacing: .13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, background-color 180ms ease;
}
.music-play:not(:disabled):hover { transform: translateY(-2px); background: var(--wine); }
.music-play:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }
.music-play:disabled { cursor: wait; opacity: .72; }
.music-play__icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(243, 237, 229, .55);
  border-radius: 50%;
  font-size: 15px;
  letter-spacing: 0;
}
.music-play.is-playing .music-play__icon { animation: music-pulse 1.6s ease-in-out infinite; }
@keyframes music-pulse { 50% { transform: scale(1.13); } }

@media (max-width: 700px) {
  /* Match the neutral ivory field inside the animation so its letterbox disappears. */
  .hero { display: grid; min-height: 100svh; height: 100svh; place-items: center; overflow: hidden; background: var(--hero-paper); }
  .hero__video { height: min(100vw, 70svh); min-height: 0; background: var(--hero-paper); }
  .intro { min-height: 100svh; height: 100svh; justify-content: center; padding: clamp(28px, 6svh, 54px) 24px; }
  .lace--timeline { width: min(135vw, 820px); }
}
@media (max-width: 640px) {
  .lily { display: none; }
  .dress .script { font-size: 32px; }
  .letter .script { font-size: 26px; }
  .lace__content--letter { top: 14.5%; bottom: 14.5%; }
  /* The RSVP artwork has asymmetric floral extensions. Offset the full PNG so
     the visible paper—and its centered text—lands on the viewport axis. */
  .lace--rsvp { width: 135vw; left: 3.71vw; }
  .bloom-petal { top: 54%; width: clamp(150px, 38vw, 205px); }
  .bloom-petal--left { left: -68px; }
  .bloom-petal--right { right: -68px; }
}
@media (min-width: 1300px) {
  .lace__content--letter { font-size: 20pt; }
}
@media (max-width: 900px) {
  .gifts__inner { grid-template-columns: minmax(0, 560px); gap: 48px; }
  .gifts__text { grid-template-columns: clamp(100px, 30vw, 150px) minmax(0, 340px); gap: 8px; }
  .gifts__text > img { width: clamp(100px, 30vw, 150px); }
  .gifts__photos { justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .welcome-gate { transition: none; }
  .slides > img { transition: none; }
  .reveal-ready [data-reveal],
  .reveal-ready [data-reveal].is-in-view {
    opacity: var(--reveal-opacity, 1);
    transform: none;
    transition: none;
  }
  .bloom-petals {
    --bloom-left-x: 0%;
    --bloom-right-x: 0%;
    --bloom-left-z: 0deg;
    --bloom-right-z: 0deg;
    --bloom-left-y: 0deg;
    --bloom-right-y: 0deg;
    --bloom-vertical: -12vh;
    --bloom-scale: 1;
  }
  .music-play.is-playing .music-play__icon { animation: none; }
}
