:root {
  --bg: #fff7fc;
  --bg-deep: #ffd8ef;
  --card: rgba(255, 255, 255, 0.74);
  --card-strong: rgba(255, 255, 255, 0.88);
  --text: #7c3160;
  --text-soft: #9f5b82;
  --accent: #ff68ad;
  --accent-strong: #ff3b91;
  --accent-light: #ffb5d8;
  --gold: #ffd36b;
  --shadow: 0 24px 60px rgba(228, 104, 166, 0.18);
  --border: rgba(255, 141, 191, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  font-family: "Nunito", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 196, 225, 0.8), transparent 32%),
    radial-gradient(circle at right 15%, rgba(255, 233, 150, 0.45), transparent 22%),
    linear-gradient(180deg, #fff8fd 0%, #ffeef8 38%, #ffe2f1 100%);
  overflow-x: hidden;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.25;
  pointer-events: none;
}

.sky-glow {
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(44px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.sky-glow-left {
  top: -10rem;
  left: -8rem;
  background: rgba(255, 170, 213, 0.7);
}

.sky-glow-right {
  right: -10rem;
  top: 22rem;
  background: rgba(255, 221, 143, 0.45);
}

.page-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 2rem));
  max-width: 100vw;
  margin: 0 auto;
  padding: 32px 0 72px;
}

.hero,
.info-grid,
.photo-section,
.magic-cta,
.map-section {
  position: relative;
  z-index: 2;
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: -8px auto 26px;
  color: var(--text-soft);
  text-decoration: none;
  opacity: 0.92;
  transition:
    transform 220ms ease,
    opacity 220ms ease,
    color 220ms ease;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  transform: translateY(2px);
  opacity: 1;
  color: var(--accent-strong);
}

.scroll-cue-text {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.scroll-cue-arrow {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 233, 244, 0.92));
  border: 1px solid rgba(255, 165, 206, 0.5);
  box-shadow: 0 14px 30px rgba(228, 104, 166, 0.12);
  animation: scroll-cue-float 2.3s ease-in-out infinite;
}

.scroll-cue-arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(217, 64, 136, 0.86);
  border-bottom: 2px solid rgba(217, 64, 136, 0.86);
  transform: translate(-50%, -50%) rotate(45deg);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  min-height: 100vh;
  padding: 28px 0;
}

.hero-copy,
.invitation-card,
.info-card,
.magic-card,
.map-card,
.photo-placeholder,
.countdown-card {
  backdrop-filter: blur(20px);
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--accent-strong);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

h1,
h2 {
  margin: 0;
  line-height: 1.02;
}

h1 {
  font-family: "Marck Script", cursive;
  font-size: clamp(4rem, 8vw, 7rem);
  color: #d94088;
  text-shadow: 0 10px 24px rgba(223, 90, 151, 0.18);
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3rem);
}

.hero-subtitle,
.card-text,
.photo-copy p,
.magic-card p,
.map-copy p,
.info-card p,
.modal p {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-soft);
}

.countdown-card,
.invitation-card,
.info-card,
.magic-card,
.map-card,
.photo-placeholder {
  background: linear-gradient(180deg, var(--card-strong), var(--card));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.countdown-card {
  width: min(450px, 100%);
  margin-top: 28px;
  padding: 22px;
  border-radius: 28px;
}

.countdown-title,
.countdown-note {
  margin: 0;
}

.countdown-title {
  font-weight: 800;
  color: var(--accent-strong);
}

.countdown-note {
  margin-top: 12px;
  color: var(--text-soft);
}

.countdown {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.countdown-item {
  flex: 1;
  min-width: 0;
  padding: 14px 10px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 237, 247, 0.92));
  text-align: center;
  border: 1px solid rgba(255, 173, 211, 0.35);
}

.countdown-item span {
  display: block;
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  line-height: 1;
  font-weight: 800;
  color: var(--accent-strong);
}

.countdown-item small {
  display: block;
  margin-top: 8px;
  font-weight: 700;
  color: var(--text-soft);
}

.invitation-card {
  position: relative;
  padding: 34px 28px 30px;
  border-radius: 36px;
  overflow: hidden;
  transform: rotate(-2deg);
}

.invitation-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(255, 154, 200, 0.45);
  border-radius: 26px;
  pointer-events: none;
}

.card-crown {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 1.8rem;
  color: var(--gold);
  animation: twinkle 3.2s ease-in-out infinite;
}

.ribbon {
  display: inline-block;
  margin-bottom: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 113, 175, 0.16), rgba(255, 206, 231, 0.8));
  color: var(--accent-strong);
  font-weight: 800;
}

.card-intro,
.card-signature {
  margin: 0;
  text-align: center;
}

.card-intro {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-strong);
}

.card-text {
  margin: 16px 0 0;
}

.card-signature {
  margin-top: 22px;
  font-family: "Marck Script", cursive;
  font-size: 2rem;
  color: #d94088;
}

.info-grid,
.photo-section,
.map-section {
  display: grid;
  gap: 22px;
  margin-top: 36px;
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  padding: 28px;
  border-radius: 30px;
}

.info-icon {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 220, 238, 0.94));
  box-shadow: inset 0 -10px 20px rgba(255, 109, 177, 0.12);
  font-size: 1.7rem;
}

.info-card h2 {
  margin-top: 18px;
  font-size: 1.7rem;
}

.info-card p {
  margin: 8px 0 0;
}

.muted {
  color: #ae7293;
}

.photo-section {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
}

.photo-placeholder {
  min-height: 390px;
  padding: 22px;
  border-radius: 36px;
}

.photo-placeholder-inner {
  display: grid;
  place-items: center;
  gap: 8px;
  width: 100%;
  min-height: 346px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.88), transparent 30%),
    linear-gradient(135deg, rgba(255, 223, 239, 0.88), rgba(255, 245, 250, 0.96));
  border: 2px dashed rgba(255, 144, 191, 0.42);
  color: var(--accent-strong);
  text-align: center;
}

.photo-frame {
  overflow: hidden;
  padding: 0;
  border-radius: 30px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.22);
}

.eva-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 346px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 28px;
}

.photo-placeholder-inner span {
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-family: "Marck Script", cursive;
}

.photo-placeholder-inner small {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-soft);
}

.magic-cta {
  margin-top: 38px;
}

.magic-card {
  padding: 34px;
  border-radius: 34px;
  text-align: center;
}

.magic-button,
.route-link,
.modal-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 20px 40px rgba(255, 73, 148, 0.26);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
}

.magic-button:hover,
.route-link:hover,
.modal-action:hover,
.magic-button:focus-visible,
.route-link:focus-visible,
.modal-action:focus-visible {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 26px 44px rgba(255, 73, 148, 0.33);
  filter: saturate(1.08);
}

.map-section {
  grid-template-columns: 0.88fr 1.12fr;
  align-items: stretch;
}

.map-card {
  min-height: 380px;
  padding: 18px;
  border-radius: 34px;
}

.map-embed {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 344px;
  border: 0;
  border-radius: 24px;
  background: #f6dce9;
}

.sparkles,
.heart-stream,
.butterfly-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 215, 126, 0.65) 55%, transparent 70%);
  animation: sparkle-drift linear infinite;
}

.heart {
  position: absolute;
  width: 18px;
  height: 18px;
  background: linear-gradient(180deg, rgba(255, 156, 203, 0.95), rgba(255, 88, 153, 0.95));
  transform: rotate(45deg);
  opacity: 0.48;
  animation: heart-float linear infinite;
  border-radius: 4px;
}

.heart::before,
.heart::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: inherit;
}

.heart::before {
  left: -9px;
}

.heart::after {
  top: -9px;
}

.heart-burst {
  position: fixed;
  width: 16px;
  height: 16px;
  background: linear-gradient(180deg, rgba(255, 172, 211, 1), rgba(255, 83, 150, 1));
  transform: rotate(45deg);
  border-radius: 3px;
  pointer-events: none;
  z-index: 20;
  animation: burst 900ms ease-out forwards;
}

.heart-burst::before,
.heart-burst::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: inherit;
}

.heart-burst::before {
  left: -8px;
}

.heart-burst::after {
  top: -8px;
}

.firework-spark {
  position: fixed;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 25;
  box-shadow: 0 0 18px currentColor;
  animation: firework-burst 1.4s cubic-bezier(0.18, 0.84, 0.24, 1) forwards;
}

.firework-star {
  clip-path: polygon(50% 0%, 62% 35%, 100% 50%, 62% 65%, 50% 100%, 38% 65%, 0% 50%, 38% 35%);
  border-radius: 0;
}

.butterfly {
  position: absolute;
  width: 58px;
  height: 44px;
  opacity: 0.78;
  filter: drop-shadow(0 10px 18px rgba(222, 114, 177, 0.22));
  animation:
    fly-across var(--duration) linear infinite,
    drift-soft var(--drift) ease-in-out infinite alternate;
  animation-delay: var(--delay);
}

.butterfly-body {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 26px;
  background: linear-gradient(180deg, #ff71b0, #cf4e8c);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.wing {
  position: absolute;
  top: 5px;
  width: 25px;
  height: 28px;
  background: linear-gradient(180deg, rgba(255, 190, 223, 0.96), rgba(255, 105, 175, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.55);
}

.wing-left {
  left: 2px;
  border-radius: 80% 50% 60% 85%;
  transform-origin: right center;
  animation: flap-left 420ms ease-in-out infinite;
}

.wing-right {
  right: 2px;
  border-radius: 50% 80% 85% 60%;
  transform-origin: left center;
  animation: flap-right 420ms ease-in-out infinite;
}

.wing::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.85), transparent 48%);
  opacity: 0.75;
}

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.shimmer-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.6) 50%, transparent 65%);
  transform: translateX(-60%) rotate(12deg);
  animation: shimmer 8s ease-in-out infinite;
  pointer-events: none;
}

.shimmer-card {
  position: relative;
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(138, 36, 87, 0.24);
  backdrop-filter: blur(10px);
  z-index: 30;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: min(480px, 100%);
  padding: 34px 28px 28px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 240, 248, 0.95));
  box-shadow: 0 30px 70px rgba(193, 57, 123, 0.24);
  text-align: center;
  border: 1px solid rgba(255, 170, 206, 0.35);
}

.modal-kicker {
  margin: 0;
  color: var(--accent-strong);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal h2 {
  margin-top: 10px;
  font-size: 2.15rem;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 232, 242, 0.9);
  color: var(--accent-strong);
  font-size: 1.7rem;
  cursor: pointer;
}

@keyframes shimmer {
  0%,
  100% {
    transform: translateX(-60%) rotate(12deg);
    opacity: 0;
  }
  16% {
    opacity: 1;
  }
  32% {
    transform: translateX(60%) rotate(12deg);
    opacity: 0;
  }
}

@keyframes twinkle {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.16) rotate(12deg);
    opacity: 1;
  }
}

@keyframes fly-across {
  0% {
    transform: translate3d(calc(-15vw - 60px), var(--from-y), 0) scale(var(--scale)) rotate(5deg);
  }
  50% {
    transform: translate3d(55vw, calc(var(--to-y) - 20px), 0) scale(calc(var(--scale) + 0.08)) rotate(-6deg);
  }
  100% {
    transform: translate3d(calc(115vw + 80px), var(--to-y), 0) scale(var(--scale)) rotate(7deg);
  }
}

@keyframes drift-soft {
  from {
    margin-top: -6px;
  }
  to {
    margin-top: 14px;
  }
}

@keyframes flap-left {
  0%,
  100% {
    transform: rotateY(0deg) rotate(-12deg);
  }
  50% {
    transform: rotateY(62deg) rotate(4deg);
  }
}

@keyframes flap-right {
  0%,
  100% {
    transform: rotateY(0deg) rotate(12deg);
  }
  50% {
    transform: rotateY(-62deg) rotate(-4deg);
  }
}

@keyframes heart-float {
  0% {
    transform: translate3d(0, 110vh, 0) rotate(45deg) scale(0.75);
    opacity: 0;
  }
  15% {
    opacity: 0.45;
  }
  85% {
    opacity: 0.5;
  }
  100% {
    transform: translate3d(var(--x-drift), -15vh, 0) rotate(45deg) scale(1.15);
    opacity: 0;
  }
}

@keyframes sparkle-drift {
  0% {
    transform: translate3d(0, 105vh, 0) scale(0.6);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--x-drift), -10vh, 0) scale(1.2);
    opacity: 0;
  }
}

@keyframes burst {
  0% {
    transform: translate(-50%, -50%) rotate(45deg) scale(0.55);
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(45deg) scale(1.25);
    opacity: 0;
  }
}

@keyframes firework-burst {
  0% {
    transform: translate(-50%, -50%) scale(0.2) rotate(0deg);
    opacity: 0;
  }
  14% {
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.1) rotate(220deg);
    opacity: 0;
  }
}

@keyframes scroll-cue-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(9px);
  }
}

@media (max-width: 980px) {
  .hero,
  .photo-section,
  .map-section,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 26px;
  }

  .countdown-card,
  .hero-copy,
  .invitation-card,
  .photo-copy,
  .map-copy {
    width: 100%;
  }

  .invitation-card {
    transform: none;
  }

  .photo-placeholder,
  .map-card {
    min-height: auto;
  }

  .map-embed {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 1rem), 100%);
    padding-top: 14px;
  }

  .hero {
    gap: 18px;
  }

  .scroll-cue {
    margin: 2px auto 22px;
  }

  .countdown {
    gap: 8px;
  }

  .countdown-card,
  .invitation-card,
  .info-card,
  .magic-card,
  .map-card,
  .photo-placeholder {
    border-radius: 24px;
  }

  .countdown-card,
  .info-card,
  .magic-card {
    padding: 20px;
  }

  .photo-placeholder {
    padding: 14px;
  }

  .photo-placeholder-inner {
    min-height: 260px;
  }

  .hero-subtitle,
  .card-text,
  .photo-copy p,
  .magic-card p,
  .map-copy p,
  .info-card p,
  .modal p {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
