@font-face {
  font-family: "Great Vibes";
  src: url("../assets/fonts/GreatVibes-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../assets/fonts/Lora.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
/* Authorized candidate; the exact New Icon variant remains unconfirmed. */
@font-face {
  font-family: "New Icon Serif";
  src: url("../assets/fonts/NewIconSerif-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #F7F3E0;
  --burgundy: #91092A;
  --gold: #B88917;
  --desktop-matte: #D0CFC5;
  /* A local geometric unit, not a transform or a fixed root font size. */
  --u: clamp(.888888889px, calc(100vw / 360), 1px);
  --gutter: clamp(24px, 4vw, 80px);
  --section-space: clamp(64px, 6vw, 112px);
  --column-gap: clamp(40px, 6vw, 112px);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
  color: var(--burgundy);
  font: 400 1rem / 1.375 "Lora", Georgia, serif;
}
img { display: block; height: auto; }
picture { display: contents; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: "Great Vibes", cursive; font-weight: 400; }
strong { font-weight: 700; }
a { color: inherit; }
a:focus-visible, #portada-nombres:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
}
.cover #portada-nombres:focus-visible { outline-color: var(--cream); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 4px;
  background: var(--cream);
  transform: translateY(calc(-100% - 20px));
}
.skip-link:focus { transform: none; }
.invitation-flow { display: flow-root; }
.web-sheet {
  position: relative;
  width: calc(360 * var(--u));
  margin-inline: auto;
  overflow: clip;
  background: var(--cream);
}
.invitation { min-height: calc(2327 * var(--u)); }
.decoration, .paper {
  position: absolute;
  pointer-events: none;
  user-select: none;
}
.cover, .celebration, .details, .dress-code, .gifts, .farewell, .farewell-photo {
  position: relative;
}
.cover { min-height: calc(202.401 * var(--u)); }
.cover-photo { position: absolute; inset: 0; overflow: hidden; background: #000; }
.cover-photo > img {
  position: absolute;
  top: calc(-170.848 * var(--u));
  left: calc(-30.33 * var(--u));
  width: calc(399.98 * var(--u));
  opacity: .36;
}
.cover-names {
  position: relative;
  z-index: 1;
  min-height: calc(202.401 * var(--u));
  padding: calc(55.580 * var(--u)) calc(30 * var(--u)) calc(60.821 * var(--u));
  color: var(--cream);
  text-align: center;
}
.cover h1 {
  font-size: calc(1.666669rem + 26.6667 * (var(--u) - 1px));
  line-height: 1.125;
}
.cover h1 > span { display: block; }
.cover .ampersand { line-height: .975; }
.cover-corner {
  top: calc(-123.77 * var(--u));
  left: calc(-79.03 * var(--u));
  width: calc(169.33 * var(--u));
  transform: rotate(140.77deg);
}
.cover-roses {
  top: calc(51.42 * var(--u));
  left: calc(249.43 * var(--u));
  width: calc(154.51 * var(--u));
  transform: none;
}
.celebration { isolation: isolate; padding-top: calc(24.148 * var(--u)); }
/* The delivered paper already carries ~15% alpha (maximum 39/255).
   Do not apply that opacity a second time in the measured mobile layout. */
.paper { z-index: -1; opacity: 1; }
.paper-upper {
  top: calc(-8.645 * var(--u));
  left: calc(-188.956 * var(--u));
  width: calc(806.935 * var(--u));
}
.love-phrase {
  min-height: calc(29.296 * var(--u));
  text-align: center;
  font: 400 calc(1.581994rem + 25.3119 * (var(--u) - 1px)) / 1.1574 "Great Vibes", cursive;
}
.collage { position: relative; margin-top: calc(21 * var(--u)); }
.collage-photos { position: relative; height: calc(136.027 * var(--u)); }
.photo-frame { overflow: hidden; border-style: solid; border-color: var(--burgundy); }
.collage .photo-frame { position: absolute; }
.photo-frame > img { position: absolute; max-width: none; }
.photo-park {
  left: calc(83.13 * var(--u));
  top: 0;
  width: calc(107.59 * var(--u));
  height: calc(72.60 * var(--u));
  border-width: calc(2.474 * var(--u));
}
.photo-park > img {
  left: calc(-4.234 * var(--u));
  top: calc(-8.034 * var(--u));
  width: calc(119.20 * var(--u));
}
.photo-tree {
  left: calc(102.41 * var(--u));
  top: calc(76.435 * var(--u));
  width: calc(88.30 * var(--u));
  height: calc(59.59 * var(--u));
  border-width: calc(2.030 * var(--u));
}
.photo-tree > img {
  left: calc(-1.82 * var(--u));
  top: calc(-3.46 * var(--u));
  width: calc(91.78 * var(--u));
}
.photo-portrait {
  left: calc(197.11 * var(--u));
  top: 0;
  width: calc(91.80 * var(--u));
  height: calc(136.027 * var(--u));
  border-width: calc(3.128 * var(--u));
}
.photo-portrait > img {
  left: calc(-9.478 * var(--u));
  top: calc(-9.013 * var(--u));
  width: calc(100.26 * var(--u));
}
.collage-cup { top: calc(-8 * var(--u)); left: calc(-18 * var(--u)); width: calc(52 * var(--u)); }
.collage-letter { top: calc(31 * var(--u)); left: calc(18 * var(--u)); width: calc(48 * var(--u)); }
.collage-shoes { top: calc(66 * var(--u)); left: calc(-38 * var(--u)); width: calc(106 * var(--u)); }
.collage-cups { top: calc(-3 * var(--u)); left: calc(302 * var(--u)); width: calc(51 * var(--u)); }
.collage-champagne { top: calc(54 * var(--u)); left: calc(317 * var(--u)); width: calc(52 * var(--u)); }
.event { margin-top: calc(30.892 * var(--u)); text-align: center; }
.event h2 {
  font-size: calc(2.761331rem + 44.1813 * (var(--u) - 1px));
  line-height: 1.1951;
}
.date-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: calc(13 * var(--u));
  width: calc(13.713625rem + 219.418 * (var(--u) - 1px));
  max-width: calc(100% - 32 * var(--u));
  min-height: calc(34.010 * var(--u));
  margin: calc(18 * var(--u)) auto 0;
  padding-inline: calc(28 * var(--u));
  background: url("../assets/decorations/cinta-fecha.svg") center / 100% 100% no-repeat;
  color: var(--cream);
  font: 400 calc(1.71765rem + 27.4824 * (var(--u) - 1px)) / 1.1827 "New Icon Serif", Georgia, serif;
}
.date-dot {
  flex: 0 0 calc(4.77876 * var(--u));
  height: calc(4.77876 * var(--u));
  border-radius: 50%;
  background: var(--gold);
}
.date-number { transform: translateY(.16em); }
.event-flower {
  position: relative;
  width: calc(90.444 * var(--u));
  height: calc(86.827 * var(--u));
  margin: calc(1.495 * var(--u)) auto 0;
}
.event-roses {
  position: absolute;
  width: calc(88.21 * var(--u));
  top: calc(-11.64 * var(--u));
  left: calc(7.99 * var(--u));
  transform: rotate(43.06deg);
}
.venue, .schedule {
  padding-inline: calc(14 * var(--u));
  font-size: calc(1.0217rem + 16.3472 * (var(--u) - 1px));
  line-height: 1.3594;
}
.venue { margin-top: calc(19.268 * var(--u)); }
.schedule { margin-top: calc(7.731 * var(--u)); }
.venue-icon, .clock-icon, .map-icon {
  display: inline-block;
  flex: none;
  vertical-align: -.15em;
  margin-right: calc(4 * var(--u));
  background: center / contain no-repeat;
}
.venue-icon { width: .735em; height: 1.034em; background-image: url("../assets/decorations/ubicacion.png"); }
.clock-icon { width: .793em; height: .793em; background-image: url("../assets/decorations/reloj.png"); }
.map-icon { width: 1.29em; height: 1.2em; background-image: url("../assets/decorations/mapa.png"); }
.gold-dot { color: var(--gold); padding-inline: calc(2 * var(--u)); }
.event-actions { display: grid; justify-items: center; gap: calc(7 * var(--u)); margin-top: calc(15.73 * var(--u)); }
.invitation-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(219.065 * var(--u));
  max-width: 100%;
  min-height: calc(28.603 * var(--u));
  padding: calc(3 * var(--u)) calc(9 * var(--u));
  border: 1px solid var(--burgundy);
  border-radius: calc(10 * var(--u));
  background: var(--burgundy);
  color: var(--cream);
  font: 700 calc(.843719rem + 13.4995 * (var(--u) - 1px)) / 1.3334 "Lora", Georgia, serif;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 1px;
}
.invitation-link-outline { background: transparent; color: var(--burgundy); font-weight: 400; }
.details { isolation: isolate; }
.paper-lower {
  left: calc(-339.48 * var(--u));
  top: calc(305.664 * var(--u));
  width: calc(846.29 * var(--u));
  transform: scaleX(-1);
}
.dress-code { padding-top: calc(113 * var(--u)); text-align: center; }
.dress-side-flowers { top: 0; left: calc(-125.108 * var(--u)); width: calc(196.399 * var(--u)); z-index: -1; }
.dress-code h2 {
  margin-inline: calc(72 * var(--u));
  font-size: calc(1.824263rem + 29.1882 * (var(--u) - 1px));
  line-height: 1.18363;
}
.outfits { position: relative; height: calc(191.133 * var(--u)); margin-top: calc(14 * var(--u)); }
.outfits img { position: absolute; }
.outfits .dress { width: calc(200.023 * var(--u)); left: calc(39.91 * var(--u)); top: calc(-23.114 * var(--u)); }
.outfits .suit { width: calc(201.429 * var(--u)); left: calc(118.49 * var(--u)); top: calc(-25.96 * var(--u)); }
.outfits .dress-branch { top: calc(77.5 * var(--u)); left: calc(279.25 * var(--u)); width: calc(126.96 * var(--u)); }
.formal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(8 * var(--u));
  margin-top: calc(12.037 * var(--u));
  font-size: calc(1.22895rem + 19.6632 * (var(--u) - 1px));
  line-height: 1.19855;
}
.formal::before, .formal::after { content: ""; width: calc(61.616 * var(--u)); height: 1px; background: var(--gold); }
.dress-message {
  margin: calc(25.284 * var(--u)) calc(35 * var(--u)) 0;
  font: 400 calc(1.394581rem + 22.3133 * (var(--u) - 1px)) / 1.011 "Great Vibes", cursive;
}
.dress-flower { position: relative; width: calc(40.627 * var(--u)); height: calc(39.002 * var(--u)); margin: calc(14.549 * var(--u)) auto 0; }
.dress-roses { position: absolute; width: calc(39.62 * var(--u)); top: calc(-5.03 * var(--u)); left: calc(2.34 * var(--u)); transform: rotate(43.06deg); }
.gifts { margin-top: calc(14.549 * var(--u)); text-align: center; }
.gift-illustration { position: relative; width: calc(109.474 * var(--u)); height: calc(99.621 * var(--u)); margin-inline: auto; }
@keyframes gift-rotational-wave {
  0%, 100% { rotate: 0deg; }
  25%, 75% { rotate: 10deg; }
  50% { rotate: -10deg; }
}
@media (prefers-reduced-motion: no-preference) {
  .gift-wave-enabled .gift-letter {
    animation: gift-rotational-wave 2s ease-in-out infinite both paused;
    transform-origin: 50% 50%;
  }
  .gift-wave-visible .gift-letter { animation-play-state: running; }
}
.gift-letter { position: absolute; width: calc(146.62 * var(--u)); left: calc(-18.57 * var(--u)); top: calc(-35.51 * var(--u)); }
.gift-copy {
  position: relative;
  margin: calc(18 * var(--u)) calc(40 * var(--u)) 0;
  font-size: calc(1.0217rem + 16.3472 * (var(--u) - 1px));
  line-height: 1.14627;
}
.gift-copy p + p { margin-top: calc(8 * var(--u)); line-height: 1.1312; }
.gold-rule { width: calc(144 * var(--u)); height: calc(7.2 * var(--u)); background: url("../assets/decorations/separador-corazon.svg") center / contain no-repeat; }
.gift-copy .gold-rule { margin: calc(23 * var(--u)) auto calc(19.4 * var(--u)); }
.gift-copy .gold-rule + p { line-height: 1.12368; }
.gifts > .invitation-link { position: relative; margin-top: calc(28 * var(--u)); margin-left: calc(-4.279 * var(--u)); }
.gift-branch { top: calc(188.94 * var(--u)); left: calc(-60.1 * var(--u)); width: calc(126.96 * var(--u)); transform: rotate(51.75deg); }
.farewell { margin-top: calc(38.914 * var(--u)); padding-bottom: calc(73.465 * var(--u)); }
.photo-garden {
  position: relative;
  width: calc(177.125 * var(--u));
  height: calc(262.459 * var(--u));
  margin-inline: auto;
  border-width: calc(6.035 * var(--u));
}
.photo-garden > img { width: calc(384.87 * var(--u)); left: calc(-69.67 * var(--u)); top: calc(-3.02 * var(--u)); }
.farewell-roses { top: calc(152.48 * var(--u)); left: calc(290.709 * var(--u)); width: calc(196.399 * var(--u)); transform: rotate(13.8071deg); }
.farewell-copy { position: relative; z-index: 1; margin-top: calc(38.914 * var(--u)); text-align: center; }
.farewell-copy h2 {
  font-size: calc(2.680775rem + 42.8924 * (var(--u) - 1px));
  line-height: 1.1911;
}
.farewell-copy > p:not(.signature) {
  margin-inline: calc(35 * var(--u));
  font-size: calc(1.0217rem + 16.3472 * (var(--u) - 1px));
  line-height: 1.14627;
}
.farewell-copy .gold-rule { margin: calc(29.728 * var(--u)) auto calc(30 * var(--u)); }
.signature { font: 400 calc(2.332225rem + 37.3156 * (var(--u) - 1px)) / 1.1911 "Great Vibes", cursive; }

/* Account remains the original narrow composition, including on desktop. */
.account-page { position: relative; isolation: isolate; min-height: 100svh; overflow: clip; }
.account-sheet {
  position: relative;
  width: calc(360 * var(--u));
  min-height: calc(891 * var(--u));
  margin-inline: auto;
  padding: calc(191.255 * var(--u)) calc(28 * var(--u)) calc(375.226 * var(--u));
  overflow: clip;
  text-align: center;
}
.account-sheet h1 {
  font: 700 calc(1.298188rem + 20.771 * (var(--u) - 1px)) / 1.1333 "Lora", Georgia, serif;
}
.bank-lines {
  margin-top: calc(35.086 * var(--u));
  font-size: calc(.9351rem + 14.9616 * (var(--u) - 1px));
  line-height: 1.13668;
  overflow-wrap: anywhere;
}
.bank-lines p + p { margin-top: calc(19.151 * var(--u)); }
.account-thanks {
  margin-top: calc(35.086 * var(--u));
  font: 400 calc(1.726444rem + 27.6231 * (var(--u) - 1px)) / 1.19511 "Great Vibes", cursive;
}
.account-roses { top: calc(-106 * var(--u)); left: calc(-22 * var(--u)); width: calc(202 * var(--u)); transform: rotate(29deg); }
.account-branch { bottom: calc(164.89 * var(--u)); left: calc(271 * var(--u)); width: calc(192 * var(--u)); }
.account-paper { position: absolute; inset: 0; z-index: -1; container-type: size; overflow: hidden; pointer-events: none; }
.account-paper-crop {
  --b: max(calc(100cqw / 360), calc(100cqh / 891));
  position: absolute;
  width: calc(373.357 * var(--b));
  height: calc(891 * var(--b));
  left: calc(50% - 186.6785 * var(--b));
  top: calc(50% - 445.5 * var(--b));
  overflow: hidden;
}
.account-paper img {
  position: absolute;
  left: calc(-509.73 * var(--b));
  top: calc(-359 * var(--b));
  width: calc(1243.574 * var(--b));
  transform: scaleX(-1);
}

@media (min-width: 600px) {
  body { background: var(--desktop-matte); }
  .web-sheet, .account-page {
    margin-block: 32px;
    border-radius: 16px;
    box-shadow: 0 0 0 .5px rgba(64,79,109,.06), 0 8px 16px rgba(21,30,130,.12), 0 24px 24px rgba(21,30,130,.06);
  }
  .account-body { min-height: 100svh; display: grid; place-items: center; }
  .account-page { width: 360px; min-height: 891px; background: var(--cream); }
}

/* Approved responsive desktop composition; no global scaling of the sheet. */
@media (min-width: 768px) {
  body:not(.account-body) { background: var(--cream); font-size: 1.125rem; line-height: 1.6; }
  .invitation { width: 100%; min-height: 0; margin: 0; border-radius: 0; box-shadow: none; padding: var(--gutter) var(--gutter) var(--section-space); }
  .invitation h2 { font-size: clamp(2.5rem, 3.8vw, 3.5rem); line-height: 1.2; }
  .cover { display: grid; grid-template-columns: 1.04fr 1fr; min-height: clamp(440px, 40vw, 620px); }
  .cover-photo { position: relative; inset: auto; min-width: 0; }
  .cover-photo > img { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; opacity: 1; }
  .cover-names { display: grid; place-items: center; min-width: 0; padding: 48px 32px; background: var(--burgundy); }
  .cover h1 { font-size: clamp(2.75rem, 4.8vw, 4.75rem); line-height: 1.2; }
  .cover .ampersand { margin-block: 8px; font-size: .75em; line-height: inherit; }
  .cover-corner { top: 0; left: 0; width: clamp(120px, 14vw, 240px); transform: none; }
  .cover-roses { top: auto; left: auto; right: calc(49% - 48px); bottom: -96px; width: clamp(240px, 25vw, 360px); transform: none; }
  .celebration { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: var(--column-gap); margin-top: var(--section-space); padding: 0; }
  .paper { width: 100%; height: 100%; object-fit: cover; opacity: .15; }
  .paper-upper { inset: 0; object-position: 50% 45%; }
  .story, .event { min-width: 0; }
  .love-phrase { margin-bottom: 24px; font: 400 clamp(2.25rem, 3.1vw, 3rem) / 1.25 "Great Vibes", cursive; }
  .collage { margin: 0; padding: 24px clamp(40px, 4vw, 72px); }
  .collage-photos { display: grid; position: static; height: auto; grid-template-columns: 1.14fr 1fr; gap: 16px; align-items: start; }
  .collage .photo-frame { position: relative; inset: auto; width: 100%; height: auto; border-width: 4px; }
  .collage .photo-frame > img { position: static; width: 100%; height: auto; }
  .photo-park { grid-column: 1; grid-row: 1; }
  .collage .photo-tree { grid-column: 1; grid-row: 2; justify-self: end; width: 82%; }
  .collage .photo-portrait { grid-column: 2; grid-row: 1 / 3; height: 100%; min-height: 0; }
  .collage .photo-portrait > img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
  .collage-cup { top: 0; left: 0; width: 72px; }
  .collage-letter { top: 40%; left: 0; width: 88px; }
  .collage-shoes { top: auto; bottom: 0; left: 0; width: 96px; }
  .collage-cups { top: 0; left: auto; right: 0; width: 80px; }
  .collage-champagne { top: auto; left: auto; right: 0; bottom: 0; width: 88px; }
  .event { margin: 0; padding-block: 16px; }
  .invitation .event h2 { font-size: clamp(3.25rem, 4.5vw, 4.25rem); }
  .date-ribbon { gap: 24px; width: min(100%, 23.75rem); max-width: 100%; margin-top: 24px; padding: 10px 32px; background-image: none; background-color: var(--burgundy); clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%); font-size: 2.375rem; line-height: 1.2; }
  .date-dot { flex-basis: 6px; height: 6px; }
  .event-flower { width: 100px; height: auto; margin: 8px auto 16px; }
  .event-roses { position: static; width: 100%; transform: rotate(180deg); }
  .venue { padding: 0; margin: 0; font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: inherit; }
  .schedule { padding: 0; margin-top: 8px; font-size: inherit; line-height: inherit; }
  .venue-icon, .clock-icon, .map-icon { display: none; }
  .gold-dot { padding-inline: 3px; }
  .event-actions { gap: 12px; margin-top: 28px; }
  .invitation-link { width: min(100%, 280px); min-height: 46px; padding: 10px 20px; border-radius: 10px; font-size: .9375rem; line-height: 1.5; text-underline-offset: 3px; }
  .details { display: grid; grid-template-columns: 1fr 1fr; gap: var(--column-gap); margin-top: var(--section-space); padding-block: 40px; }
  .paper-lower { inset: 0; transform: scaleX(-1); object-position: 50% 70%; }
  .dress-code, .gifts { min-width: 0; }
  .dress-code { align-self: center; padding: 0; }
  .dress-side-flowers, .dress-branch { display: none; }
  .invitation .dress-code h2 { margin: 0; font-size: clamp(2.25rem, 3.3vw, 3.125rem); }
  .outfits { display: flex; justify-content: center; width: min(100%, 360px); height: auto; margin: 16px auto 0; }
  .outfits .dress, .outfits .suit { position: static; width: 61.1%; max-width: none; }
  .outfits img + img { margin-left: -22.2%; }
  .formal { gap: 20px; margin: 0; font-size: 1.375rem; line-height: inherit; }
  .formal::before, .formal::after { width: 64px; }
  .dress-message { margin: 20px 0 0; font-size: 2rem; line-height: 1.25; }
  .dress-flower { width: 96px; height: auto; margin: 12px auto 0; }
  .dress-roses { position: static; width: 100%; transform: none; }
  .gifts { margin: 0; padding-inline: 24px; }
  .gift-illustration { width: 168px; height: auto; margin: 0 auto 16px; }
  .gift-letter { position: static; width: 100%; }
  .gift-copy { z-index: 1; max-width: 55ch; margin: 0 auto; font-size: inherit; line-height: inherit; }
  .gift-copy p + p { margin-top: 20px; line-height: inherit; }
  .gold-rule { width: 144px; height: 1px; background: var(--gold); }
  .gift-copy .gold-rule, .farewell-copy .gold-rule { margin: 24px auto; }
  .gift-copy .gold-rule + p { line-height: inherit; }
  .gifts > .invitation-link { z-index: 1; margin: 24px 0 0; }
  .gift-branch { top: 40px; right: 0; left: auto; width: clamp(96px, 10vw, 160px); z-index: -1; transform: none; }
  .farewell { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: var(--column-gap); margin-top: var(--section-space); padding: 0; }
  .farewell-photo { min-width: 0; }
  .photo-garden { width: 100%; height: auto; margin: 0; border-width: 6px; }
  .photo-garden > img { position: static; width: 100%; height: auto; }
  .farewell-roses { top: auto; left: auto; right: -24px; bottom: -64px; width: clamp(160px, 18vw, 280px); transform: none; }
  .farewell-copy { min-width: 0; margin: 0; padding-block: 24px; }
  .invitation .farewell-copy h2 { margin-bottom: 20px; font-size: 4.25rem; }
  .farewell-copy > p:not(.signature) { max-width: 55ch; margin-inline: auto; font-size: inherit; line-height: inherit; }
  .signature { font-size: 3.375rem; line-height: 1.3; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  :root { --column-gap: 32px; }
  .cover-names { padding-inline: 24px; }
  .cover-roses { right: calc(49% - 32px); bottom: -72px; }
  .celebration { grid-template-columns: 1fr; gap: 40px; }
  .event { padding: 0; }
  .event-actions { display: flex; justify-content: center; flex-wrap: wrap; }
  .event-actions .invitation-link { width: auto; min-width: 220px; }
  .details { gap: 24px; }
  .gifts { padding-inline: 0; }
  .gift-copy { font-size: 1rem; }
  .gift-branch { top: 24px; right: 0; width: 88px; }
  .farewell { gap: 32px; }
  .farewell-copy > p:not(.signature) { font-size: 1rem; }
  .invitation .farewell-copy h2 { font-size: 3.625rem; }
  .signature { font-size: 2.875rem; }
}
@media (min-width: 1600px) {
  .collage-photos { gap: 24px; }
  .event-actions { display: flex; justify-content: center; flex-wrap: wrap; }
  .event-actions .invitation-link { width: auto; min-width: 220px; }
}

/* Progressive enhancement only. The single invitation above is the fallback. */
.intro-layer, .intro-hint { display: none; }
.intro-layer {
  position: fixed;
  inset: 0;
  overflow: clip;
  pointer-events: none;
  user-select: none;
  touch-action: pan-y pinch-zoom;
}
.intro-backdrop { z-index: 10; background: var(--desktop-matte); }
.envelope-back { z-index: 15; }
.envelope-front { z-index: 30; }
.envelope-flap { z-index: 35; }
.intro-pending .intro-backdrop, .intro-active .intro-layer { display: block; }
.intro-pending .intro-backdrop, .intro-active .intro-backdrop { pointer-events: auto; }
.intro-retired .intro-layer, .intro-retired .intro-hint { visibility: hidden; }
.intro-spacer { width: 100%; pointer-events: none; }
.envelope-body { position: absolute; top: 0; left: 0; }
.envelope-receiver, .envelope-flap-pivot, .envelope-flap-face {
  position: absolute;
  inset: 0;
}
.envelope-receiver, .envelope-flap-face {
  pointer-events: auto;
  touch-action: pan-y pinch-zoom;
}
.envelope-texture {
  position: absolute;
  left: -1.1183441829410777%;
  top: -65.8468484818092%;
  width: 102.23668836588218%;
  height: 167.16252688186004%;
  max-width: none;
  pointer-events: none;
}
.envelope-flap-pivot {
  transform-origin: 50% .5425752466404115%;
  transform-style: preserve-3d;
}
.envelope-flap-face { backface-visibility: hidden; }
.envelope-flap-face-back { transform: rotateY(180deg); }
.envelope-flap-face-back > img { transform: scaleX(-1); }
.envelope-seal {
  position: absolute;
  left: 41%;
  top: 41.72%;
  width: 18%;
  height: auto;
  max-width: none;
  backface-visibility: hidden;
  transform: translateZ(calc(var(--seal-depth, 0px) + .2px));
  pointer-events: none;
}
.envelope-seal-side {
  position: absolute;
  height: var(--seal-depth, 0px);
  transform-origin: 0 0;
  backface-visibility: hidden;
  pointer-events: none;
}
.envelope-seal-back {
  position: absolute;
  left: 41%;
  top: 41.72%;
  width: 18%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #b18443, #c49a56 48%, #aa7e3f);
  transform: translateZ(.2px) rotateY(180deg);
  backface-visibility: hidden;
  pointer-events: none;
}
.envelope-seal-shadow {
  position: absolute;
  left: 41%;
  top: 41.72%;
  width: 18%;
  aspect-ratio: 1;
  background: rgba(28, 4, 9, .5);
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  filter: blur(clamp(.5px, calc(var(--seal-depth, 0px) * .35), 2.5px));
  transform: translate3d(0, 1px, .05px);
  backface-visibility: hidden;
  pointer-events: none;
}
.envelope-shadow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
.envelope-floor {
  position: absolute;
  top: 102%;
  left: 8%;
  width: 84%;
  height: 7%;
  border-radius: 50%;
  background: rgba(54, 17, 24, .15);
  filter: blur(10px);
  pointer-events: none;
}
.intro-active .intro-hint {
  display: block;
  position: fixed;
  z-index: 40;
  left: 16px;
  right: 16px;
  color: var(--burgundy);
  font-size: .875rem;
  line-height: 1.25rem;
  letter-spacing: .05em;
  /* Balances the trailing letter-spacing so the phrase sits on the arrow's axis. */
  text-indent: .05em;
  text-align: center;
  pointer-events: none;
}
.intro-hint > svg { display: block; margin: 8px auto 0; }
.intro-hint circle { fill: var(--gold); }
@media (max-height: 480px) {
  .intro-hint > svg { height: 20px; margin-top: 4px; }
}
/* The viewBox reserves the 6-unit travel below the drawing; the phrase never moves. */
@keyframes intro-hint-arrow-nudge {
  0%, 12% { transform: translateY(0); animation-timing-function: cubic-bezier(.37, 0, .63, 1); }
  48% { transform: translateY(6px); animation-timing-function: cubic-bezier(.37, 0, .63, 1); }
  80%, 100% { transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .intro-hint-arrow { animation: intro-hint-arrow-nudge 1.8s infinite paused; }
  .intro-hint-idle .intro-hint-arrow { animation-play-state: running; }
}
.reveal-letter { font: inherit; }
.reveal-copy { user-select: none; }
@media (prefers-reduced-motion: reduce) {
  .intro-layer, .intro-hint { display: none; }
  .intro-hint-arrow { animation: none; }
}

/* Back and flap remain behind the sheet; the real front pocket stays above it. */
/* Negative root levels preserve the existing sheet's non-isolated reading paint. */
.intro-frame.intro-retired .intro-backdrop { z-index: -4; }
.intro-frame.intro-retired .envelope-back { z-index: -3; }
.intro-frame.intro-retired .intro-layer { visibility: visible; }
.intro-frame.intro-retired .intro-backdrop,
.intro-frame.intro-retired .envelope-receiver-back,
.intro-frame.intro-retired .envelope-flap-face { pointer-events: none; }

/* Direct music controls, outside the invitation's clipping and flow. */
.music-player {
  position: fixed;
  z-index: 50;
  right: max(8px, env(safe-area-inset-right));
  bottom: max(8px, env(safe-area-inset-bottom));
  color: var(--burgundy);
}
.music-player[data-enhanced] {
  top: max(8px, env(safe-area-inset-top));
  left: max(8px, env(safe-area-inset-left));
  right: auto;
  bottom: auto;
}
.music-player svg { width: 18px; height: 18px; }
.music-player svg[hidden] { display: none; }
.music-player__controls {
  display: flex;
}
.music-player__controls[hidden] { display: none; }
.music-player__controls button {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--burgundy);
  border-radius: 50%;
  background: var(--cream);
  color: inherit;
  cursor: pointer;
}
.music-player__controls button:hover { border-width: 2px; }
.music-player__controls button:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
}
.music-player__hint {
  position: absolute;
  top: 0;
  left: calc(100% + 8px);
  width: max-content;
  max-width: min(220px, calc(100vw - 80px - env(safe-area-inset-left) - env(safe-area-inset-right)));
  padding: 4px 8px;
  border: 1px solid var(--burgundy);
  border-radius: 6px;
  background: var(--cream);
  font: 400 .875rem / 1.2 "Lora", Georgia, serif;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}
.music-player__hint[hidden] { display: none; }
.music-player__audio { display: block; width: min(288px, calc(100vw - 16px)); }
.music-player__audio[hidden] { display: none; }

/* Native top-layer account details, independent of the envelope's clipping. */
html.bank-dialog-open { overflow: hidden; scrollbar-gutter: auto; }
html.bank-dialog-open.bank-dialog-gutter { scrollbar-gutter: stable; }
.bank-dialog {
  width: min(360px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 0 0 .5px rgba(64,79,109,.06), 0 8px 16px rgba(21,30,130,.12), 0 24px 24px rgba(21,30,130,.06);
  background: var(--cream);
  color: var(--burgundy);
  font: 400 1rem / 1.5 "Lora", Georgia, serif;
}
.bank-dialog:not([open]) { display: none; }
.bank-dialog::backdrop { background: rgba(54, 17, 24, .5); }
@media (prefers-reduced-motion: no-preference) {
  @keyframes bank-dialog-enter {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  .bank-dialog[open], .bank-dialog[open]::backdrop {
    animation: bank-dialog-enter 220ms ease-out;
  }
}
.bank-dialog .account-sheet {
  isolation: isolate;
  width: 100%;
  min-height: 0;
  padding: calc(150 * var(--u)) calc(28 * var(--u)) calc(192 * var(--u));
}
.bank-dialog h2 {
  overflow-wrap: anywhere;
  font: 700 calc(1.298188rem + 20.771 * (var(--u) - 1px)) / 1.1333 "Lora", Georgia, serif;
}
.bank-dialog .bank-lines { margin-top: calc(24 * var(--u)); }
.bank-dialog .bank-lines p + p { margin-top: calc(12 * var(--u)); }
.bank-dialog .account-thanks { margin-top: calc(24 * var(--u)); }
/* Keep the original branch in the lower paper margin, clear of growing content. */
.bank-dialog .account-branch { left: auto; right: calc(-103 * var(--u)); bottom: calc(-40 * var(--u)); }
.bank-dialog__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .5rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--burgundy);
  font: 400 .875rem / 1.5 "Lora", Georgia, serif;
  cursor: pointer;
}
.bank-dialog__button svg { flex: none; }
.bank-dialog__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  padding: 12px;
}
.bank-dialog__button:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 3px; }
.bank-dialog__button:disabled { cursor: wait; opacity: .65; }
.bank-dialog__button:focus-visible, .bank-dialog textarea:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
}
.bank-dialog__copy { margin-top: calc(8 * var(--u)); }
.bank-dialog__status:not(.visually-hidden) { margin-top: .75rem; font-size: .875rem; }
.bank-dialog__manual { margin-top: .75rem; }
.bank-dialog__manual label { display: block; margin-bottom: .5rem; font-size: .875rem; }
.bank-dialog textarea {
  display: block;
  width: 100%;
  min-height: 10rem;
  padding: .75rem;
  border: 1px solid var(--burgundy);
  border-radius: 4px;
  background: var(--cream);
  color: var(--burgundy);
  font: inherit;
  overflow-wrap: anywhere;
  resize: vertical;
}
.bank-dialog ::selection { background: var(--burgundy); color: var(--cream); }
