:root {
  --cream: #fff8e8;
  --cream-deep: #f7edd4;
  --ink: #6b3d62;
  --pink: #ee5b86;
  --pink-deep: #e44574;
  --pink-soft: #ff8aaa;
  --green: #5eaf45;
  --green-deep: #4a9a34;
  --yellow: #ffe14a;
  --yellow-deep: #f5d02a;
  --sky: #7ec8ee;
  --sky-deep: #5eb4e0;
  --lilac: #c084fc;
  --orange: #ff9f43;
  --coral: #ff6b6b;
  --wood: #c48a4a;
  --wood-deep: #9a6430;
  --shadow: 0 10px 24px rgba(120, 60, 80, 0.16);
  --font-script: "Pacifico", "Caveat", cursive;
  --font-hand: "Caveat", cursive;
  --font-display: "Baloo 2", "Nunito", sans-serif;
  --font-body: "Nunito", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, #ffe8f0 0, transparent 28%),
    radial-gradient(circle at 80% 80%, #e8f8d8 0, transparent 30%),
    #f3e6c8;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.page {
  width: min(430px, 100%);
  margin: 0 auto;
  overflow: clip;
  background: var(--cream);
  box-shadow: 0 0 0 1px rgba(120, 80, 40, 0.06), 0 24px 60px rgba(80, 40, 20, 0.18);
}

@media (min-width: 480px) {
  body {
    padding: 28px 0 48px;
  }

  .page {
    border-radius: 28px;
  }
}

.paper-grain {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.fl {
  width: 46px;
  height: 46px;
  overflow: visible;
  filter: drop-shadow(2px 4px 3px rgba(90, 40, 40, 0.2));
}

.fl.xs { width: 26px; height: 26px; }
.fl.sm { width: 36px; height: 36px; }
.fl.md { width: 52px; height: 52px; }
.fl.lg { width: 70px; height: 70px; }
.fl.xl { width: 118px; height: 118px; }

.fl.pink { color: #ff7aa8; }
.fl.magenta { color: #ef4d86; }
.fl.coral { color: #ff6b6b; }
.fl.orange { color: #ff9f43; }
.fl.yellow { color: #ffd93d; }
.fl.lilac { color: #c084fc; }
.fl.sky { color: #74c0fc; }

.fl.r-18 { rotate: -18deg; }
.fl.r18 { rotate: 18deg; }
.fl.r-8 { rotate: -8deg; }
.fl.r12 { rotate: 12deg; }

.leaf-svg {
  position: absolute;
  width: 28px;
  height: 38px;
  filter: drop-shadow(1px 2px 1px rgba(40, 80, 20, 0.2));
}

.leaf-svg.a { top: 42px; left: 86px; rotate: 28deg; }
.leaf-svg.b { top: 56px; left: 4px; rotate: -50deg; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 18px 20px 0;
  background:
    linear-gradient(180deg, #fffdf6 0%, var(--cream) 55%, #fff3c4 100%);
  text-align: center;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 92px;
}

.hero-bouquet {
  position: relative;
  width: 150px;
  height: 92px;
}

.hero-bouquet .fl {
  position: absolute;
}

.hero-bouquet .fl:nth-child(1) { left: 4px; top: 10px; }
.hero-bouquet .fl:nth-child(2) { left: 48px; top: -4px; }
.hero-bouquet .fl:nth-child(3) { left: 94px; top: 16px; }
.hero-bouquet .fl:nth-child(4) { left: 36px; top: 38px; }

.menu-btn {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff8aaa, var(--pink));
  box-shadow: 0 6px 0 #c93a66, 0 10px 16px rgba(200, 50, 90, 0.28);
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
  z-index: 20;
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 3px;
  border-radius: 99px;
  background: #fff;
}

.menu {
  position: absolute;
  top: 76px;
  right: 20px;
  z-index: 15;
  display: grid;
  gap: 6px;
  padding: 14px 18px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-align: left;
}

.menu[hidden] {
  display: none;
}

.menu a {
  text-decoration: none;
  font-weight: 800;
  color: var(--pink);
  padding: 4px 0;
}

.hero-copy {
  padding: 4px 8px 18px;
}

.eyebrow {
  margin: 0;
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: var(--green);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.7);
}

.name {
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 0.02em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.4rem, 22vw, 5.6rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
}

.letter {
  color: var(--c);
  text-shadow:
    0 3px 0 color-mix(in srgb, var(--c) 70%, #7a2040),
    0 8px 0 color-mix(in srgb, var(--c) 45%, #5a1830),
    0 14px 18px rgba(120, 30, 50, 0.22);
}

.letter-i {
  position: relative;
}

.letter-i::after {
  content: "";
  position: absolute;
  top: 0.08em;
  left: 50%;
  width: 0.28em;
  height: 0.28em;
  translate: -50% 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #ffe566 0 30%, transparent 31%),
    radial-gradient(circle at 50% 8%, #ff7aa8 0 24%, transparent 25%),
    radial-gradient(circle at 50% 92%, #ff7aa8 0 24%, transparent 25%),
    radial-gradient(circle at 8% 50%, #ff7aa8 0 24%, transparent 25%),
    radial-gradient(circle at 92% 50%, #ff7aa8 0 24%, transparent 25%);
  box-shadow: 0 2px 0 rgba(180, 40, 80, 0.2);
}

.ribbon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 6px 36px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.06));
}

.ribbon span {
  position: relative;
  z-index: 1;
}

.ribbon--green {
  margin-top: 6px;
  background: var(--green);
  font-family: var(--font-script);
  font-size: 1.45rem;
  font-weight: 400;
}

.ribbon--pink {
  background: var(--pink);
  letter-spacing: 0.04em;
}

.ribbon::before,
.ribbon::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 18px;
  height: calc(100% - 8px);
  background: inherit;
  filter: brightness(0.82);
}

.ribbon::before {
  left: -10px;
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 35% 50%, 0 0);
}

.ribbon::after {
  right: -10px;
  clip-path: polygon(0 0, 65% 50%, 0 100%, 100% 100%, 100% 0);
}

.hero-occasion {
  margin: 12px 0 0;
  font-family: var(--font-script);
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--pink);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.7);
}

.hero-date {
  margin: 8px 0 8px;
  color: var(--pink);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
}

.flower-bed {
  position: relative;
  height: 110px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 2px 0;
  z-index: 1;
}

.bush {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 10px;
  height: 36px;
  background:
    radial-gradient(circle at 15% 80%, #6bb34a 0 22%, transparent 23%),
    radial-gradient(circle at 38% 70%, #5aa43c 0 28%, transparent 29%),
    radial-gradient(circle at 62% 78%, #6bb34a 0 24%, transparent 25%),
    radial-gradient(circle at 86% 72%, #5aa43c 0 26%, transparent 27%);
  z-index: -1;
}

.scallop {
  height: 26px;
  margin-bottom: -1px;
}

.scallop--yellow {
  background:
    radial-gradient(circle at 50% 100%, var(--yellow) 72%, transparent 73%) 0 0 / 24px 26px repeat-x;
  background-color: transparent;
}

.scallop--sky {
  background:
    radial-gradient(circle at 50% 100%, var(--sky) 70%, transparent 71%) 0 0 / 26px 22px repeat-x;
}

/* ---------- invite ---------- */
.invite {
  position: relative;
  padding: 28px 22px 18px;
  background: var(--cream);
}

.invite-title {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-family: var(--font-script);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--pink);
}

.invite-title .fl {
  flex: 0 0 auto;
}

.invite-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 10px;
  align-items: center;
}

.invite-text {
  margin: 0;
  font-family: var(--font-hand);
  font-size: 1.18rem;
  line-height: 1.25;
  color: #8a4b7a;
}

.portrait {
  position: relative;
  margin: 0;
}

.portrait-ring {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  padding: 9px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, #ffd0de, #ff7aa8 58%, #ee5b86);
  box-shadow:
    0 10px 18px rgba(200, 60, 100, 0.22),
    18px 0 0 -10px #ff9bb8,
    -16px 6px 0 -10px #ff9bb8,
    0 -18px 0 -10px #ff9bb8,
    12px 16px 0 -10px #ff9bb8,
    -14px -14px 0 -10px #ff9bb8,
    inset 0 0 0 5px #ffb3c8;
}

.portrait-photo,
.portrait-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.portrait-photo {
  position: absolute;
  inset: 9px;
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  object-position: center 18%;
  z-index: 1;
}

.portrait-photo.is-broken {
  display: none;
}

.portrait-fl {
  position: absolute;
  z-index: 2;
}

.portrait-fl.tl { top: -6px; left: -4px; }
.portrait-fl.tr { top: 6px; right: -8px; }
.portrait-fl.br { bottom: 4px; right: -2px; }

.bee-svg {
  position: absolute;
  left: -10px;
  bottom: 26px;
  width: 34px;
  height: 26px;
  rotate: -16deg;
  z-index: 2;
}

.flourish {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  margin-top: 8px;
  height: 52px;
}

/* ---------- details ---------- */
.details {
  position: relative;
  padding: 8px 22px 0;
  background: linear-gradient(180deg, var(--cream) 0 72%, #e8f6c8 100%);
  text-align: center;
}

.details-banner {
  width: calc(100% - 12px);
  margin: 0 auto 22px;
  font-size: 1.05rem;
  gap: 10px;
}

.details-banner .fl {
  flex: 0 0 auto;
}

.facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
}

.facts li {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--pink);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.fact-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 6px 0 rgba(228, 69, 116, 0.15));
}

.fact-icon svg {
  width: 48px;
  height: 48px;
}

.address {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #d8ef9a;
  border-radius: 16px;
  color: #4a5a28;
  font-weight: 700;
  font-size: 0.86rem;
  text-align: left;
  box-shadow: inset 0 0 0 2px rgba(120, 160, 50, 0.18);
}

.address svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow);
}

.btn svg {
  width: 22px;
  height: 22px;
}

.btn--pink {
  width: 100%;
  color: #fff;
  background: linear-gradient(180deg, #ff7aa2, var(--pink-deep));
  box-shadow: 0 6px 0 #c93a66, 0 12px 18px rgba(200, 50, 90, 0.22);
}

.hills {
  position: relative;
  height: 88px;
  margin-top: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  background:
    radial-gradient(120% 80% at 20% 120%, #7ec85a 0 42%, transparent 43%),
    radial-gradient(120% 90% at 70% 130%, #68b348 0 48%, transparent 49%),
    linear-gradient(180deg, transparent 35%, #73bc4e 36%);
}

/* ---------- rsvp ---------- */
.rsvp {
  position: relative;
  background: var(--yellow);
  padding: 8px 0 0;
}

.wave-top {
  height: 18px;
  background:
    radial-gradient(circle at 50% 0, var(--yellow) 70%, transparent 71%) 0 0 / 24px 18px repeat-x;
  margin-top: -10px;
}

.rsvp-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 8px;
  align-items: center;
  padding: 8px 18px 18px;
}

.rsvp-copy h2 {
  margin: 0 0 14px;
  font-family: var(--font-hand);
  font-size: 1.7rem;
  line-height: 1.15;
  font-weight: 700;
  color: #c46a22;
}

.deadline {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 12px;
  padding: 10px 16px;
  text-align: center;
  background: #fff8e4;
  border: 2px dashed #f3a6b8;
  border-radius: 16px;
  color: var(--pink);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.btn--whatsapp {
  color: #fff;
  background: linear-gradient(180deg, #53d769, #25a244);
  box-shadow: 0 6px 0 #1b7a32, 0 12px 18px rgba(30, 120, 50, 0.22);
  font-size: 0.82rem;
  padding-inline: 14px;
}

.heart {
  color: #ff8aaa;
  font-size: 1.1rem;
}

.pot-flower {
  position: relative;
  height: 180px;
  display: grid;
  justify-items: center;
  align-content: end;
}

.pot-flower .fl {
  position: absolute;
  top: 0;
  width: 137px;
  height: 137px;
  animation: none;
  translate: none;
}

.stem {
  width: 8px;
  height: 42px;
  background: linear-gradient(90deg, #5eaf45, #3f8d2d);
  border-radius: 8px;
}

.pot {
  width: 72px;
  height: 48px;
  background: linear-gradient(180deg, #c084fc, #9b59d0);
  clip-path: polygon(8% 0, 92% 0, 82% 100%, 18% 100%);
  box-shadow: inset 0 6px 0 rgba(255, 255, 255, 0.18);
}

/* ---------- footer ---------- */
.footer {
  position: relative;
  min-height: 250px;
  padding: 28px 20px 0;
  background: linear-gradient(180deg, var(--sky) 0 68%, #8fd06a 68% 100%);
  overflow: hidden;
  text-align: center;
}

.cloud {
  position: absolute;
  background: #fff;
  border-radius: 40px;
  opacity: 0.92;
  box-shadow: 18px 8px 0 -4px #fff, -16px 10px 0 -6px #fff;
}

.c1 { width: 70px; height: 22px; top: 22px; left: 18px; }
.c2 { width: 54px; height: 18px; top: 40px; right: 28px; }
.c3 { width: 40px; height: 14px; top: 18px; right: 90px; }

.butterfly-svg {
  position: absolute;
  top: 48px;
  left: 22px;
  width: 42px;
  height: 34px;
}

.sign {
  position: relative;
  z-index: 2;
  width: min(250px, 78%);
  margin: 36px auto 0;
  padding: 18px 16px 16px;
  background:
    repeating-linear-gradient(90deg, transparent 0 12px, rgba(90, 50, 20, 0.06) 12px 13px),
    linear-gradient(180deg, #e0a45c, var(--wood));
  border: 4px solid var(--wood-deep);
  border-radius: 8px;
  box-shadow: 0 10px 0 rgba(90, 50, 10, 0.18);
}

.sign::before,
.sign::after {
  content: "";
  position: absolute;
  top: 100%;
  width: 10px;
  height: 72px;
  background: linear-gradient(90deg, #a86b32, #7a4a1e);
  box-shadow: 2px 0 0 rgba(0, 0, 0, 0.08);
}

.sign::before { left: 28px; }
.sign::after { right: 28px; }

.sign p {
  margin: 0;
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: var(--pink-deep);
}

.rope,
.rope--r {
  position: absolute;
  top: -28px;
  width: 4px;
  height: 30px;
  background: #8b5a2b;
}

.rope { left: 28px; rotate: -8deg; }
.rope--r { right: 28px; left: auto; rotate: 8deg; }

.footer-fl {
  position: absolute;
  z-index: 3;
}

.footer-fl.l { left: -12px; bottom: 40px; }
.footer-fl.r { right: -10px; bottom: 48px; }

.fence {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 58px;
  background-image: url("../assets/fence.svg");
  background-repeat: repeat-x;
  background-size: 28px 58px;
  background-position: bottom;
}

.grass {
  position: absolute;
  inset: auto 0 0;
  height: 22px;
  background: linear-gradient(180deg, #7ec85a, #5aa43c);
}

.site-credit {
  margin: 0;
  padding: 14px 22px 18px;
  background: #4a9a34;
  color: #f3ffe8;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

.site-credit a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .fl:not(.smile) {
    animation: sway 4.5s ease-in-out infinite;
  }

  .hero-bouquet .fl,
  .flower-bed .fl,
  .invite .fl,
  .hills .fl,
  .footer .fl {
    animation: bouquet-sway 1.1s ease-in-out infinite;
  }

  .hero-bouquet .fl:nth-child(even),
  .flower-bed .fl:nth-child(even),
  .invite .fl:nth-child(even),
  .hills .fl:nth-child(even),
  .footer .fl:nth-of-type(even) {
    animation-name: bouquet-sway-rev;
  }

  .hero-bouquet .fl:nth-child(2),
  .flower-bed .fl:nth-child(odd) {
    animation-delay: -1.4s;
  }

  .details-banner .fl {
    animation: spin-sway 1.1s ease-in-out infinite;
  }

  .details-banner .fl:nth-child(even) {
    animation-name: spin-sway-rev;
  }

  .butterfly-svg {
    animation: flutter 1.4s ease-in-out infinite;
  }

  .pot-flower .petals {
    transform-box: fill-box;
    transform-origin: center;
    animation: spin-360 6s linear infinite;
  }
}

@keyframes sway {
  50% { translate: 0 -3px; }
}

@keyframes bouquet-sway {
  0%, 100% {
    translate: 0 0;
    transform: rotate(-12deg);
  }
  50% {
    translate: 0 -3px;
    transform: rotate(12deg);
  }
}

@keyframes bouquet-sway-rev {
  0%, 100% {
    translate: 0 0;
    transform: rotate(12deg);
  }
  50% {
    translate: 0 -3px;
    transform: rotate(-12deg);
  }
}

@keyframes spin-sway {
  0%, 100% { transform: rotate(-12deg); }
  50% { transform: rotate(12deg); }
}

@keyframes spin-sway-rev {
  0%, 100% { transform: rotate(12deg); }
  50% { transform: rotate(-12deg); }
}

@keyframes flutter {
  50% { translate: 10px -8px; }
}

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