:root {
  --cream: #f7f1e7;
  --paper: #fbf6ed;
  --sage: #dfead8;
  --rose: #a42343;
  --rose-dark: #7b1730;
  --gold: #c4934d;
  --brown: #3e2b20;
  --ink: #271d18;
  --muted: #786c63;
  --shadow: 0 24px 80px rgba(79, 55, 34, .12);
}

* { box-sizing: border-box; }
html {
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
  background: var(--paper);
  overflow-x: hidden;
}
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Cormorant Garamond", serif;
  overflow-x: hidden;
}
body:not(.invite-open) main {
  opacity: 0;
  transform: scale(.985);
}
body.invite-open main {
  animation: siteReveal .9s ease both;
}
img, iframe { display: block; max-width: 100%; }
button, input { font: inherit; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: var(--paper);
  transition: opacity 1.2s ease, visibility 1.2s ease;
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader.is-opening .envelope-loader {
  animation: envelopeOpenScale 1.05s cubic-bezier(.22, 1, .36, 1) both;
}
.loader.is-opening .loader-instruction {
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
}
.envelope-loader {
  position: relative;
  width: min(720px, 90vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2.2rem, 5vh, 3.4rem);
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.envelope-art {
  width: min(560px, 80vw);
  max-height: min(50vh, 490px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 55px rgba(85, 58, 35, .16));
}
.loader-instruction {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: .45rem;
  color: var(--rose);
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .68);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.loader-instruction > span {
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: .95;
}
.loader-instruction small {
  font-family: Cinzel, serif;
  font-size: clamp(.68rem, 1vw, .86rem);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.envelope-loader:hover .envelope-art {
  filter: drop-shadow(0 34px 68px rgba(85, 58, 35, .2));
}
.shree {
  margin: 0;
  color: var(--rose);
  font-weight: 500;
  font-style: italic;
}

.music-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: rgba(62, 43, 32, .88);
  color: var(--paper);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}
.music-toggle span::before { content: "♪"; font-size: 1.25rem; }
.music-toggle.is-muted span::before { content: "◼"; font-size: .8rem; }

.petals {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
}
.petals span {
  position: absolute;
  top: -8vh;
  animation: fall linear infinite;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.08));
}
.scratch-burst {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 75;
  width: 0;
  height: 0;
  pointer-events: none;
}
.scratch-burst span {
  position: absolute;
  left: 0;
  top: 0;
  font-size: var(--size, 18px);
  animation: burstFlower 1.2s cubic-bezier(.16, 1, .3, 1) forwards;
  filter: drop-shadow(0 5px 8px rgba(79, 55, 34, .12));
}

section {
  position: relative;
  width: 100%;
  overflow: hidden;
}
main,
footer {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  overflow-x: hidden;
}
.paper { background: var(--paper); }
.sage { background: var(--sage); }
.hero {
  min-height: 100svh;
  display: grid;
  place-items: start center;
  text-align: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 250, 238, .88), rgba(251, 246, 237, .5) 42%, rgba(251, 246, 237, .12) 70%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(251, 246, 237, .32), rgba(251, 246, 237, .08) 48%, rgba(251, 246, 237, .36) 100%),
    radial-gradient(circle at 50% 46%, rgba(255, 250, 240, .82), rgba(255, 250, 240, .34) 35%, transparent 58%);
}
.hero-copy {
  width: min(760px, 92vw);
  padding-top: clamp(3.2rem, 5.4vh, 5.2rem);
  padding-bottom: clamp(3.4rem, 6vh, 5.5rem);
}
.ganesh {
  width: clamp(86px, 9vw, 126px);
  margin: 0 auto .7rem;
  filter: drop-shadow(0 12px 22px rgba(126, 74, 31, .18));
}
.shree {
  display: inline-block;
  margin-top: .25rem;
  color: var(--rose);
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  letter-spacing: .01em;
}
.invite {
  position: relative;
  width: min(660px, 100%);
  margin: clamp(2.1rem, 4vh, 3.1rem) auto clamp(1.5rem, 3vh, 2.3rem);
  color: #1e1510;
  font-size: clamp(1.2rem, 1.75vw, 1.75rem);
  font-weight: 400;
  line-height: 1.48;
}

.hero em::before,
.hero em::after {
  content: "";
  display: inline-block;
  width: clamp(54px, 7vw, 92px);
  height: 1px;
  margin: 0 .85rem .32em;
  background: linear-gradient(90deg, transparent, rgba(196, 147, 77, .62), transparent);
  vertical-align: middle;
}
.name-logo {
  width: min(390px, 76vw);
  margin: 0 auto clamp(1.5rem, 3vh, 2.2rem);
  filter: drop-shadow(0 16px 28px rgba(84, 56, 28, .16));
}
.hero h1 {
  margin: .1rem 0 .05rem;
  color: var(--rose-dark);
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: clamp(5.5rem, 10vw, 9rem);
  line-height: .98;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .72);
}
.parents {
  margin: .95rem 0 0;
  color: #1d130f;
  font-size: clamp(1.03rem, 1.42vw, 1.34rem);
  font-weight: 400;
  line-height: 1.45;
}
.hero em {
  display: block;
  margin: clamp(1.5rem, 3vh, 2.25rem) 0 .15rem;
  color: var(--rose-dark);
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  font-weight: 400;
}

.scratch-section {
  min-height: 410px;
  display: grid;
  place-items: center;
  padding: 4.5rem 1.5rem;
}
.ornament {
  margin: 0 auto 2rem;
  color: var(--gold);
  text-align: center;
  font-size: 1.05rem;
}
.ornament.compact { margin: .5rem auto 1.4rem; }
.section-florals::before,
.section-florals::after {
  position: absolute;
  color: rgba(130, 173, 96, .36);
  font-size: clamp(1.7rem, 3vw, 3rem);
}
.section-florals::before { content: "🌿"; left: 1.8rem; top: 2rem; }
.section-florals::after { content: "🌸"; right: 1.8rem; top: 2.8rem; color: rgba(243, 128, 156, .3); }
.scratch-card {
  position: relative;
  width: min(450px, 86vw);
  height: 126px;
  border: 1px solid rgba(196, 147, 77, .7);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(90deg, #d7a764, #f0c984 50%, #bd8738);
  box-shadow: 0 28px 70px rgba(196, 147, 77, .2);
}
.scratch-result {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .25rem;
  background: #fbf6ed;
  color: var(--rose-dark);
  text-align: center;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(48px, 1fr));
  gap: .55rem;
  width: min(390px, 86vw);
  margin: 0 auto 1.25rem;
}
.countdown span {
  display: grid;
  gap: .05rem;
  padding: .56rem .3rem .48rem;
  border-radius: 12px;
  background: rgba(251, 246, 237, .82);
  border: 1px solid rgba(196, 147, 77, .25);
  box-shadow: 0 14px 34px rgba(196, 147, 77, .12);
}
.countdown b {
  color: var(--rose-dark);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
}
.countdown small {
  color: #7f9a69;
  font-family: Cinzel, serif;
  font-size: .54rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.scratch-result small,
.label,
.event-detail span,
.rsvp-form label {
  font-family: Cinzel, serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 400;
}
.scratch-result small { font-size: .72rem; color: #7f9a69; }
.scratch-result strong { font-size: 1.55rem; }
.scratch-result span { color: var(--muted); }
.scratch-card canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: block;
  cursor: grab;
  touch-action: none;
  transform: translateZ(0);
}

.events,
.families,
.rsvp,
.venue {
  padding: clamp(5rem, 9vw, 8rem) 1.5rem;
  text-align: center;
}
h2, .rsvp h3 {
  margin: 0;
  color: var(--rose-dark);
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: clamp(4rem, 7vw, 6.7rem);
  line-height: 1.08;
  padding-block: .15em;
}
.event-card {
  position: relative;
  width: min(560px, 100%);
  min-height: 780px;
  margin: 4.2rem auto 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  color: white;
  isolation: isolate;
}
.event-bg,
.event-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.event-bg { object-fit: cover; z-index: -3; }
.event-shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(45, 0, 11, .34), rgba(70, 0, 20, .18) 39%, rgba(40,0,12,.38)),
    radial-gradient(circle at 50% 42%, rgba(70,0,20,.08) 0 24%, rgba(30,0,8,.46) 84%);
}
.event-content {
  position: relative;
  z-index: 2;
  width: min(430px, 84%);
  margin: 0 auto;
  padding-top: clamp(12.5rem, 7vw, 10rem);
}
.event-content h3 {
  margin: 0 0 .4rem;
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: clamp(3.3rem, 6vw, 5rem);
  line-height: 1.04;
  padding-block: .08em;
  text-shadow: 0 2px 14px rgba(0,0,0,.38);
}
.quote {
  margin: 1.1rem 0 3.8rem;
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 400;
}
.event-detail { margin: 1.55rem auto; }
.event-detail span {
  display: block;
  margin-bottom: .35rem;
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
}
.event-detail b {
  display: block;
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1.45;
}

.label {
  margin: 0;
  color: #789566;
  font-size: .8rem;
}
.family-card,
.rsvp-form,
.map-card {
  width: min(720px, 100%);
  margin: 4rem auto 0;
  border: 1px solid rgba(196, 147, 77, .58);
  border-radius: 18px;
  background: rgba(251, 246, 237, .54);
  box-shadow: 0 18px 60px rgba(80, 64, 45, .07);
}
.family-card { padding: 3rem 1.5rem; }
.family-card > p:last-child {
  margin: 0;
  color: var(--muted);
  font-family: Cinzel, serif;
  letter-spacing: .2em;
  line-height: 1.8;
}
.section-copy {
  width: min(760px, 100%);
  margin: 2.6rem auto 0;
  color: rgba(39, 29, 24, .76);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-style: italic;
}
.respond { margin-top: 4rem; }
.rsvp h3 {
  margin-top: .35rem;
  font-size: clamp(3.3rem, 5.4vw, 5.3rem);
}
.rsvp-form {
  display: grid;
  gap: .9rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  text-align: left;
}
.rsvp-form label {
  color: #698d5d;
  font-size: .78rem;
  font-weight: 400;
}
.rsvp-form input[type="text"],
.rsvp-form input[type="tel"],
.rsvp-form input[type="date"] {
  width: 100%;
  height: 52px;
  margin-bottom: .8rem;
  padding: 0 1rem;
  border: 1px solid rgba(196, 147, 77, .36);
  border-radius: 10px;
  background: rgba(255, 251, 246, .88);
  color: var(--ink);
  outline: 0;
}
.attendance {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(196, 147, 77, .28);
  border-radius: 12px;
  background: rgba(223, 234, 216, .45);
  font-family: "Cormorant Garamond", serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.attendance input { accent-color: var(--rose); }
.rsvp-form button,
.direction-btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #d4a359, #b68137);
  color: white;
  text-decoration: none;
  box-shadow: 0 18px 44px rgba(196, 147, 77, .26);
}
.thanks {
  display: none;
  margin: .6rem 0 0;
  color: var(--rose-dark);
  text-align: center;
}
.rsvp-form.is-sent .thanks { display: block; }
.map-card {
  height: 360px;
  overflow: hidden;
}
.map-card iframe { width: 100%; height: 100%; border: 0; filter: saturate(.75) sepia(.05); }
.direction-btn {
  margin-top: 2rem;
  min-width: 180px;
  padding: 0 1.4rem;
}
.footer {
  position: relative;
  padding: clamp(4.8rem, 8vw, 7rem) 1.5rem clamp(4.4rem, 7vw, 6.4rem);
  background:
    radial-gradient(circle at 50% 20%, rgba(196, 147, 77, .12), transparent 36%),
    linear-gradient(180deg, #3b281e, #302016);
  color: var(--paper);
  text-align: center;
  border-top: 5px solid rgba(196, 147, 77, .55);
  isolation: isolate;
}
.footer::before,
.footer::after {
  content: "";
  position: absolute;
  bottom: clamp(1.2rem, 3vw, 2.6rem);
  width: clamp(150px, 20vw, 250px);
  height: clamp(170px, 24vw, 290px);
  opacity: .92;
  background:
    radial-gradient(circle at 24% 72%, #f6b5bd 0 10px, #d98291 11px 16px, transparent 17px),
    radial-gradient(circle at 34% 57%, #f8d1d5 0 7px, transparent 8px),
    radial-gradient(circle at 48% 38%, #f3bcc4 0 6px, transparent 7px),
    radial-gradient(circle at 68% 28%, #f6d5d7 0 5px, transparent 6px),
    radial-gradient(ellipse at 52% 76%, rgba(141, 160, 104, .9) 0 10px, transparent 11px),
    radial-gradient(ellipse at 62% 61%, rgba(141, 160, 104, .86) 0 8px, transparent 9px),
    linear-gradient(54deg, transparent 0 46%, rgba(169, 129, 76, .62) 47% 49%, transparent 50%);
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .14));
  z-index: -1;
}
.footer::before {
  left: clamp(-2rem, -2vw, -.6rem);
  transform: rotate(-10deg);
}
.footer::after {
  right: clamp(-2rem, -2vw, -.6rem);
  transform: scaleX(-1) rotate(-10deg);
}
.footer-inner {
  position: relative;
  width: min(900px, 92vw);
  margin: 0 auto;
}
.footer .label {
  color: var(--paper);
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  letter-spacing: .36em;
}
.footer h2 {
  margin: clamp(.8rem, 2vw, 1.25rem) 0 .35rem;
  color: var(--paper);
  font-size: clamp(4.2rem, 9vw, 8.4rem);
  line-height: .95;
  padding-block: .12em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, .22);
  transform: translateX(clamp(-18px, -2.2vw, -8px));
}
.footer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  margin: .35rem auto clamp(1.6rem, 3vw, 2.3rem);
  color: var(--gold);
}
.footer-divider::before,
.footer-divider::after {
  content: "";
  width: clamp(72px, 12vw, 140px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 147, 77, .9), transparent);
}
.footer-divider span { color: #eecf91; font-size: 1.35rem; }
.footer-date {
  color: var(--paper);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-style: italic;
}
.footer-heart {
  margin: .75rem auto .45rem;
  color: var(--gold);
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1;
}
.footer-tag {
  color: var(--paper);
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-style: italic;
}
.footer p:not(.label) {
  margin: .45rem 0;
}

@keyframes fall {
  to { transform: translate3d(7vw, 112vh, 0) rotate(240deg); }
}
@keyframes burstFlower {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.2) rotate(0deg);
  }
  16% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(.95) rotate(var(--rotate));
  }
}
@keyframes envelopeOpenScale {
  0% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  42% { opacity: 1; transform: translateY(-8px) scale(1.08); filter: blur(0); }
  100% { opacity: 0; transform: translateY(18px) scale(1.35); filter: blur(8px); }
}
@keyframes siteReveal {
  from { opacity: 0; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 640px) {
  .hero {
    min-height: 940px;
    place-items: start center;
  }
  .hero-bg { object-position: center top; }
  .hero-copy { padding-top: 4rem; }
  .invite {
    width: min(430px, 100%);
    margin-top: 1.8rem;
    margin-bottom: 1.45rem;
    font-size: 1.02rem;
    line-height: 1.65;
  }
  .hero h1 {
    font-size: clamp(4.6rem, 18vw, 6.15rem);
    line-height: 1.02;
  }
  .parents {
    margin-top: 1.2rem;
    font-size: 1rem;
  }
  .hero em { margin-top: 1.65rem; }
  .scratch-section { min-height: 400px; padding: 4rem 1.1rem; }
  .event-card { min-height: 760px; border-radius: 14px; }
  .event-content { width: 88%; }
  .event-detail b { font-size: 1.08rem; }
  .map-card { height: 420px; }
  .footer::before,
  .footer::after {
    width: 120px;
    height: 150px;
    opacity: .62;
  }
  .footer h2 { font-size: clamp(3.6rem, 15vw, 5.2rem); }
}
