@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500&family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Great+Vibes&family=Noto+Serif:wght@400;600&display=swap');

:root {
  --ink: #263e56;
  --blue: #547891;
  --navy: #214663;
  --gold: #82633d;
  --white: #fbfcfd;
  --display: "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", "Cormorant Garamond", Georgia, cursive;
  --prose: "Noto Serif", Georgia, serif;
  --body: "Be Vietnam Pro", system-ui, sans-serif;
  --measure: 40ch;
  --text-size: clamp(1rem, 2.4vw, 1.1rem);
  --title-size: clamp(2.3rem, 6.5vw, 3.55rem);
  --section-space: clamp(4.2rem, 10vw, 7.1rem);
  --gutter: clamp(1rem, 4.5vw, 2.25rem);
  color: var(--ink);
  background: var(--white);
  font: 16px/1.7 var(--body);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }
.silk {
  background:
    radial-gradient(ellipse at 40% 115%, #aabed43b 0%, transparent 58%),
    radial-gradient(ellipse at 100% 2%, #cad9e98c, transparent 48%),
    linear-gradient(126deg, #f5f9ff 0%, #ffffff 19%, #dce5ee 35%, #fff 48%, #e5ebf0 62%, #fbfdff 74%, #d9e4ee 100%);
}
.cover {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: clamp(2.75rem, 7svh, 5.1rem) var(--gutter) 3rem;
  text-align: center;
}
.cover-inner { width: min(100%, 42rem); }
.eyebrow {
  margin: 0;
  font: 400 clamp(.82rem, 2.4vw, .93rem)/1.52 var(--prose);
  letter-spacing: .105em;
  text-transform: uppercase;
}
.couple { margin: 0; font: 400 clamp(2.9rem, 8.5vw, 4.65rem)/1.08 var(--script); }
.cover .couple { margin-top: clamp(1.65rem, 5svh, 2.8rem); }
.couple span {
  display: block;
  margin: .3em 0 .36em;
  color: var(--gold);
  font: italic 500 .39em/1.1 var(--display);
}
.open {
  display: grid;
  justify-items: center;
  width: min(100%, 27rem);
  margin: .25rem auto 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
}
.envelope { display: block; position: relative; isolation: isolate; width: 100%; }
.envelope img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  filter: drop-shadow(0 15px 13px #2343602b);
  transition: transform .5s ease;
}
.open:hover img { transform: translateY(-4px); }
.open-label {
  position: relative;
  display: block;
  padding: .55rem .8rem;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: #637e95a6;
  text-underline-offset: .4em;
  font: italic 600 1.26rem/1.28 var(--display);
}
.mini-letter {
  position: absolute;
  z-index: -1;
  top: 35%;
  left: 24%;
  width: 52%;
  height: 48%;
  padding-top: .35em;
  border: 5px double #9eb1c1;
  background: #fbfcfd;
  color: var(--gold);
  box-shadow: 0 8px 24px #243c5b37;
  font: 600 clamp(1.5rem, 6vw, 3rem)/1.05 var(--display);
  opacity: 0;
}
.opened .envelope img { transform: translateY(15px) rotate(1deg); }
.opened .mini-letter { animation: lift .92s cubic-bezier(.22,.61,.36,1) both; }
@keyframes lift {
  0% { opacity: 0; transform: translateY(0) rotate(0); }
  25% { opacity: 1; }
  100% { opacity: 1; transform: translateY(-85%) rotate(-6deg); }
}
section { padding: var(--section-space) var(--gutter); text-align: center; }
section h2 { margin: 0; font: 600 var(--title-size)/1.08 var(--display); text-wrap: balance; }
section p:not(.eyebrow, .signature, .art-eyebrow) { font: 400 var(--text-size)/1.62 var(--prose); }
.letter {
  padding: 0 0 var(--section-space);
  background:
    radial-gradient(ellipse at 12% 34%, #f3f8fe 0%, transparent 50%),
    radial-gradient(ellipse at 90% 5%, #f7fbffcb 0%, transparent 38%),
    linear-gradient(156deg, #e0ebf6 6%, #edf5fc 38%, #dfeaf4 62%, #edf5fb 100%);
}
.invitation-art {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  width: min(100%, 35rem);
  margin: 0 auto;
}
.invitation-art img {
  display: block;
  width: 100%;
  height: auto;
  mask-image: linear-gradient(to bottom, black 95%, transparent);
}
.art-eyebrow, .art-names {
  position: absolute;
  left: 47.3%;
  width: 57%;
  transform: translateX(-50%);
  margin: 0;
  color: #2e516f;
}
.art-eyebrow {
  top: 31.6%;
  font: 400 3.45cqi/1.4 var(--prose);
  text-transform: uppercase;
}
.art-names {
  top: 42.4%;
  height: 24.6%;
  display: grid;
  grid-template-rows: 1fr .66fr 1fr;
  align-items: center;
  font: 400 10.25cqi/1.04 var(--script);
  outline-offset: .28rem;
}
.art-names .art-amp { font: italic 600 4.9cqi/1.1 var(--display); }
.note {
  position: relative;
  width: min(calc(100% - 2.15rem), 32rem);
  margin: clamp(2rem, 5.5vw, 3rem) auto 0;
  padding: 1.7rem clamp(.95rem, 3.25vw, 1.5rem) 1.2rem;
  border: 1px dashed #91a5b7;
  background: #ffffff45;
}
.note p { max-width: var(--measure); margin: .3rem auto; text-wrap: pretty; }
.seal {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -57%);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 3px double #f5deb3;
  border-radius: 48%;
  background: radial-gradient(circle at 33% 26%, #b99358, #76562e);
  color: #fff7e6;
  box-shadow: 0 3px 9px #43321938;
  font: italic 600 .96rem var(--display);
}
.date {
  --date-paper: #f8f8f2;
  --date-ink: #2d516e;
  padding: clamp(3.5rem, 4.8vw, 4.5rem) var(--gutter) clamp(2.8rem, 4vw, 4rem);
  background: var(--date-paper);
  color: var(--date-ink);
}
.save {
  display: grid;
  justify-items: center;
  min-width: 3.65em;
  width: max-content;
  margin-inline: auto;
  font: 600 clamp(1.32rem, 2.04vw, 1.64rem)/.93 var(--display);
  text-transform: uppercase;
}
.save > span:first-child { justify-self: start; }
.save i {
  justify-self: end;
  margin: .09em .24em .075em 0;
  font: 400 1.37em/.82 var(--script);
  text-transform: none;
}
.save-initial { font: 400 1.58em/.82 var(--script); }
.date-divider {
  display: block;
  margin: clamp(2.35rem, 3.45vw, 3.15rem) auto clamp(3rem, 4.65vw, 4.2rem);
  font-size: 1.32rem;
  line-height: 1;
}
.calendar-wrap {
  width: min(100%, clamp(20rem, 24vw, 25rem));
  margin: 0 auto;
  padding: .08rem clamp(.7rem, 1.9vw, 1.35rem) 1.35rem;
  border: 1px dashed var(--date-ink);
}
.calendar {
  width: 100%;
  table-layout: fixed;
  font: 400 .9rem/1.2 var(--prose);
  font-variant-numeric: lining-nums tabular-nums;
}
.calendar caption {
  width: max-content;
  max-width: 100%;
  margin: -.65em auto .6rem;
  padding: 0 .48em;
  background: var(--date-paper);
  font: 400 clamp(1.86rem, 3vw, 2.45rem)/1 var(--script);
}
.calendar thead, .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.calendar td { height: 1.82rem; padding: 0; }
.calendar time {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  font-weight: 600;
}
.calendar time::before {
  content: "♡" / "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #7293ab;
  font: 400 2rem/1 Georgia, serif;
  pointer-events: none;
}
.countdown { margin: clamp(3.35rem, 5.9vw, 5.2rem) auto 0; }
.countdown-doves {
  display: block;
  width: clamp(3.6rem, 5.2vw, 4.65rem);
  height: auto;
  margin: 0 auto clamp(1.15rem, 2.35vw, 1.85rem);
}
.countdown .countdown-label {
  margin: 0 auto;
  font: italic 600 clamp(1rem, 1.55vw, 1.2rem)/1.35 var(--display);
}
.clock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 13rem);
  margin: .8rem auto 0;
  font: 400 .67rem/1.25 var(--body);
  text-transform: uppercase;
}
.clock > span { position: relative; }
.clock > span + span::before {
  content: ":" / "";
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-50%);
  font-size: 1.46rem;
  line-height: 1.05;
}
.clock strong {
  display: block;
  margin-bottom: .29rem;
  font: 500 clamp(1.4rem, 2.25vw, 1.8rem)/1.04 var(--body);
  font-variant-numeric: lining-nums tabular-nums;
}
.story {
  color: #fffdf7;
  padding-block: clamp(3.65rem, 5.6vw, 5.3rem) clamp(4rem, 6vw, 5.35rem);
  background:
    linear-gradient(152deg, #122e4b42, #10283c88),
    url("nen-vai-cau-chuyen.jpg") center / cover no-repeat,
    #203e58;
}
.story-art {
  position: relative;
  isolation: isolate;
  width: min(100%, clamp(15rem, 19.5vw, 18rem));
  aspect-ratio: 1.16;
  margin-inline: auto;
}
.story-envelope {
  position: absolute;
  left: 16%;
  top: 1%;
  width: 67%;
  padding: .2rem 0 2.75rem;
  filter: drop-shadow(.4rem .52rem .4rem #1021335c);
}
.story-envelope::before, .story-envelope::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
}
.story-envelope::before {
  height: 94%;
  background: linear-gradient(146deg, #efe2c7, #c2ad89 93%);
  clip-path: polygon(0 48%, 50% 0, 100% 48%, 100% 100%, 0 100%);
}
.story-envelope::after {
  z-index: 2;
  height: 57%;
  background:
    linear-gradient(142deg, transparent 57%, #aa97774d 57.3%, transparent 58%),
    linear-gradient(216deg, #f8f0dc 25%, #e4d7b9);
  clip-path: polygon(0 0, 49% 52%, 100% 0, 100% 100%, 0 100%);
}
.story-photo {
  position: relative;
  z-index: 1;
  width: 73%;
  margin: 0 auto;
  padding: .36rem .36rem .75rem;
  background: #fffdf6;
  box-shadow: .28rem .36rem 1rem #3c302648;
  transform: rotate(-7deg);
}
.story-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: center 67%; }
.story-flowers {
  position: absolute;
  z-index: 3;
  right: -1%;
  top: 10%;
  width: 32%;
  height: 67%;
  object-fit: contain;
  filter: drop-shadow(.14rem .2rem .18rem #10243b60);
}
.story-heart {
  position: absolute;
  z-index: 4;
  left: 0;
  bottom: -1%;
  width: 46%;
  display: grid;
  place-items: center;
  transform: rotate(-6deg);
}
.story-heart img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(.15rem .18rem .24rem #10283c60);
}
.story-heart span {
  position: absolute;
  top: 24%;
  display: grid;
  justify-items: center;
  color: #2d4f6a;
  font: 600 .97rem/1.03 var(--display);
  text-transform: uppercase;
}
.story-heart i { font: 400 1.36rem/.94 var(--script); text-transform: none; }
.story-record {
  position: absolute;
  z-index: 5;
  right: 17%;
  bottom: 10%;
  width: 27%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #b4a68c;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 5px, #896c4133 5.4px 5.8px),
    conic-gradient(from -24deg, #faf3dd, #cbb999, #fffcf3, #d9ceb8, #e9dcc2, #fdf9ee, #caaf84, #faf3dd);
  color: #4b6174;
  box-shadow: .15rem .27rem .45rem #162b42a0;
  cursor: pointer;
}
.record-caption {
  position: absolute;
  top: 10%;
  font: 600 .72rem/1.1 var(--display);
  transform: rotate(13deg);
}
.record-icon {
  display: grid;
  place-items: center;
  width: 29%;
  height: 29%;
  border: 2px solid #fffaf0;
  border-radius: 50%;
  background: #f4efe0b3;
}
.record-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 2px;
  border-block: .26rem solid transparent;
  border-left: .4rem solid currentColor;
}
.story-record.is-playing .record-icon::before {
  width: .37rem;
  height: .52rem;
  margin-left: 0;
  border: 0;
  border-inline: 2px solid currentColor;
}
.story-copy { width: min(100%, 29rem); margin: clamp(3.45rem, 5.8vw, 5.6rem) auto 0; }
.story-title { font: 500 clamp(1.75rem, 2.65vw, 2.35rem)/1.12 var(--display); }
.story-title i { display: inline-block; margin-inline: .1em; font-weight: 500; }
.story .story-copy p {
  max-width: 100%;
  margin: 1.1rem auto 0;
  font: 400 clamp(1rem, 1.32vw, 1.06rem)/1.54 var(--prose);
  text-wrap: pretty;
  text-shadow: 0 1px 3px #142c43bb;
}
.story .story-copy p + p { margin-top: clamp(1.65rem, 3.25vw, 2.85rem); }
.wishes p:not(.eyebrow), .closing p:not(.eyebrow) {
  max-width: var(--measure);
  margin: 1.15rem auto 0;
  text-wrap: pretty;
}
.signature { font: 400 clamp(2.25rem, 7.4vw, 3.4rem)/1.2 var(--script); }
.closing .signature { margin-top: 1.7rem; }
.venue, .ceremony {
  --venue-paper: #f8f8f2;
  --venue-ink: #31536e;
  background: var(--venue-paper);
  color: var(--venue-ink);
}
.venue { padding-block: clamp(3.8rem, 4.8vw, 4.85rem) 0; }
.venue .venue-intro, .ceremony-heading, #gio-hon-le {
  display: block;
  margin: 0;
  font: 500 clamp(1.03rem, 1.62vw, 1.35rem)/1.44 var(--display);
  letter-spacing: .026em;
  text-transform: uppercase;
}
.venue h2 {
  margin: clamp(1.35rem, 2.15vw, 1.95rem) auto 0;
  font: 400 clamp(2.85rem, 4.55vw, 4.2rem)/1.1 var(--script);
}
.venue .venue-address {
  margin: clamp(1.35rem, 2.05vw, 1.9rem) auto 0;
  max-width: 36ch;
  font: 400 clamp(1rem, 1.35vw, 1.16rem)/1.56 var(--prose);
  text-wrap: balance;
}
.directions {
  display: inline-grid;
  justify-items: center;
  gap: 1.15rem;
  min-height: 2.75rem;
  margin: clamp(1.5rem, 2.3vw, 2.15rem) 0 0;
  padding: .15rem .75rem .5rem;
  color: var(--navy);
  font: 600 clamp(1.08rem, 1.42vw, 1.24rem)/1.25 var(--display);
  text-decoration: none;
  text-transform: uppercase;
}
.directions:hover span:last-child { text-decoration: underline; text-underline-offset: .28em; }
.map-pin {
  position: relative;
  display: block;
  width: 1.62rem;
  height: 1.62rem;
  border-radius: 50% 50% 50% 7%;
  background: #ab9a77;
  transform: rotate(-45deg);
}
.map-pin::after {
  content: "";
  position: absolute;
  top: 29%;
  left: 29%;
  width: 42%;
  height: 42%;
  border-radius: 50%;
  background: var(--venue-paper);
}
.ceremony { padding-top: clamp(4.55rem, 15.2vw, 14rem); }
#gio-hon-le { margin-top: .22rem; font-variant-numeric: lining-nums; }
.wishes h2 { margin-top: .42em; }
.date-mark {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(.5rem, 1.8vw, 1.25rem);
  width: min(100%, 24rem);
  margin: clamp(1.5rem, 2.4vw, 2.1rem) auto 0;
}
.date-mark span {
  padding-block: .28rem;
  font: 500 clamp(1.2rem, 2vw, 1.62rem)/1.35 var(--display);
}
.date-mark span:first-child { border-right: 1px solid #8e7856; padding-right: .65rem; text-align: right; }
.date-mark span:last-child { border-left: 1px solid #8e7856; padding-left: .65rem; text-align: left; }
.date-mark strong {
  font: 500 clamp(4.15rem, 7.2vw, 5.85rem)/.85 var(--display);
  font-variant-numeric: lining-nums;
}
.ceremony .lunar-date {
  margin: clamp(1.45rem, 2.45vw, 2.2rem) 0 0;
  font: italic 600 clamp(.95rem, 1.18vw, 1.12rem)/1.5 var(--display);
}
.ceremony-family-details { width: min(100%, 30rem); margin: 1.8rem auto 0; }
.ceremony-family-details summary {
  width: fit-content;
  margin-inline: auto;
  padding: .62rem .32rem;
  color: var(--navy);
  font: 400 .86rem/1.45 var(--prose);
  cursor: pointer;
}
.schedule {
  padding-block: clamp(3.8rem, 5.1vw, 5.1rem) clamp(4.7rem, 7.5vw, 7rem);
  background: #eee7d9;
  color: #3b5770;
}
.schedule-title {
  display: grid;
  justify-items: center;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  font: 500 clamp(1.5rem, 2.25vw, 2rem)/1.04 var(--display);
  text-transform: uppercase;
}
.schedule-title span:first-child { font-size: .72em; letter-spacing: .12em; }
.schedule-title span:nth-child(2) { justify-self: start; margin: .15em 0 -.15em; letter-spacing: .075em; }
.schedule-title i {
  margin-left: .28em;
  font: 400 1.92em/.97 var(--script);
  text-transform: none;
}
.schedule-card {
  position: relative;
  width: min(100%, clamp(15rem, 18.3vw, 17rem));
  margin: clamp(1.7rem, 2.45vw, 2.6rem) auto 0;
  color: #fffaf0;
}
.schedule-card img { display: block; width: 100%; height: auto; }
.schedule-star {
  position: absolute;
  inset: 12.6% 0 auto;
  font: 400 1.2rem/1 var(--display);
}
.timeline {
  position: absolute;
  inset: 23% 18% 23% 21%;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  text-align: left;
  list-style: none;
}
.timeline li {
  display: grid;
  grid-template-columns: 2.55rem minmax(0, 1fr);
  align-items: center;
  gap: .65rem;
}
.timeline time {
  display: block;
  font: 500 .7rem/1.35 var(--body);
  font-variant-numeric: tabular-nums;
}
.timeline strong {
  display: block;
  margin-top: .16rem;
  font: 500 .78rem/1.34 var(--body);
  letter-spacing: .075em;
  text-transform: uppercase;
}
.timeline-icon {
  position: relative;
  display: block;
  width: 2.45rem;
  height: 2.15rem;
}
.icon-rings::before, .icon-rings::after {
  content: "";
  position: absolute;
  width: 1.32rem;
  height: 1.32rem;
  border: 3px double currentColor;
  border-radius: 50%;
}
.icon-rings::before { left: 0; top: .24rem; }
.icon-rings::after { left: .68rem; top: .57rem; }
.icon-camera {
  height: 1.63rem;
  border: 1px solid currentColor;
  border-radius: .2rem;
}
.icon-camera::before, .icon-camera::after {
  content: "";
  position: absolute;
  border: 1px solid currentColor;
}
.icon-camera::before {
  top: -.25rem;
  left: .28rem;
  width: .67rem;
  height: .25rem;
  border-bottom: 0;
  border-radius: .1rem .1rem 0 0;
}
.icon-camera::after {
  top: .25rem;
  left: .64rem;
  width: 1.13rem;
  height: 1.13rem;
  border: 3px double currentColor;
  border-radius: 50%;
}
.icon-camera i { position: absolute; top: .28rem; left: .24rem; width: .2rem; height: .2rem; border-radius: 50%; background: currentColor; }
.icon-plate i {
  position: absolute;
  top: .21rem;
  left: .38rem;
  width: 1.68rem;
  height: 1.68rem;
  border: 3px double currentColor;
  border-radius: 50%;
}
.icon-plate::before, .icon-plate::after {
  content: "";
  position: absolute;
  top: .18rem;
  width: .16rem;
  height: 1.8rem;
  border: 1px solid currentColor;
  border-radius: .15rem;
}
.icon-plate::before { left: .08rem; }
.icon-plate::after { right: .08rem; }
.rsvp {
  padding-block: clamp(3.7rem, 5.3vw, 5.1rem) clamp(4.75rem, 6.2vw, 6.25rem);
  color: #fff9ed;
  background:
    linear-gradient(135deg, #0e20364d, #132a435c),
    url("nen-hoa-van-hoi-dap.jpg") center / cover no-repeat,
    #18324d;
}
.rsvp-heading {
  display: grid;
  justify-items: center;
  gap: .45rem;
  font: 500 clamp(1.68rem, 2.65vw, 2.1rem)/1.08 var(--display);
}
.rsvp-title { font: 400 clamp(3rem, 5vw, 4rem)/1.02 var(--script); }
.action {
  display: inline-grid;
  place-items: center;
  min-height: 2.75rem;
  margin-top: 1.35rem;
  padding: .55rem 1.05rem;
  border: 1px solid var(--navy);
  border-radius: 99px;
  background: var(--navy);
  color: white;
  cursor: pointer;
  font: 500 .91rem/1.35 var(--body);
}
.action-outline { color: var(--navy); background: transparent; }
.wishes { background: #fbfcfd; }
.families {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 24rem;
  margin: 2.8rem auto 0;
  color: var(--navy);
}
.families div + div { border-left: 1px solid #cadbe8; }
.families .eyebrow { font-size: .82rem; }
.ceremony-families { max-width: 29rem; margin-top: 1.8rem; }
.ceremony-family { display: flex; flex-direction: column; padding: 0 clamp(.4rem, 2vw, 1rem); }
.ceremony-family .ceremony-parents {
  margin: .55rem 0 0;
  font-size: clamp(.83rem, 2.6vw, .94rem);
  line-height: 1.6;
}
.ceremony-family .ceremony-person {
  display: grid;
  gap: .36rem;
  margin: auto 0 0;
  padding-top: 1.25rem;
}
.ceremony-person .eyebrow { font-size: .77rem; }
.ceremony-person strong {
  font: 400 clamp(1.35rem, 4.15vw, 2.3rem)/1.18 var(--script);
  text-wrap: balance;
}
.families span:last-child { display: block; font: 600 1.6rem var(--display); }
.wishes .families { gap: clamp(.65rem, 3vw, 1.35rem); }
.wishes .families div {
  padding: 1.25rem .35rem 1rem;
  border: 1px solid #c3d5e4;
  border-radius: 46% 46% .3rem .3rem / 26% 26% .3rem .3rem;
  background: #f3f7fb;
}
.family-role { display: block; margin-top: .3rem; color: var(--blue); font: 400 .87rem/1.4 var(--prose); }
.wishes .gift-note:not(.eyebrow) { color: var(--blue); font-size: .95rem; }
.closing.silk {
  background:
    linear-gradient(105deg, #f6faffbd, #f3f9ff5c 75%, #e4edf773),
    url("lua-hoa-trang-ket.jpg") center / cover no-repeat,
    #eff5fa;
}
.closing-mark {
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  gap: .12em;
  width: 2.58em;
  height: 2.8em;
  margin: 0 auto .45em;
  border: 4px double #8d795b;
  border-radius: 48%;
  background: #ffffff61;
  color: var(--gold);
  font: 500 clamp(2.8rem, 8vw, 3.85rem)/1 var(--display);
}
.closing-mark span { font-size: .42em; }
.closing .eyebrow { margin-top: 1rem; }
.closing .closing-greeting { margin: 1.7rem 0 .8rem; }
.back-top { display: inline-block; margin-top: 1.55rem; padding: .5rem .35rem; font: 400 .96rem/1.45 var(--prose); text-underline-offset: .3em; }
.response-form {
  display: grid;
  gap: clamp(1.08rem, 2.15vw, 1.7rem);
  width: min(100%, 23.35rem);
  margin: clamp(2.25rem, 5.9vw, 5rem) auto 0;
  text-align: left;
  font: 400 .96rem/1.45 var(--prose);
}
.response-field { display: grid; gap: .42rem; }
.response-form fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.response-form legend { padding: 0; margin-bottom: .54rem; }
.response-form input:not([type="radio"]), .response-form textarea {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid #dadfe395;
  border-radius: .3rem;
  padding: .55rem .65rem;
  background: #11294368;
  color: inherit;
  font: 400 1rem/1.45 var(--body);
}
.response-form textarea { resize: vertical; }
.response-form .radio {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 3.35rem;
  padding: .68rem .72rem;
  border: 1px solid transparent;
  border-radius: .32rem;
  background: #f8fbff19;
  cursor: pointer;
}
.response-form .radio + .radio { margin-top: .43rem; }
.response-form .radio:has(:checked) { border-color: #d9bc86; background: #f8fbff2b; }
.response-form .radio input {
  appearance: none;
  flex: 0 0 auto;
  width: .94rem;
  height: .94rem;
  margin: 0;
  border: 1px solid #fff3da;
  border-radius: .25rem;
}
.response-form .radio input:checked { box-shadow: inset 0 0 0 2px #203b58; background: #e7c992; }
.response-form :is(input, textarea, button):focus-visible, .back-to-rsvp:focus-visible {
  outline: 2px solid #f1d397;
  outline-offset: 3px;
}
.response-submit {
  min-height: 2.9rem;
  padding: .56rem .75rem;
  border: 0;
  border-radius: .58rem;
  background: #d9b574;
  color: #192c42;
  font: 600 1.26rem/1.24 var(--display);
  cursor: pointer;
}
.response-submit:hover { background: #e4c58f; }
.response-form .response-help {
  margin: -.55rem 0 0;
  color: #f1e9d8;
  font: 400 .83rem/1.45 var(--prose);
  text-align: center;
}
.back-to-rsvp {
  border: 0;
  background: transparent;
  color: #fff9ed;
  min-height: 2.75rem;
  margin-top: 1rem;
  padding: .35rem .5rem;
  font: 500 .9rem/1.4 var(--body);
  text-decoration: underline;
  text-underline-offset: .24em;
  cursor: pointer;
}
.response-result { display: grid; gap: .55rem; padding-top: .85rem; border-top: 1px solid #d4e0ed6c; }
.response-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.response-actions .action { margin: .16rem 0 0; background: #f5e8cf; border-color: #f5e8cf; color: #192c42; }
.response-actions .action-outline { background: transparent; color: #fff9ed; }
.response-result .response-status { margin: 0; font: 400 .86rem/1.4 var(--prose); }
.response-status:empty { display: none; }
@media (min-width: 48rem) {
  :root {
    --section-space: clamp(6.8rem, 10.8vw, 10rem);
    --measure: 46ch;
  }

  .letter { padding-top: clamp(1.5rem, 4vw, 4.5rem); }
  .invitation-art { width: min(100%, 37.5rem); }
  .invitation-art img {
    mask-image:
      linear-gradient(to right, transparent, black 10%, black 90%, transparent),
      linear-gradient(to bottom, transparent, black 6%, black 97%, transparent);
    mask-composite: intersect;
  }
  .note {
    width: min(calc(100% - 2.15rem), 38rem);
    margin-top: clamp(3.5rem, 5vw, 4.7rem);
    padding: 2.85rem clamp(2rem, 5vw, 3.2rem);
  }
  .note .seal { width: 3rem; height: 3rem; font-size: 1.2rem; }

  .families, .ceremony-families { max-width: 32rem; }
  .closing-mark { margin-bottom: .65em; }
}

.entering .reveal { animation: rise .8s both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .envelope img { transition: none; }
  .opened .envelope img { transform: none; }
  .opened .mini-letter, .entering .reveal { animation: none; }
}

.music-toggle {
  position: fixed;
  z-index: 4;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 3.3rem;
  height: 3.3rem;
  padding: 0;
  border: 1px solid #9cbbd4;
  border-radius: 50%;
  background: linear-gradient(145deg, #507991, #214663 67%);
  color: #fff;
  box-shadow: 0 6px 20px #19394f59, inset 0 0 0 4px #ffffff21;
  cursor: pointer;
}
.music-bars {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 1.3rem;
}
.music-bars i {
  width: 4px;
  height: var(--bar-height);
  border-radius: 99px;
  background: currentColor;
  transform-origin: bottom;
}
.music-bars i:nth-child(1) { --bar-height: .52rem; --beat-offset: -.28s; }
.music-bars i:nth-child(2) { --bar-height: .33rem; --beat-offset: -.65s; }
.music-bars i:nth-child(3) { --bar-height: .81rem; --beat-offset: -.12s; }
.music-bars i:nth-child(4) { --bar-height: 1.12rem; --beat-offset: -.45s; }
.music-toggle.is-playing .music-bars i {
  animation: music-beat .9s ease-in-out var(--beat-offset) infinite alternate;
}
@keyframes music-beat {
  from { transform: scaleY(.43); }
  to { transform: scaleY(1.12); }
}
.music-status {
  position: fixed;
  z-index: 4;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 3.8rem);
  max-width: calc(100vw - 2rem);
  margin: 0;
  padding: .42rem .7rem;
  background: var(--navy);
  color: white;
  border-radius: .35rem;
  font-size: .8rem;
}
.music-status:empty { padding: 0; }
@media (prefers-reduced-motion: reduce) {
  .music-toggle.is-playing .music-bars i { animation: none; }
}
