:root {
  --plum: #8B4F64;
  --rose: #C995A1;
  --blush: #EFD6D8;
  --petal: #F9EDEB;
  --stone: #DDD1C6;
  --ivory: #F9EDEB;
  --ivory-deep: #EFD6D8;
  --rose-deep: #8B4F64;
  --champagne: #EFD6D8;
  --gold: #C995A1;
  --gold-deep: #8B4F64;
  --ink: #2C2422;
  --ink-soft: #3F342F;
  --line: #DDD1C6;
  --serif: "Cormorant Garamond", Palatino, "Palatino Linotype", serif;
  --sans: Outfit, "Segoe UI", sans-serif;
  --shadow: 0 24px 60px rgba(70, 46, 40, 0.12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(239, 214, 216, 0.95), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(201, 149, 161, 0.28), transparent 50%),
    var(--petal);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(80, 55, 45, 0.045) 0.7px, transparent 0.7px);
  background-size: 4px 4px;
  z-index: 0;
}
body:not(.is-open) { overflow: hidden; }
img, svg { max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--rose-deep); }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.6rem 0.8rem;
  z-index: 20;
}
.skip:focus { top: 1rem; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.8rem;
  background: var(--ivory);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.loader__mark {
  width: 4.5rem;
  height: 4.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--rose-deep);
  animation: pulse 1.8s ease-in-out infinite;
}
body.is-booted .loader { display: none; }
@keyframes pulse { 50% { transform: scale(0.96); opacity: 0.72; } }

.intro, #contenido, .dock { position: relative; z-index: 1; }
.intro, #contenido { display: none; }
body.is-booted .intro { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1.25rem 5rem; }
body.is-open .intro { display: none !important; }
body.is-open #contenido { display: block; }

.intro { overflow: hidden; }
.intro__panel { position: relative; z-index: 1; width: min(100%, 28rem); text-align: center; }
.intro__whisper {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  line-height: 1.15;
  color: var(--rose-deep);
}
.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.intro h1, .hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.4rem, 12vw, 6.4rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
}
.intro__date { margin: 0.8rem 0 1.4rem; color: var(--ink-soft); }

.envelope {
  width: min(16.5rem, 78vw);
  height: 11.2rem;
  margin: 0.4rem auto 1.4rem;
  position: relative;
  perspective: 900px;
  filter: drop-shadow(0 18px 28px rgba(80, 50, 40, 0.12));
}
.envelope__letter, .envelope__pocket, .envelope__flap, .envelope__seal { position: absolute; }
.envelope__letter {
  left: 8%;
  right: 8%;
  bottom: 14%;
  height: 68%;
  z-index: 1;
  display: grid;
  place-items: center;
  background: #fffdfb;
  color: var(--rose-deep);
  font-family: var(--serif);
  font-size: 2rem;
  transition: transform 0.8s ease;
}
.envelope__pocket {
  inset: 0;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 0.55rem 0.55rem 0.4rem 0.4rem;
  background:
    linear-gradient(to top right, transparent 49%, #f4e6d6 50%) bottom right / 51% 42% no-repeat,
    linear-gradient(to top left, transparent 49%, #f8efe6 50%) bottom left / 51% 42% no-repeat,
    linear-gradient(#fbf6f0, #f3e4d6);
}
.envelope__flap {
  top: 0;
  left: 0;
  right: 0;
  height: 58%;
  z-index: 3;
  background: linear-gradient(#f8f1e8, #ead8c6);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform 0.9s ease;
}
.envelope__seal {
  left: 50%;
  top: 46%;
  z-index: 4;
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 30%, #e4d0aa, #a68556 55%, #6f5434);
  color: #fffaf3;
  font-family: var(--serif);
  letter-spacing: 0.08em;
  transition: opacity 0.35s ease, transform 0.45s ease;
}
.envelope.is-open .envelope__flap { transform: rotateX(188deg); }
.envelope.is-open .envelope__seal { opacity: 0; transform: translate(-50%, -20%) scale(0.7); }
.envelope.is-open .envelope__letter { transform: translateY(-2.4rem); }

.btn, .dock, .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
}
.btn {
  border: 1px solid transparent;
  background: var(--plum);
  color: #fffaf6;
  letter-spacing: 0.04em;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(80, 46, 48, 0.16); }
.btn:disabled { opacity: 0.55; cursor: wait; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.text-link { min-height: auto; padding: 0; border-radius: 0; text-underline-offset: 0.2em; }

.sheet { width: min(100%, 42rem); margin: 0 auto; padding: 1.4rem 1.25rem 3rem; }
.hero { padding: 2.6rem 0 0.4rem; text-align: center; }
.hero h1, .intro h1 { color: var(--plum); text-transform: uppercase; letter-spacing: 0.06em; }
.parents { max-width: 28rem; margin: 1.8rem auto 0; }
.parents__lead {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.45rem, 3.4vw, 1.85rem);
  line-height: 1.3;
  color: var(--plum);
}
.parents__name { margin: 0.15rem 0; color: var(--ink); letter-spacing: 0.12em; font-size: 0.98rem; }
.film { padding-top: 2.6rem; }
.film__frame {
  overflow: hidden;
  border: 1px solid var(--stone);
  border-radius: 1.15rem;
  background: #2c2422;
  box-shadow: 0 18px 40px rgba(44, 36, 34, 0.1);
}
.film video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  background: #2c2422;
}
.film__note {
  margin: 0;
  padding: 1.5rem 1.1rem;
  text-align: center;
  color: var(--ink);
  background: var(--blush);
  border: 1px solid var(--stone);
  border-radius: 1.15rem;
}
.gallery-more { margin-top: 1rem; text-align: center; }
.score { display: flex; justify-content: center; }
.score:not(:has(button:not([hidden]))) { display: none; }
.score__button {
  min-height: 2.6rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--stone);
  border-radius: 999px;
  background: rgba(249, 237, 235, 0.94);
  color: #2c2422;
  font: 500 0.92rem/1.2 Outfit, sans-serif;
}
.score__button:disabled { opacity: 0.7; cursor: default; }
.hero__line {
  margin: 0 0 0.55rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  line-height: 1.25;
  color: var(--rose-deep);
}
.intro h1 { font-size: clamp(2.15rem, 8.5vw, 3.5rem); line-height: 0.95; max-width: 12em; margin-inline: auto; }
.hero h1 { line-height: 1.02; text-align: center; }
.hero h1 span {
  display: block;
  font-style: normal;
  font-weight: 500;
  transform: none;
}
.hero__meta { display: flex; gap: 1rem; align-items: end; margin-top: 1rem; }
.hero__day {
  font-family: var(--serif);
  font-size: 4.2rem;
  line-height: 0.8;
  color: var(--rose-deep);
}
.hero__when { margin: 0; color: var(--ink-soft); white-space: pre-line; }
body.is-open { padding-bottom: 6.5rem; }
.frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--champagne);
  border-radius: 0.4rem 4rem 0.4rem 0.4rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.frame img, .photo-fallback, .monogram { width: 100%; height: 100%; object-fit: cover; }
.monogram, .photo-fallback {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.7), transparent 42%),
    linear-gradient(160deg, #f8efe6, #e7cfcb 70%, #f3e6d4);
}
.monogram strong {
  font-family: var(--serif);
  font-size: 5rem;
  font-weight: 500;
  line-height: 0.8;
  color: var(--rose-deep);
}
.monogram small, .photo-fallback { color: var(--gold-deep); letter-spacing: 0.08em; }
.monogram div { display: grid; justify-items: center; gap: 0.35rem; }
.monogram small { display: block; max-width: 9rem; line-height: 1.3; }
.frame figcaption { position: absolute; left: 0.8rem; bottom: 0.7rem; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: white; text-shadow: 0 1px 8px rgba(0,0,0,.35); }

.personal {
  margin: 1.6rem 0;
  padding: 1rem 1.1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.personal p { margin: 0.2rem 0; }
.personal p:first-child { font-family: var(--serif); font-size: 1.7rem; font-style: italic; }

.section { padding: 3.1rem 0 0.2rem; text-align: center; }
.section h2 {
  margin: 0.2rem 0 0.9rem;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  font-weight: 500;
  line-height: 0.95;
  color: var(--plum);
}
.section h2::before {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  margin: 0 auto 0.75rem;
  background: var(--stone);
}
.index { margin: 0; color: var(--gold); letter-spacing: 0.22em; font-size: 0.75rem; }
.lede, .closing {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--serif);
  font-size: clamp(1.28rem, 3vw, 1.55rem);
  line-height: 1.45;
  color: var(--ink);
  white-space: pre-line;
}
.count {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}
.count div {
  padding: 0.75rem 0.2rem;
  text-align: center;
  border: 1px solid var(--line);
  background: rgba(255, 252, 248, 0.55);
}
.count strong { display: block; font-family: var(--serif); font-size: clamp(1.45rem, 6vw, 2rem); font-weight: 500; color: var(--plum); }
.count strong.is-tick { animation: tick 0.35s ease; }
@keyframes tick { from { opacity: 0.35; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.count span { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.facts { display: grid; gap: 0.8rem; }
.fact, .venue, .rsvp {
  padding: 1rem;
  background: #fffaf8;
  border: 1px solid var(--stone);
  text-align: left;
}
.facts { text-align: left; }
.fact strong, .venue h3 { font-family: var(--serif); font-size: 1.8rem; font-weight: 500; }
.venue__map { width: 100%; height: 220px; border: 0; margin-top: 0.8rem; }
#establecimiento {
  margin: 0.2rem 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
}
#direccion {
  margin: 0.15rem 0 0;
  color: var(--ink);
}
.venue__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.9rem; }
.note { color: #4a3f3b; }
.note--bad { color: #6e2430; font-weight: 500; }
.note--ok {
  color: #2c2422;
  background: #f3e6d4;
  border: 1px solid #c4ad90;
  border-radius: 0.8rem;
  padding: 0.8rem 0.95rem;
}

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.gallery button {
  position: relative;
  padding: 0;
  border: 0;
  background: var(--champagne);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.gallery button:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 4; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute;
  left: 0.4rem;
  top: 0.4rem;
  padding: 0.15rem 0.4rem;
  background: rgba(255, 250, 245, 0.9);
  color: var(--rose-deep);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gift h3 { margin: 0.2rem 0; font-family: var(--serif); font-size: 2.4rem; font-weight: 500; }
.agenda { list-style: none; margin: 0; padding: 0; }
.agenda li { display: grid; grid-template-columns: 5rem 1fr; gap: 0.8rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.rsvp h3 { margin: 0; font-family: var(--serif); font-size: 1.7rem; font-weight: 500; }
.choice { display: flex; gap: 0.8rem; margin: 0.8rem 0; }
.choice label { display: flex; gap: 0.35rem; align-items: center; }
.stepper { display: flex; align-items: center; gap: 0.5rem; }
.stepper input { width: 4rem; text-align: center; min-height: 2.7rem; border: 1px solid var(--line); background: white; }
.stepper button { width: 2.7rem; height: 2.7rem; border-radius: 50%; border: 1px solid var(--line); background: white; }

.closing { margin-bottom: 0.4rem; }
.footer { padding: 2rem 0 1rem; text-align: center; color: var(--ink-soft); }
.footer strong { display: block; font-family: var(--serif); font-size: 1.8rem; font-weight: 500; color: var(--ink); }
.config-warning { font-size: 0.85rem; }

.dock { display: none !important; }
html.js .reveal { opacity: 0; transform: translateY(16px); }
html.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s ease; }

.lightbox { width: min(100%, 52rem); border: 0; padding: 0; background: transparent; }
.lightbox::backdrop { background: rgba(34, 24, 22, 0.78); }
.lightbox__figure { margin: 0; }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; background: #1d1614; }
.lightbox__bar { display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; }
.lightbox__bar button, .lightbox figcaption { color: #fffaf6; background: transparent; border: 0; }
.noscript { width: min(100%, 40rem); margin: 1rem auto; padding: 1rem; }

@media (min-width: 880px) {
  .sheet { width: min(100%, 46rem); padding-inline: 2rem; }
  .hero { display: block; min-height: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .venue { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  html.js .reveal, .shot img { opacity: 1; transform: none; }
  .paper-envelope__flap { transform: rotateX(188deg); }
}

@media (forced-colors: active) {
  .btn, .dock, .frame { border: 1px solid ButtonText; }
}

@media print {
  .loader, .intro, .dock, .score, .flora, .sparkles, .venue__map, .lightbox { display: none !important; }
  body { background: white; overflow: visible; }
  #contenido { display: block !important; }
}

.flora, .sparkles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.flora i, .sparkles span { position: absolute; }
.flora i {
  width: 0.7rem;
  height: 1rem;
  border-radius: 70% 10% 70% 10%;
  background: rgba(201, 137, 139, 0.42);
  animation: drift 18s linear infinite;
}
.flora i:nth-child(1) { left: 8%; bottom: -10%; animation-duration: 17s; }
.flora i:nth-child(2) { left: 22%; bottom: -20%; animation-duration: 21s; animation-delay: -6s; }
.flora i:nth-child(3) { left: 70%; bottom: -12%; animation-duration: 19s; }
.flora i:nth-child(4) { left: 84%; bottom: -24%; animation-duration: 23s; animation-delay: -8s; }
.flora i:nth-child(5) { left: 48%; bottom: -16%; width: 0.55rem; animation-duration: 16s; }
.flora i:nth-child(6) { left: 60%; bottom: -28%; animation-duration: 22s; animation-delay: -4s; }
.sparkles span {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: rgba(196, 164, 106, 0.85);
  box-shadow: 0 0 10px rgba(196, 164, 106, 0.8);
  animation: twinkle 4.8s ease-in-out infinite;
}
.sparkles span:nth-child(1) { top: 16%; left: 14%; }
.sparkles span:nth-child(2) { top: 28%; right: 12%; animation-delay: -1.5s; }
.sparkles span:nth-child(3) { bottom: 18%; left: 20%; animation-delay: -2.4s; }
.sparkles span:nth-child(4) { bottom: 24%; right: 18%; animation-delay: -3s; }
html.is-hidden .flora i, html.is-hidden .sparkles span { animation-play-state: paused; }
@keyframes drift {
  from { transform: translateY(0) rotate(0deg); opacity: 0; }
  12% { opacity: 0.75; }
  to { transform: translateY(-78vh) rotate(28deg); opacity: 0; }
}
@keyframes twinkle { 50% { opacity: 0.25; transform: scale(0.7); } }

.prose, .aside, .pull, .prayer, .blessing__close {
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.45;
}
.aside { color: var(--ink-soft); font-style: italic; }
.pull {
  grid-column: 1 / -1;
  margin: 0.2rem 0;
  text-align: center;
  font-style: italic;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
}

.blessing {
  margin-top: 1.4rem;
  padding: 2.4rem 1.15rem 2rem;
  text-align: center;
  background:
    radial-gradient(380px 160px at 50% 0%, rgba(166, 133, 86, 0.18), transparent 72%),
    rgba(255, 250, 245, 0.78);
  border: 1px solid var(--line);
}
.cross { width: 0.9rem; height: 1.35rem; margin: 0 auto 0.8rem; position: relative; }
.cross::before, .cross::after { content: ""; position: absolute; background: var(--gold); }
.cross::before { left: 0.4rem; top: 0; width: 1px; height: 1.35rem; }
.cross::after { left: 0; top: 0.38rem; width: 0.9rem; height: 1px; }
.blessing blockquote {
  max-width: 36rem;
  margin: 1.3rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.blessing cite {
  display: block;
  margin-top: 0.7rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold-deep);
}
.personal em { font-family: var(--serif); font-size: 1.35em; font-style: italic; }

html.js #galeria-seccion { opacity: 1; visibility: visible; transform: none; }
.editorial { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin-top: 0.4rem; }
.shot { margin: 0; }
.shot--feature, .shot--wide { grid-column: 1 / -1; }
.shot button {
  display: block;
  width: 100%;
  padding: 0.38rem;
  border: 1px solid rgba(166, 133, 86, 0.5);
  background: linear-gradient(#fffaf6, #f4e7d8);
  box-shadow: 0 16px 34px rgba(70, 46, 40, 0.1);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.shot--feature button { aspect-ratio: 4 / 5; }
.shot--wide button { aspect-ratio: 5 / 4; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 1; visibility: visible; }
.venue__map { border-radius: 0.35rem; box-shadow: var(--shadow); }

.lightbox[open] { animation: lift 0.35s ease; }
@keyframes lift { from { opacity: 0; transform: translateY(10px); } }

@media (min-width: 880px) {
  .editorial { grid-template-columns: 1.15fr 0.85fr 1fr; }
  .shot--feature { grid-column: span 2; }
  .shot--wide, .pull { grid-column: 1 / -1; }
}

.index::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 1px;
  margin: 0.45rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.btn { transition: transform 0.2s ease, background-color 0.2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.shot--portrait button:hover img { transform: scale(1.03); }
.shot .photo-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 10rem;
  padding: 1rem;
  text-align: center;
  color: #6f5434;
  background: #f3e6d4;
}
.petals { position: fixed; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
body:not(.is-open) .petals { display: none; }
.petals i {
  position: absolute;
  top: -8%;
  width: 0.55rem;
  height: 0.8rem;
  border-radius: 70% 10% 70% 10%;
  background: rgba(201, 137, 139, 0.55);
  animation: fall 18s linear infinite;
}
.petals i:nth-child(1) { left: 12%; animation-duration: 19s; }
.petals i:nth-child(2) { left: 34%; animation-duration: 22s; animation-delay: -7s; }
.petals i:nth-child(3) { left: 58%; animation-duration: 17s; animation-delay: -3s; }
.petals i:nth-child(4) { left: 76%; animation-duration: 21s; animation-delay: -11s; }
.petals i:nth-child(5) { left: 90%; animation-duration: 24s; animation-delay: -5s; background: rgba(166, 133, 86, 0.4); }
@keyframes fall {
  to { transform: translateY(110vh) rotate(18deg); }
}
.gift { text-align: center; }
#regalo-texto {
  max-width: 30rem;
  margin: 0 auto;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
}
.paper-envelope {
  position: relative;
  width: 8.4rem;
  height: 5.5rem;
  margin: 0.4rem auto 1.1rem;
  perspective: 500px;
}
.paper-envelope__pocket,
.paper-envelope__flap,
.paper-envelope__card {
  position: absolute;
  inset: 0;
}
.paper-envelope__pocket {
  background: linear-gradient(#fffaf8, #efd6d8);
  border: 1px solid var(--stone);
  border-radius: 0.25rem;
  clip-path: polygon(0 38%, 50% 72%, 100% 38%, 100% 100%, 0 100%);
  z-index: 2;
}
.paper-envelope__card {
  top: 18%;
  left: 12%;
  right: 12%;
  height: 58%;
  background: #fff;
  border: 1px solid rgba(201, 137, 139, 0.7);
  z-index: 1;
}
.paper-envelope__flap {
  background: linear-gradient(#f9edeb, #efd6d8);
  border: 1px solid rgba(139, 79, 100, 0.35);
  clip-path: polygon(0 0, 100% 0, 50% 62%);
  transform-origin: top center;
  z-index: 3;
}
.paper-envelope__seal {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 1.15rem;
  height: 1.15rem;
  margin-left: -0.57rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #efd6d8, #8b4f64);
  z-index: 4;
}
@keyframes seal-open { to { transform: rotateX(188deg); } }
.gift__sign {
  max-width: 36rem;
  margin: 1.15rem auto 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3.2vw, 1.8rem);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  color: var(--plum);
}
@media print {
  .petals, .paper-envelope { display: none !important; }
}
