:root {
  color-scheme: light;
  --ink: #625148;
  --soft-ink: #766155;
  --muted: #816e61;
  --cocoa: #776155;
  --line: #cdbcad;
  --paper: #f9f4ee;
  --card: #eee2d3;
  --body-font: "Times New Roman", "Liberation Serif", "Noto Serif", serif;
  --display-font: "EB Garamond", var(--body-font);
  --script-font: "The Nautigal", var(--display-font);
  --move: cubic-bezier(.22,.75,.25,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.sealed, html:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: #fffefa; font: 17px/1.55 var(--body-font); }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button, a.paper-button { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid #795d47; outline-offset: 4px; }
html.sealed .invitation, html.sealed .music-toggle { visibility: hidden; }
html.sealed .invitation { max-height: 100svh; overflow: hidden; }

.cover {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  overflow: auto;
  overscroll-behavior: contain;
  perspective: 1250px;
  background: radial-gradient(ellipse at 15% 12%, #f1e4d6, transparent 65%),
              linear-gradient(144deg, #eadbcd 14%, #dcc6b1 100%);
}
.cover-paper {
  isolation: isolate;
  position: relative;
  display: flex;
  width: min(100%, 598px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px clamp(36px, 12vw, 104px) 30px;
  border: 1px solid #fdf8f0;
  border-radius: 9px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 36%, #fffaf4eb, #faf3e9df), url("cotton-paper.webp") #fbf6ee;
  box-shadow: 0 26px 49px -14px #523d30a3, 0 7px 23px #694f3a31;
  text-align: center;
  transform-origin: 50% 47%;
  animation: cover-enter .72s var(--move) both;
}
.cover-flower {
  position: absolute;
  z-index: -1;
  top: 8px;
  width: 28%;
  max-height: calc(100% - 24px);
  object-fit: contain;
  object-position: top;
  pointer-events: none;
  transform-origin: center bottom;
  filter: drop-shadow(1px 4px 3px #5338212b) saturate(.85) contrast(1.05);
  opacity: .91;
  clip-path: inset(-20% -20% 0);
}
.cover-flower-left { left: -5.5%; rotate: 11deg; }
.cover-flower-right { right: -5.1%; scale: -1 1; rotate: -13deg; }
.heart-seal {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  margin-bottom: 19px;
  border: 1px solid #7e6b5e;
  border-radius: 50%;
  color: #fff7ee;
  background: radial-gradient(circle at 36% 28%, #8f7869, #675348 80%);
  box-shadow: 0 5px 15px #4e392954, inset 0 1px 1px #f3ddc445;
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 1;
}
.cover-names {
  display: grid;
  justify-items: center;
  width: 100%;
  font: 400 clamp(28px, 7vw, 40px)/.99 var(--display-font);
  letter-spacing: -.025em;
}
.cover-names span, .hero-names span, .cover-guest { overflow-wrap: anywhere; text-wrap: balance; }
.cover-names i {
  margin: 6px 0 7px;
  color: var(--soft-ink);
  font: 400 22px/1 var(--script-font);
}
.fine-rule {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: #927763;
  font: 14px/1 var(--body-font);
}
.fine-rule::before, .fine-rule::after {
  width: 35px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, #bca390);
}
.fine-rule::after { transform: scaleX(-1); }
.cover .fine-rule { margin: 18px 0 8px; }
.cover-date { color: var(--muted); font-size: 18px; font-variant-numeric: lining-nums; }
.cover-invite { margin: 17px 0 21px; color: var(--muted); font-size: 16px; line-height: 1.35; }
.cover-guest { color: var(--ink); margin-top: 2px; font: 500 23px/1.18 var(--display-font); }
.open-invitation {
  position: relative;
  isolation: isolate;
  min-width: 136px;
  min-height: 46px;
  padding: 8px 25px 9px;
  overflow: hidden;
  border: 1px solid #896f62;
  border-radius: 100px;
  color: #fffaf3;
  background: linear-gradient(138deg, #8b7568, #6e584d);
  box-shadow: 0 5px 13px #59433844;
  font-size: 19px;
  transition: box-shadow .25s, scale .25s;
}
.open-invitation::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(110deg, transparent 38%, #fff6e93c 49%, transparent 59%);
  content: "";
  animation: button-sheen 5s 1s ease-in-out infinite;
}
.open-invitation:hover { scale: 1.035; box-shadow: 0 6px 17px #59433866; }
.open-invitation:active { scale: .97; }
.leaf-field { position: fixed; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.leaf {
  --wind: 105px;
  position: absolute;
  top: -23px;
  width: var(--size);
  height: calc(var(--size) * .57);
  border-radius: 0 85% 0 85%;
  background: linear-gradient(140deg, #c6a381, #8c7260);
  box-shadow: inset 0 -1px 0 #96785d6e;
  opacity: .28;
  animation: leaf-fall var(--speed) var(--delay) linear infinite;
}
.cover.is-opening { pointer-events: none; animation: cover-out .94s var(--move) both; }
.is-opening .cover-paper { overflow: visible; animation: paper-unfold .94s var(--move) both; }
.is-opening .cover-flower-left { animation: bloom-left .83s var(--move) both; }
.is-opening .cover-flower-right { animation: bloom-right .83s var(--move) both; }
.is-opening .heart-seal { animation: seal-release .85s var(--move) both; }
@keyframes cover-enter { from { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes button-sheen {
  0%, 65% { transform: translateX(-110%); }
  87%, 100% { transform: translateX(110%); }
}
@keyframes leaf-fall {
  0% { transform: translate3d(0,-15px,0) rotate(var(--turn)); }
  50% { transform: translate3d(var(--wind),51svh,0) rotate(calc(var(--turn) + 130deg)); }
  100% { transform: translate3d(-28px,105svh,0) rotate(calc(var(--turn) + 300deg)); }
}
@keyframes cover-out { 0%, 29% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes paper-unfold {
  0% { transform: translate3d(0,0,0) scale(1); }
  33% { transform: translate3d(0,-5px,15px) scale(1.02); }
  100% { transform: translate3d(0,-35px,20px) rotateX(8deg) scale(1.14); }
}
@keyframes bloom-left { to { transform: translateX(-13%) rotate(-13deg) scale(1.12); } }
@keyframes bloom-right { to { transform: translateX(-13%) rotate(-13deg) scale(1.12); } }
@keyframes seal-release {
  32% { box-shadow: 0 0 0 9px #8c74644d, 0 0 0 15px #8c746422; scale: 1.05; }
  100% { scale: 1.22; box-shadow: 0 0 0 24px transparent; }
}

.invitation {
  isolation: isolate;
  width: min(100%, 890px);
  margin-inline: auto;
  overflow: clip;
  background: url("cotton-paper.webp") var(--paper);
  box-shadow: 0 0 0 1px #f0e9df;
  text-align: center;
}
.hero {
  isolation: isolate;
  position: relative;
  padding: clamp(30px, 4vw, 48px) 15px 52px;
}
.hero-botanical {
  position: absolute;
  z-index: -1;
  top: 62px;
  bottom: 0;
  left: -16%;
  width: 49%;
  background: url("pressed-flowers.webp") center top / contain no-repeat;
  transform: rotate(-14deg);
  filter: grayscale(1) sepia(.4);
  opacity: .14;
  pointer-events: none;
}
.hero-caption {
  color: var(--soft-ink);
  font: 600 clamp(11px, 2.4vw, 15px)/1.3 "Cormorant Garamond", var(--body-font);
  letter-spacing: .24em;
  text-transform: uppercase;
}
.hero-names {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .23em;
  align-items: baseline;
  justify-content: center;
  max-width: 100%;
  margin: 10px auto 0;
  font: italic 400 clamp(30px, 5.5vw, 49px)/1.18 var(--body-font);
  letter-spacing: -.028em;
  text-wrap: balance;
}
.hero-names:focus { outline: none; }
.hero-names i, .ceremony-names i, .end-names i {
  color: #8b7162;
  font: 400 1.23em/.85 var(--script-font);
}
.photo-mount {
  position: relative;
  width: clamp(212px, min(61vw, 48vh), 407px);
  max-width: calc(100% - 34px);
  margin: clamp(33px, 7vw, 81px) auto clamp(24px, 5vw, 53px);
}
.polaroid {
  --edge: clamp(8px, 1.7vw, 16px);
  position: relative;
  padding: var(--edge) var(--edge) clamp(37px, 7vw, 71px);
  transform: rotate(-4.5deg);
  background: linear-gradient(146deg, #fffdfa, #fdf9f4 64%, #f2ebe3);
  box-shadow: 1px 8px 8px #614c3f2b, 3px 15px 28px #5d453d24, inset 0 0 0 1px #fffdfc;
}
.polaroid img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  background: #e1d3c4;
  object-fit: cover;
  object-position: var(--cover-position, 50% 50%);
}
.photo-tape {
  position: absolute;
  top: calc(-1 * clamp(9px, 1.5vw, 15px));
  left: 50%;
  width: 34%;
  height: 7.6%;
  transform: translateX(-50%) rotate(-1.5deg);
  clip-path: polygon(2% 1%, 100% 3%, 97% 16%, 100% 29%, 96% 46%, 100% 65%, 97% 85%, 100% 99%, 0 98%, 3% 80%, 0 64%, 2% 45%, 0 26%);
  background: linear-gradient(163deg, #f4d6a84f, #ad81512b 29%, #f8e5c940 52%, #d8ae7b48 59%, #e9c99c6b),
              url("cotton-paper.webp") #c39b6b;
  background-blend-mode: multiply;
  opacity: .82;
}
.wax-medallion {
  position: absolute;
  display: grid;
  place-items: center;
  right: -6%;
  bottom: 5%;
  width: 24%;
  aspect-ratio: 1;
  rotate: 12deg;
  border: 2px solid #d0a36e;
  border-radius: 46% 54% 50% 46% / 53% 43% 52% 45%;
  color: #644a2f;
  background: radial-gradient(ellipse at 40% 24%, #eed6a8, #d3ae75 51%, #bd915c 82%, #e0bd88);
  box-shadow: inset 1px 2px 3px #fff4cdad, inset -3px -6px 7px #7c573642, 1px 4px 8px #56413055;
}
.wax-medallion::before {
  position: absolute;
  inset: 12%;
  border: 1px solid #927043a0;
  border-radius: 50%;
  box-shadow: 0 1.5px 2px #fff2c4ad, inset 0 1.5px 1px #8c6b5077;
  content: "";
}
.wax-medallion i {
  font: 400 clamp(25px, 6.2vw, 62px)/1 var(--body-font);
  text-shadow: 0 1px #fff3dcca, 0 -1px #7b5a4785;
  transform: translateY(-2%);
}
.photo-flower {
  position: absolute;
  bottom: -10%;
  left: -24%;
  width: 50%;
  rotate: -13deg;
  transform-origin: center bottom;
  filter: drop-shadow(3px 7px 3px #63503d45) saturate(.92);
  pointer-events: none;
}
.hero-date { color: var(--soft-ink); font-size: 17px; }
.demo-note { margin-top: 6px; color: var(--muted); font-size: 13px; }
.invitation.entered .hero-caption { animation: line-in .6s .08s var(--move) both; }
.invitation.entered .hero-names { animation: line-in .78s .17s var(--move) both; }
.invitation.entered .polaroid { animation: picture-in 1.03s .22s var(--move) both; }
.invitation.entered .photo-flower { animation: sprig-in .95s .48s var(--move) both; }
.invitation.entered .wax-medallion { animation: stamp-in .68s .7s var(--move) both; }
@keyframes line-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes picture-in { from { opacity: 0; transform: translateY(40px) rotate(-8deg) scale(.94); } }
@keyframes sprig-in { from { opacity: 0; transform: translateY(15px) rotate(-12deg); } }
@keyframes stamp-in { from { opacity: 0; transform: translateY(-8px) scale(1.24); } }

.small-heading {
  color: var(--ink);
  font: 600 clamp(16px, 3.8vw, 20px)/1.35 var(--body-font);
  letter-spacing: .045em;
  text-transform: uppercase;
  text-wrap: balance;
}
.paper-card, .calendar-section, .venue-section, .dress-section, .rsvp-section { width: min(calc(100% - 48px), 554px); margin-inline: auto; }
.paper-card {
  isolation: isolate;
  position: relative;
  padding: clamp(24px, 5vw, 43px) clamp(16px, 6vw, 51px);
  border: 1px solid #f5ece0;
  border-radius: 8px;
  background: linear-gradient(160deg, #eee1d282, #d6bf9c40), url("cotton-paper.webp") var(--card);
  box-shadow: 2px 5px 13px #654c381f;
}
.ceremony .small-heading, .reception .small-heading { margin-bottom: 23px; }
.family-columns { display: flex; justify-content: center; margin: 0 auto 24px; }
.family-columns > div { flex: 1 1 0; max-width: 220px; padding: 0 7px; }
.family-columns > div + div { border-left: 1px solid #c6b39f; }
.family-columns h3 { margin-bottom: 3px; color: var(--muted); font: 400 14px/1.3 var(--body-font); }
.family-columns p { font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.family-columns .family-address { margin-top: 3px; color: var(--muted); font-size: 12px; }
.ceremony-invite { max-width: 330px; margin: 0 auto; color: var(--soft-ink); text-wrap: balance; }
.ceremony-names {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 23px 0 20px;
  font: 400 clamp(30px, 7vw, 46px)/1.05 var(--display-font);
  overflow-wrap: anywhere;
}
.ceremony-names i { font-size: .85em; }
.ceremony-date { margin-top: 20px; }
.ceremony-date time { display: block; margin-top: 8px; font-size: 25px; }
.inside-guest { width: max-content; max-width: 100%; margin: 25px auto 0; padding: 8px 14px 0; border-top: 1px solid #cebcaa; color: var(--ink); overflow-wrap: anywhere; }
.decor-flower { position: absolute; z-index: -1; width: 28%; filter: drop-shadow(2px 5px 3px #68492f35); pointer-events: none; }
.ceremony-flower { right: -12%; bottom: -6%; rotate: 8deg; opacity: .9; }
.timeline-flower { right: -12%; top: -10%; rotate: -11deg; opacity: .85; }

.album { margin: clamp(41px, 7vw, 68px) auto; }
.album .small-heading { margin-bottom: 19px; }
.album-stage {
  --photo-width: min(68%, 486px);
  isolation: isolate;
  position: relative;
  display: grid;
  margin-inline: auto;
  place-items: center;
  padding: 6px 0;
  perspective: 900px;
  touch-action: pan-y;
}
.album-current {
  z-index: 1;
  display: block;
  width: var(--photo-width);
  overflow: hidden;
  padding: 0;
  border: 1px solid #fbf3e8;
  border-radius: 9px;
  background: #ece0d3;
  box-shadow: 0 8px 26px #694f3726;
  transition: box-shadow .25s;
}
.album-current:hover { box-shadow: 0 12px 34px #694f3755; }
.album-current img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.album-side {
  position: absolute;
  width: calc(var(--photo-width) * .7);
  max-height: 82%;
  aspect-ratio: 4 / 5;
  border-radius: 5px;
  object-fit: cover;
  opacity: .44;
  filter: saturate(.68);
}
.album-left { right: 72%; transform: rotateY(22deg) rotate(-6deg); }
.album-right { left: 72%; transform: rotateY(-22deg) rotate(6deg); }
.album-nav, .lightbox-nav {
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0 0 4px;
  border: 1px solid #fff9f0;
  border-radius: 50%;
  color: var(--ink);
  background: #fcf7efd9;
  box-shadow: 0 2px 7px #3f31242b;
  font: 400 29px/1 var(--body-font);
}
.album-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.album-prev { left: max(calc((100% - var(--photo-width)) / 2 - 22px), 9px); }
.album-next { right: max(calc((100% - var(--photo-width)) / 2 - 22px), 9px); }
.album-count { margin-top: 9px; font-size: 15px; color: var(--muted); }
.album-turn { animation: album-in .45s var(--move); }
@keyframes album-in { from { transform: scale(.975) translateX(var(--album-shift, 10px)); opacity: .4; } }

.reception-intro { color: var(--soft-ink); }
.reception-time { display: block; margin: 7px 0 13px; font: 400 36px/1 var(--display-font); }
.date-line { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(9px, 2.3vw, 18px); align-items: center; width: min(100%, 310px); margin: auto; }
.date-line span { font-size: clamp(12px, 2.9vw, 15px); text-transform: uppercase; }
.date-line strong {
  padding-inline: 13px;
  border-inline: 1px solid #c4b09c;
  font: 400 clamp(29px, 8.1vw, 45px)/.95 var(--display-font);
}
.event-year { margin-top: 12px; font-size: 20px; }
.lunar-date, .reception-detail { margin-top: 9px; color: var(--muted); font-size: 15px; }
.calendar-section { margin-block: 43px 50px; }
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 390px;
  gap: 5px;
  margin: 17px auto 22px;
  padding: 14px 10px;
  border-radius: 6px;
  border: 1px solid #7e6659;
  color: #fff8ed;
  background: linear-gradient(148deg, #90796a, #6f5a4e);
}
.countdown div + div { border-left: 1px solid #f5ede159; }
.countdown strong { display: block; font: 400 clamp(23px, 6vw, 31px)/1 var(--display-font); font-variant-numeric: tabular-nums; }
.countdown small { font-size: 13px; }
.calendar {
  width: min(100%, 390px);
  margin: 0 auto 19px;
  padding: 13px 14px 14px;
  border: 1px solid #e4d5c5;
  border-radius: 5px;
  background: #fffdf789;
}
.calendar-title { margin-bottom: 4px; font-size: 17px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; align-items: center; }
.calendar-grid > span { display: grid; place-content: center; justify-self: center; width: min(100%, 32px); aspect-ratio: 1; font-size: 14px; }
.calendar-grid .calendar-weekday { color: var(--muted); font-size: 12px; }
.calendar-grid .calendar-day { border-radius: 50%; color: #fffaf2; background: #7a6050; }
.paper-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 7px 17px;
  border: 1px solid #cbb7a3;
  border-radius: 100px;
  color: var(--ink);
  background: #fdf7edeb;
  text-decoration: none;
  font-size: 15px;
  transition: background .2s;
}
.paper-button:hover { background: #eadcca; }
.paper-button.primary { border-color: var(--cocoa); color: #fff9f1; background: var(--cocoa); }
.paper-button.primary:hover { background: #655147; }
.venue-section, .dress-section, .rsvp-section, .gift-section { margin-block: 45px; }
.venue-section h3 { margin-top: 10px; font: 500 clamp(21px, 5.5vw, 29px)/1.2 var(--display-font); }
.venue-section p { margin: 6px auto 12px; color: var(--soft-ink); overflow-wrap: anywhere; }
.map-frame { height: clamp(200px, 40vw, 285px); margin: 13px 0; overflow: hidden; border: 1px solid #d7c7b8; border-radius: 7px; }
.map-frame iframe { display: block; width: 100%; height: 100%; border: none; }
.swatches { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; margin-top: 14px; }
.swatches span { display: block; width: 35px; height: 35px; border: 1px solid #7d62262a; border-radius: 50%; box-shadow: 0 2px 4px #62483224; }
.timeline {
  width: min(100%, 330px);
  margin: 13px auto 0;
  padding: 0;
  text-align: left;
  list-style: none;
}
.timeline li { display: grid; grid-template-columns: 5ch 1fr; align-items: baseline; gap: 17px; }
.timeline time { font-variant-numeric: tabular-nums; }
.timeline span { position: relative; display: block; padding: 9px 0 9px 16px; border-left: 1px solid #b7a391; }
.timeline span::before { position: absolute; top: 50%; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: #907565; content: ""; }
.rsvp-section p { margin: 11px auto 12px; color: var(--soft-ink); }

.gift-trigger {
  display: grid;
  place-items: center;
  min-height: 44px;
  gap: 12px;
  margin: 15px auto 0;
  padding: 5px 15px;
  border: 0;
  color: var(--ink);
  background: transparent;
}
.gift-art { position: relative; display: block; width: 103px; height: 109px; filter: drop-shadow(1px 7px 8px #775d433b); transition: translate .3s var(--move); }
.gift-trigger:hover .gift-art { translate: 0 -5px; }
.gift-lid, .gift-base {
  position: absolute;
  left: 6%;
  right: 6%;
  border: 1px solid #e4c6a0;
  background: linear-gradient(90deg,#f3e2ca 37%,#b99a6d 39%, #e9d4ae 55%,#ddc8ac 58%);
}
.gift-lid { top: 31%; height: 20%; z-index: 2; left: 2%; right: 2%; border-radius: 3px; box-shadow: 0 3px 4px #6351393d; }
.gift-base { top: 45%; bottom: 8%; border-radius: 2px 2px 6px 6px; }
.gift-bow::before, .gift-bow::after { position: absolute; top: 15%; width: 32%; height: 19%; border: 4px solid #bd9c73; border-radius: 80% 85% 15% 85%; content: ""; }
.gift-bow::before { left: 19%; transform: rotate(15deg); }
.gift-bow::after { right: 19%; transform: scaleX(-1) rotate(15deg); }
.end {
  position: relative;
  isolation: isolate;
  padding: 31px 19px 61px;
  border-top: 1px solid #e4d8c8;
  background: linear-gradient(168deg, #eee2d34a, #e2cdb851);
}
.end > p:first-of-type { max-width: 460px; margin: 13px auto 12px; color: var(--soft-ink); text-wrap: balance; }
.end-names { font: italic 400 clamp(23px, 5.6vw, 33px)/1.15 var(--body-font); text-wrap: balance; overflow-wrap: anywhere; }
.end-names i { margin-inline: 7px; }
.reveal-ready:not(.in-view) { opacity: 0; transform: translateY(18px); }
.reveal-ready { transition: opacity .72s var(--move), transform .78s var(--move); }
.reveal-ready:focus-within { opacity: 1; transform: none; transition: none; }

.music-toggle {
  position: fixed;
  z-index: 4;
  right: max(15px, env(safe-area-inset-right));
  bottom: max(15px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #ac8f77;
  border-radius: 50%;
  color: #fff2dc;
  background: #7a6356ec;
  box-shadow: 0 3px 11px #46312647;
}
.music-toggle span { display: flex; gap: 3px; align-items: center; height: 21px; }
.music-toggle i { width: 3px; height: 9px; border-radius: 2px; background: currentColor; }
.music-toggle i:nth-child(2) { height: 15px; }
.music-toggle i:nth-child(3) { height: 11px; }
.music-toggle[aria-pressed="true"] i { animation: equalizer .9s ease-in-out infinite alternate; }
.music-toggle[aria-pressed="true"] i:nth-child(2n) { animation-delay: -.4s; }
@keyframes equalizer { to { transform: scaleY(.43); } }

dialog { padding: 0; border: 0; color: var(--ink); }
dialog::backdrop { background: #2c211bdc; }
.lightbox {
  width: min(calc(100% - 20px), 920px);
  max-height: calc(100% - 12px);
  background: transparent;
  color: #fff9ef;
}
.lightbox figure { padding: 9px 46px 0; }
.lightbox img { margin-inline: auto; max-width: 100%; width: auto; height: min(77svh, 750px); object-fit: contain; }
.lightbox figcaption { margin-top: 8px; text-align: center; }
.lightbox-nav { position: absolute; top: 46%; }
.lightbox-prev { left: 2px; }
.lightbox-next { right: 2px; }
.dialog-close { position: absolute; z-index: 3; top: 8px; right: 8px; width: 44px; height: 44px; border: 1px solid #dccaaf; border-radius: 50%; color: var(--ink); background: #fff8ed; font: 400 26px/1 var(--body-font); }
.gift-dialog { width: min(calc(100% - 32px), 540px); max-height: 90svh; padding: 53px 20px 27px; border-radius: 8px; background: url("cotton-paper.webp") var(--paper); text-align: center; }
#gift-details { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 16px; }
.gift-detail { display: grid; gap: 3px; place-items: center; }
.gift-detail img { width: 140px; height: 140px; object-fit: contain; margin: 5px auto; }
.gift-detail p { overflow-wrap: anywhere; }

@media (min-width: 720px) {
  .hero { padding-inline: 38px; }
  .photo-mount { width: clamp(330px, min(43vw, 53vh), 407px); }
  .ceremony-flower { right: -12%; }
}
@media (max-width: 440px) {
  .cover-paper { padding-inline: clamp(38px, 13vw, 57px); }
  .cover-flower { top: 13px; width: 29%; }
  .cover-flower-left { left: -6%; }
  .cover-flower-right { right: -6%; }
  .cover-guest { font-size: 22px; }
  .hero-botanical { left: -22%; width: 62%; }
  .decor-flower { width: 26%; opacity: .73; }
}
@media (max-height: 525px) {
  .cover { padding-block: 12px; }
  .cover-paper { padding-block: 15px; }
  .heart-seal { width: 42px; height: 42px; margin-bottom: 9px; font-size: 21px; }
  .cover .fine-rule { margin-top: 12px; }
  .cover-invite { margin-block: 8px 11px; }
  .cover-names { font-size: clamp(23px, 4.3vh, 32px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
  .leaf-field { display: none; }
  .reveal-ready:not(.in-view) { opacity: 1; transform: none; }
}
