/* Rubik / Papel y vino. Standalone layout; legacy template CSS is not loaded. */
:root {
  --cream:#ffffcc;
  --paper:#fffef0;
  --wine:#4c0510;
  --deep:#321912;
  --blue:#b7d1e4;
  --blue-dark:#506879;
  --ink:#321912;
  --line:rgba(70,38,44,.25);
  --serif:'Bodoni Moda',Georgia,serif;
  --sans:'Manrope',Arial,sans-serif;
  --gutter:clamp(22px,5vw,88px)
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:90px
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:14px/1.8 var(--sans)
}
button,input,textarea {
  font:inherit
}
button,a {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer
}
a {
  color:inherit;
  text-underline-offset:5px
}
img {
  display:block;
  max-width:100%;
  height:auto
}
h1,h2,h3,h4,h5,h6,p {
  margin:0
}
h1,h2,h3,h6 {
  font-family:var(--serif);
  font-weight:400;
  line-height:1.15
}
h2 {
  font-size:clamp(40px,4.7vw,72px);
  letter-spacing:-.045em
}
h3 {
  font-size:clamp(28px,3vw,42px)
}
h6 {
  font-size:24px
}
p+p {
  margin-top:18px
}
a,button {
  touch-action:manipulation
}
button {
  color:inherit
}
button:focus-visible,a:focus-visible,[tabindex]:focus-visible {
  outline:2px solid var(--wine);
  outline-offset:6px
}
.type-italic {
  font-family:var(--serif);
  font-style:italic;
  font-weight:400;
  letter-spacing:0;
  text-transform:none
}
.eyebrow {
  font:600 10px/1.6 var(--sans);
  letter-spacing:.2em;
  text-transform:uppercase;
  display:block
}
.container {
  max-width:1280px;
  margin:auto
}
.section-heading {
  margin-bottom:60px
}
.section-heading h2 {
  margin:18px 0
}
.section-heading p {
  font-size:13px
}
.mw-btn,.btn-pre-page {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:28px;
  min-height:46px;
  padding:12px 24px;
  border:1px solid currentColor;
  border-radius:100px;
  font:600 10px/1.5 var(--sans);
  letter-spacing:.1em;
  text-transform:uppercase;
  text-decoration:none;
  background:transparent;
  transition:background .2s,color .2s
}
.mw-btn:hover,.btn-pre-page:hover {
  background:var(--wine);
  color:var(--cream)
}
.calendar-buttons {
  display:flex;
  gap:12px;
  flex-wrap:wrap
}
.skip-link {
  position:fixed;
  top:-80px;
  left:16px;
  z-index:2000;
  background:var(--paper);
  padding:12px
}
.skip-link:focus {
  top:12px
}
[hidden] {
  display:none!important
}
.envelope-closed {
  overflow:hidden
}
.page-wrapper[inert] {
  visibility:hidden
}
/* The opening is built as folded paper, with its own live type and photograph. */
.pre-page {
  position:fixed;
  inset:0;
  z-index:1000;
  background-color:#e7e3dd;
  background-image:none;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:100svh;
  overflow:auto;
  padding:70px 20px 24px;
  transition:opacity .5s .5s
}
.welcome-top {
  position:absolute;
  top:25px;
  left:var(--gutter);
  right:var(--gutter);
  display:flex;
  justify-content:space-between;
  font-size:9px;
  letter-spacing:.18em;
  color:#5f5350
}
.envelope-scene {
  position:relative;
  width:min(570px,82vw);
  height:min(570px,62svh);
  min-height:370px;
  isolation:isolate;
  perspective:1200px
}
.envelope-back {
  position:absolute;
  top:5%;
  left:0;
  width:100%;
  height:57%;
  background:#4c0510;
  box-shadow:0 15px 30px #30121a35
}
.invitation-card {
  position:absolute;
  z-index:2;
  left:12%;
  top:27%;
  width:76%;
  padding:11% 6% 5%;
  background:var(--paper);
  border-radius:50% 50% 0 0/27% 27% 0 0;
  text-align:center;
  box-shadow:0 8px 15px #30121a20;
  transition:transform .8s,opacity .5s
}
.invitation-card .eyebrow {
  font-family:var(--serif);
  font-size:clamp(18px,2.4vw,29px);
  letter-spacing:.03em;
  color:#786d67
}
.invitation-card .eyebrow .type-italic {
  font-size:1.5em
}
.invitation-card img {
  width:75%;
  aspect-ratio:1.3;
  object-fit:cover;
  filter:grayscale(1);
  border:5px solid var(--paper);
  outline:1px solid #b4aaa0;
  margin:16px auto
}
.invitation-card h1 {
  font-size:clamp(23px,3.2vw,37px);
  color:var(--wine);
  margin:14px 0 10px
}
.card-date {
  font-size:10px;
  letter-spacing:.16em
}
.card-place {
  font-family:var(--serif);
  font-style:italic;
  font-size:15px!important;
  margin-top:4px!important
}
.envelope-pocket {
  position:absolute;
  z-index:1;
  top:5%;
  left:0;
  width:100%;
  height:57%;
  background:linear-gradient(33deg,#672630 49.6%,transparent 50%) left/50% 100% no-repeat,linear-gradient(-33deg,#672630 49.6%,transparent 50%) right/50% 100% no-repeat;
  box-shadow:inset 0 -1px #ffffff30
}
.envelope-flap {
  position:absolute;
  top:5%;
  left:0;
  width:100%;
  height:48%;
  background:linear-gradient(155deg,#672630,#3e0710);
  clip-path:polygon(0 0,100% 0,50% 100%);
  z-index:3;
  filter:drop-shadow(0 6px 5px #21091050);
  transform-origin:top;
  transition:transform .8s,opacity .5s
}
.wax-seal {
  position:absolute;
  z-index:4;
  top:45%;
  left:calc(50% - 35px);
  width:70px;
  height:70px;
  border-radius:47% 52% 46% 50%;
  border:3px solid #672735;
  box-shadow:0 4px 6px #250b1760,inset 0 0 0 2px #963c4a,inset 0 0 0 5px #501d2a;
  background:radial-gradient(circle at 35% 30%,#883d4a,#511c29);
  color:#c68991;
  transition:opacity .3s,transform .5s
}
.wax-seal>span {
  font-family:var(--serif);
  font-size:28px;
  text-shadow:1px 1px #32131e
}
.seal-amp {
  font-size:17px
}
.welcome-bottom {
  text-align:center;
  position:relative;
  z-index:5;
  margin-top:12px
}
.welcome-bottom p {
  font:italic 16px/1.6 var(--serif);
  margin-bottom:16px
}
.welcome-bottom .btn-pre-page {
  background:var(--paper);
  color:var(--wine);
  min-width:220px
}
#rotuloapi {
  font-size:13px;
  margin-bottom:10px
}
.pre-page.is-opening {
  opacity:0;
  pointer-events:none
}
.is-opening .wax-seal {
  opacity:0;
  transform:scale(1.2)
}
.is-opening .envelope-flap {
  transform:rotateX(170deg);
  opacity:0
}
.is-opening .invitation-card {
  transform:translateY(-18%)
}
/* Keep the entire stationery composition and its opening action in view. */
.envelope-scene {
  width:500px;
  height:700px;
  min-height:700px;
  max-height:none;
  flex-shrink:0
}
.invitation-card {
  top:30%;
  padding:15% 6% 5%
}
.invitation-card .eyebrow {
  font-size:25px
}
.invitation-card img {
  width:75%;
  aspect-ratio:1.8;
  margin:14px auto
}
.invitation-card h1 {
  font-size:32px;
  margin:14px 0 10px
}
.invitation-card .card-date {
  font-size:10px
}
.invitation-card .card-place {
  font-size:15px!important
}
.envelope-back,.envelope-pocket {
  top:5%;
  height:42%
}
.envelope-flap {
  top:5%;
  height:29%
}
.wax-seal {
  top:30%;
  width:70px;
  height:70px;
  left:calc(50% - 35px)
}
.welcome-bottom {
  margin-top:15px
}
.pre-page {
  overflow-x:hidden
}
@media(max-width:760px) {
  .envelope-scene {
    width:500px;
    height:700px;
    min-height:700px;
    transform:scale(.68);
    transform-origin:top center;
    margin-bottom:-224px
  }
  .invitation-card {
    top:30%;
    padding:15% 6% 5%
  }
  .invitation-card .eyebrow {
    font-size:25px
  }
  .invitation-card img {
    width:75%;
    aspect-ratio:1.8;
    margin:14px auto
  }
  .invitation-card h1 {
    font-size:32px;
    margin:14px 0 10px
  }
  .invitation-card .card-date {
    font-size:10px
  }
  .invitation-card .card-place {
    font-size:15px!important
  }
  .welcome-bottom {
    margin-top:15px
  }
  .welcome-bottom p {
    font-size:14px
  }
}
@media(max-width:370px) {
  .envelope-scene {
    transform:scale(.62);
    margin-bottom:-266px
  }
  .welcome-bottom p {
    font-size:13px
  }
}
@media(max-height:740px) and (min-width:761px) {
  .envelope-scene {
    transform:scale(.7);
    transform-origin:top center;
    margin-bottom:-210px
  }
}
@media(max-height:700px) and (max-width:760px) {
  .envelope-scene {
    transform:scale(.55);
    margin-bottom:-315px
  }
  .welcome-bottom {
    margin-top:5px
  }
}
.invitation-card img {
  object-position:50% 18%
}
.menu-toggle svg {
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.4
}
@media(min-width:761px) and (max-height:900px) {
  .envelope-scene {
    transform:scale(.82);
    transform-origin:top center;
    margin-bottom:-126px
  }
}
@media(min-width:761px) and (max-height:780px) {
  .envelope-scene {
    transform:scale(.7);
    margin-bottom:-210px
  }
  .pre-page {
    padding-top:50px
  }
  .welcome-bottom {
    margin-top:5px
  }
}
@media(min-width:761px) and (max-height:650px) {
  .envelope-scene {
    transform:scale(.55);
    margin-bottom:-315px
  }
  .welcome-bottom p {
    font-size:13px;
    margin-bottom:8px
  }
}
/* Capital's control interaction, in Rubik's palette. */
.music-control {
  position:fixed;
  bottom:20px;
  left:20px;
  z-index:60;
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid #ffffcc60;
  border-radius:40px;
  background:var(--wine);
  color:var(--cream);
  padding:12px 17px;
  box-shadow:0 3px 18px #200b1a25;
  min-height:46px;
  font-size:10px
}
.music-bars {
  display:flex;
  align-items:center;
  gap:3px;
  height:18px
}
.music-bars i {
  width:2px;
  height:5px;
  background:currentColor
}
.music-bars i:nth-child(2) {
  height:15px
}
.music-bars i:nth-child(3) {
  height:10px
}
.music-bars i:nth-child(4) {
  height:18px
}
.music-control[aria-pressed=true] i {
  animation:equalizer .8s infinite alternate
}
.music-control[aria-pressed=true] i:nth-child(2) {
  animation-delay:-.4s
}
.music-control[aria-pressed=true] i:nth-child(3) {
  animation-delay:-.2s
}
@keyframes equalizer {
  to {
    height:3px
  }
}
.lightbox {
  position:fixed;
  inset:0;
  padding:0;
  border:0;
  background:transparent;
  color:white;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  overflow:hidden;
  touch-action:pinch-zoom;
  overscroll-behavior:none
}
.lightbox::backdrop {
  background:#1c1720ed
}
.lightbox-content {
  position:absolute;
  inset:24px;
  display:grid;
  grid-template-columns:50px 1fr 50px;
  align-items:center;
  gap:12px;
  pointer-events:none
}
.lightbox figure {
  margin:0;
  min-width:0;
  pointer-events:none;
  text-align:center
}
.lightbox figure img {
  max-width:100%;
  max-height:calc(100dvh - 110px);
  width:auto;
  margin:auto;
  object-fit:contain;
  pointer-events:auto;
  user-select:none
}
.lightbox figcaption {
  font-size:12px;
  margin-top:12px
}
.lightbox button {
  border:1px solid #fff6;
  border-radius:50%;
  width:44px;
  height:44px;
  background:#201c23aa;
  color:white;
  font:25px var(--sans);
  pointer-events:auto
}
.lightbox-close {
  position:absolute;
  top:0;
  right:0;
  z-index:2
}
.gallery-locked {
  overflow:hidden!important;
  overscroll-behavior:none!important
}
.lightbox button:focus-visible {
  outline-color:var(--cream)
}
/* An invitation desk: paper, photographs and actual disclosures. */
body {
  background:var(--paper)
}
h2 {
  font-size:clamp(36px,4vw,58px)
}
em {
  font-weight:400
}
.kicker {
  font-size:10px;
  letter-spacing:.16em;
  text-transform:uppercase
}
.site-header {
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px var(--gutter);
  background:var(--paper);
  border-bottom:1px solid var(--line)
}
.monogram {
  font:28px var(--serif);
  text-decoration:none
}
.monogram span {
  font-style:italic
}
.site-header nav {
  display:flex;
  gap:24px;
  font-size:11px
}
.site-header nav a {
  text-decoration:none
}
.menu-toggle {
  display:none
}
main>section {
  padding:100px var(--gutter)
}
.section-heading {
  text-align:center;
  margin-bottom:45px
}
.section-heading h2 {
  margin:10px 0 18px
}
.hero {
  background-color:var(--blue);
  background-image:repeating-linear-gradient(0deg,transparent,transparent 3px,#fff1 4px);
  padding-top:48px;
  padding-bottom:40px;
  overflow:hidden
}
.hero-title {
  text-align:center
}
.hero h1 {
  font-size:clamp(48px,6vw,84px);
  margin:12px 0;
  color:var(--deep)
}
.hero h1 em {
  font-size:.65em
}
.hero-date {
  font-size:12px
}
.invitation-desk {
  position:relative;
  max-width:1060px;
  height:540px;
  margin:20px auto 0
}
.invitation-desk>a {
  position:absolute;
  text-decoration:none;
  box-shadow:2px 12px 22px #29344130;
  transition:transform .3s,box-shadow .3s
}
.invitation-desk>a:hover {
  transform:translateY(-10px) rotate(0);
  box-shadow:4px 20px 30px #29344140
}
.desk-letter {
  left:5%;
  top:40px;
  width:35%;
  height:340px;
  background:var(--cream);
  padding:80px 30px 26px;
  transform:rotate(-8deg);
  z-index:2
}
.desk-letter strong {
  font:44px/1.05 var(--serif);
  display:block;
  margin-top:18px
}
.desk-label {
  font-size:10px
}
.postmark {
  position:absolute;
  top:18px;
  right:18px;
  border:1px dashed currentColor;
  border-radius:50%;
  width:85px;
  height:85px;
  display:grid;
  place-content:center;
  text-align:center;
  font:8px/1.8 var(--sans);
  transform:rotate(12deg);
  opacity:.65
}
.paper-action {
  display:block;
  font-size:10px;
  letter-spacing:.04em;
  margin-top:24px
}
.desk-postcard {
  right:4%;
  top:12px;
  width:36%;
  background:var(--paper);
  padding:12px 12px 18px;
  transform:rotate(7deg)
}
.desk-postcard img {
  width:100%;
  height:180px;
  object-fit:cover
}
.desk-postcard>span {
  display:block;
  font:italic 28px var(--serif);
  margin:12px 0 6px
}
.desk-postcard small {
  font-size:10px
}
.desk-memory {
  left:36%;
  top:175px;
  width:27%;
  background:var(--paper);
  padding:12px 12px 24px;
  transform:rotate(6deg);
  z-index:3
}
.desk-memory img {
  width:100%;
  height:200px;
  object-fit:cover
}
.desk-memory span {
  display:block;
  text-align:center;
  font:italic 17px var(--serif);
  margin-top:15px
}
.desk-rsvp {
  right:4%;
  bottom:8px;
  width:28%;
  height:155px;
  background:linear-gradient(150deg,transparent 49.7%,#3e0710 50%) left/50% 100% no-repeat,linear-gradient(-150deg,transparent 49.7%,#3e0710 50%) right/50% 100% no-repeat,#672630;
  color:var(--cream);
  padding:45px 20px 20px;
  text-align:center;
  transform:rotate(-6deg);
  z-index:4
}
.desk-rsvp strong {
  display:block;
  font:italic 32px var(--serif)
}
.desk-rsvp>span:last-child {
  font-size:9px
}
.mini-seal {
  position:absolute;
  top:-20px;
  left:calc(50% - 23px);
  background:var(--wine);
  border:3px double #b77982;
  border-radius:50%;
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  font:16px var(--serif)
}
.desk-hint {
  text-align:center;
  font-size:11px
}
.couple-section {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:90px;
  align-items:center;
  max-width:1300px;
  margin:auto
}
.letter-intro h2 {
  margin:15px 0 25px
}
.letter-intro>p:last-of-type {
  font-size:12px
}
.story-portrait {
  width:230px;
  padding:10px 10px 35px;
  background:white;
  transform:rotate(-6deg);
  box-shadow:0 8px 20px #3219121a;
  margin:35px 0 0 25px
}
.story-portrait img {
  width:100%;
  height:230px;
  object-fit:cover
}
.love-letter {
  background:var(--cream);
  box-shadow:0 12px 32px #32191220;
  transform:rotate(2deg)
}
summary {
  cursor:pointer;
  list-style:none
}
summary::-webkit-details-marker {
  display:none
}
.love-letter>summary {
  min-height:310px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:25px;
  padding:35px;
  background:linear-gradient(155deg,transparent 49.6%,#c0b28c45 50%,transparent 50.4%) center/100% 100%
}
.letter-to {
  font:italic 24px/1.5 var(--serif);
  text-align:center;
  max-width:260px
}
.letter-seal {
  width:72px;
  height:72px;
  display:grid;
  place-items:center;
  border:5px double #ae6977;
  background:var(--wine);
  color:var(--cream);
  border-radius:50%;
  box-shadow:0 4px 8px #32191240;
  font:24px var(--serif)
}
.disclosure-label {
  font-size:10px;
  letter-spacing:.05em
}
.story-copy {
  padding:35px;
  background:var(--paper);
  border-top:1px solid var(--line);
  font-size:13px
}
.story-copy h2 {
  font-size:34px;
  margin:12px 0 28px
}
.story-sign {
  display:block;
  margin-top:25px;
  font:italic 27px var(--serif)
}
details[open]>.story-copy,details[open]>.venue-back,details[open]>.rsvp-paper {
  animation:unfold .45s ease-out
}
@keyframes unfold {
  from {
    opacity:0;
    transform:translateY(-15px)
  }
  to {
    opacity:1;
    transform:translateY(0)
  }
}
summary:focus-visible {
  outline:2px solid var(--wine);
  outline-offset:6px
}
.save-date {
  background:var(--wine);
  color:var(--cream)
}
.date-scene {
  display:flex;
  gap:70px;
  align-items:center;
  justify-content:center
}
.date-composition {
  width:200px;
  padding:15px;
  background:var(--cream);
  color:var(--wine);
  text-align:center;
  box-shadow:6px 6px 0 #9e5260;
  transform:rotate(-4deg)
}
.date-composition span {
  display:block;
  font-size:11px
}
.date-composition strong {
  font:100px var(--serif)
}
#clock {
  display:flex;
  gap:30px;
  margin-bottom:20px
}
#clock strong {
  display:block;
  font:40px var(--serif)
}
#clock span {
  font-size:10px
}
.countdown-area>p {
  font-size:12px;
  margin-bottom:20px
}
.save-date a:focus-visible {
  outline-color:var(--cream)
}
.venue-pair {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  max-width:1000px;
  margin:auto;
  align-items:start
}
.venue-card {
  background:var(--cream);
  padding:15px;
  box-shadow:0 8px 25px #32191220;
  transform:rotate(-3deg)
}
.venue-card:nth-child(2) {
  transform:rotate(3deg);
  margin-top:45px;
  background:#d9e8f1
}
.venue-card summary>img {
  height:280px;
  width:100%;
  object-fit:cover
}
.postcard-caption {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:20px;
  gap:12px
}
.postcard-caption strong {
  font:30px var(--serif);
  font-weight:400
}
.postcard-caption>span {
  font-size:12px
}
.venue-card .paper-action {
  text-align:center;
  margin:20px 0 8px
}
.venue-back {
  position:relative;
  padding:30px 10px 15px;
  border-top:1px dashed var(--line);
  margin-top:20px
}
.venue-back h3 {
  font-size:28px;
  margin-bottom:15px
}
.venue-back h6 {
  font-size:23px;
  max-width:280px
}
.venue-back ul {
  list-style:none;
  padding:0;
  font-size:12px
}
.venue-back li {
  margin:14px 0
}
.venue-back .postmark {
  top:15px;
  right:0;
  width:60px;
  height:60px;
  font-size:6px
}
.see-location-btn {
  display:inline-block;
  font-size:11px;
  padding:12px 0;
  margin-right:20px
}
.dress-section {
  background:var(--cream);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:80px
}
.dress-section .section-heading {
  text-align:left;
  margin:0
}
.dress-duet {
  display:flex;
  gap:35px
}
.dress-look {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:20px
}
.dress-look svg {
  width:90px;
  height:130px;
  fill:none;
  stroke:var(--wine);
  stroke-width:1.1
}
.itinerary {
  background:var(--paper)
}
.itinerary-list {
  display:flex;
  max-width:1150px;
  margin:auto;
  box-shadow:0 12px 24px #32191215
}
.itinerary-list article {
  flex:1;
  min-width:0;
  padding:28px 20px;
  background:var(--cream);
  border-right:1px dashed var(--line);
  display:flex;
  flex-direction:column;
  gap:20px;
  justify-content:space-between
}
.itinerary-list article:nth-of-type(even) {
  background:#f3edbd
}
.timeline-route {
  display:none
}
.timeline-icon {
  width:45px;
  height:45px;
  fill:none;
  stroke:var(--wine);
  stroke-width:1.2
}
.itinerary-list h3 {
  font-size:23px;
  margin-bottom:10px
}
.itinerary-list p {
  font-size:11px
}
.time {
  font-size:11px;
  font-weight:600
}
.getting-there-section {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px 70px;
  background:var(--blue)
}
.hotel-heading {
  grid-column:1/-1;
  text-align:center
}
.hotel-heading p {
  margin-top:15px;
  font-size:12px
}
.hotel-feature {
  margin:0;
  padding:14px 14px 35px;
  background:var(--paper);
  box-shadow:0 10px 20px #32191220;
  transform:rotate(-3deg);
  align-self:center
}
.hotel-feature img {
  width:100%;
  height:330px;
  object-fit:cover
}
.hotel-feature figcaption {
  font:italic 25px var(--serif);
  margin-top:20px;
  text-align:center
}
.hotel-row {
  padding:18px 0;
  border-bottom:1px solid #32191240
}
.hotel-select {
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  text-align:left;
  background:none;
  border:0;
  padding:10px 0;
  font:26px var(--serif)
}
.hotel-select[aria-pressed=true] {
  color:var(--wine)
}
.hotel-information {
  font-size:11px
}
.hotel-information p {
  margin-top:10px
}
.gallery-section {
  background:var(--cream);
  text-align:center;
  overflow:hidden
}
.gallery-grid {
  position:relative;
  width:min(360px,75vw);
  height:440px;
  margin:35px auto 30px;
  touch-action:pan-y pinch-zoom
}
.gallery-photo {
  position:absolute;
  inset:0;
  padding:12px 12px 35px;
  background:var(--paper);
  border:0;
  box-shadow:0 8px 18px #32191226;
  transform:translate(calc(var(--depth)*9px),calc(var(--depth)*-3px)) rotate(calc(var(--depth)*5deg - 4deg));
  z-index:calc(5 - var(--depth));
  transition:transform .45s,opacity .3s;
  width:100%;
  height:100%
}
.gallery-photo img {
  width:100%;
  height:350px;
  object-fit:cover
}
.gallery-photo>span {
  display:block;
  font:italic 18px var(--serif);
  margin-top:14px
}
.album-controls {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:30px
}
.album-controls button {
  background:transparent;
  border:1px solid var(--wine);
  border-radius:50%;
  width:48px;
  height:48px;
  font-size:22px
}
.album-controls button:hover {
  background:var(--wine);
  color:var(--cream)
}
#album-position {
  font-size:12px
}
.rsvp-section {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:70px;
  align-items:start
}
.rsvp-copy h2 {
  margin:20px 0
}
.rsvp-copy p {
  font-size:12px
}
.rsvp-photo {
  width:230px;
  margin-top:40px;
  padding:10px 10px 30px;
  background:white;
  box-shadow:0 8px 20px #32191220;
  transform:rotate(-5deg)
}
.rsvp-photo img {
  height:180px;
  width:100%;
  object-fit:cover
}
.reply-envelope {
  background:var(--blue);
  box-shadow:0 12px 25px #32191225;
  min-width:0
}
.reply-envelope>summary {
  min-height:330px;
  padding:35px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:20px;
  background:linear-gradient(150deg,transparent 49.7%,#718ba33d 50%,transparent 50.3%) center/100% 100%
}
.reply-label {
  text-align:center;
  font:30px/1.3 var(--serif)
}
.reply-label em {
  font-size:22px
}
.rsvp-paper {
  padding:18px;
  background:var(--paper)
}
#rsvp-frame {
  display:block;
  width:100%;
  height:330px;
  border:0;
  overflow:hidden
}
.registry-section {
  background:var(--cream)
}
.registry-list {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:25px
}
.registry-item {
  width:175px;
  display:flex;
  flex-direction:column;
  gap:22px;
  align-items:center;
  padding:25px 15px;
  background:var(--paper);
  box-shadow:0 4px 12px #32191212;
  transform:rotate(-2deg)
}
.registry-item:nth-child(even) {
  transform:rotate(2deg)
}
.registry-item img {
  width:130px;
  height:65px;
  object-fit:contain
}
.copy-code {
  background:none;
  border:0;
  padding:10px;
  display:flex;
  align-items:center;
  gap:12px;
  font-size:12px
}
.copy-code svg {
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.4
}
.app-section {
  display:flex;
  gap:50px;
  align-items:center;
  max-width:1100px;
  margin:auto
}
.app-section h3 {
  font-size:30px
}
.app-section p {
  font-size:12px
}
.app-links {
  display:flex;
  flex-direction:column;
  gap:15px;
  flex-shrink:0
}
.site-footer {
  background:var(--wine);
  color:var(--cream);
  padding:65px var(--gutter) 90px;
  text-align:center
}
.footer-celebrate {
  font:48px/1.1 var(--serif)
}
.footer-date {
  margin:25px 0;
  font-size:12px
}
.site-footer>p:not(.footer-celebrate) {
  font-size:11px
}
.hashtag {
  font:28px var(--serif)
}
.footer-bottom {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:25px;
  margin-top:55px;
  font-size:10px
}
.footer-bottom img {
  width:110px
}
.visually-hidden {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%)
}
@media(max-width:760px) {
  main>section {
    padding:65px 24px
  }
  .site-header {
    padding:12px 24px
  }
  .menu-toggle {
    display:flex;
    align-items:center;
    gap:10px;
    border:0;
    background:none;
    font-size:12px;
    min-height:44px
  }
  .site-header nav {
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:var(--paper);
    padding:20px 24px;
    flex-direction:column;
    gap:0;
    box-shadow:0 10px 12px #32191215
  }
  .site-header nav.is-open {
    display:flex
  }
  .site-header nav a {
    padding:12px 0
  }
  .hero {
    padding:35px 18px!important
  }
  .hero h1 {
    font-size:47px
  }
  .hero-date {
    font-size:10px
  }
  .invitation-desk {
    height:640px;
    margin-top:25px
  }
  .desk-letter {
    left:4%;
    top:25px;
    width:63%;
    height:280px;
    padding:65px 20px 20px
  }
  .desk-letter strong {
    font-size:36px
  }
  .desk-label {
    font-size:9px
  }
  .postmark {
    width:65px;
    height:65px;
    font-size:6px;
    top:12px;
    right:12px
  }
  .desk-postcard {
    right:0;
    top:270px;
    width:58%;
    z-index:3;
    transform:rotate(7deg)
  }
  .desk-postcard img {
    height:140px
  }
  .desk-postcard>span {
    font-size:23px
  }
  .desk-postcard small {
    font-size:9px
  }
  .desk-memory {
    left:0;
    top:355px;
    width:51%;
    z-index:4;
    transform:rotate(-8deg)
  }
  .desk-memory img {
    height:145px
  }
  .desk-memory span {
    font-size:14px
  }
  .desk-rsvp {
    width:48%;
    height:145px;
    right:0;
    bottom:4px;
    padding:40px 10px 15px
  }
  .desk-rsvp strong {
    font-size:29px
  }
  .desk-rsvp>span:last-child {
    font-size:8px
  }
  .desk-hint {
    max-width:270px;
    margin:auto;
    font-size:10px
  }
  .couple-section {
    grid-template-columns:1fr;
    gap:45px
  }
  .letter-intro {
    text-align:center
  }
  .story-portrait {
    width:180px;
    margin:30px auto 0
  }
  .story-portrait img {
    height:190px
  }
  .love-letter {
    transform:rotate(1deg)
  }
  .love-letter>summary {
    min-height:285px;
    padding:25px
  }
  .story-copy {
    padding:25px;
    font-size:12px
  }
  .date-scene {
    flex-direction:column;
    gap:40px
  }
  .date-composition {
    width:170px
  }
  #clock {
    gap:25px
  }
  #clock strong {
    font-size:32px
  }
  .countdown-area {
    text-align:center
  }
  .calendar-buttons {
    justify-content:center
  }
  .calendar-buttons .mw-btn {
    padding:12px 17px;
    font-size:9px
  }
  .venue-pair {
    grid-template-columns:1fr;
    gap:35px
  }
  .venue-card {
    transform:rotate(-2deg)
  }
  .venue-card:nth-child(2) {
    margin-top:0;
    transform:rotate(2deg)
  }
  .venue-card summary>img {
    height:240px
  }
  .postcard-caption strong {
    font-size:28px
  }
  .dress-section {
    display:block
  }
  .dress-section .section-heading {
    text-align:center;
    margin-bottom:35px
  }
  .dress-duet {
    justify-content:center;
    gap:20px
  }
  .dress-look .mw-btn {
    font-size:9px;
    padding:12px 20px
  }
  .itinerary-list {
    display:block
  }
  .itinerary-list article {
    display:grid;
    grid-template-columns:44px 1fr;
    gap:14px 18px;
    padding:24px;
    border-right:0;
    border-bottom:1px dashed var(--line)
  }
  .itinerary-list article>div {
    grid-column:2;
    grid-row:1/3
  }
  .itinerary-list h3 {
    font-size:27px
  }
  .itinerary-list .time {
    grid-column:1/-1;
    text-align:right
  }
  .getting-there-section {
    grid-template-columns:1fr;
    gap:35px
  }
  .hotel-heading {
    grid-column:auto
  }
  .hotel-feature img {
    height:250px
  }
  .hotel-select {
    font-size:23px
  }
  .gallery-grid {
    height:375px;
    width:min(290px,75vw)
  }
  .gallery-photo img {
    height:290px
  }
  .gallery-photo {
    padding:10px 10px 25px
  }
  .rsvp-section {
    grid-template-columns:1fr;
    gap:40px
  }
  .rsvp-copy {
    text-align:center
  }
  .rsvp-photo {
    display:none
  }
  .reply-envelope>summary {
    min-height:300px;
    padding:25px
  }
  .rsvp-paper {
    padding:8px
  }
  .registry-list {
    gap:15px
  }
  .registry-item {
    width:calc(50% - 8px);
    padding:18px 10px
  }
  .registry-item img {
    width:110px
  }
  .app-section {
    flex-direction:column;
    gap:25px
  }
  .app-links {
    flex-direction:row;
    flex-wrap:wrap
  }
  .footer-bottom {
    flex-direction:column
  }
  .lightbox-content {
    inset:14px;
    grid-template-columns:36px 1fr 36px;
    gap:5px
  }
  .lightbox button {
    width:36px;
    height:44px
  }
  .lightbox-close {
    right:0
  }
  .music-control {
    left:12px;
    bottom:12px
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,*::before,*::after {
    animation:none!important;
    transition:none!important
  }
}
#couple-names:focus {
  outline:none
}
.desk-memory {
  left:33%;
  width:25%
}
.desk-postcard {
  right:0
}
.gallery-photo {
  transform:translate(calc(var(--depth)*3px),calc(var(--depth)*-3px)) rotate(calc(var(--depth)*2deg - 3deg))
}
@media(max-width:760px) {
  .invitation-desk {
    height:800px
  }
  .desk-memory {
    left:1%;
    top:510px;
    width:46%
  }
  .desk-postcard {
    right:0;
    top:285px;
    width:56%
  }
  .desk-rsvp {
    width:48%;
    bottom:5px
  }
  .desk-memory img {
    height:155px
  }
  .gallery-grid {
    width:min(280px,72vw)
  }
}
.venue-card[open]>summary>img {
  display:none
}
.venue-card[open] .venue-back {
  border-top:0;
  margin-top:0;
  padding-top:20px
}
.venue-back h3 {
  display:none
}
.love-letter[open]>summary {
  min-height:120px;
  gap:12px;
  padding:22px
}
.love-letter[open] .letter-to {
  display:none
}
.love-letter[open] .letter-seal,.reply-envelope[open] .letter-seal {
  width:48px;
  height:48px;
  font-size:16px
}
.reply-envelope[open]>summary {
  min-height:150px;
  gap:12px;
  padding:20px
}
.reply-envelope[open] .reply-label {
  font-size:24px
}
.reply-envelope[open] .reply-label em {
  font-size:17px
}
/* A keepsake box: burgundy cloth, blue ribbon and ivory correspondence. */
.hero {
  position:relative;
  isolation:isolate;
  background:#321912;
  color:var(--cream);
  padding-top:55px!important
}
.hero::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,#321912ef,#321912b0 50%,#321912e8),url('../images/slider/slide-1.webp') center 40%/cover;
  opacity:.95
}
.hero-title {
  position:relative;
  z-index:2
}
.hero h1 {
  color:var(--cream);
  font-size:clamp(52px,6.7vw,92px);
  letter-spacing:-.04em
}
.hero-title .kicker {
  color:var(--blue)
}
.hero-date {
  letter-spacing:.06em
}
.invitation-desk {
  height:570px;
  margin-top:25px
}
.desk-ribbon {
  position:absolute;
  left:8%;
  right:3%;
  top:250px;
  height:66px;
  background:linear-gradient(0deg,#6b819b,var(--blue) 48%,#b7cce2 51%,#7d94b0);
  box-shadow:0 5px 16px #0005;
  transform:rotate(-12deg);
  border-top:1px solid #d6e0eb70;
  border-bottom:1px solid #d6e0eb70
}
.invitation-desk>a {
  color:var(--ink)
}
.desk-letter {
  background:linear-gradient(110deg,#ffffdc,var(--cream) 75%,#e8dfae);
  left:4%;
  top:70px;
  width:34%;
  height:350px;
  padding-top:95px;
  transform:rotate(-9deg);
  box-shadow:10px 20px 30px #0004
}
.desk-letter::before {
  content:"";
  position:absolute;
  inset:12px;
  border:1px solid #ae9c733b;
  pointer-events:none
}
.desk-letter strong {
  font-size:46px
}
.desk-memory {
  left:36%;
  top:165px;
  width:26%;
  transform:rotate(4deg);
  box-shadow:10px 20px 30px #0005
}
.desk-memory::before {
  content:"";
  position:absolute;
  top:-18px;
  left:42%;
  width:35px;
  height:62px;
  border:2px solid #a49b86;
  border-radius:18px 18px 10px 10px;
  transform:rotate(7deg);
  box-shadow:1px 1px #fff9;
  pointer-events:none
}
.desk-postcard {
  top:25px;
  right:0;
  width:34%;
  transform:rotate(9deg);
  box-shadow:10px 20px 30px #0004
}
.desk-postcard img {
  height:190px;
  filter:saturate(.65)
}
.desk-postcard>span {
  font-size:27px
}
.invitation-desk .desk-rsvp {
  color:var(--cream);
  right:1%;
  bottom:15px;
  transform:rotate(-8deg);
  width:29%;
  height:160px
}
.discovery-note {
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
  padding-bottom:15px
}
.discovery-count {
  font-size:9px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--blue)
}
.desk-hint {
  font:italic 20px var(--serif)
}
.is-discovered::after {
  content:"Abierto";
  position:absolute;
  right:12px;
  bottom:12px;
  color:var(--wine);
  border:1px solid currentColor;
  padding:2px 8px;
  font:8px var(--sans);
  letter-spacing:.08em;
  text-transform:uppercase;
  transform:rotate(-12deg);
  background:var(--cream)
}
.desk-rsvp.is-discovered::after {
  bottom:-10px;
  right:-5px
}
.love-letter {
  position:relative
}
.love-letter::after {
  content:"";
  position:absolute;
  inset:9px;
  pointer-events:none;
  border:1px solid #b29d7029
}
.love-letter[open] {
  transform:rotate(0)
}
.story-copy {
  background-image:linear-gradient(90deg,#c9bda326,transparent 8%,transparent 96%,#c9bda326);
  padding:45px
}
.story-copy p {
  line-height:2
}
.story-copy .kicker {
  line-height:1.5
}
.venue-pair {
  perspective:1400px
}
.venue-card[open] {
  animation:postal-turn .55s ease-out
}
.venue-card[open] .venue-back {
  min-height:290px
}
.venue-card[open] summary {
  border-bottom:1px dashed var(--line);
  padding-bottom:10px
}
.venue-back .postmark {
  opacity:.3
}
.venue-back h6 {
  padding-top:25px
}
.venue-card summary>img {
  filter:saturate(.75)
}
@keyframes postal-turn {
  from {
    transform:rotateY(-14deg) rotate(-3deg);
    opacity:.6
  }
  to {
    transform:rotateY(0) rotate(0);
    opacity:1
  }
}
.itinerary {
  background:#e3edf3
}
.night-experience {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  max-width:1050px;
  margin:auto;
  background:var(--paper);
  box-shadow:0 18px 45px #35475925;
  transform:rotate(-1deg)
}
.night-photo {
  position:relative;
  padding:18px 18px 60px;
  background:var(--cream);
  min-width:0
}
.night-photo img {
  width:100%;
  height:430px;
  object-fit:cover;
  filter:saturate(.65)
}
.night-photo-note {
  position:absolute;
  bottom:24px;
  left:15px;
  right:15px;
  text-align:center;
  font:italic 20px var(--serif)
}
.night-program {
  padding:35px;
  min-width:0;
  transform:rotate(1deg)
}
.moment-tabs {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:flex-start;
  border-bottom:1px dashed var(--line);
  padding-bottom:22px
}
.moment-tabs button {
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:center;
  background:transparent;
  border:0;
  padding:10px 8px;
  font-size:9px;
  min-height:58px;
  flex:1
}
.moment-tabs button>span {
  font-size:13px
}
.moment-tabs button[aria-selected=true] {
  background:var(--wine);
  color:var(--cream);
  box-shadow:3px 3px 0 #cbb78d;
  transform:rotate(-4deg)
}
.night-program .itinerary-list {
  display:block;
  box-shadow:none;
  min-height:250px;
  margin:25px 0 0
}
.night-program .itinerary-list article {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  gap:15px;
  background:none;
  border:0;
  padding:15px 0;
  animation:unfold .35s ease-out
}
.night-program .itinerary-list h3 {
  font-size:40px
}
.night-program .itinerary-list p {
  font-size:12px;
  min-height:44px
}
.night-program .time {
  color:var(--wine)
}
.moment-controls {
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-top:1px dashed var(--line);
  padding-top:20px;
  gap:15px;
  font-size:10px
}
.moment-controls button {
  border:0;
  background:none;
  padding:12px 0;
  font-size:11px;
  display:flex;
  gap:15px;
  align-items:center
}
.moment-controls button:hover {
  text-decoration:underline
}
.album-contact-sheet {
  display:flex;
  justify-content:center;
  gap:12px;
  margin:35px 0 25px
}
.album-contact-sheet button {
  padding:4px 4px 12px;
  border:1px solid transparent;
  background:var(--paper);
  box-shadow:0 3px 8px #32191220;
  transform:rotate(-4deg);
  transition:transform .2s
}
.album-contact-sheet button:nth-child(even) {
  transform:rotate(4deg)
}
.album-contact-sheet button[aria-pressed=true] {
  border-color:var(--wine);
  transform:translateY(-9px) rotate(0)
}
.album-contact-sheet img {
  width:52px;
  height:58px;
  object-fit:cover
}
.gallery-section .section-heading h2 {
  font-size:clamp(40px,4vw,60px)
}
.reply-envelope {
  position:relative;
  border-bottom:6px solid #788fa7
}
.reply-envelope:not([open])::after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(32deg,#7f97ad40 49.7%,transparent 50%) left/50% 100% no-repeat,linear-gradient(-32deg,#7f97ad40 49.7%,transparent 50%) right/50% 100% no-repeat;
  pointer-events:none
}
.reply-envelope .letter-seal {
  position:relative;
  z-index:1
}
.reply-envelope[open]>.rsvp-paper {
  animation:letter-rise .5s ease-out
}
@keyframes letter-rise {
  from {
    opacity:0;
    transform:translateY(25px)
  }
  to {
    opacity:1;
    transform:translateY(0)
  }
}
@media(max-width:760px) {
  .hero {
    padding:40px 22px 30px!important
  }
  .hero h1 {
    font-size:49px
  }
  .hero-date {
    font-size:9px
  }
  .invitation-desk {
    height:705px;
    margin-top:22px
  }
  .desk-ribbon {
    top:300px;
    left:-40%;
    right:-40%;
    height:48px;
    transform:rotate(-35deg)
  }
  .desk-letter {
    left:4%;
    top:30px;
    width:70%;
    height:265px;
    padding:70px 22px 20px
  }
  .desk-letter strong {
    font-size:36px
  }
  .desk-letter .desk-label {
    font-size:9px
  }
  .desk-postcard {
    top:270px;
    right:0;
    width:58%;
    padding:9px 9px 18px;
    transform:rotate(7deg)
  }
  .desk-postcard img {
    height:135px
  }
  .desk-postcard>span {
    font-size:22px
  }
  .desk-postcard small {
    font-size:8px
  }
  .desk-memory {
    left:1%;
    top:430px;
    width:46%;
    padding:8px 8px 23px;
    transform:rotate(-7deg)
  }
  .desk-memory img {
    height:140px
  }
  .desk-memory::before {
    height:45px;
    width:25px;
    top:-12px
  }
  .desk-memory span {
    font-size:13px
  }
  .invitation-desk .desk-rsvp {
    right:0;
    bottom:2px;
    width:49%;
    height:137px;
    padding:35px 8px 15px
  }
  .desk-rsvp strong {
    font-size:28px
  }
  .desk-rsvp>span:last-child {
    font-size:8px
  }
  .desk-hint {
    font-size:17px;
    max-width:300px
  }
  .discovery-count {
    font-size:8px
  }
  .story-copy {
    padding:27px
  }
  .night-experience {
    grid-template-columns:1fr;
    transform:rotate(0)
  }
  .night-photo {
    padding:12px 12px 45px
  }
  .night-photo img {
    height:240px
  }
  .night-photo-note {
    font-size:17px;
    bottom:15px
  }
  .night-program {
    padding:23px 18px;
    transform:none
  }
  .moment-tabs {
    gap:2px;
    padding-bottom:18px
  }
  .moment-tabs button {
    padding:9px 3px;
    font-size:7px;
    min-width:0
  }
  .moment-tabs button>span {
    font-size:11px
  }
  .night-program .itinerary-list {
    min-height:245px;
    margin-top:20px
  }
  .night-program .itinerary-list article {
    display:flex;
    text-align:left
  }
  .night-program .itinerary-list article>div {
    display:block
  }
  .night-program .itinerary-list .time {
    text-align:left
  }
  .night-program .itinerary-list h3 {
    font-size:36px
  }
  .album-contact-sheet {
    gap:10px
  }
  .album-contact-sheet img {
    width:47px;
    height:52px
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation:none!important;
    transition:none!important
  }
}
.gallery-photo.is-front {
  cursor:grab
}
.gallery-photo.is-dragging {
  cursor:grabbing;
  transition:none
}
.gallery-photo img {
  user-select:none;
  -webkit-user-drag:none
}
.desk-memory::before {
  left:12%
}
@media(max-width:760px) {
  .moment-tabs button {
    font-size:8px
  }
}
/* Opening: original textured envelope, MW wax, full-bleed arched photograph. */
.pre-page {
  padding:24px;
  gap:20px;
  min-height:0;
  height:100svh;
  justify-content:center;
  background-color:#e5e0d8;
  background-image:none
}
.welcome-top {
  position:static;
  display:block;
  text-align:center;
  flex-shrink:0;
  color:var(--wine)
}
.welcome-top .eyebrow {
  font:19px/1.3 var(--serif);
  letter-spacing:.03em
}
.welcome-top .eyebrow .type-italic {
  font-size:1.3em
}
.welcome-top h1 {
  font-size:clamp(32px,4vw,48px);
  margin-top:9px;
  letter-spacing:-.035em
}
.envelope-scene {
  width:min(500px,82vw,calc((100svh - 300px)/1.06));
  height:auto;
  min-height:0;
  max-height:none;
  aspect-ratio:1/1.06;
  transform:none;
  margin:0;
  flex-shrink:0;
  filter:drop-shadow(0 10px 12px #32191222)
}
.envelope-back {
  top:0;
  height:55%;
  background:var(--wine) url('../images/mw-env-middle-layer.webp') center/100% 100%;
  background-blend-mode:multiply;
  box-shadow:0 6px 12px #32191220
}
.envelope-pocket {
  top:0;
  height:55%;
  background:linear-gradient(33deg,#3a0712 49.6%,transparent 50%) left/50% 100% no-repeat,linear-gradient(-33deg,#3a0712 49.6%,transparent 50%) right/50% 100% no-repeat;
  box-shadow:none
}
.envelope-pocket::after {
  content:"";
  position:absolute;
  inset:0;
  background:url('../images/mw-env-middle-layer.webp') center/100% 100%;
  mix-blend-mode:multiply;
  opacity:.65
}
.envelope-flap {
  top:0;
  height:36%;
  background:var(--wine) url('../images/mw-env-top-layer.webp') top center/100% 100%;
  background-blend-mode:multiply;
  clip-path:polygon(0 0,100% 0,50% 100%);
  filter:drop-shadow(0 4px 4px #21091050)
}
.invitation-card {
  left:14%;
  top:32%;
  width:72%;
  height:68%;
  padding:0;
  border-radius:50% 50% 0 0/35% 35% 0 0;
  overflow:hidden;
  background:var(--paper);
  box-shadow:0 8px 16px #32191230
}
.invitation-card img {
  width:100%;
  height:100%;
  max-width:none;
  aspect-ratio:auto;
  object-fit:cover;
  object-position:48% 35%;
  margin:0;
  border:0;
  outline:0;
  filter:grayscale(1)
}
.wax-seal {
  top:29%;
  left:calc(50% - 36px);
  width:72px;
  height:72px;
  padding:0;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  filter:drop-shadow(0 3px 3px #21091070)
}
.wax-seal img,.mini-seal img,.letter-seal img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  filter:grayscale(1) sepia(1) saturate(5) hue-rotate(305deg) brightness(.43)
}
.welcome-bottom {
  margin:0;
  flex-shrink:0;
  text-align:center
}
.welcome-bottom .card-date {
  font:600 11px/1.5 var(--sans);
  letter-spacing:.14em;
  margin:0 0 5px;
  color:var(--wine)
}
.welcome-bottom .card-place {
  font:italic 17px/1.5 var(--serif)!important;
  margin:0!important
}
.welcome-bottom #rotuloapi {
  font-size:12px;
  margin:8px 0 0
}
.welcome-bottom #rotuloapi:empty {
  display:none
}
.welcome-bottom .welcome-message {
  font:italic 15px/1.6 var(--serif);
  margin:13px 0 14px
}
.welcome-bottom .btn-pre-page {
  min-width:250px;
  border:1px solid var(--wine);
  background:var(--paper);
  color:var(--wine)
}
.welcome-bottom .btn-pre-page:hover {
  background:var(--wine);
  color:var(--cream)
}
.mini-seal,.letter-seal {
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
  border-radius:0;
  filter:drop-shadow(0 3px 2px #32191245)
}
@media(max-width:760px) {
  .pre-page {
    padding:22px 18px;
    gap:18px
  }
  .envelope-scene {
    width:min(500px,88vw,calc((100svh - 300px)/1.06));
    height:auto;
    min-height:0;
    transform:none;
    margin:0
  }
  .welcome-top .eyebrow {
    font-size:17px
  }
  .welcome-top h1 {
    font-size:36px
  }
  .wax-seal {
    width:60px;
    height:60px;
    left:calc(50% - 30px)
  }
  .welcome-bottom .card-date {
    font-size:10px
  }
  .welcome-bottom .welcome-message {
    font-size:13px;
    max-width:310px
  }
  .welcome-bottom .btn-pre-page {
    min-width:240px
  }
  .welcome-bottom .card-place {
    font-size:16px!important
  }
}
@media(max-height:650px) {
  .pre-page {
    padding:14px;
    gap:12px
  }
  .welcome-top h1 {
    font-size:28px;
    margin-top:3px
  }
  .welcome-top .eyebrow {
    font-size:14px
  }
  .envelope-scene {
    width:min(420px,78vw,calc((100svh - 255px)/1.06));
    min-height:0;
    transform:none;
    margin:0
  }
  .welcome-bottom .welcome-message {
    font-size:12px;
    margin:8px 0
  }
  .welcome-bottom .card-place {
    font-size:14px!important
  }
  .wax-seal {
    width:50px;
    height:50px;
    left:calc(50% - 25px)
  }
}
.envelope-pocket {
  background:var(--wine) url('../images/mw-env-middle-layer.webp') center/100% 100%;
  background-blend-mode:multiply
}
.envelope-pocket::after {
  background:linear-gradient(33deg,#0002 49.6%,transparent 50%) left/50% 100% no-repeat,linear-gradient(-33deg,#0002 49.6%,transparent 50%) right/50% 100% no-repeat;
  mix-blend-mode:normal;
  opacity:1
}
.envelope-back::before,.envelope-pocket::before,.envelope-flap::before {
  content:"";
  position:absolute;
  inset:0;
  background:url('../images/mw-env-middle-layer.webp') center/500px auto;
  filter:grayscale(1) brightness(.58) contrast(4);
  mix-blend-mode:soft-light;
  opacity:.8;
  pointer-events:none
}
.wax-seal img,.mini-seal img,.letter-seal img {
  filter:grayscale(1) sepia(1) saturate(5) hue-rotate(305deg) brightness(.58)
}
/* Keep a single outline, including the initial and keyboard focus states. */
.welcome-bottom .btn-pre-page:focus-visible {
  outline:none;
  border-width:2px;
  box-shadow:none;
  text-decoration:underline;
  text-underline-offset:4px;
}
/* Lower flap folds upward from the bottom corners, behind the photograph. */
.envelope-pocket {
  top:19%;
  height:36%;
  background:#64101c url('../images/mw-env-bottom-layer.webp') center/100% 100%;
  background-blend-mode:multiply;
  clip-path:polygon(0 100%,50% 0,100% 100%);
  border-bottom:1px solid #a34f5c;
}
.envelope-pocket::after {
  background:none;
  box-shadow:inset 0 -5px 12px #32191220;
}
/* The same portrait softly fills the opening background. */
.pre-page {
  isolation:isolate;
}
.pre-page::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:url('../images/gallery/img-3.webp') center 42%/cover no-repeat;
  filter:grayscale(1);
  opacity:.14;
  pointer-events:none;
}
.envelope-flap {
  background-color:#5a1420;
}
/* New entrance: a keepsake arrangement, matching the invitation desk inside. */
.pre-page {
  gap:25px;
  background-color:#eee9dd
}
.pre-page::before {
  opacity:.1
}
.welcome-top h1 {
  font-size:clamp(40px,4.5vw,62px);
  margin:0;
  letter-spacing:-.045em
}
.envelope-scene {
  width:min(650px,86vw,calc((100svh - 280px)*1.35));
  aspect-ratio:1.35;
  height:auto;
  min-height:0;
  transform:none;
  filter:none;
  perspective:1400px
}
.opening-ribbon {
  position:absolute;
  left:-6%;
  top:46%;
  width:112%;
  height:42px;
  background:linear-gradient(0deg,#7d9bb1,var(--blue) 45%,#deebf5 50%,#9dbbd0);
  transform:rotate(-22deg);
  box-shadow:0 5px 10px #32191225;
  z-index:0;
  pointer-events:none;
  transition:opacity .5s
}
.keepsake-tag {
  position:absolute;
  top:1%;
  left:5%;
  width:35%;
  height:35%;
  padding:28px 22px 20px;
  background:linear-gradient(120deg,#ffffe3,var(--cream));
  box-shadow:0 8px 16px #32191220;
  transform:rotate(-9deg);
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  transition:transform .8s,opacity .5s
}
.tag-eyelet {
  position:absolute;
  top:13px;
  right:17px;
  width:10px;
  height:10px;
  border:2px solid #bba77b;
  border-radius:50%;
  background:#d5c8b3
}
.tag-eyelet::after {
  content:"";
  position:absolute;
  right:3px;
  bottom:4px;
  width:90px;
  height:37px;
  border-top:1px solid #8f775c;
  border-left:1px solid #8f775c;
  border-radius:60% 0 0 0;
  transform:rotate(15deg);
  transform-origin:right bottom
}
.tag-caption {
  font:9px var(--sans);
  text-transform:uppercase;
  letter-spacing:.15em
}
.tag-title {
  font:clamp(24px,3vw,39px)/1.3 var(--serif);
  color:var(--wine);
  margin:10px 0
}
.tag-signature {
  font:9px var(--sans)
}
.envelope-back {
  left:0;
  top:27%;
  width:80%;
  height:56%;
  transform:rotate(-5deg);
  box-shadow:0 10px 22px #32191230
}
.envelope-pocket {
  left:0;
  top:47%;
  width:80%;
  height:36%;
  transform:rotate(-5deg);
  transform-origin:50% 0;
  z-index:1
}
.envelope-flap {
  left:0;
  top:27%;
  width:80%;
  height:36%;
  transform:rotate(-5deg);
  transform-origin:50% 0;
  z-index:3
}
.invitation-card {
  left:46%;
  top:1%;
  width:49%;
  height:94%;
  padding:0;
  border:0;
  border-radius:50% 50% 0 0/30% 30% 0 0;
  transform:rotate(7deg);
  z-index:4;
  box-shadow:8px 12px 24px #32191235;
  cursor:pointer;
  transition:transform .7s,box-shadow .3s
}
.invitation-card img {
  object-position:47% 35%;
  width:100%;
  height:100%;
  filter:grayscale(1)
}
.invitation-card:hover {
  transform:translateY(-7px) rotate(4deg);
  box-shadow:10px 20px 28px #32191240
}
.invitation-card:focus-visible {
  outline:2px solid var(--wine);
  outline-offset:6px
}
.wax-seal {
  left:24%;
  top:56%;
  width:78px;
  height:78px;
  z-index:5;
  transform:rotate(-5deg);
  transition:opacity .3s,transform .5s
}
.welcome-bottom .card-date {
  letter-spacing:.18em
}
.welcome-bottom .welcome-message {
  font-size:16px;
  margin:14px 0 18px
}
.welcome-bottom .btn-pre-page {
  min-width:260px
}
.is-opening .invitation-card {
  transform:translate(18%,-12%) rotate(14deg)
}
.is-opening .keepsake-tag {
  transform:translate(-12%,-18%) rotate(-14deg);
  opacity:0
}
.is-opening .opening-ribbon {
  opacity:0
}
.is-opening .envelope-flap {
  transform:rotate(-5deg) rotateX(170deg)
}
@media(max-width:760px) {
  .pre-page {
    padding:25px 20px;
    gap:25px
  }
  .welcome-top h1 {
    font-size:42px
  }
  .envelope-scene {
    width:min(340px,85vw,calc((100svh - 280px)/1.03));
    aspect-ratio:1/1.03;
    min-height:0;
    margin:0;
    transform:none
  }
  .opening-ribbon {
    top:49%;
    height:32px;
    width:116%;
    left:-8%;
    transform:rotate(-30deg)
  }
  .keepsake-tag {
    left:5%;
    top:1%;
    width:49%;
    height:29%;
    padding:20px 14px 12px;
    transform:rotate(-9deg)
  }
  .tag-caption {
    font-size:7px
  }
  .tag-title {
    font-size:29px;
    margin:7px 0
  }
  .tag-signature {
    font-size:7px
  }
  .tag-eyelet {
    top:9px;
    right:12px;
    width:8px;
    height:8px
  }
  .tag-eyelet::after {
    width:58px;
    height:25px
  }
  .envelope-back {
    top:34%;
    width:88%;
    height:48%
  }
  .envelope-flap {
    top:34%;
    width:88%;
    height:31%
  }
  .envelope-pocket {
    top:51%;
    width:88%;
    height:31%
  }
  .invitation-card {
    left:43%;
    top:17%;
    width:52%;
    height:79%;
    transform:rotate(7deg);
    border-radius:50% 50% 0 0/26% 26% 0 0
  }
  .wax-seal {
    left:15%;
    top:61%;
    width:65px;
    height:65px
  }
  .welcome-bottom .welcome-message {
    font-size:13px;
    max-width:295px;
    margin:12px 0 16px
  }
  .welcome-bottom .card-date {
    font-size:10px
  }
  .welcome-bottom .btn-pre-page {
    min-width:245px
  }
}
@media(max-height:650px) {
  .pre-page {
    gap:15px;
    padding:14px
  }
  .welcome-top h1 {
    font-size:32px
  }
  .envelope-scene {
    width:min(400px,78vw,calc((100svh - 235px)*1.35));
    aspect-ratio:1.35;
    min-height:0;
    transform:none;
    margin:0
  }
  .welcome-bottom .welcome-message {
    font-size:12px;
    margin:8px 0 12px
  }
  .keepsake-tag {
    padding:12px
  }
  .tag-caption,.tag-signature {
    font-size:7px
  }
  .tag-title {
    font-size:25px;
    margin:5px 0
  }
  .wax-seal {
    width:54px;
    height:54px
  }
  .tag-eyelet::after {
    width:45px;
    height:22px
  }
}
@media(max-height:650px) and (max-width:760px) {
  .envelope-scene {
    width:min(320px,82vw,calc((100svh - 235px)/1.03));
    aspect-ratio:1/1.03
  }
}
@media(max-width:760px) {
  .tag-caption {
    font-size:8px
  }
}
@media(max-height:450px) {
  .keepsake-tag {
    height:27%;
    padding:8px
  }
  .tag-caption {
    display:none
  }
  .tag-title {
    font-size:17px;
    white-space:nowrap;
    margin:0
  }
  .tag-eyelet {
    top:3px;
    right:5px;
    width:6px;
    height:6px
  }
  .tag-eyelet::after {
    display:none
  }
}
/* The seal shares the flap's exact coordinate system and rotation. */
.seal-position {
  position:absolute;
  left:0;
  top:27%;
  width:80%;
  height:36%;
  transform:rotate(-5deg);
  transform-origin:50% 0;
  z-index:5;
  pointer-events:none;
}
.seal-position .wax-seal {
  left:50%;
  top:100%;
  transform:translate(-50%,-50%);
  pointer-events:auto;
}
.is-opening .seal-position .wax-seal {
  transform:translate(-50%,-50%) scale(1.12);
}
@media(max-width:760px) {
  .seal-position {
    top:34%;
    width:88%;
    height:31%
  }
  .keepsake-tag {
    padding-top:18px
  }
}
.keepsake-tag {
  z-index:0;
}
