:root {
  --ivory: #fffdf8;
  --cream: #f3eadc;
  --paper: #faf5ec;
  --blush: #dcc0bd;
  --blush-deep: #cba5a2;
  --mauve: #715958;
  --brown: #594948;
  --brown-deep: #433735;
  --gold: #a98b5e;
  --sage: #7b8574;
  --ink: #544c48;
  --muted: #817773;
  --line: rgba(105, 83, 79, .22);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  --shadow: 0 22px 65px rgba(76, 59, 55, .14);
  --bar-height: 40px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #d8d0c8; }
body {
  margin: 0;
  color: var(--ink);
  background: #d8d0c8;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img { display: block; width: 100%; }
a, button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, p, figure, blockquote { margin-top: 0; }
svg { display: block; }

.svg-definitions,
.music-player {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: .001;
  pointer-events: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 400;
  top: 5px;
  left: 8px;
  padding: 8px 12px;
  color: #fff;
  background: var(--brown-deep);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.sample-bar {
  position: fixed;
  z-index: 300;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: var(--bar-height);
  color: rgba(255,255,255,.92);
  background: rgba(67, 55, 53, .93);
  border-bottom: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  font-size: .64rem;
  font-weight: 400;
  letter-spacing: .2em;
}

.opening {
  position: fixed;
  z-index: 250;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: calc(var(--bar-height) + 28px) 22px 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 10%, #fffdf7 0, transparent 57%),
    radial-gradient(circle at 90% 78%, #eadfce 0, transparent 61%),
    linear-gradient(135deg, #f5ede1, #eee3d2);
  opacity: 1;
  visibility: visible;
  transition: opacity .62s ease .35s, visibility .62s ease .35s;
}
.opening.is-hidden { opacity: 0; visibility: hidden; }
.opening[hidden] { display: none !important; }
.envelope-button {
  width: min(78vw, 760px);
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  filter: drop-shadow(0 28px 25px rgba(74, 60, 52, .2));
  cursor: pointer;
  touch-action: manipulation;
  transform: translateY(0) scale(1);
  transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .45s ease;
}
.envelope-button img { border-radius: 2px; }
.envelope-button:hover { transform: translateY(-5px) scale(1.008); }
.opening.is-opening .envelope-button { opacity: 0; transform: translateY(-18px) scale(1.045); }
.open-hint {
  margin: 0;
  color: #796d64;
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  transition: opacity .3s ease;
}
.opening.is-opening .open-hint { opacity: 0; }

.music-toggle {
  position: fixed;
  z-index: 180;
  right: max(15px, calc((100vw - 1320px) / 2 + 15px));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: rgba(72, 57, 55, .92);
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(64,48,46,.25);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease;
}
.music-toggle span { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid rgba(255,255,255,.48); border-radius: 50%; }
body.opened .music-toggle { opacity: 1; pointer-events: auto; transform: translateY(0); }
.music-toggle[aria-pressed="true"] span { animation: spin 4s linear infinite; }

.site-shell {
  position: relative;
  width: min(100%, 1320px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--ivory);
  box-shadow: var(--shadow);
}
.centered { text-align: center; }
.section { padding: 104px clamp(28px, 6vw, 86px); }
.section-content { width: min(100%, 980px); margin: 0 auto; }
.section-header { margin-bottom: 48px; }
.eyebrow {
  margin-bottom: 15px;
  color: var(--mauve);
  font-size: .64rem;
  font-weight: 400;
  letter-spacing: .23em;
  text-transform: uppercase;
}
.eyebrow.light { color: #e9d8d5; }
.section-title {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: .98;
}
.flourish { margin: -3px auto 28px; color: var(--gold); font-family: var(--serif); font-size: 1.25rem; }

.hero {
  position: relative;
  min-height: max(740px, 100svh);
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--bar-height) + 66px) 28px 70px;
}
.hero-media,
.hero-media img,
.hero-wash { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -3; }
.hero-media img { object-fit: cover; }
.hero-wash {
  z-index: -2;
  background: radial-gradient(circle at 50% 49%, rgba(255,253,248,.84) 0 22%, rgba(255,253,248,.64) 48%, rgba(255,253,248,.2) 100%);
}
.hero-content { width: min(100%, 900px); }
.hero-monogram {
  margin-bottom: 5px;
  color: var(--brown);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  letter-spacing: .03em;
}
.hero .eyebrow { margin-bottom: 33px; }
.hero h1 {
  margin-bottom: 31px;
  color: #4e4642;
  font-family: var(--serif);
  font-size: clamp(4rem, 9.5vw, 8rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .83;
}
.hero h1 span { display: inline-block; }
.hero h1 em { display: inline-block; margin: 0 .12em; color: var(--gold); font-weight: 400; }
.hero-date {
  display: block;
  margin-bottom: 28px;
  color: var(--brown);
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .35em;
}
.hero blockquote {
  max-width: 720px;
  margin: 0 auto 2px;
  color: #615653;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.1vw, 1.5rem);
  font-style: italic;
}
.verse-reference { margin-bottom: 29px; color: var(--muted); font-family: var(--serif); font-size: .93rem; font-style: italic; }
.hero-place { margin-bottom: 0; color: var(--mauve); font-size: .65rem; font-weight: 400; letter-spacing: .25em; text-transform: uppercase; }

.invitation-intro { background: var(--ivory); }
.invitation-intro .eyebrow { margin-bottom: 5px; }
.rings-photo { width: min(100%, 760px); margin: 0 auto 42px; overflow: hidden; box-shadow: 0 20px 46px rgba(69,54,50,.11); }
.rings-photo img { aspect-ratio: 3 / 1.85; object-fit: cover; }
.intro-copy h2 {
  margin-bottom: 11px;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 400;
}
.intro-copy p { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: .88rem; line-height: 1.8; }

.families { background: #f7f0e8; }
.family-grid { display: grid; grid-template-columns: 1fr 110px 1fr; align-items: center; gap: 26px; }
.family-grid article { min-width: 0; }
.person-name { margin-bottom: 28px; color: var(--brown); font-family: var(--serif); font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.04; }
.family-label { margin-bottom: 11px; color: var(--gold); font-size: .6rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; }
.family-grid article > p:last-child,
.padrinos > p:last-child { margin-bottom: 0; font-family: var(--serif); font-size: 1.2rem; line-height: 1.55; }
.family-divider { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--gold); }
.family-divider span { width: 23px; height: 1px; background: rgba(169,139,94,.5); }
.family-divider b { font-family: var(--serif); font-size: 2.2rem; font-weight: 400; }
.padrinos { width: min(100%, 610px); margin: 58px auto 0; padding-top: 31px; border-top: 1px solid var(--line); }

.venue-section { background: #ead9ce; }
.venue-banner {
  height: 285px;
  background: linear-gradient(rgba(255,253,248,.14), rgba(255,253,248,.14)), url("anillos-flores.webp") center 45% / cover no-repeat;
}
.venue-content { padding: 78px clamp(28px, 6vw, 92px) 86px; }
.venue-content .section-header { margin-bottom: 35px; }
.venue-content .flourish { margin-bottom: 0; }
.venue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; width: min(100%, 930px); margin: 0 auto; }
.venue-card { padding: 58px 30px 52px; background: rgba(255,253,248,.95); border: 1px solid rgba(115,83,76,.15); box-shadow: 0 14px 38px rgba(88,61,55,.08); }
.venue-card time { display: block; margin-bottom: 13px; color: var(--mauve); font-size: .64rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; }
.venue-type { margin-bottom: 14px; color: var(--gold); font-size: .56rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; }
.venue-card h3 { margin-bottom: 20px; color: var(--brown); font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 2.7rem); font-weight: 400; line-height: 1.02; }
.venue-address { min-height: 56px; margin-bottom: 27px; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  color: var(--brown);
  background: transparent;
  border: 1px solid rgba(89,73,72,.52);
  border-radius: 999px;
  font-size: .59rem;
  font-weight: 400;
  letter-spacing: .15em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.outline-button:hover { color: #fff; background: var(--brown); transform: translateY(-2px); }
.outline-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.outdoor-note { width: max-content; max-width: 100%; margin: 26px auto 0; padding: 8px 16px; color: var(--mauve); border: 1px solid rgba(113,89,88,.25); border-radius: 999px; font-family: var(--serif); font-size: 1rem; font-style: italic; }

.itinerary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 106px clamp(28px, 7vw, 96px) 87px;
  color: var(--brown-deep);
  background: #f8f3ea;
}
.itinerary::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("flores-hero-desktop.webp") center / cover no-repeat;
  opacity: .16;
}
.itinerary::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 27px;
  border: 1px solid rgba(169,139,94,.52);
  pointer-events: none;
}
.itinerary .section-content { max-width: 930px; }
.itinerary-header { margin-bottom: 52px; }
.itinerary .eyebrow { margin-bottom: 12px; color: var(--gold); }
.itinerary h2 {
  margin-bottom: 21px;
  color: var(--brown-deep);
  font-family: var(--serif);
  font-size: clamp(2.55rem, 5vw, 4.1rem);
  font-weight: 400;
  line-height: 1;
}
.itinerary-flourish { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); font-size: .72rem; }
.itinerary-flourish i { width: 118px; height: 1px; background: rgba(169,139,94,.58); }
.timeline { max-width: 840px; margin: 0 auto; padding: 0; list-style: none; }
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 76px 38px minmax(215px, 260px) minmax(0, 1fr);
  align-items: center;
  min-height: 126px;
  text-align: left;
}
.timeline-icon { display: grid; place-items: center; width: 63px; height: 63px; color: var(--gold); }
.timeline-icon svg { width: 52px; height: 52px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.2; }
.timeline-marker { position: relative; align-self: stretch; display: grid; place-items: center; }
.timeline-marker::before { content: ""; position: absolute; top: -1px; bottom: -1px; left: 50%; width: 1px; background: rgba(169,139,94,.48); }
.timeline-marker::after { content: "♥"; position: relative; z-index: 1; display: grid; place-items: center; width: 22px; height: 22px; color: var(--gold); background: #f8f3ea; font-size: .7rem; }
.timeline li:first-child .timeline-marker::before { top: 50%; }
.timeline li:last-child .timeline-marker::before { bottom: 50%; }
.timeline-moment { padding: 14px 26px 14px 20px; }
.timeline time { display: block; margin-bottom: 5px; color: var(--brown-deep); font-family: var(--serif); font-size: 2rem; font-weight: 500; letter-spacing: .02em; line-height: 1; }
.timeline time small { font-family: var(--sans); font-size: .47em; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.timeline strong { display: block; color: var(--mauve); font-size: .62rem; font-weight: 500; letter-spacing: .18em; line-height: 1.5; text-transform: uppercase; }
.timeline li > p { margin: 0; padding: 11px 0 11px 28px; color: #6c625d; border-left: 1px solid rgba(169,139,94,.48); font-family: var(--serif); font-size: 1.13rem; line-height: 1.35; }
.itinerary-closing { margin: 38px 0 0; color: var(--brown); font-family: var(--serif); font-size: clamp(1.85rem, 4vw, 2.7rem); font-style: italic; text-align: center; }

.countdown-section {
  position: relative;
  min-height: 650px;
  display: grid;
  place-items: center;
  isolation: isolate;
  padding: 80px 28px;
  background: url("flores-hero-desktop.webp") center / cover no-repeat;
}
.countdown-wash { position: absolute; inset: 0; z-index: -1; background: rgba(255,253,248,.3); }
.countdown-panel { width: min(100%, 720px); padding: 58px 42px; background: rgba(255,253,248,.86); border: 1px solid rgba(255,255,255,.62); box-shadow: 0 25px 70px rgba(91,67,61,.13); backdrop-filter: blur(6px); }
.countdown-panel h2 { margin-bottom: 34px; font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 3.9rem); font-weight: 400; line-height: 1; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 570px; margin: 0 auto 35px; }
.countdown div { padding: 0 8px; border-right: 1px solid var(--line); }
.countdown div:last-child { border-right: 0; }
.countdown strong { display: block; color: var(--brown); font-family: var(--serif); font-size: clamp(2.5rem, 6vw, 4.2rem); font-weight: 400; line-height: .9; }
.countdown span { display: block; margin-top: 9px; color: var(--muted); font-size: .55rem; letter-spacing: .12em; text-transform: uppercase; }

.gifts { padding: 103px 28px; background: var(--blush); }
.gifts .section-content { max-width: 820px; }
.gifts h2 { margin-bottom: 16px; color: var(--brown); font-family: var(--serif); font-size: clamp(2.55rem, 5vw, 4.2rem); font-weight: 400; line-height: 1; }
.gifts .section-content > p:not(.eyebrow) { max-width: 670px; margin: 0 auto 34px; color: #665856; font-size: .82rem; }
.gift-card { display: flex; align-items: center; justify-content: center; gap: 13px; width: min(100%, 490px); margin: 0 auto; padding: 26px 30px; background: rgba(255,253,248,.9); border: 1px solid rgba(89,73,72,.18); box-shadow: 0 13px 34px rgba(79,55,52,.08); }
.gift-card svg { width: 28px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 1.35; }
.gift-card span { color: var(--brown); font-family: var(--serif); font-size: 1.55rem; }

.rsvp { padding: 106px 28px; background: var(--ivory); }
.rsvp-content { width: min(100%, 760px); margin: 0 auto; }
.passes { margin: -7px 0 21px; color: var(--gold); font-family: var(--serif); font-size: clamp(2.7rem, 6vw, 4.2rem); line-height: 1; }
.passes strong { font-size: 1.45em; font-weight: 400; }
.rsvp h2 { margin-bottom: 12px; color: var(--brown); font-family: var(--serif); font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 400; }
.rsvp-content > p:not(.eyebrow):not(.passes) { margin-bottom: 28px; color: var(--muted); font-size: .8rem; }

.closing { padding: 78px 28px 42px; color: #fff; background: var(--brown-deep); }
.closing-monogram { margin-bottom: 7px; color: #d5b790; font-family: var(--serif); font-size: 1.65rem; font-style: italic; }
.closing h2 { margin-bottom: 12px; color: #f7efea; font-family: var(--serif); font-size: clamp(2.7rem, 6vw, 4.7rem); font-weight: 400; }
.closing > p:not(.closing-monogram) { margin-bottom: 24px; color: rgba(255,255,255,.7); font-family: var(--serif); font-size: 1.14rem; }
.closing time { display: block; margin-bottom: 45px; color: #d7c2ba; font-size: .63rem; letter-spacing: .21em; }
.closing small { color: rgba(255,255,255,.42); font-size: .54rem; letter-spacing: .13em; }

[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .72s ease, transform .72s cubic-bezier(.22,.8,.28,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

.envelope-button:focus-visible,
.music-toggle:focus-visible,
.outline-button:focus-visible {
  outline: 3px solid rgba(169,139,94,.65);
  outline-offset: 4px;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .section { padding: 82px 23px; }
  .hero { min-height: 100svh; padding: calc(var(--bar-height) + 45px) 22px 45px; }
  .hero-wash { background: radial-gradient(circle at 50% 49%, rgba(255,253,248,.91) 0 23%, rgba(255,253,248,.65) 53%, rgba(255,253,248,.12) 100%); }
  .hero .eyebrow { margin-bottom: 26px; }
  .hero h1 { font-size: clamp(4.1rem, 18vw, 6.2rem); line-height: .74; }
  .hero h1 span { display: block; }
  .hero h1 em { display: block; margin: .16em 0 .18em; font-size: .66em; line-height: .55; }
  .hero-date { font-size: .68rem; letter-spacing: .27em; }
  .rings-photo img { aspect-ratio: 4 / 3; }
  .family-grid { grid-template-columns: 1fr; gap: 30px; }
  .family-divider { flex-direction: column; gap: 7px; }
  .family-divider span { width: 1px; height: 22px; }
  .family-divider b { line-height: .7; }
  .venue-banner { height: 220px; }
  .venue-content { padding: 68px 22px 74px; }
  .venue-grid { grid-template-columns: 1fr; }
  .venue-card { padding: 49px 24px 44px; }
  .itinerary { padding-right: 46px; padding-left: 46px; }
  .timeline li { grid-template-columns: 66px 32px minmax(178px, 220px) minmax(0, 1fr); }
  .timeline-icon { width: 55px; height: 55px; }
  .timeline-icon svg { width: 46px; height: 46px; }
  .timeline-moment { padding-right: 18px; padding-left: 16px; }
  .timeline li > p { padding-left: 20px; }
  .countdown-section { min-height: 700px; padding: 72px 20px; background-image: url("flores-hero-mobile.webp"); }
  .countdown-panel { padding: 48px 20px; }
  .countdown strong { font-size: clamp(2.2rem, 11vw, 3.3rem); }
}

@media (max-width: 520px) {
  .opening { gap: 20px; padding-right: 14px; padding-left: 14px; }
  .envelope-button { width: 96vw; }
  .open-hint { font-size: .56rem; letter-spacing: .2em; }
  .invitation-intro { padding-top: 77px; }
  .intro-copy p { font-size: .79rem; }
  .venue-card h3 { font-size: 2.25rem; }
  .itinerary { padding: 82px 30px 72px; }
  .itinerary::before { background-image: url("flores-hero-mobile.webp"); opacity: .12; }
  .itinerary::after { inset: 14px; }
  .itinerary-header { margin-bottom: 36px; }
  .itinerary h2 { font-size: clamp(2.5rem, 13vw, 3.45rem); }
  .itinerary-flourish i { width: 76px; }
  .timeline li { grid-template-columns: 52px 27px minmax(0, 1fr); min-height: 142px; align-content: center; }
  .timeline-icon { width: 45px; height: 45px; grid-row: 1 / span 2; }
  .timeline-icon svg { width: 39px; height: 39px; }
  .timeline-marker { grid-column: 2; grid-row: 1 / span 2; }
  .timeline-moment { grid-column: 3; padding: 14px 0 4px 14px; }
  .timeline time { font-size: 1.8rem; }
  .timeline li > p { grid-column: 3; margin: 0 0 14px 14px; padding: 0; border-left: 0; font-size: 1.03rem; }
  .itinerary-closing { margin-top: 24px; }
  .countdown div { padding: 0 3px; }
  .countdown span { font-size: .48rem; }
  .gifts, .rsvp { padding-right: 21px; padding-left: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
