@font-face {
  font-family: 'RIDIBatang';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/ridibatang.woff2") format('woff2');
}

@font-face {
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/crimson-pro-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/crimson-pro-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Noto Serif';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/noto-serif-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Noto Serif';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/noto-serif-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/playfair-display-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/playfair-display-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f2ece6;
  --ink: #292620;
  --accent: #964b00;
  --muted: #736a62;
  --rule: #ded3c7;
  --serif: RIDIBatang, "Noto Serif", Georgia, serif;
  --label: "Crimson Pro", Georgia, serif;
  --display: "Playfair Display", "Noto Serif", Georgia, serif;
  color: var(--ink);
  font: 400 15px/1.65 var(--serif);
}

@font-face {
  font-family: Rufina;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/rufina-story.woff2") format("woff2");
  unicode-range: U+0020, U+0041, U+0045, U+0048, U+004E-004F, U+0052-0054, U+0057, U+0059;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; }
h1, h2, h3, p, ol, figure { margin: 0; }
a { color: var(--accent); }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
button { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip:not(:focus), .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; padding: 8px; z-index: 20; background: white; }

.invitation { width: min(100%, 450px); margin: auto; position: relative; isolation: isolate; background: var(--paper) url("assets/loi-hua-mua-he/paper.webp") center top / 20% auto repeat; }
.invitation:focus { outline: none; }
body.opening-active { overflow: hidden; }
.opening {
  --seal-size: clamp(123px, 33vw, 168px);
  --opening-type: "Avenir Next", Avenir, Helvetica, Arial, sans-serif;
  --opening-glow: 0 0 1px #f1ede2, 0 0 6px #f1ede2, 0 0 14px #f1ede2bf;
  --fold-ease: cubic-bezier(.42, 0, .2, 1);
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  isolation: isolate;
  background: #e2dac4;
  color: #635a42;
}
.opening-art, .opening-panel, .opening-seams, .opening-hinge {
  position: absolute;
  inset: 0;
}
.opening-art { pointer-events: none; }
.opening-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/swanmere-reverie/handmade-paper.webp") center / cover repeat;
  mix-blend-mode: soft-light;
  opacity: .12;
}
.opening-panel {
  background: #d8b7ad url("assets/swanmere-reverie/envelope-rosewater-pressed-silk-v3.webp") center / cover no-repeat;
}
.opening-panel-top {
  clip-path: polygon(0 0, 100% 0, 50% 55%);
  transform-origin: top;
  filter: drop-shadow(0 3px 2px #40342330);
}
.opening-panel-left {
  clip-path: polygon(0 0, 54% 50%, 0 100%);
  filter: drop-shadow(3px 0 2px #4034232b);
}
.opening-panel-right {
  clip-path: polygon(100% 0, 46% 50%, 100% 100%);
  filter: drop-shadow(-3px 0 2px #4034232b);
}
.opening-panel-bottom {
  clip-path: polygon(0 100%, 50% 45%, 100% 100%);
  filter: drop-shadow(0 -3px 2px #4034232b);
}
.opening-seams {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23786c58' stroke-opacity='.56' stroke-width='.18' vector-effect='non-scaling-stroke'%3E%3Cpath d='M0 0 50 55 100 0M0 100 50 45 100 100'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: .56;
}
.opening-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--seal-size);
  transform: translate(-50%, -50%) rotate(-5deg);
  filter: drop-shadow(0 12px 14px #34141247);
}
.opening-greeting {
  position: absolute;
  inset-inline: 22px;
  bottom: max(78px, calc(env(safe-area-inset-bottom) + 66px));
  text-align: center;
  text-shadow: var(--opening-glow);
  pointer-events: none;
}
.opening-for {
  margin-bottom: 10px;
  font: 600 clamp(11px, 3vw, 14px)/1.45 var(--opening-type);
  letter-spacing: .22em;
  text-transform: uppercase;
}
#opening-title {
  font: italic 400 clamp(27px, 7.5vw, 42px)/1 Didot, "Bodoni 72", Georgia, serif;
  letter-spacing: .02em;
  overflow-wrap: anywhere;
}
.open-letter {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--seal-size);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
  touch-action: manipulation;
}
.open-letter span {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  font: 620 12px/1.6 var(--opening-type);
  letter-spacing: .18em;
  text-shadow: var(--opening-glow);
  text-transform: uppercase;
  white-space: nowrap;
}
.opening.is-opening .opening-panel-top { animation: open-petal-top 1400ms var(--fold-ease) both; }
.opening.is-opening .opening-panel-left { --petal-exit: translateX(-108%); animation: open-petal 1450ms var(--fold-ease) 400ms both; }
.opening.is-opening .opening-panel-right { --petal-exit: translateX(108%); animation: open-petal 1450ms var(--fold-ease) 490ms both; }
.opening.is-opening .opening-panel-bottom { --petal-exit: translateY(108%); animation: open-petal 1550ms var(--fold-ease) 850ms both; }
.opening.is-opening .opening-seams,
.opening.is-opening .opening-greeting,
.opening.is-opening .open-letter { animation: opening-fade 400ms ease both; }
.opening.is-opening .open-letter { pointer-events: none; }
.opening.is-opening .opening-hinge { animation: lift-seal 1500ms ease-in both; }
.opening.is-opening {
  background: transparent;
  animation: opening-fade 350ms ease-in-out 2050ms both;
}
@keyframes open-petal-top {
  from { transform: perspective(900px) rotateX(0deg); }
  69% { opacity: 1; transform: perspective(900px) rotateX(76deg) translateY(-8%); }
  to { opacity: 0; transform: perspective(900px) rotateX(88deg) translateY(-58%); }
}
@keyframes open-petal { to { transform: var(--petal-exit); opacity: 0; } }
@keyframes opening-fade { to { opacity: 0; } }
@keyframes lift-seal {
  40% { transform: none; opacity: 1; }
  85% { transform: translateY(-39.5%) scaleY(.14); opacity: 1; }
  to { transform: translateY(-53%) scaleY(.03); opacity: 0; }
}
@media (max-height: 520px) {
  .opening { --seal-size: min(123px, 26dvh); }
  .opening-for { margin-bottom: 4px; }
  #opening-title { font-size: 23px; }
}
.music-dock { height: 0; position: sticky; top: 0; z-index: 5; text-align: right; }
.music { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 5px 6px 0 0; border: 0; border-radius: 50%; padding: 0; background: #2b211fdb; color: white; touch-action: manipulation; }
.music-bars { display: flex; align-items: center; justify-content: center; gap: 2px; width: 14px; height: 14px; }
.music i { width: 2px; height: 2px; border-radius: 2px; background: currentColor; }
.music[aria-pressed="true"] { background: #2b211fa1; }
.music[aria-pressed="true"] i { animation: equalize 720ms alternate infinite; }
.music i:nth-child(2) { animation-delay: -200ms !important; }
.music i:nth-child(3) { animation-delay: -400ms !important; }
.music i:nth-child(4) { animation-delay: -100ms !important; }
@keyframes equalize { to { height: 10px; } }

.hero { padding-bottom: 19px; }
.clip-definition { position: absolute; }
.hero-photo-frame { width: 100%; aspect-ratio: 4 / 5; overflow: hidden; clip-path: url("#hero-curve"); }
.hero-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transform: scale(1.4); transform-origin: 50% 35%; }
.hero-title { position: relative; margin: -16% auto 0; width: 90%; line-height: 1; }
.hero-title img { width: 100%; }
.hero-names { display: flex; justify-content: space-between; padding: 8px 4.4%; color: #333; font: 400 17px/1.3 var(--display); }
.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  min-width: 44px;
  margin: 14px auto 0;
  color: #835537;
  font: 400 13px/1.3 var(--label);
  text-decoration: none;
  touch-action: manipulation;
  transition: opacity 200ms ease, visibility 200ms;
}
.hero-scroll-hand { animation: hero-swipe-up 1.65s ease-in-out infinite; }
.hero-scroll.is-dismissed { opacity: 0; visibility: hidden; pointer-events: none; }
.hero-scroll.is-dismissed .hero-scroll-hand { animation: none; }
@keyframes hero-swipe-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.section { padding: 72px clamp(22px, 7.1%, 32px) 0; text-align: center; }
.section-head { margin-bottom: 30px; }
.section-head h2 { color: var(--accent); font: 400 20px/1.45 var(--serif); }
.intro { padding-top: 60px; }
.section-copy { color: #4d4c4c; line-height: 1.7; margin-inline: auto; max-width: 35ch; }
.section-copy p + p { margin-top: 18px; }
#guest { color: var(--accent); }
.section-photo { margin-top: 34px; }
.section-photo > img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 9px; }
.action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: min(188px,100%); min-height: 46px; padding: 9px 16px; border: 0; border-radius: 10px; background: #fff; color: #403a35; font-size: 14px; text-decoration: none; }
.action img { width: 15px; height: 15px; object-fit: contain; }
.rsvp .action { margin-top: 33px; }
.action:hover { background: #faf5ef; }

.family { padding-top: 100px; }
.family .section-head h2 { text-transform: uppercase; }
.two-families { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.two-families > div { padding-inline: clamp(4px, 1.6vw, 8px); }
.two-families > div + div { border-left: 1px solid var(--rule); }
.two-families p { color: var(--muted); font-size: 13px; }
.two-families strong {
  display: block;
  margin-top: 5px;
  font-size: clamp(11px, 3.7vw, 14px);
  line-height: 1.75;
  white-space: nowrap;
}
.announcement { margin-top: 36px; font-size: 12px; line-height: 1.8; letter-spacing: .11em; text-transform: uppercase; }
.full-names { display: grid; justify-items: center; margin-top: 24px; color: #835537; font: 400 clamp(25px, 8.5vw, 39px)/1.18 var(--display); letter-spacing: .015em; }
.full-names .join { color: #94897f; font: 400 20px/1 var(--serif); margin-block: 10px; }

.profiles { padding-top: 110px; }
.profile { display: grid; grid-template-columns: minmax(0,1fr) clamp(88px, 27vw, 120px); gap: 22px; align-items: center; text-align: left; padding: 0 12px; }
.profile + .profile { grid-template-columns: clamp(88px, 27vw, 120px) minmax(0,1fr); text-align: right; margin-top: 28px; }
.profile + .profile .profile-portrait { grid-column: 1; grid-row: 1; }
.profile + .profile > div { grid-column: 2; grid-row: 1; }
.profile-portrait { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.profile-portrait-groom { --portrait-width: 185%; --portrait-x: 35%; --portrait-y: 31%; }
.profile-portrait-bride { --portrait-width: 405%; --portrait-x: 42%; --portrait-y: 39%; }
.profile-portrait img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--portrait-width);
  max-width: none;
  transform: translate(calc(-1 * var(--portrait-x)), calc(-1 * var(--portrait-y)));
}
.profile p { font: 400 14px/1.3 var(--label); }
.profile h3 { margin-top: 4px; font: 400 21px/1.25 var(--serif); }

#lich-cuoi { padding-top: 112px; }
.ceremony h3 { font: 400 15px/1.4 var(--serif); letter-spacing: .1em; text-transform: uppercase; }
.ceremony-hour { display: block; margin-top: 17px; font-size: 20px; }
.date-row { margin-top: 10px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.date-row strong { font: 400 56px/1 var(--serif); padding-inline: 17px; border-inline: 1px solid var(--rule); }
.date-year { margin-top: 12px; color: var(--muted); letter-spacing: .12em; font-size: 13px; }
.lunar { margin-top: 20px; color: var(--muted); font-size: 13px; }
.portrait-break { margin: 96px clamp(22px, 7.1%, 32px) 0; }
.portrait-break img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 9px; }

.itinerary { padding-top: 112px; }
.timeline { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-rows: 31px 23px 28px; justify-items: center; min-width: 0; }
.timeline img { width: 30px; height: 29px; object-fit: contain; }
.timeline time { grid-row: 2; align-self: center; font-size: 11px; }
.timeline span { grid-row: 3; width: 100%; border-top: 1px solid #bdb3a7; padding: 9px 3px 0; font: 400 9px/1.2 var(--serif); text-transform: uppercase; }
.calendar { padding-top: 100px; }
.calendar h2 { font: 400 22px/1.4 var(--serif); }
.calendar h2 + p { margin-top: 8px; }
.calendar-table { border-collapse: collapse; table-layout: fixed; width: min(100%, 295px); margin: 34px auto 0; }
.calendar-table th, .calendar-table td { height: 38px; font-size: 13px; font-weight: 400; }
.calendar-table th:first-child, .calendar-table td:first-child { color: var(--accent); }
.wedding-day { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: white; }
.countdown { display: flex; justify-content: center; margin-top: 43px; }
.countdown > div { position: relative; min-width: 52px; }
.countdown > div + div::before { content: ":"; position: absolute; left: -2px; bottom: 2px; color: var(--muted); }
.countdown span { display: block; color: var(--muted); font-size: 11px; }
.countdown strong { display: block; color: #333; font: 400 20px/1.5 var(--display); }
#count-label { margin-top: 9px; color: #564a41; font-size: 13px; }

.middle-photo { margin: 70px clamp(22px, 6.3%, 28px) 0; }
.middle-photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; mask-image: linear-gradient(transparent, black 16%, black 82%, transparent); }
.location { padding-top: 105px; }
.location h3 { font: 400 17px/1.4 var(--serif); }
.venue { margin: 14px auto 21px; font-size: 14px; }
.venue strong { font-weight: 400; text-transform: uppercase; }
.location iframe { display: block; width: 100%; height: 180px; border: 0; border-radius: 6px; background: #e7ded2; }
.directions { display: inline-flex; margin-top: 18px; align-items: center; justify-content: center; min-height: 38px; padding: 5px 19px; border: 1px solid #b79170; background: #ebdac9; border-radius: 32px; color: #784520; font-size: 13px; text-decoration: none; }

.story { position: relative; margin-top: 129px; padding: 0 clamp(28px, 10%, 49px); text-align: center; }
.story-frame { position: relative; container-type: inline-size; }
.story-photo { width: 100%; aspect-ratio: 345 / 359; object-fit: cover; object-position: center 30%; }
.story-deco {
  position: relative;
  pointer-events: none;
  color: #1d1d1d;
  font-family: Rufina, Georgia, serif;
  font-size: clamp(22px, 9.5vw, 44px);
  font-size: 12.5cqi;
  line-height: 1;
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
}
.story-top { margin-bottom: -3%; }
.story-bottom { margin-top: -2%; letter-spacing: .09em; }
.story-dates { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 10px; font-size: 12px; }
.story-dates span:nth-child(2) { width: 94px; height: 1px; background: #bfb7ac; }
.gallery { padding: 86px 0 0; }
.gallery .section-head { padding-inline: 18px; margin-bottom: 26px; }
.carousel { margin-inline: clamp(16px, 6%, 27px); }
.gallery-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 8px; touch-action: manipulation; }
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-strip button { flex: 0 0 100%; min-width: 0; aspect-ratio: 4 / 5; padding: 0; border: 0; background: #e4d9cf; overflow: hidden; scroll-snap-align: center; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; }
.gallery-strip button:focus-visible { outline-offset: -3px; }
.carousel-thumbs { position: relative; display: flex; gap: 6px; overflow-x: auto; margin-top: 9px; padding-block: 3px; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; touch-action: manipulation; }
.carousel-thumbs button { flex: 0 0 46px; height: 46px; border: 2px solid transparent; border-radius: 5px; background: transparent; padding: 2px; }
.carousel-thumbs button[aria-current="true"] { border-color: var(--accent); }
.carousel-thumbs button:focus-visible { outline-offset: -2px; }
.carousel-thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 17px; margin-top: 13px; }
.carousel-controls button { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--rule); border-radius: 50%; color: var(--accent); background: #fff8; }
.carousel-controls button:disabled { cursor: default; opacity: .42; }
.carousel-controls button, .lightbox button { touch-action: none; }
.carousel-icon { display: grid; place-items: center; width: 16px; height: 16px; }
.carousel-icon::before { content: ""; display: block; box-sizing: border-box; }
.carousel-chevron::before { width: 8px; height: 8px; border-top: 2px solid; border-right: 2px solid; transform: translateX(-1px) rotate(45deg); }
#carousel-prev .carousel-chevron::before { transform: translateX(1px) rotate(-135deg); }
.carousel-playback::before { width: 9px; height: 12px; border-inline: 2px solid; }
#carousel-autoplay[data-playing="false"] .carousel-playback::before { width: 12px; height: 14px; border: 0; background: currentColor; clip-path: polygon(15% 0, 100% 50%, 15% 100%, 15% 0, 31% 25%, 31% 75%, 71% 50%, 31% 25%); }

.gifts { padding-top: 76px; }
.gifts-panel { max-width: 310px; margin: 28px auto 0; }
.gift-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--rule); border-radius: 30px; background: #e9ded3; }
.gift-tabs button { min-height: 44px; border: 0; border-radius: 28px; color: #5d4d40; background: transparent; }
.gift-tabs button[aria-selected="true"] { background: #fff; color: var(--accent); box-shadow: 0 1px 3px #47362119; }
.gift-recipient { margin-top: 16px; padding: 20px 16px; border: 1px solid var(--rule); border-radius: 10px; background: #fff9; }
.gift-recipient h3 { margin-bottom: 8px; color: var(--accent); font-size: 16px; font-weight: 400; }
.gift-recipient img { width: min(100%, 250px); margin: 14px auto 0; border-radius: 5px; background: #fff; }
.gift-recipient p { color: var(--muted); font-size: 13px; }
.rsvp { padding-top: 115px; padding-bottom: 80px; }

.closing { padding: 0 clamp(22px, 7.1%, 32px) 72px; text-align: center; }
.closing > img { width: 100%; height: auto; border-radius: 9px; }
.closing-copy { padding-top: 35px; color: #4d4c4c; font-family: var(--display); }
.closing-copy p + p { margin-top: 15px; }
.closing-copy p:last-child { color: var(--accent); }

dialog { width: min(100% - 24px, 426px); padding: 20px; border: 0; border-radius: 12px; color: var(--ink); }
dialog::backdrop { background: #211a16a0; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dialog-head h2 { color: var(--accent); font-size: 20px; font-weight: 400; }
.dialog-head button, .lightbox button { min-height: 44px; min-width: 40px; border: 0; background: transparent; font-size: 26px; }
dialog h3 { margin-top: 16px; font-size: 15px; }
form { display: grid; gap: 14px; }
form label { display: block; }
input:not([type="radio"]), textarea { display: block; box-sizing: border-box; width: 100%; margin-top: 4px; padding: 8px; border: 1px solid #cbbdae; border-radius: 5px; }
form fieldset { margin: 0; border: 1px solid #cbbdae; border-radius: 5px; }
form .action { background: #f3e7d9; }
.form-note { color: var(--muted); font-size: 13px; }
.rsvp-panel { width: min(100%,450px); height: 100dvh; max-height: 100dvh; margin-block: auto; border-radius: 0; background: #f2ece6; }
.rsvp-panel::backdrop { background: #fff9; }
.rsvp-panel .dialog-head { display: grid; grid-template-columns: 1fr auto 1fr; }
.rsvp-panel .dialog-head h2 { grid-column: 2; color: var(--ink); font: 400 18px/1.4 system-ui,sans-serif; text-align: center; }
.rsvp-panel .dialog-head button { grid-column: 3; justify-self: end; }
.rsvp-panel > .form-note, .rsvp-panel form > .form-note { text-align: center; }
.rsvp-panel form { margin-top: 24px; gap: 20px; font: 400 13px/1.4 system-ui,sans-serif; }
.rsvp-panel form fieldset { padding: 0; border: 0; }
.rsvp-panel .attendance { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.attendance label { display: flex; align-items: center; padding: 8px 6px; min-height: 44px; border: 1px solid var(--rule); border-radius: 6px; line-height: 1.2; }
.rsvp-panel input:not([type="radio"]), .rsvp-panel textarea { border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; padding-inline: 0; background: transparent; }
.rsvp-panel form .action { border: 1px solid var(--rule); background: #fff6; }
.lightbox { background: #28201a; color: #fff; width: min(100% - 12px, 680px); padding: 48px 42px 12px; text-align: center; }
.lightbox img { max-height: 75dvh; margin-inline: auto; object-fit: contain; }
.lightbox button { position: absolute; color: #fff; }
.lightbox [data-close] { right: 4px; top: 3px; }
.lightbox-prev { left: 2px; top: 48%; }
.lightbox-next { right: 2px; top: 48%; }
#photo-count { margin-top: 8px; }

.reveal-ready [data-reveal]:not(.shown):not(:focus-within) { opacity: 0; }
.reveal-ready [data-reveal].shown:not(:focus-within) { animation: fade-up 800ms ease-in-out both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(100px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-scroll { transition: none; }
  .hero-scroll-hand { animation: none; }
  .music[aria-pressed="true"] i, .reveal-ready [data-reveal].shown { animation: none !important; }
  .opening.is-opening, .opening.is-opening * { animation: none !important; }
  .reveal-ready [data-reveal]:not(.shown):not(:focus-within) { opacity: 1; }
}
