@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --ivory: #f6f0e6; --paper: #fbf8f1; --ink: #342a25; --muted: #81746a;
  --gold: #ad8953; --gold-light: #d8c29b; --wine: #673b3b; --line: #ded3c1;
  --serif: 'Cormorant Garamond', Georgia, serif; --sans: 'DM Sans', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.section { padding: clamp(5rem, 11vw, 9rem) max(7vw, calc((100vw - 1180px)/2)); }
.eyebrow { color: var(--gold); font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h2 { font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: .98; margin: .6rem 0 1.2rem; }
h2 em, h3 em { color: var(--gold); font-weight: 400; }
.section-heading { text-align: center; max-width: 720px; margin: 0 auto 4rem; }
.section-intro { max-width: 540px; margin: 0 auto; color: var(--muted); line-height: 1.8; font-size: .92rem; }
.button { display: inline-flex; gap: 1.5rem; align-items: center; justify-content: center; border: 0; padding: 1rem 1.5rem; letter-spacing: .08em; text-transform: uppercase; font-size: .68rem; cursor: pointer; transition: transform .25s, background .25s; }
.button:hover { transform: translateY(-3px); }
.button--gold { background: var(--gold); color: white; }
.button--dark { background: var(--ink); color: white; }

/* Invitation envelope */
.intro { position: fixed; z-index: 20; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; text-align: center; background: radial-gradient(ellipse at center, #fffdf7 0%, var(--ivory) 65%, #e9decd 100%); transition: opacity .8s ease, visibility .8s; }
.intro.is-open { opacity: 0; visibility: hidden; pointer-events: none; }
.intro__ornament { color: var(--gold); font-size: 1.5rem; margin-bottom: .5rem; }
.intro__eyebrow { margin: 0 0 2rem; }
.envelope { width: min(330px, 76vw); height: 210px; position: relative; perspective: 900px; margin: 0 auto 2rem; filter: drop-shadow(0 22px 24px #6d52301c); }
.envelope__back, .envelope__front, .envelope__flap, .envelope__letter { position: absolute; inset: 0; }
.envelope__back { background: #d9c5a3; border: 1px solid #c8ae82; }
.envelope__letter { inset: 12px 18px 8px; height: 180px; background: #fffdf8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; transition: transform 1s .25s; }
.letter-monogram { font: 2.7rem var(--serif); color: var(--wine); }
.letter-monogram i { color: var(--gold); font-size: 1.5rem; }
.letter-caption { color: var(--gold); letter-spacing: .2em; text-transform: uppercase; font-size: .55rem; }
.envelope__front { background: linear-gradient(145deg, transparent 49.5%, #c9b18a 50%), linear-gradient(35deg, #e8d9bd 49.5%, transparent 50%); clip-path: polygon(0 0,100% 0,100% 100%,0 100%); }
.envelope__flap { background: #d5c09a; clip-path: polygon(0 0,100% 0,50% 58%); transform-origin: top; transition: transform .8s ease; backface-visibility: hidden; }
.envelope__seal { position: absolute; z-index: 2; left: 50%; top: 53%; transform: translate(-50%,-50%); width: 43px; height: 43px; border-radius: 50%; display: grid; place-items: center; background: var(--wine); color: #f8edda; font: 1rem var(--serif); border: 2px solid #d8c29b; }
.envelope__seal span { color: var(--gold-light); font-size: .7rem; }
.intro.is-unfolding .envelope__flap { transform: rotateX(180deg); }
.intro.is-unfolding .envelope__letter { transform: translateY(-78px); }
.intro__names { font: 2.4rem var(--serif); margin: 0 0 .35rem; }
.intro__names span { color: var(--gold); }
.intro__date, .intro__hint { color: var(--muted); font-size: .7rem; letter-spacing: .08em; }
.intro__open { margin-top: 1.2rem; }
.intro__hint { margin-top: 1.1rem; opacity: .7; }

/* Main page */
.site { opacity: 0; transition: opacity 1s ease; }
.site.is-visible { opacity: 1; }
.topbar { height: 76px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; gap: 2rem; position: sticky; z-index: 10; top: 0; background: #f6f0e6ed; backdrop-filter: blur(14px); border-bottom: 1px solid #ded3c177; }
.brand, .footer__monogram { font: 1.65rem var(--serif); color: var(--wine); }
.brand span, .footer__monogram span { color: var(--gold); }
.topnav { display: flex; gap: clamp(1rem, 3vw, 2.6rem); color: var(--muted); font-size: .68rem; }
.topnav a:hover, .text-link:hover { color: var(--gold); }
.music-toggle { border: 1px solid var(--line); color: var(--ink); background: transparent; padding: .65rem .9rem; font-size: .65rem; cursor: pointer; display: flex; gap: .5rem; align-items: center; }
.music-toggle__icon { color: var(--gold); font-size: 1rem; }
.hero { min-height: min(850px, calc(100svh - 76px)); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #fffdf8 0%, #f6f0e6 65%); }
.hero:before, .hero:after { content: "❧"; position: absolute; color: #c4a97955; font: clamp(8rem, 22vw, 19rem) var(--serif); top: 20%; }
.hero:before { left: -3%; transform: rotate(-35deg); }
.hero:after { right: -3%; transform: scaleX(-1) rotate(-35deg); }
.hero__kicker { color: var(--muted); font: 1.1rem var(--serif); margin: 1.4rem 0 .2rem; }
.hero h1 { font-size: clamp(4.2rem, 12vw, 9.5rem); line-height: .85; margin: 1rem 0; color: var(--wine); }
.hero h1 em { color: var(--gold); font-size: .7em; }
.hero__rule { width: 150px; height: 1px; background: var(--gold-light); margin: 1.5rem 0; position: relative; }
.hero__rule span { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--ivory); padding: 0 .7rem; color: var(--gold); }
.hero__date { letter-spacing: .2em; font-size: .78rem; }
.hero__location { color: var(--muted); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; }
.scroll-cue { position: absolute; bottom: 2.5rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; font-size: .58rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.scroll-cue span { height: 34px; width: 1px; background: var(--gold); }
.story { text-align: center; background: var(--paper); }
.story__image { min-height: 440px; max-width: 800px; margin: 0 auto; }
.image-placeholder { position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; overflow: hidden; background: linear-gradient(135deg, #e8ddca, #f5eee2 50%, #d8c8ad); color: #927b5b; }
.image-placeholder:after { content: ""; position: absolute; inset: 16px; border: 1px solid #b79b6a88; pointer-events: none; }
.placeholder-mark { font: clamp(3rem, 8vw, 6rem) var(--serif); color: #876d4c; }
.placeholder-mark i { color: var(--gold); }
.placeholder-note { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; text-align: center; padding: 1rem; color: #806d53; }
.story__closing { margin: 2rem auto 0; font: italic 1.45rem var(--serif); color: var(--wine); }
.events { background: var(--ivory); }
.event { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(2rem, 7vw, 7rem); margin: 0 auto 7rem; max-width: 1100px; }
.event:last-child { margin-bottom: 0; }
.event--reverse .event__art { order: 2; }
.event__art { min-height: 440px; }
.event__number { position: absolute; top: 2rem; left: 2rem; font: 1.3rem var(--serif); color: var(--wine); z-index: 1; }
.event__copy { padding: 1rem 0; }
.event__copy h3 { font-size: clamp(2.8rem, 5vw, 4.7rem); line-height: .95; margin: .8rem 0 1rem; color: var(--wine); }
.event__copy > p:not(.eyebrow) { max-width: 390px; color: var(--muted); line-height: 1.8; font-size: .88rem; }
.event dl { margin-top: 2rem; border-top: 1px solid var(--line); max-width: 350px; }
.event dl div { display: flex; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .75rem; }
.event dt { color: var(--gold); width: 65px; text-transform: uppercase; letter-spacing: .1em; font-size: .6rem; }
.event dd { margin: 0; color: var(--ink); }
.event--haldi .event__art { background: linear-gradient(135deg,#f2df9c,#f9f0d3 55%,#dfc16e); }
.event--mehendi .event__art { background: linear-gradient(135deg,#d9e0c9,#f0eee0 55%,#b5c49b); }
.event--sangeet .event__art { background: linear-gradient(135deg,#d6c3d0,#f1e5df 55%,#a88aa2); }
.event--wedding .event__art { background: linear-gradient(135deg,#e4c7bd,#f5e9db 55%,#b47b70); }
.event--reception .event__art { background: linear-gradient(135deg,#d9c9a8,#f5eddd 55%,#b89c6b); }
.countdown { text-align: center; background: var(--wine); color: var(--paper); }
.countdown .eyebrow { color: var(--gold-light); }
.countdown h2 em { color: var(--gold-light); }
.countdown__grid { display: flex; justify-content: center; gap: clamp(1.5rem, 6vw, 5rem); margin-top: 3rem; }
.countdown__grid div { display: flex; flex-direction: column; gap: .4rem; min-width: 65px; }
.countdown__grid strong { font: clamp(2.5rem, 6vw, 4.5rem) var(--serif); font-weight: 400; }
.countdown__grid span { color: #dfc9b8; font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; }
.venue, .rsvp { text-align: center; }
.venue__card { max-width: 650px; margin: 3rem auto 0; padding: 2rem; border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; text-align: left; background: #fbf8f1; }
.venue__monogram { font: 2rem var(--serif); color: var(--wine); white-space: nowrap; }
.venue__monogram span { color: var(--gold); }
.venue__card div:nth-child(2) { display: flex; flex-direction: column; gap: .4rem; }
.venue__card strong { font: 1.3rem var(--serif); font-weight: 500; }
.venue__card div:nth-child(2) span { color: var(--muted); font-size: .7rem; }
.text-link { color: var(--gold); font-size: .7rem; white-space: nowrap; }
.rsvp { background: var(--paper); }
.rsvp__form { max-width: 480px; margin: 3rem auto 0; display: grid; gap: 1.2rem; text-align: left; }
.rsvp__form label { display: grid; gap: .5rem; color: var(--muted); font-size: .7rem; letter-spacing: .04em; }
.rsvp__form input, .rsvp__form select { width: 100%; border: 1px solid var(--line); background: transparent; padding: 1rem; color: var(--ink); outline-color: var(--gold); border-radius: 0; }
.rsvp__form button { width: 100%; }
.form-note { text-align: center; color: var(--muted); font-size: .65rem; line-height: 1.5; }
.footer { padding: 4rem 1.5rem; text-align: center; background: #eee5d7; }
.footer__monogram { font-size: 2.5rem; }
.footer p { font: italic 1.25rem var(--serif); color: var(--wine); }
.footer small { color: var(--muted); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 760px) {
  .topbar { height: 66px; padding: 0 4vw; gap: .6rem; }
  .topnav { display: none; }
  .music-toggle { margin-left: auto; }
  .hero { min-height: 78svh; }
  .hero:before { left: -20%; top: 25%; }
  .hero:after { right: -20%; top: 25%; }
  .event { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 5rem; }
  .event--reverse .event__art { order: 0; }
  .event__art { min-height: 340px; }
  .event__copy { padding: 0 .3rem; }
  .venue__card { flex-direction: column; text-align: center; }
  .countdown__grid { gap: 1rem; }
  .countdown__grid div { min-width: 54px; }
  .countdown__grid span { font-size: .52rem; letter-spacing: .08em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* Full-screen, artwork-led invitation slides */
.full-slide { min-height: 100svh; height: 100svh; position: relative; overflow: hidden; display: grid; place-items: center; background: #e9dfcf; isolation: isolate; }
.slide-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; }
.full-slide:after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #21180b22, #21180b08 40%, #21180b35); pointer-events: none; }
.slide-fallback { width: min(90%, 760px); text-align: center; padding: clamp(1.5rem, 5vw, 4rem); color: #fffaf0; text-shadow: 0 2px 18px #25190d70; }
.slide-fallback h1, .slide-fallback h2 { font: 400 clamp(3.4rem, 10vw, 8rem)/.9 var(--serif); margin: 1rem 0; }
.slide-fallback h1 em, .slide-fallback h2 em { color: #e5c995; }
.slide-fallback .eyebrow { color: #f0d9ad; }
.slide-quote { font: italic clamp(1.1rem, 2.5vw, 1.6rem)/1.5 var(--serif); max-width: 620px; margin: 1.4rem auto; }
.slide-date, .slide-meta { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.slide-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); color: white; display: flex; flex-direction: column; align-items: center; gap: .6rem; font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; z-index: 2; }
.slide-scroll span { font-size: 1.2rem; }
.story-slide .slide-fallback--light { color: #3d3026; text-shadow: none; }
.story-slide .slide-fallback--light .eyebrow { color: #947343; }
.story-slide .slide-fallback--light h2 em { color: #a9814b; }
.event-slide .slide-fallback { align-self: end; padding-bottom: clamp(5rem, 12vh, 8rem); }
.map-chip { position: absolute; z-index: 2; bottom: 1.6rem; right: 1.6rem; padding: .85rem 1.1rem; background: #f8f1e6ed; color: #4a3930; font-size: .65rem; letter-spacing: .06em; backdrop-filter: blur(8px); }
.countdown { min-height: 52vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.map-frame { width: min(100%, 850px); height: 360px; margin: 2rem auto 0; border: 1px solid var(--line); padding: .4rem; background: var(--paper); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-note { color: var(--muted); font-size: .65rem; }
@media (max-width: 760px) {
  .full-slide { min-height: 100svh; height: 100svh; }
  .slide-image { object-position: center; }
  .slide-fallback { padding: 1.25rem; }
  .map-chip { right: 1rem; bottom: 1rem; }
  .map-frame { height: 300px; }
}

/* Balanced royal-cinematic motion system */
.site { opacity: 0; transition: opacity 1.1s ease; }
.site.is-visible { opacity: 1; }
.intro__names, .slide-fallback h1, .slide-fallback h2 { text-shadow: 0 0 18px #e6c98a55, 0 0 42px #e6c98a22; }
.intro__ornament { animation: ornament-pulse 3.5s ease-in-out infinite; }
.envelope { animation: envelope-float 4.5s ease-in-out infinite; }
.intro.is-unfolding .envelope { animation: none; }
.full-slide, .section, .venue__card, .map-frame { transition: opacity .9s ease, transform 1s cubic-bezier(.2,.7,.2,1), filter 1s ease; }
.reveal-ready .reveal-item { opacity: 0; transform: translateY(34px); }
.reveal-ready .reveal-item.is-revealed { opacity: 1; transform: translateY(0); }
.full-slide.reveal-item .slide-image { transform: scale(1.045); transition: transform 1.8s cubic-bezier(.2,.7,.2,1); }
.full-slide.reveal-item.is-revealed .slide-image { transform: scale(1); }
.slide-fallback h1, .slide-fallback h2 { animation: text-glow 5s ease-in-out infinite; }
.floral-corner { position: absolute; z-index: 1; color: #e4c58f; opacity: .68; font: clamp(3rem, 8vw, 7rem) var(--serif); line-height: 1; pointer-events: none; text-shadow: 0 0 22px #d8b77855; animation: floral-drift 12s ease-in-out infinite; }
.floral-corner--one { top: 5%; left: 4%; }
.floral-corner--two { right: 4%; bottom: 5%; animation-delay: -6s; }
.ambient-layer { position: fixed; inset: 0; z-index: 8; overflow: hidden; pointer-events: none; }
.gold-particle, .flower-petal { position: absolute; display: block; pointer-events: none; }
.gold-particle { width: 3px; height: 3px; border-radius: 50%; background: #e7c98f; box-shadow: 0 0 10px 2px #d5ad685e; opacity: 0; animation: particle-rise var(--duration, 9s) linear infinite; }
.flower-petal { top: -8vh; width: 13px; height: 19px; border-radius: 80% 10% 80% 10%; background: linear-gradient(145deg,#fff5e9,#d9b9a6); opacity: .72; filter: drop-shadow(0 2px 3px #4a302022); animation: petal-fall var(--duration, 13s) linear infinite; }
@keyframes envelope-float { 0%,100% { transform: translateY(0) rotate(-.3deg); } 50% { transform: translateY(-9px) rotate(.3deg); } }
@keyframes ornament-pulse { 0%,100% { opacity: .65; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes text-glow { 0%,100% { filter: drop-shadow(0 0 2px #e8cc9855); } 50% { filter: drop-shadow(0 0 11px #e8cc9899); } }
@keyframes floral-drift { 0%,100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(8deg) translateY(-13px); } }
@keyframes particle-rise { 0% { transform: translate3d(0,12vh,0) scale(.5); opacity: 0; } 15% { opacity: .8; } 85% { opacity: .55; } 100% { transform: translate3d(35px,-110vh,0) scale(1.3); opacity: 0; } }
@keyframes petal-fall { 0% { transform: translate3d(0,-5vh,0) rotate(0deg); opacity: 0; } 12% { opacity: .72; } 88% { opacity: .65; } 100% { transform: translate3d(var(--drift,80px),110vh,0) rotate(560deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .envelope, .intro__ornament, .slide-fallback h1, .slide-fallback h2, .floral-corner, .gold-particle, .flower-petal { animation: none !important; }
  .reveal-ready .reveal-item { opacity: 1; transform: none; }
  .full-slide.reveal-item .slide-image { transform: none; }
}
.venue-location { max-width: 850px; margin: 2.5rem auto 0; }
.venue-location .venue__card { margin: 0 auto; }
.venue-location .map-frame { margin-top: 1rem; }


/* Bespoke main invitation slide — ivory, champagne gold and editorial calligraphy */
.hero-slide--designed {
  min-height: max(720px, 100svh);
  background:
    radial-gradient(ellipse at 50% 42%, #fffdf8 0%, #f8f1e5 48%, #e9dcc7 100%);
  color: #4a302c;
}
.hero-slide--designed:after { display: none; }
.hero-frame {
  position: absolute;
  inset: clamp(14px, 3.2vw, 42px);
  border: 1px solid #b99a68;
  outline: 1px solid #b99a684d;
  outline-offset: 7px;
  pointer-events: none;
}
.hero-frame:before, .hero-frame:after {
  content: "✦";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #b18a50;
  background: #f8f1e5;
  padding: 0 .8rem;
  font-size: 1rem;
}
.hero-frame:before { top: -.7rem; }
.hero-frame:after { bottom: -.7rem; }
.hero-ornament {
  position: absolute;
  color: #b18a50;
  opacity: .36;
  font: clamp(7rem, 18vw, 15rem)/1 'Cormorant Garamond', serif;
  pointer-events: none;
}
.hero-ornament--top { top: 5%; left: 5%; transform: rotate(-35deg); }
.hero-ornament--bottom { right: 5%; bottom: 5%; transform: rotate(145deg); }
.hero-invitation {
  width: min(90%, 900px);
  padding: clamp(3rem, 8vh, 6rem) 1.5rem;
  color: #4a302c;
  text-shadow: none;
  position: relative;
  z-index: 1;
}
.hero-invitation .eyebrow {
  color: #9c7847;
  letter-spacing: .32em;
  font-size: .68rem;
}
.hero-prelude {
  font: italic clamp(1.1rem, 2.2vw, 1.55rem)/1.5 'Cormorant Garamond', Georgia, serif;
  color: #78675a;
  margin: 2.2rem 0 .8rem;
}
.hero-invitation h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .04em;
  color: #633b3b;
  font: 400 clamp(4.8rem, 13vw, 10rem)/.83 'Great Vibes', 'Cormorant Garamond', cursive;
  margin: .3rem 0;
  text-shadow: 0 2px 20px #b18a5025;
}
.hero-invitation h1 em {
  font: 400 clamp(1.8rem, 4vw, 3rem)/1.15 'Cormorant Garamond', Georgia, serif;
  color: #b18a50;
  margin: .22em 0;
}
.hero-divider {
  width: min(240px, 48vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, #b18a50, transparent);
  margin: 2rem auto 1.5rem;
  position: relative;
}
.hero-divider span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #b18a50;
  background: #f8f1e5;
  padding: 0 .8rem;
  font-size: .9rem;
}
.hero-invitation .hero-date {
  color: #6b4540;
  font: 500 clamp(1.3rem, 3vw, 2rem)/1.2 'Cormorant Garamond', Georgia, serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0;
}
.hero-day {
  color: #8c7967;
  font: italic 1.1rem 'Cormorant Garamond', Georgia, serif;
  letter-spacing: .04em;
  margin: 1rem 0 2rem;
}
.hero-cta { background: #9c7847; box-shadow: 0 8px 24px #9c784733; }
.hero-slide--designed .slide-scroll { color: #8a7355; }
.hero-slide--designed .slide-scroll span { color: #9c7847; }
@media (max-width: 600px) {
  .hero-slide--designed { min-height: 100svh; }
  .hero-invitation { padding: 3rem .8rem; }
  .hero-invitation h1 { font-size: clamp(4.4rem, 19vw, 7rem); }
  .hero-prelude { margin-top: 1.5rem; }
  .hero-ornament--top { left: 0; top: 8%; }
  .hero-ornament--bottom { right: 0; bottom: 8%; }
}


/* FINAL DESIGN PASS — restrained burgundy and warm ivory palette */
:root {
  --ivory: #fff5e8;
  --paper: #fff5e8;
  --ink: #3b1718;
  --muted: #846b63;
  --gold: #a77b50;
  --gold-light: #d8b98f;
  --wine: #5d0a0f;
  --line: #e7d6c8;
}
html, body { background: #fff5e8; color: #3b1718; }
.intro {
  background: #fff5e8;
  color: #5d0a0f;
}
.intro__eyebrow, .intro__names, .intro__date, .intro__hint { color: #5d0a0f; }
.intro__names span { color: #9d7752; }
.envelope { filter: drop-shadow(0 18px 24px #5d0a0f24); }
.envelope__back { background: #5d0a0f; border: 1px solid #7c3032; }
.envelope__letter { background: #fff5e8; }
.envelope__front {
  background: linear-gradient(145deg, transparent 49.5%, #4c070c 50%),
              linear-gradient(35deg, #5d0a0f 49.5%, transparent 50%);
}
.envelope__flap { background: #6b1015; }
.envelope__seal { background: #fff5e8; color: #5d0a0f; border-color: #c6a47e; }
.envelope__seal span { color: #9d7752; }
.letter-monogram { color: #5d0a0f; }
.letter-monogram i, .letter-caption { color: #9d7752; }
.button--gold { background: #5d0a0f; color: #fff5e8; }
.topbar { background: #fff5e8f2; border-bottom-color: #e7d6c8; }
.brand, .footer__monogram { color: #5d0a0f; }
.music-toggle { color: #5d0a0f; border-color: #d8c4b4; }
.music-toggle__icon { color: #9d7752; }
.countdown { background: #5d0a0f; color: #fff5e8; }
.countdown .eyebrow, .countdown h2 em { color: #e8c9a7; }
.section, .events, .venue, .footer { background: #fff5e8; }
.eyebrow, h2 em, .text-link { color: #956d48; }

/* Artwork is shown edge-to-edge without a crop or HTML content laid over it.
   The uploaded files are 16:9, so preserve their full composition. */
.full-slide {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background: #5d0a0f;
}
.slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  z-index: 0;
}
.full-slide:after { display: none !important; }
.full-slide > .slide-fallback,
.full-slide > .map-chip,
.full-slide > .floral-corner { display: none !important; }
.hero-slide--designed {
  min-height: max(650px, calc(100svh - 76px));
  height: auto;
  aspect-ratio: auto;
  display: grid;
  place-items: center;
  background: #fff5e8;
  color: #5d0a0f;
}
.hero-invitation { color: #5d0a0f; }
.hero-invitation .eyebrow, .hero-invitation .hero-date { color: #5d0a0f; }
.hero-invitation h1 { color: #5d0a0f; }
.hero-invitation h1 em, .hero-divider span { color: #a77b50; }
.hero-divider { background: linear-gradient(90deg, transparent, #a77b50, transparent); }
.hero-divider span { background: #fff5e8; }
.hero-day, .hero-prelude { color: #765b51; }
.hero-cta { background: #5d0a0f; }
.hero-slide--designed .slide-scroll { color: #765b51; }

/* Thank-you artwork keeps its complete lower message visible. */
.thankyou-slide {
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  background: #5d0a0f;
}
.thankyou-slide .slide-image { object-fit: contain; }

/* Minimal venue section, intentionally placed after the thank-you slide. */
.venue.section { padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.venue h2 { color: #5d0a0f; font-size: clamp(2.4rem, 5vw, 4rem); }
.venue .section-intro { margin-bottom: 2rem; }
.venue-location { max-width: 760px; margin: 1.5rem auto 0; }
.venue__card {
  border: 1px solid #e7d6c8;
  background: #fffaf3;
  padding: 1.2rem 1.4rem;
  gap: 1rem;
}
.venue__monogram { color: #5d0a0f; }
.venue__card strong { color: #5d0a0f; }
.venue__card div:nth-child(2) span { color: #765b51; font-size: .78rem; }
.venue__card small { color: #846b63; line-height: 1.6; }
.map-frame { border: 1px solid #e7d6c8; background: #fffaf3; padding: .25rem; }
.map-note { max-width: 760px; margin: 1.2rem auto 0; line-height: 1.7; }
.footer { border-top: 1px solid #e7d6c8; color: #846b63; }

/* Small, light petals only — no fixed floral corners or glitter layer. */
.ambient-layer {
  position: fixed;
  inset: 0;
  z-index: 11;
  overflow: hidden;
  pointer-events: none;
}
.flower-petal {
  position: absolute;
  top: -5vh;
  width: var(--size, 7px);
  height: calc(var(--size, 7px) * 1.35);
  border-radius: 85% 15% 75% 20%;
  background: linear-gradient(145deg, #fff5e8 0%, #f2d7c8 100%);
  opacity: .68;
  filter: drop-shadow(0 1px 2px #5d0a0f22);
  animation: petal-fall var(--duration, 18s) linear infinite;
}
@keyframes petal-fall {
  0% { transform: translate3d(0,-6vh,0) rotate(0deg); opacity: 0; }
  12% { opacity: .68; }
  88% { opacity: .58; }
  100% { transform: translate3d(var(--drift,35px),110vh,0) rotate(420deg); opacity: 0; }
}
@media (max-width: 760px) {
  .full-slide { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
  .slide-image { object-fit: contain; }
  .hero-slide--designed { min-height: 100svh; aspect-ratio: auto; }
  .venue__card { flex-direction: column; text-align: left; align-items: flex-start; }
  .map-frame { height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .flower-petal { animation: none !important; display: none; }
}


/* FIX: the designed hero uses a text-based invitation, not an uploaded slide image.
   Restore that content explicitly and give the opening slide a strong burgundy field. */
#home.hero-slide--designed {
  display: grid !important;
  place-items: center;
  min-height: min(900px, calc(100svh - 76px));
  height: auto;
  aspect-ratio: auto;
  padding: clamp(3.5rem, 8vh, 6rem) 1.25rem;
  background:
    radial-gradient(ellipse at 50% 45%, #76151b 0%, #5d0a0f 58%, #42060a 100%);
  color: #fff5e8;
  overflow: hidden;
}
#home.hero-slide--designed::before {
  content: "";
  position: absolute;
  inset: clamp(14px, 2.5vw, 34px);
  border: 1px solid #d8b98f;
  outline: 1px solid #d8b98f55;
  outline-offset: 6px;
  pointer-events: none;
}
#home.hero-slide--designed::after {
  content: "✦";
  display: block !important;
  position: absolute;
  left: 50%;
  top: 8%;
  transform: translateX(-50%);
  color: #d8b98f;
  font-size: 1rem;
  background: transparent;
}
#home.hero-slide--designed > .hero-invitation {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 2;
  width: min(92%, 900px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  color: #fff5e8 !important;
  text-align: center;
  animation: hero-rise 1.1s ease both;
}
#home .hero-invitation .eyebrow {
  color: #e7c9a5 !important;
  font: 500 .72rem/1.5 'DM Sans', sans-serif;
  letter-spacing: .34em;
  text-transform: uppercase;
  margin: 0 0 1.8rem;
}
#home .hero-prelude {
  color: #fff5e8 !important;
  font: italic clamp(1.1rem, 2.2vw, 1.55rem)/1.5 'Cormorant Garamond', Georgia, serif;
  margin: 0 0 1.2rem;
}
#home .hero-invitation h1 {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: .03em;
  color: #fff5e8 !important;
  font: 400 clamp(5rem, 13vw, 9.8rem)/.84 'Great Vibes', 'Cormorant Garamond', cursive;
  margin: 0;
  text-shadow: 0 4px 28px #1d0204a6;
}
#home .hero-invitation h1 em {
  color: #dfbd91 !important;
  font: 400 clamp(2rem, 4vw, 3.1rem)/1.1 'Cormorant Garamond', Georgia, serif;
  margin: .16em 0;
}
#home .hero-divider {
  width: min(260px, 52vw);
  height: 1px;
  margin: 2rem auto 1.4rem;
  background: linear-gradient(90deg, transparent, #dfbd91, transparent);
}
#home .hero-divider span {
  color: #dfbd91 !important;
  background: #5d0a0f !important;
}
#home .hero-invitation .hero-date {
  color: #fff5e8 !important;
  font: 600 clamp(1.25rem, 2.7vw, 1.9rem)/1.35 'Cormorant Garamond', Georgia, serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0;
}
#home .hero-day {
  color: #e7c9a5 !important;
  font: italic 1.12rem 'Cormorant Garamond', Georgia, serif;
  margin: .9rem 0 1.8rem;
}
#home .hero-cta {
  background: #fff5e8 !important;
  color: #5d0a0f !important;
  border: 1px solid #dfbd91;
  box-shadow: 0 10px 28px #1d020455;
}
#home .slide-scroll {
  position: absolute;
  z-index: 2;
  bottom: 2rem;
  color: #f5dfc8 !important;
}
#home .slide-scroll span { color: #dfbd91 !important; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Countdown: warm ivory panel with high-contrast burgundy typography and numerals. */
#countdown.countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 390px;
  padding: clamp(4rem, 8vw, 7rem) 1.5rem;
  background: #fff5e8 !important;
  color: #5d0a0f !important;
  border-top: 1px solid #ead8c5;
  border-bottom: 1px solid #ead8c5;
  text-align: center;
}
#countdown .eyebrow {
  color: #9a6b53 !important;
  font-size: .72rem;
  letter-spacing: .28em;
  font-weight: 600;
}
#countdown h2 {
  color: #5d0a0f !important;
  margin: .6rem 0 2.3rem;
  font: 500 clamp(2.6rem, 6vw, 4.8rem)/1.05 'Cormorant Garamond', Georgia, serif;
}
#countdown h2 em {
  color: #9a6b53 !important;
  font-style: italic;
}
#countdown .countdown__grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(82px, 1fr));
  gap: clamp(.8rem, 3vw, 2.2rem);
  width: min(760px, 100%);
  opacity: 1 !important;
  visibility: visible !important;
}
#countdown .countdown__grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  padding: 1.2rem .6rem;
  background: #5d0a0f;
  border: 1px solid #b88e68;
  border-radius: 2px;
  box-shadow: 0 10px 25px #5d0a0f12;
}
#countdown .countdown__grid strong {
  display: block;
  color: #fff5e8 !important;
  font: 500 clamp(2.5rem, 6vw, 4.4rem)/1 'Cormorant Garamond', Georgia, serif;
  font-variant-numeric: tabular-nums;
}
#countdown .countdown__grid span {
  color: #e7c9a5 !important;
  font: 500 .68rem/1.3 'DM Sans', sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}
@media (max-width: 560px) {
  #home.hero-slide--designed { min-height: calc(100svh - 68px); padding: 3.5rem 1rem; }
  #home .hero-invitation h1 { font-size: clamp(4.6rem, 18vw, 6.5rem); }
  #countdown.countdown { min-height: 330px; padding: 3.5rem 1rem; }
  #countdown .countdown__grid { grid-template-columns: repeat(2, minmax(100px, 1fr)); max-width: 340px; }
  #countdown .countdown__grid > div { padding: 1rem .5rem; }
}


/* Venue cards are map links; no embedded maps are displayed on the page. */
.venue-location--link {
  display: block;
  color: inherit;
  text-decoration: none;
  max-width: 760px;
  margin: 1rem auto 0;
  border-radius: 3px;
  outline-offset: 4px;
}
.venue-location--link .venue__card {
  display: flex;
  align-items: center;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.venue-location--link:hover .venue__card,
.venue-location--link:focus-visible .venue__card {
  border-color: #a77b50;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px #5d0a0f12;
}
.venue-location--link .venue__details {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: .3rem;
}
.venue-location--link .text-link {
  flex: 0 0 auto;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .venue-location--link .venue__card { align-items: flex-start; }
  .venue-location--link .text-link { white-space: normal; }
}


/* Envelope refinements: horizontal monogram, concise invitation wording. */
.envelope__seal {
  width: 64px !important;
  height: 64px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
  font: 1.35rem/1 'Cormorant Garamond', Georgia, serif !important;
  letter-spacing: -.04em;
}
.envelope__seal span {
  display: inline !important;
  font: 1rem/1 'Cormorant Garamond', Georgia, serif !important;
  color: #a77b50 !important;
}
.intro__names {
  white-space: nowrap;
  display: block;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  color: #5d0a0f !important;
}
.intro__names span { display: inline; }
.intro__date {
  max-width: min(90vw, 420px);
  margin: .5rem auto 0;
  color: #765b51 !important;
  font: italic 1.08rem/1.45 'Cormorant Garamond', Georgia, serif;
  letter-spacing: .015em;
}
.intro__hint { display: none !important; }
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .18em;
  white-space: nowrap;
  flex: 0 0 auto;
}
.brand span { display: inline; }
.hero-cta, .slide-scroll { display: none !important; }


/* Main opening slide: use the user's finished artwork exactly as supplied. */
#home.hero-slide--artwork {
  display: block !important;
  position: relative;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9;
  padding: 0 !important;
  overflow: hidden;
  background: #5d0a0f;
}
#home.hero-slide--artwork::before,
#home.hero-slide--artwork::after {
  display: none !important;
  content: none !important;
}
#home.hero-slide--artwork .hero-artwork {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  z-index: 1;
}


/* Countdown numerals: bold, contemporary and highly legible. */
#countdown .countdown__grid strong {
  font-family: 'DM Sans', 'Arial', sans-serif !important;
  font-size: clamp(2.6rem, 6vw, 4.25rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.045em;
  line-height: 1 !important;
  font-variant-numeric: tabular-nums;
}

/* Couple's custom logo and landscape viewing note */
.letter-logo { width: 128px; height: 128px; object-fit: contain; }
.envelope__seal { width: 76px; height: 76px; background: #fff5e8; overflow: hidden; padding: 5px; }
.envelope__seal img { display: block; width: 100%; height: 100%; object-fit: contain; }
.landscape-hint { margin: .45rem 0 0; max-width: 330px; color: var(--muted); font: 400 .62rem/1.5 var(--sans); letter-spacing: .025em; opacity: .82; }
.footer__logo { display: block; width: min(170px, 42vw); height: auto; object-fit: contain; margin: 0 auto 1rem; }
.footer { text-align: center; }
