:root {
  color-scheme: light;
  --wine: #4a1427;
  --wine-deep: #2f0d1b;
  --paper: #faf4e9;
  --paper-dark: #efe4d4;
  --ink: #522735;
  --gold: #b99967;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Be Vietnam Pro", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: #271019; }
body {
  container: invitation / inline-size;
  margin: 0 auto;
  width: min(100%, 430px);
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.65 var(--sans);
  box-shadow: 0 0 70px #100208aa;
}
[hidden] { display: none !important; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, [tabindex="0"]:focus-visible {
  outline: 3px solid #d7b775;
  outline-offset: 4px;
}
main { overflow: clip; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
.section-kicker, .kicker {
  font: 600 .75rem/1.5 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.section-kicker::after { content: ""; display: block; width: 29px; height: 1px; margin: 9px auto 0; background: currentColor; opacity: .65; }
.photo-cover { min-height: 100svh; background: var(--wine-deep); color: var(--paper); position: relative; overflow: hidden; }
.photo-cover::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, #19041148 0%, transparent 35%, #2f0d1b36 52%, #2f0d1be8 76%, var(--wine-deep) 90%); pointer-events: none; }
.photo-cover::after { content: ""; position: absolute; z-index: 3; inset: 13px; border: 1px solid #d0a87885; pointer-events: none; }
.hero-photo { display: block; width: 100%; height: 78svh; min-height: 370px; object-fit: cover; object-position: 51% 39%; }
.hero-monogram { position: absolute; z-index: 3; top: 25px; left: 50%; transform: translateX(-50%); color: #fff1dc; font: 500 1.15rem/1 var(--serif); letter-spacing: .18em; text-shadow: 0 2px 12px #260610; white-space: nowrap; }
.hero-monogram i { color: #dfbb87; font-size: .62em; padding: 0 .4em; }
.photo-title { position: absolute; z-index: 2; inset: auto 0 0; min-height: 270px; height: 44%; padding: 24px 20px 76px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.photo-title h1 { display: flex; flex-direction: column; color: #fff8ed; font-size: clamp(3rem, 14cqw, 4.2rem); line-height: .84; letter-spacing: -.045em; margin: .5rem 0 .7rem; text-shadow: 0 4px 24px #14040e9c; }
.photo-title h1 i { font-size: .58em; font-weight: 400; color: #e1bb83; margin: .08em; }
.photo-title h1:focus { outline: none; }
.photo-title time { font: 500 .9rem/1.5 var(--sans); letter-spacing: .2em; color: #ead3af; }
.hero-recipient { max-width: 330px; margin-top: 12px; color: #fff3db; font: 500 .82rem/1.4 var(--sans); text-shadow: 0 2px 8px #210917; }
.hero-recipient span { display: block; color: #e9c58d; font: 500 1.55rem/1.05 var(--serif); overflow-wrap: anywhere; }
.photo-cover.has-guest .photo-title { height: 53%; }
.photo-cover.has-long-guest .hero-recipient span { font-size: 1.35rem; }
.scroll-cue { position: absolute; z-index: 3; bottom: 1.5rem; left: 0; right: 0; text-align: center; font: 400 .75rem/1.2 var(--sans); letter-spacing: .06em; color: #e3cab4; }
.formal-invite { position: relative; isolation: isolate; overflow: hidden; padding: 82px 32px 78px; min-height: 690px; display: flex; flex-direction: column; justify-content: center; text-align: center; background: radial-gradient(circle at 50% 0, #fffdf7, var(--paper) 72%); }
.formal-invite::before { content: ""; position: absolute; inset: 15px; z-index: 1; border: 1px solid #cdb28d99; pointer-events: none; }
.date-watermark { position: absolute; z-index: 0; top: -34px; right: -17px; color: #c4a17521; font: 500 16rem/.8 var(--serif); pointer-events: none; }
.formal-invite > :not(.date-watermark) { position: relative; z-index: 2; }
.formal-invite .section-kicker { color: #9d7446; }
.formal-invite h2 { font-size: 3.45rem; line-height: 1.02; color: var(--wine); margin: 8px 0 4px; }
.rule { color: var(--gold); display: flex; align-items: center; gap: 14px; margin: 10px 0 22px; }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: #cbb68e; }
.full-names { color: #6a3140; font: 500 2.08rem/1.02 var(--serif); }
.full-names i { color: #b39661; font-size: 1.25em; }
.invite { margin: 22px auto 28px; max-width: 20rem; font: italic 500 1.45rem/1.25 var(--serif); color: #694b47; }
.invite-location { margin-top: 20px; color: var(--wine); font: 600 .8rem/1.55 var(--sans); }
.invite-location span { color: #967252; font-weight: 500; }
.date-card { display: grid; grid-template-columns: 1fr auto 1fr; gap: 9px; align-items: center; border: 1px solid #c7ad83; padding: 15px 7px; background: #fffcf5; box-shadow: 0 13px 28px #8f643b13; color: var(--wine); }
.date-card span { font: 500 .875rem/1.5 var(--sans); }
.date-card strong { font: 500 4.2rem/.9 var(--serif); border-inline: 1px solid #cbb68e; padding: 0 13px; }
.lunar { margin-top: 16px; font: italic 1.2rem/1.2 var(--serif); }
.countdown { position: relative; padding: 57px 20px 58px; border-block: 1px solid #bb9568; background: radial-gradient(circle at 50% 0, #743044, #3a1022 75%); color: #fff8e9; text-align: center; }
.countdown::before { content: ""; position: absolute; inset: 12px; border: 1px solid #c5a16d8c; pointer-events: none; }
.countdown-kicker { color: #ebcd9d; font: 600 .68rem/1.5 var(--sans); letter-spacing: .17em; text-transform: uppercase; }
.countdown h2 { margin-top: 7px; color: #fff7e9; font: italic 500 2.8rem/1 var(--serif); }
.countdown-clock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 350px; margin: 30px auto 18px; }
.countdown-clock span + span { border-left: 1px solid #d2ad7b91; }
.countdown-clock strong { display: block; color: #fff8e9; font: 600 clamp(1.8rem, 8.3cqw, 2.35rem)/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.06em; }
.countdown-clock small { display: block; margin-top: 11px; color: #e5cba9; font: 500 .68rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.countdown-ended { margin: 29px auto 18px; color: #fff8e9; font: italic 500 2.2rem/1.1 var(--serif); }
.countdown-date { color: #e7cfb4; font: 400 .78rem/1.5 var(--sans); }
.countdown-date strong { color: #fff8e9; font-weight: 600; }
.countdown-venue { max-width: 310px; margin: 7px auto 0; color: #f2d6ad; font: 500 .78rem/1.5 var(--sans); }
@media (max-width: 350px) { .countdown h2 { font-size: 2.35rem; } .countdown-clock strong { font-size: 1.8rem; } }
.album { background: linear-gradient(#32101f, #210a15); color: var(--paper); padding: 0 0 14px; }
.album-heading { text-align: center; padding: 43px 10px 28px; }
.album-heading .section-kicker { color: #d6b891; }
.album h2 { color: var(--paper); font-size: 3.65rem; line-height: .9; font-style: italic; }
.album-hint { margin-top: 15px; color: #d7c3b1; font: 400 .76rem/1.5 var(--sans); letter-spacing: .04em; }
.prints { display: flex; width: 100%; overflow-x: auto; gap: 0; padding: 0; scroll-snap-type: x mandatory; scroll-padding: 0; scrollbar-width: none; }
.prints::-webkit-scrollbar { display: none; }
.prints figure { position: relative; isolation: isolate; flex: 0 0 100%; height: min(72svh, 640px); min-height: 460px; overflow: hidden; background: #431426; scroll-snap-align: start; scroll-snap-stop: always; }
.prints a { display: block; position: absolute; inset: 0; overflow: hidden; }
.prints img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 39%; }
.prints figcaption { position: absolute; z-index: 3; inset: auto 0 0; padding: 25% 8% 6%; pointer-events: none; background: linear-gradient(transparent, #260917df); color: #fff9ed; text-align: left; font: italic 500 3.5rem/1 var(--serif); }
.slide-index { position: absolute; z-index: 4; top: 24px; right: 25px; padding: 6px 9px; border: 1px solid #f6ddbb9e; background: #2f0d1b9c; color: #fff5e2; font: 500 .66rem/1 var(--sans); letter-spacing: .16em; }
.prints figure:first-child::after { content: ""; position: absolute; z-index: 2; inset: 14px; border: 1px solid #ead3acb3; pointer-events: none; }
.prints figure:first-child img { object-position: center 32%; }
.prints figure:nth-child(2) { background: radial-gradient(ellipse at 50% 0, #fff4e4, #d9bd9c); }
.prints figure:nth-child(2) a { inset: 6% 10% 18%; border: 3px double #b78d5e; border-radius: 49% 49% 1px 1px; box-shadow: 0 16px 24px #5f361b50; }
.prints figure:nth-child(2) .slide-index { background: #fff7eecb; color: var(--wine); border-color: #b78d5e; }
.prints figure:nth-child(2) figcaption { text-align: center; background: none; padding: 0 0 5%; color: var(--wine); }
.prints figure:nth-child(3) { background: radial-gradient(circle at 50% 30%, #8d3a4f, #3c0d1c 80%); }
.prints figure:nth-child(3) a { inset: 7% 12% 18%; border: .6rem solid #fff4e4; transform: rotate(-3deg); box-shadow: .3rem .9rem 1.4rem #1c0410a6; }
.prints figure:nth-child(3) figcaption { text-align: right; background: none; padding: 0 7% 5%; }
.slide-controls { display: flex; justify-content: center; align-items: center; gap: 1.4rem; padding: 1rem 0 .45rem; }
.slide-controls button { width: 48px; height: 48px; background: transparent; border: 1px solid #b59168; border-radius: 50%; color: #f7e7d0; cursor: pointer; font: 2rem/1 var(--serif); }
.slide-count { min-width: 48px; text-align: center; font: 500 .8rem/1 var(--sans); letter-spacing: .12em; }
.album.scroll-album { padding: 0; overflow-anchor: none; }
.scroll-album .album-stage { display: flex; flex-direction: column; height: 100svh; overflow: hidden; }
.scroll-album .album-heading { flex: none; }
.scroll-album .prints { flex: 1; min-height: 0; overflow: hidden; scroll-snap-type: none; touch-action: pan-y; }
.scroll-album .prints figure { height: 100%; min-height: 0; }
.scroll-album .slide-controls { flex: none; padding: .7rem 0; }
.slide-controls button:disabled { opacity: .35; cursor: default; }
@media (max-height: 700px) {
  .scroll-album .album-heading { padding: 20px 10px 12px; }
  .scroll-album h2 { font-size: 3rem; }
  .scroll-album .album-hint { margin-top: 8px; }
  .scroll-album .slide-controls { padding: .35rem 0; }
}
.schedule { position: relative; padding: 68px 30px 72px; background: radial-gradient(circle at 50% 0, #fffdf6, #f1e5d5 78%); color: var(--wine); text-align: center; }
.schedule::before { content: ""; position: absolute; inset: 13px; border: 1px solid #cfb48e; pointer-events: none; }
.schedule .section-kicker { color: #9c7153; }
.schedule h2 { margin-top: 10px; color: var(--wine); font-size: 3.35rem; line-height: .84; }
.schedule h2 i { color: #9a6152; font-weight: 400; }
.timeline { display: grid; gap: 13px; max-width: 350px; margin: 41px auto 0; padding: 0; list-style: none; text-align: left; }
.timeline li { display: grid; grid-template-columns: 81px minmax(0, 1fr); gap: 14px; align-items: center; min-height: 105px; padding: 18px 15px; border: 1px solid #d3b593; border-left: 3px solid #b99166; background: #fffaf1; box-shadow: 0 10px 25px #6a3b2717; }
.timeline li:last-child { border-color: #b99166; background: linear-gradient(135deg, #612237, #3c1022); box-shadow: 0 14px 28px #42152636; }
.timeline time { display: flex; align-items: center; justify-content: center; align-self: stretch; padding-right: 12px; border-right: 1px solid #d5b796; color: #9b5c4c; font: 600 1.15rem/1.2 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.timeline h3 { color: var(--wine); font: 500 2.05rem/.95 var(--serif); }
.timeline p { margin-top: 7px; color: #785e5e; font: 400 .83rem/1.45 var(--sans); }
.timeline li:last-child time { border-color: #cda880; color: #f3d5a5; }
.timeline li:last-child h3 { color: #fff8eb; }
.timeline li:last-child p { color: #e8cdbb; }
@media (max-width: 350px) { .schedule { padding-inline: 24px; } .schedule h2 { font-size: 3rem; } .timeline li { grid-template-columns: 73px minmax(0, 1fr); gap: 10px; padding-inline: 11px; } .timeline time { padding-right: 9px; font-size: 1.05rem; } .timeline h3 { font-size: 1.85rem; } }
.reception { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(circle at 50% 0, #793043, var(--wine) 43%, var(--wine-deep)); color: #fff8e9; padding: 80px 28px 82px; text-align: center; outline: 1px solid #b99a67; outline-offset: -12px; }
.reception-watermark { position: absolute; z-index: 0; top: 12px; left: 50%; transform: translateX(-50%); color: #ffebcd14; font: 500 14rem/.85 var(--serif); pointer-events: none; }
.reception > :not(.reception-watermark) { position: relative; z-index: 1; }
.reception::before, .reception::after { content: "✦"; position: absolute; left: 0; right: 0; color: var(--gold); font: 1.5rem/1 var(--serif); }
.reception::before { top: 22px; }.reception::after { bottom: 22px; }
.reception .section-kicker { color: #e1c496; }
.reception h2 { font-size: 3.55rem; line-height: 1.02; margin: 9px 0 24px; color: #fff8e9; }
.gold-rule { width: 64px; height: 1px; background: #d0b180; margin: 0 auto 24px; }
.times { display: grid; grid-template-columns: 1fr 1fr; max-width: 320px; margin: 0 auto; padding: 22px 0; border-top: 1px solid #b88f6e; border-bottom: 1px solid #b88f6e; background: #fff9ed08; }
.times p + p { border-left: 1px solid #b88f6e; }
.times strong { display: block; font: 600 2.3rem/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.04em; color: #fff5e5; }
.times span { display: block; font: 400 .875rem/1.5 var(--sans); color: #e9d1bb; margin-top: 5px; }
.venue { margin-top: 36px; border: 1px solid #d0ae7f; padding: 30px 16px 32px; background: linear-gradient(#fffbf2, #f0e2cc); box-shadow: 0 16px 35px #1c041073; color: var(--wine); }
.venue h3 { color: var(--wine); font-size: 2.65rem; line-height: .98; }
.venue p { font: 400 .875rem/1.6 var(--sans); color: #73575a; margin-top: 11px; }
.venue .hall { color: #8e5145; font-weight: 600; }
.venue-map { display: block; width: calc(100% + 32px); height: 240px; margin: 22px -16px 0; border: 1px solid #c9a97e; background: #e8ddca; }
.venue a { display: inline-block; margin-top: 25px; padding: 13px 17px; border-radius: 28px; background: var(--wine); color: #fff8ed; text-decoration: none; font: 600 .82rem/1.3 var(--sans); }
.venue a:hover { background: #722640; }
.ceremony { position: relative; text-align: center; padding: 78px 24px 82px; background: linear-gradient(#faf4e9, #f3e9db); }
.ceremony .section-kicker { color: #a27754; }
.ceremony h2 { font-size: 3.45rem; line-height: 1.08; color: var(--wine); margin: 4px 0 19px; }
@media (max-width: 350px) { .ceremony h2 { font-size: 2.7rem; } }
.ceremony > p:not(.section-kicker) { font: 400 1rem/1.65 var(--sans); }
.ceremony strong { color: var(--wine); font-size: 1.16rem; }
.families { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 38px; padding: 0 8px; border: 1px solid #c7ad8f; background: #fffaf1; box-shadow: 0 14px 32px #67362917; text-align: center; }
.family { display: flex; flex-direction: column; min-width: 0; padding: 24px 8px 26px; }
.family + .family { border-left: 1px solid #d8c3a5; }
.families h3 { font: 500 1.8rem/1 var(--serif); color: var(--wine); }
.families h3::after { content: "✦"; display: block; margin: 8px auto 0; color: #bb9b70; font: 1rem/1 var(--serif); }
.families .family-names { margin-top: 11px; font: 500 .84rem/1.55 var(--sans); color: #55333a; overflow-wrap: anywhere; }
.families .family-place { margin-top: auto; padding-top: 12px; font: 400 .78rem/1.45 var(--sans); color: #886d67; }
footer { position: relative; background: #f2e5d3; border-top: 1px solid #d4bb99; text-align: center; padding: 51px 30px 68px; }
.closing-rule { display: block; margin: 0 auto 18px; color: #a77f53; font: 1.5rem/1 var(--serif); }
.thanks-art { display: block; width: 70%; max-width: 245px; height: auto; margin: 0 auto 14px; mix-blend-mode: darken; }
footer p { font: italic 500 1.35rem/1.25 var(--serif); color: #694b47; margin: 0 auto 19px; }
footer b { color: var(--wine); font: 500 1.9rem/1 var(--serif); }
.music-toggle { position: fixed; z-index: 10; right: max(14px, calc((100vw - 430px) / 2 + 14px)); bottom: 17px; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid #d5ae77; border-radius: 50%; background: #401425ed; box-shadow: 0 5px 22px #1d0715a6; color: #fff5e6; cursor: pointer; backdrop-filter: blur(8px); }
.music-toggle .music-icon { font: 1.5rem/1 var(--serif); color: #edcc98; }
.music-toggle .music-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.music-toggle:not(.is-playing)::after { content: ""; position: absolute; width: 25px; height: 1px; background: #f7e7d0; transform: rotate(-45deg); box-shadow: 0 1px 2px #401425; }
.music-toggle.is-playing .music-icon { animation: music-glow 1.7s ease-in-out infinite alternate; }
@keyframes music-glow { to { color: #fff7e5; transform: scale(1.17); } }
@media (prefers-reduced-motion: reduce) { .music-toggle.is-playing .music-icon { animation: none; } }
.viewer { border: 1px solid var(--gold); padding: 14px; background: var(--paper); color: var(--wine); width: min(94vw, 404px); max-width: 94vw; max-height: 90svh; }
.viewer::backdrop { background: #190610df; }
.viewer form { text-align: right; margin-bottom: 8px; }
.viewer button { background: var(--wine); color: #fff; border: 0; padding: 8px 13px; font: 500 .8rem var(--sans); cursor: pointer; }
.viewer img { display: block; max-width: 100%; max-height: 70svh; object-fit: contain; margin: auto; }
.viewer p { text-align: center; font: italic 1.3rem var(--serif); margin-top: 8px; }
@media (max-height: 650px) { .photo-title { min-height: 250px; padding-bottom: 64px; } }
