:root {
  --ink: #171317;
  --muted: #725f69;
  --pink: #ef76aa;
  --pink-deep: #d94f90;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #f7edf2;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.splash-open { overflow: hidden; }
a { color: inherit; }

.splash {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100%;
  padding: 24px;
  place-items: center;
  overflow: hidden;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.96) 0 9%, rgba(255,247,251,.86) 35%, transparent 64%),
    linear-gradient(135deg, #fff 0%, #f8dce9 46%, #d6cfd4 100%);
  animation: splash-arrive 500ms ease-out both;
}

.splash::before,
.splash::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.splash::before {
  inset: -20%;
  opacity: .48;
  background:
    radial-gradient(circle, #fff 0 2px, transparent 3px) 0 0 / 42px 42px,
    radial-gradient(circle, rgba(218,79,144,.7) 0 1.5px, transparent 2.5px) 20px 18px / 56px 56px;
  animation: sparkle-drift 7s linear infinite;
}

.splash::after {
  top: -45%;
  left: -55%;
  width: 45%;
  height: 190%;
  opacity: .55;
  transform: rotate(20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent);
  animation: splash-sheen 2s 400ms ease-in-out both;
}

.splash-leaving {
  pointer-events: none;
  animation: splash-exit 700ms cubic-bezier(.65,0,.35,1) both;
}

.splash:focus-visible {
  outline: 5px solid rgba(217,79,144,.45);
  outline-offset: -9px;
}

.splash-copy {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  animation: splash-copy-in 850ms 150ms cubic-bezier(.2,.8,.2,1) both;
}

.splash-copy small {
  margin-bottom: 10px;
  color: var(--pink-deep);
  font-size: clamp(.68rem, 2.6vw, .82rem);
  font-weight: 900;
  letter-spacing: .34em;
}

.splash-copy strong {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(3.6rem, 18vw, 7.5rem);
  font-weight: 400;
  line-height: .82;
  letter-spacing: -.055em;
}

.splash-copy b {
  margin-top: 18px;
  color: #ed6fa6;
  font-family: Arial Black, Arial, sans-serif;
  font-size: clamp(6rem, 34vw, 13rem);
  line-height: .72;
  letter-spacing: -.1em;
  -webkit-text-stroke: 2px rgba(255,255,255,.72);
  text-shadow:
    0 3px 0 #bf467c,
    0 9px 18px rgba(136,43,86,.2),
    inset 0 0 10px #fff;
  transform: translateX(-.04em);
}

.splash-copy em {
  position: absolute;
  top: 30%;
  right: -12%;
  color: #8c8389;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 8vw, 3.8rem);
  font-style: normal;
  animation: splash-twinkle 1.2s ease-in-out infinite;
}

.splash-hint {
  position: absolute;
  z-index: 2;
  bottom: max(28px, env(safe-area-inset-bottom));
  color: #7b6871;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  animation: hint-pulse 1.5s 700ms ease-in-out infinite;
}

.splash-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(3px);
}
.splash-glow-one {
  top: -12%;
  right: -24%;
  width: min(70vw, 560px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(239,118,170,.35), transparent 68%);
}
.splash-glow-two {
  bottom: -20%;
  left: -28%;
  width: min(78vw, 620px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(161,151,158,.36), transparent 68%);
}

.splash-confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti {
  position: absolute;
  display: block;
  width: 11px;
  height: 30px;
  border-radius: 999px;
  background: #ee78aa;
  box-shadow: 0 0 12px rgba(255,255,255,.8);
  animation: confetti-float 2s ease-in-out infinite;
}
.confetti-one { top: 16%; left: 12%; transform: rotate(28deg); }
.confetti-two { top: 24%; right: 11%; width: 8px; height: 22px; background: #a49ba1; animation-delay: -.4s; }
.confetti-three { bottom: 24%; left: 16%; width: 9px; height: 25px; background: #fff; animation-delay: -.8s; }
.confetti-four { bottom: 17%; right: 14%; transform: rotate(-34deg); animation-delay: -1.1s; }
.confetti-five { top: 46%; left: 5%; width: 7px; height: 18px; background: #8f858b; animation-delay: -.2s; }
.confetti-six { top: 52%; right: 6%; width: 8px; height: 24px; animation-delay: -.7s; }

.invitation-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 40px 18px 48px;
  background:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,.96) 0 5%, transparent 28%),
    radial-gradient(circle at 93% 22%, rgba(239,118,170,.2) 0 6%, transparent 30%),
    radial-gradient(circle at 20% 84%, rgba(203,195,202,.5) 0 5%, transparent 29%),
    linear-gradient(155deg, #fff 0%, #f9edf3 46%, #eadfe5 100%);
}

.invitation-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(115deg, transparent 45%, rgba(255,255,255,.9) 50%, transparent 55%),
    linear-gradient(25deg, transparent 45%, rgba(214,205,211,.5) 50%, transparent 55%);
  background-size: 120px 120px, 90px 90px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

.invitation-shell {
  position: relative;
  z-index: 2;
  width: min(100%, 540px);
  margin: 0 auto;
}

.intro {
  margin: 0 auto 24px;
  text-align: center;
  animation: rise 700ms ease-out both;
}

.kicker, .section-kicker {
  margin: 0;
  color: var(--pink-deep);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .28em;
}

.intro-script {
  margin: 4px 0 0;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(3rem, 14vw, 5rem);
  line-height: .95;
  letter-spacing: -.04em;
}

.intro-age {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  margin: 15px 0 2px;
  padding: 7px 18px 9px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f397be, #d94f90);
  box-shadow: 0 9px 24px rgba(154,51,99,.18), inset 0 1px 0 rgba(255,255,255,.55);
}

.intro-age strong {
  font-family: Georgia, serif;
  font-size: 1.55rem;
  line-height: 1;
}

.intro-age span {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.intro-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .98rem;
  font-style: italic;
}

.card-frame {
  position: relative;
  overflow: hidden;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 28px;
  background: linear-gradient(135deg, #fff 0%, #c8c1c6 45%, #fff 67%, #d97aa7 100%);
  box-shadow: 0 36px 80px rgba(72,40,56,.2), 0 10px 24px rgba(72,40,56,.1);
  animation: card-enter 900ms 100ms cubic-bezier(.2,.8,.2,1) both;
}

.invitation-art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 23px;
}

.card-sheen {
  position: absolute;
  z-index: 1;
  top: -30%;
  left: -80%;
  width: 45%;
  height: 160%;
  pointer-events: none;
  opacity: .28;
  transform: rotate(17deg);
  background: linear-gradient(90deg, transparent, #fff, transparent);
  animation: sheen 6s 1.6s ease-in-out infinite;
}

.plan-card {
  position: relative;
  margin-top: 22px;
  padding: 28px 20px 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 28px;
  background: rgba(255,253,253,.86);
  box-shadow: 0 18px 50px rgba(76,48,61,.12);
  backdrop-filter: blur(18px);
  animation: rise 700ms 350ms ease-out both;
}

.plan-card::after {
  content: "♡";
  position: absolute;
  top: 12px;
  right: 20px;
  color: rgba(239,118,170,.24);
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  transform: rotate(10deg);
}

.plan-card h1 {
  position: relative;
  z-index: 1;
  margin: 7px 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 9vw, 3rem);
  font-weight: 500;
  letter-spacing: -.055em;
}

.event-summary {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid #f0dce5;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff 0%, #fff3f8 100%);
}

.event-summary > div { display: flex; flex-direction: column; gap: 4px; }
.summary-label {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.event-summary strong { font-family: Georgia, serif; font-size: 1.05rem; }
.summary-divider { width: 1px; height: 34px; background: #e7cdd9; }
.actions { display: grid; gap: 11px; }

.action {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 10px 17px 10px 11px;
  border: 1px solid transparent;
  border-radius: 20px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.action:hover, .action:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(79,48,63,.14);
}
.action:focus-visible { outline: 3px solid rgba(239,118,170,.35); outline-offset: 3px; }
.action-map { color: #fff; background: linear-gradient(135deg, #f28bb8, #d94f90); }
.action-calendar { color: #fff; background: linear-gradient(135deg, #262025, #0f0d0f); }
.action-whatsapp {
  border-color: #f1c7da;
  color: #8a315c;
  background: linear-gradient(135deg, #fff, #ffeaf3);
}

.action-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: rgba(255,255,255,.2);
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 800;
}
.action-whatsapp .action-icon { background: #fff; box-shadow: inset 0 0 0 1px #f2cade; }
.action-copy { display: flex; flex-direction: column; gap: 2px; }
.action-copy small {
  opacity: .76;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.action-copy strong { font-family: Georgia, serif; font-size: 1.22rem; }
.action-arrow { font-size: 1.18rem; }

.ical-link {
  display: block;
  margin-top: 17px;
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
  text-underline-offset: 3px;
}

footer {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 26px 0 6px;
  color: #806b76;
  font-family: Georgia, serif;
  font-size: .9rem;
  font-style: italic;
}
footer p { margin: 0; }
footer span { color: var(--pink); }

.ambient { position: absolute; border-radius: 999px; filter: blur(2px); pointer-events: none; }
.ambient-one {
  top: 8%; right: -110px; width: 230px; height: 230px;
  background: radial-gradient(circle, rgba(239,118,170,.23), transparent 68%);
}
.ambient-two {
  bottom: 12%; left: -130px; width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(168,157,165,.3), transparent 68%);
}

.sparkle {
  position: absolute;
  z-index: 1;
  color: rgba(217,79,144,.58);
  font-family: Georgia, serif;
  pointer-events: none;
  animation: float 5s ease-in-out infinite;
}
.sparkle-one { top: 6%; left: 6%; font-size: 2.1rem; }
.sparkle-two { top: 33%; right: 4%; color: rgba(124,113,121,.48); font-size: 2.6rem; animation-delay: -1.8s; }
.sparkle-three { bottom: 19%; left: 5%; font-size: 2.7rem; animation-delay: -3s; }

@keyframes card-enter {
  from { opacity: 0; transform: translateY(24px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes splash-arrive {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes splash-copy-in {
  from { opacity: 0; transform: scale(.78) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes splash-exit {
  0% { opacity: 1; clip-path: circle(150% at 50% 50%); }
  100% { opacity: 0; clip-path: circle(0% at 50% 48%); }
}
@keyframes splash-sheen {
  from { left: -55%; }
  to { left: 135%; }
}
@keyframes sparkle-drift {
  to { transform: translate3d(42px, 42px, 0) rotate(2deg); }
}
@keyframes splash-twinkle {
  0%, 100% { opacity: .35; transform: scale(.8) rotate(-10deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(12deg); }
}
@keyframes hint-pulse {
  0%, 100% { opacity: .45; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}
@keyframes confetti-float {
  0%, 100% { translate: 0 0; rotate: -8deg; }
  50% { translate: 0 -13px; rotate: 18deg; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes sheen {
  0%, 42% { left: -80%; }
  65%, 100% { left: 145%; }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-12px) rotate(8deg); }
}

@media (min-width: 700px) {
  .invitation-page { padding-top: 60px; padding-bottom: 68px; }
  .plan-card { padding: 34px 30px 26px; }
}
@media (max-width: 380px) {
  .invitation-page { padding-inline: 12px; }
  .plan-card { padding-inline: 15px; }
  .event-summary { gap: 10px; padding-inline: 12px; }
  .event-summary strong { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .splash { display: none; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
