body{background:#fff;font-family:'Times New Roman',serif;font-size:16px}main{max-width:900px;box-shadow:none}section{padding-block:40px}h2{font:700 20px/1.5 'Times New Roman',serif;letter-spacing:0}.hero{padding-top:60px;background-image:linear-gradient(#f4eedece,#f4eedece),url('assets/castle-background.webp')}.envelope-scene{width:80%;max-width:440px;height:510px;margin:45px auto 20px}.hero h1{font-size:64px;margin:45px 0 10px}.hero h1 .ampersand{margin:-5px 0;font-size:60px;line-height:.6}.hero-date,.scroll-hint{display:none}.hero .eyebrow{font-size:16px}.ceremony,.reception-card,.timeline-section{position:relative;background:#511419;color:#ece4d8;border-radius:10px;box-shadow:0 5px 8px #32131732;max-width:560px;margin:15px auto 0;padding:35px 20px;overflow:visible}.ceremony{width:calc(100% - 52px);margin-block:20px 0;padding:35px 20px 40px}.ceremony h2,.timeline-section h2,.reception-card h2{font-size:20px}.families{font-size:14px;margin:30px 10px 35px;gap:20px}.families>div:first-child{border-right:1px solid #ece4d83d;padding-right:20px}.families p:first-child{font-size:12px;letter-spacing:0;opacity:.75}.families p:last-child{font-weight:bold;line-height:1.9}.announcement{font-size:14px;line-height:2}.names{margin:40px 0 35px}.names h3{font-size:50px;color:#ece4d8}.names .ampersand{color:#ece4d8;font-family:'Viaoda Libre',serif;opacity:1;font-size:44px;margin:30px 0}.ceremony-event p{font-size:13px;line-height:1.9}.ceremony-date{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:22px;font-size:14px}.ceremony-date strong{font-size:50px;font-weight:400;line-height:1.2;border-right:1px solid #ece4d85e;padding-right:16px}.ceremony-date span{text-align:left}.ceremony-date span:first-child{text-align:right}.floating-decoration{position:absolute;width:30%;z-index:12;pointer-events:none;transform:translateY(0)}.floating-decoration.right{right:-18%;bottom:8%}.floating-decoration.left{left:-18%;top:7%;width:24%}.floating-decoration img{width:100%;display:block;animation:ornament-float 5.5s ease-in-out infinite}.ceremony .floating-decoration{bottom:28%;right:-22%;width:40%}.timeline-section .floating-decoration{width:30%;bottom:10%;right:-18%}.envelope-photo{animation:photo-float 6.5s .4s ease-in-out infinite}.envelope-flower{animation:flower-float 5s ease-in-out infinite}.album-section{padding-top:40px;background-image:linear-gradient(#f4eedecc,#f4eedecc),url('assets/castle-background.webp')}.album{height:512px}.album-nav{padding-inline:18%}.album-dots{margin-top:20px}.reception{padding:20px 26px 0}.reception-card{margin-top:0;padding:35px 20px 38px}.reception-card h3{font-size:26px;max-width:450px;margin:20px auto 15px}.reception-card>.ornament{display:none}.reception-time{font-size:24px;margin:20px 0 0}.reception-date{gap:17px;font-size:14px;margin:20px 0}.reception-date strong{font-size:54px}.schedule-summary{justify-content:center;gap:55px;font-size:13px;margin-top:30px}.schedule-summary strong{font-size:22px}.calendar-paper{max-width:360px;margin:25px auto 30px;padding:22px 16px 26px}.calendar-month{font-family:'Viaoda Libre',serif;font-style:italic;font-size:24px}.calendar{font-size:14px;gap:5px 0}.calendar .weekday{border-block:1px solid #51141950;font-size:10px;height:30px;margin-bottom:8px}.calendar .chosen{background:transparent;isolation:isolate}.calendar .chosen:after{font-size:34px}.reception-card .calendar-download{margin:30px auto!important;font:14px 'Times New Roman',serif}.reception-card .rsvp-trigger{margin-top:0;padding:9px 25px;font:14px 'Times New Roman',serif;letter-spacing:0}.venue{max-width:620px;margin:auto;padding:45px 36px 25px;background-image:none}.venue h3{font-size:18px}.venue .venue-name{font-size:16px;margin-bottom:0}.venue p{font-size:14px;line-height:1.8}.venue-map{height:310px;margin-top:15px}.directions{font-weight:bold;font-size:16px;margin-top:20px}.dresscode{padding:25px 20px 45px;background:linear-gradient(#f4eedecc,#f4eedecc),url('assets/castle-background.webp') center/cover}.swatches{gap:20px;margin-top:25px}.swatches span{width:48px;height:48px}.timeline-section{width:calc(100% - 52px);padding:35px 20px 25px;margin:15px auto 70px}.timeline{margin:12px 8px 0}.timeline:before{left:47%;border-color:#ece4d880;top:22px;bottom:35px}.timeline>div{min-height:65px;display:grid;grid-template-columns:40% 10% 50%;gap:0}.timeline>div:before{left:calc(47% - 5px);top:26px;width:11px;height:11px;background:#ece4d8;border:2px solid #ece4d855;box-shadow:0 0 0 2px #ece4d820}.timeline time{grid-column:1;text-align:right;font-size:17px;padding-right:15px;line-height:1.4}.timeline>div>span:not(.timeline-icon){position:static;grid-column:3;text-align:left;font-size:14px;padding-left:18px;line-height:1.5}.timeline img{position:absolute;left:14%;width:40px;height:40px}.timeline-icon{display:none}.timeline-section .demo-note{font-size:10px;margin:15px 0 0;opacity:.5}.guestbook{position:relative;max-width:850px;margin:0 auto 35px;padding:35px 30px;background:url('assets/papernote-background.webp') center/100% 100%;border-radius:16px;box-shadow:0 5px 12px #49252915}.guestbook h2{font-size:24px;margin-bottom:25px}.guestbook #wish-form{position:relative}.guestbook input,.guestbook textarea{border:1px solid #a78e7c66;background:#fffaf58c;font-size:15px;padding:12px;resize:vertical}.guestbook textarea{padding-right:40px;min-height:100px}.guestbook input{margin-bottom:12px}.guestbook .button{border-radius:7px;font-size:13px;letter-spacing:.5px;margin-top:12px}.wish-suggestions{position:absolute;right:10px;top:110px;width:30px;height:30px;text-decoration:none;font-size:20px;padding:0;margin:0;display:grid;place-items:center}.guestbook #wish-list{max-height:320px;border-top:0;margin-top:20px;padding:0;scrollbar-width:thin;scrollbar-color:#b08b7a transparent}.guestbook #wish-list article{border-bottom:1px solid #a78e7c33;padding:16px 8px}.guestbook #wish-list article strong{font-size:16px}.wish-meta{display:flex;align-items:center;justify-content:space-between;gap:10px}.wish-meta time{font-size:11px;color:#92796d}.guestbook #wish-list p{font-size:15px;margin:8px 0 0}.thanks{background:none;padding:20px 20px 25px}.thanks h2,.thanks>.ornament,.thanks .thanks-names,.thanks .end-date,footer{display:none}.thanks p{font-size:16px;font-style:italic;margin-bottom:35px}#music-toggle{width:48px;height:48px;right:20px;bottom:70px;border:1px solid #fff8;outline:4px solid #51141920;animation:none!important;font-family:Arial,sans-serif}#music-toggle:after{display:none}.music-bars{display:flex;align-items:center;justify-content:center;gap:3px;height:20px}.music-bars i{display:block;width:3px;height:7px;background:#f6eadc;border-radius:2px}.playing .music-bars i{animation:music-wave .8s ease-in-out infinite alternate}.playing .music-bars i:nth-child(2){animation-delay:.2s}.playing .music-bars i:nth-child(3){animation-delay:.4s}.playing .music-bars i:nth-child(4){animation-delay:.1s}.tools-hidden .scroll-controls{display:none}#restore-tools{right:22px;bottom:15px;width:30px;height:30px;font-size:17px;opacity:.6}.petal,#reading-progress,#floating-wishes{display:none}.dock{z-index:50}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0);white-space:nowrap}.rsvp-dialog{font-family:Arial,sans-serif;background:white;border:0;border-radius:18px;color:#29313b;padding:22px 24px;width:min(450px,94vw)}.rsvp-dialog .close-rsvp{background:#f4f5f6;color:#626975;border-radius:50%;width:32px;height:32px;font-size:23px;line-height:1;margin-bottom:0}.rsvp-dialog #rsvp h2{font:600 20px/1.4 Arial,sans-serif;text-align:left;margin:0 0 8px}.rsvp-dialog #rsvp>p{font:13px/1.6 Arial,sans-serif;color:#85878b;text-align:left;margin-bottom:25px}.rsvp-dialog #rsvp-form{margin:0}.rsvp-dialog #rsvp-form label,.rsvp-dialog legend{font:13px/1.5 Arial,sans-serif;margin-bottom:8px;color:#343d48}.rsvp-dialog input:not([type=radio]),.rsvp-dialog textarea{font:13px Arial,sans-serif;border:1px solid #ececef;border-radius:12px;background:white;padding:14px;color:#29313b}.rsvp-dialog fieldset{margin:20px 0 15px}.rsvp-dialog .attendance-card{display:flex;align-items:center;gap:12px;border:1px solid #e9e9ec;border-radius:12px;background:#fafafb;padding:10px 12px;cursor:pointer;margin:0 0 8px!important}.rsvp-dialog .attendance-card input{position:absolute;opacity:0;width:1px}.attendance-icon{display:grid;place-items:center;border-radius:50%;width:32px;height:32px;background:#e8e9eb;color:#6b7280;font-size:16px}.rsvp-dialog .attendance-card.selected{border-color:#75242e;background:#f9eff0}.attendance-card.selected .attendance-icon{background:#511419;color:#fff}.attendance-card:has(input:focus-visible){outline:2px solid #a78356;outline-offset:2px}.guest-counter-group label{display:block;margin-top:18px}.guest-counter-group #guest-number{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.guest-stepper{display:flex;align-items:center;gap:20px;margin:12px 0 20px}.guest-stepper button{background:#f3f4f5;border:1px solid #ececef;border-radius:50%;width:32px;height:32px;font:20px Arial,sans-serif;color:#343d48}.guest-stepper output{font:15px Arial,sans-serif;min-width:20px;text-align:center}.rsvp-dialog #rsvp-form .button{border-radius:12px;font:14px Arial,sans-serif;padding:16px;background:#511419;color:#fff;border:0;margin-top:16px}.rsvp-dialog #rsvp-form .button:disabled{background:#f5f2ee;color:#a09992;opacity:1}.rsvp-dialog .form-note{font:10px/1.6 Arial,sans-serif;color:#8c8581}.rsvp-dialog::backdrop{background:#0009;backdrop-filter:blur(4px)}#lightbox{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;background:#060403e8;overflow:hidden;border-radius:0;padding:40px 40px 90px;box-sizing:border-box}#lightbox>img{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;margin:auto;border-radius:12px}#lightbox>button:first-child{top:10px;right:14px;background:transparent;color:white;border-radius:0;font:32px Arial,sans-serif;z-index:10}#lightbox .gallery-prev,#lightbox .gallery-next{top:45%;background:#0004;color:white;z-index:5;font-size:30px}#lightbox .gallery-caption{position:absolute;top:14px;left:14px;margin:0;color:#fff;font:13px Arial,sans-serif;z-index:5}.gallery-thumbnails{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);display:flex;gap:6px;max-width:calc(100% - 24px);overflow:auto;padding:4px;background:#0005;border-radius:10px;scrollbar-width:none}.gallery-thumbnails button{position:static!important;flex:0 0 52px!important;width:52px!important;height:56px!important;border:2px solid transparent!important;border-radius:7px!important;background:transparent!important;padding:0!important;overflow:hidden}.gallery-thumbnails button[aria-current=true]{border-color:#f5e1c8!important;box-shadow:0 0 0 2px #511419}.gallery-thumbnails img{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;border-radius:4px}.suggestion-actions{display:flex;gap:8px}.wish-composer{font-family:Arial,sans-serif}.wish-composer h2{font:600 22px Arial,sans-serif}.wish-composer p{font:13px/1.7 Arial,sans-serif}.wish-composer textarea{margin-top:18px;min-height:110px}.wish-composer select{font:14px Arial,sans-serif}.section-enter{opacity:0;transform:translateY(40px);transition:opacity .9s ease,transform 1s cubic-bezier(.22,.61,.36,1)}.section-enter.in-view{opacity:1;transform:translateY(0)}.section-enter .reveal{opacity:1;transform:none}.opening{z-index:1000}.opening-card{width:min(600px,100%)}@keyframes photo-float{0%,100%{transform:translateY(0) rotate(12deg)}50%{transform:translateY(-12px) rotate(10deg)}}@keyframes flower-float{0%,100%{transform:translateY(0) rotate(-10deg)}50%{transform:translateY(-10px) rotate(-8deg)}}@keyframes ornament-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}@keyframes music-wave{from{height:5px}to{height:20px}}@media(max-width:767px){body{font-size:14px}main{width:100%}h2{font-size:18px}.hero{padding-top:55px}.hero .eyebrow{font-size:14px}.envelope-scene{width:90%;max-width:370px;height:435px;margin-top:35px}.hero h1{font-size:48px;margin:50px 0 10px}.hero h1 .ampersand{font-size:45px}.ceremony,.reception-card,.timeline-section{padding:35px 20px}.ceremony h2,.reception-card h2,.timeline-section h2{font-size:17px}.families{font-size:12px;margin:30px -5px 35px;gap:12px}.families>div:first-child{padding-right:12px}.announcement{font-size:12px}.names h3{font-size:39px;line-height:1.4}.names .ampersand{font-size:38px;margin:28px 0}.ceremony-event p{font-size:11px}.ceremony-date{font-size:11px;gap:12px}.ceremony-date strong{font-size:40px;padding-right:12px}.album{height:330px}.album-nav{padding-inline:16px}.album-section>h2{margin-bottom:24px}.reception-card h3{font-size:20px}.reception-date{font-size:12px}.reception-date strong{font-size:47px}.schedule-summary{font-size:11px;gap:40px}.calendar-month{font-size:20px}.calendar{font-size:12px}.calendar-paper{padding:18px 15px 22px}.venue h3{font-size:16px}.venue p,.venue .venue-name{font-size:13px}.venue-map{height:250px}.dresscode h2{font-size:20px}.swatches span{width:40px;height:40px}.timeline time{font-size:15px}.timeline>div>span:not(.timeline-icon){font-size:12px;padding-left:15px}.timeline img{width:30px;height:30px;left:7%}.guestbook{width:calc(100% - 44px);padding:28px 20px;max-width:none}.guestbook h2{font-size:20px}.guestbook #wish-list article strong{font-size:14px}.guestbook #wish-list p{font-size:13px}.wish-meta time{font-size:9px}.thanks p{font-size:14px}.thanks{padding-bottom:50px}#music-toggle{right:16px;bottom:82px;width:44px;height:44px}.album-dots{margin-top:15px}.gallery-thumbnails button{width:48px!important;flex-basis:48px!important;height:52px!important}.rsvp-dialog{padding:16px 22px 20px}}@media(max-width:380px){.envelope-scene{height:365px}.hero h1{font-size:42px}.names h3{font-size:32px}.timeline>div>span:not(.timeline-icon){font-size:11px}.album{height:305px}.rsvp-dialog{padding-inline:18px}}@media(prefers-reduced-motion:reduce){.envelope-photo,.envelope-flower,.floating-decoration img,.music-bars i{animation:none!important}.section-enter{opacity:1;transform:none;transition:none}}
[hidden]{display:none!important}.guestbook{background:none;box-shadow:none;max-width:850px;padding:25px 24px;margin-bottom:20px;width:100%}.guestbook-paper{position:relative;width:min(560px,calc(100% - 28px));margin:0 auto 80px;padding:24px 16% 65px;min-height:360px;isolation:isolate}.guestbook-paper-frame{position:absolute;width:137%;height:148%;max-width:none;left:-19.2%;top:-26.3%;object-fit:fill;z-index:-1;pointer-events:none}.guestbook-paper h2{font-size:20px;white-space:nowrap;margin-bottom:25px}.guestbook-paper #wish-form{margin:0}.guestbook-paper input{height:44px}.guestbook-paper textarea{min-height:60px;height:60px;padding:12px;font-size:13px}.guestbook-paper input{font-size:13px}.guestbook-paper .wish-suggestions{top:auto;left:0;right:auto;bottom:22px;width:34px;height:31px;background:#e6d8cd80;border-radius:7px}.guestbook-paper #wish-form [type=submit]{width:auto;min-width:145px;margin-left:auto;display:block;border-radius:30px;margin-top:12px;font-size:12px;padding:10px 18px}.guestbook-paper .form-note{font-size:9px;line-height:1.4;margin:8px 0 0}.guestbook #wish-list{max-height:490px;margin-top:0;padding:5px 0}.guestbook #wish-list article{border:1px solid #bda69766;background:#fffaf5a1;border-radius:8px;margin:0 0 12px;padding:17px 16px}.rsvp-dialog #rsvp-form{opacity:1!important;transform:none!important;transition:none!important}.rsvp-dialog #rsvp h2{text-transform:none}.wish-composer select{border:1px solid #d4bfae;border-radius:6px;padding:10px;background:white;width:100%}@media(min-width:768px){.guestbook-paper{padding-inline:105px}}@media(max-width:767px){.guestbook{padding-inline:22px}.guestbook-paper{width:calc(100% - 16px);padding:20px 17% 70px;min-height:330px;margin-bottom:75px}.guestbook-paper h2{font-size:18px;margin-bottom:25px}.guestbook #wish-list{max-height:490px}.guestbook-paper .wish-suggestions{bottom:22px}}
.guestbook-paper input,.guestbook-paper textarea{border-color:#8e6b5f;background:#fffaf52e}
/* Give timeline artwork its own column so it cannot cover event labels. */
.timeline>div{grid-template-columns:64px 24px 42px minmax(0,1fr);align-items:center;min-height:76px}
.timeline:before{left:76px;top:38px;bottom:38px}
.timeline>div:before{left:71px;top:calc(50% - 5.5px)}
.timeline time{grid-column:1;grid-row:1;padding-right:8px}
.timeline>div>span:not(.timeline-icon){grid-column:4;grid-row:1;padding-left:8px;overflow-wrap:break-word}
.timeline img{position:static;grid-column:3;grid-row:1;justify-self:center;width:36px;height:42px;object-fit:contain;pointer-events:none}
@media(max-width:380px){.timeline>div{grid-template-columns:52px 20px 32px minmax(0,1fr)}.timeline:before{left:62px}.timeline>div:before{left:57px}.timeline img{width:28px;height:36px}.timeline>div>span:not(.timeline-icon){padding-left:6px}}
.names .family-rank{font:400 16px/1.5 "Times New Roman",serif;color:inherit;letter-spacing:1px;margin:6px 0 0}.names .family-rank+.ampersand{margin-top:25px}@media(max-width:480px){.names .family-rank{font-size:14px}}
.families>div>p:nth-child(2){font-weight:bold;line-height:1.9}.families>div>p.family-address{font-size:12px;font-weight:400;line-height:1.6;letter-spacing:0;margin:12px 0 0;opacity:.85;overflow-wrap:break-word}@media(max-width:480px){.families>div>p.family-address{font-size:11px}}
.ceremony .families>div>p.family-address{font-size:11px;font-weight:400;line-height:1.6}@media(max-width:480px){.ceremony .families>div>p.family-address{font-size:10px}}
.ceremony-event .ceremony-lunar-date{font-size:12px;font-weight:400;line-height:1.6;text-align:center;margin:18px 0 0;letter-spacing:0}@media(max-width:480px){.ceremony-event .ceremony-lunar-date{font-size:10px}}
.album-section .album{height:clamp(520px,82svh,780px)}.album-section .album img{border-radius:20px;outline:2px solid #fff9;box-shadow:0 12px 28px #38191a26}.album-section .album-nav{padding-inline:12px}@media(max-width:600px){.album-section .album{height:calc((100vw - 20px)*1.5);max-height:none;min-height:0}.album-section .album img{border-radius:18px}}
/* A clear, evenly spaced calendar with a distinct wedding date. */
.reception-card .calendar-paper{max-width:410px;padding:26px 18px 20px;background:#fff9ee;border:1px solid #d9c6b0;border-radius:16px;box-shadow:0 8px 24px #23060a1f;color:#511419}
.calendar-paper .calendar-month{font:600 25px/1.3 Georgia,"Times New Roman",serif;letter-spacing:.3px;margin:0 0 22px;text-align:center}
.calendar-paper .calendar{font:400 17px/1.2 Georgia,"Times New Roman",serif;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px 0}
.calendar-paper .calendar span{width:100%;height:38px;display:grid;place-items:center;margin:0;justify-self:center}
.calendar-paper .calendar .weekday{font:600 11px/1 Arial,sans-serif;letter-spacing:.4px;height:32px;margin-bottom:5px;color:#92766c;border:0;border-bottom:1px solid #dfcfc0;opacity:1}
.calendar-paper .calendar span:nth-child(7n){color:#9b3943}
.calendar-paper .calendar .chosen{width:38px;height:38px;border-radius:50%;background:#681b26;color:#fff;font-weight:700;box-shadow:0 0 0 4px #681b2614}
.calendar-paper .calendar .chosen:after{content:none}
.calendar-paper .calendar-note{display:flex;justify-content:center;align-items:center;gap:8px;margin:20px 0 0;padding-top:16px;border-top:1px solid #dfcfc0;font:12px/1.5 Arial,sans-serif;color:#74454a}
.calendar-paper .calendar-note:before{content:'';color:#681b26;font-size:15px}
@media(max-width:380px){.reception-card .calendar-paper{padding:22px 10px 18px}.calendar-paper .calendar-month{font-size:22px}.calendar-paper .calendar{font-size:15px;gap:5px 0}.calendar-paper .calendar span{height:34px}.calendar-paper .calendar .chosen{width:32px;height:32px}.calendar-paper .calendar-note{font-size:11px}}
/* Reference timeline: ornaments, times, centre spine, then event names. */
.timeline-section{padding:35px 22px 28px;border-radius:12px}
.timeline-section h2{margin-bottom:14px}
.timeline-section .timeline{margin:0 10px}
.timeline-section .timeline>div{grid-template-columns:24% 22% 8% 46%;min-height:67px;gap:0;align-items:center}
.timeline-section .timeline:before{left:50%;top:33.5px;bottom:33.5px;border-left:1px solid #d8c5ad99}
.timeline-section .timeline>div:before{left:calc(50% - 5.5px);top:calc(50% - 5.5px);width:11px;height:11px;background:#eee5d8;border:0;box-shadow:0 0 0 2px #eee5d82b}
.timeline-section .timeline time{grid-column:2;grid-row:1;text-align:center;padding:0;font:400 18px/1.4 "Times New Roman",serif}
.timeline-section .timeline>div>span{grid-column:4;grid-row:1;padding-left:18px;text-align:left;font:400 15px/1.5 "Times New Roman",serif;color:#d1b6ae;position:static}
.timeline-section .timeline img{grid-column:1;grid-row:1;position:static;justify-self:center;width:42px;height:44px;object-fit:contain}
.timeline-section .floating-decoration.right{width:30%;right:-15%;top:8%;bottom:auto}
@media(max-width:480px){.timeline-section{padding:30px 12px 24px}.timeline-section .timeline{margin:0 3px}.timeline-section .timeline time{font-size:16px}.timeline-section .timeline>div>span{font-size:12px;padding-left:12px}.timeline-section .timeline img{width:34px;height:40px}.timeline-section .floating-decoration.right{width:28%;right:-13%;top:16%}}
/* Ceremony composition follows the reference while retaining the family's text. */
.ceremony{padding:38px 28px 40px;border-radius:14px}
.ceremony h2{font-size:20px;margin:0}
.ceremony .families{position:relative;max-width:380px;margin:32px auto 25px;gap:28px;font-size:14px}
.ceremony .families>div:first-child{border:0;padding:0}
.ceremony .families:after{content:'';position:absolute;left:50%;top:24px;height:52px;width:1px;background:#d3b9ae66}
.ceremony .families p{margin:0}
.ceremony .families p:first-child{font-size:12px;margin-bottom:7px}
.ceremony .families>div>p:nth-child(2){font-size:14px;line-height:1.7}
.ceremony .families>div>p.family-address{font-size:10px;line-height:1.6;margin-top:9px;font-weight:400}
.ceremony .announcement{font-size:13px;line-height:1.7;margin:24px 0 0}
.ceremony .names{margin:32px 0 26px}
.ceremony .names h3{font-size:clamp(36px,6.5vw,50px);line-height:1.3;margin:0}
.ceremony .names .family-rank{font-size:11px;letter-spacing:1.5px;text-transform:uppercase;margin:24px 0 0;color:#c8aaa2}
.ceremony .names .ampersand{font-size:40px;line-height:1;margin:28px 0}
.ceremony .ceremony-event>p:first-child{font-size:17px;line-height:1.6;color:#c8aaa2;max-width:390px;margin:0 auto}
.ceremony .ceremony-time-row{display:flex;justify-content:center;gap:34px;font-size:14px;line-height:1.5;color:#c8aaa2;margin-top:24px}
.ceremony .ceremony-date{margin:25px 0 0;gap:18px;align-items:center}
.ceremony .ceremony-date strong{font-size:52px;padding-right:18px}
.ceremony .ceremony-date span{font-size:18px;line-height:1.7;text-align:left}
.ceremony .ceremony-lunar-date{font-size:12px;line-height:1.7;color:#c8aaa2;margin:25px 0 0}
.ceremony .floating-decoration.right{width:32%;right:-18%;top:15%;bottom:auto;pointer-events:none}
@media(max-width:480px){.ceremony{padding:30px 17px 32px}.ceremony .families{gap:20px;margin-top:26px}.ceremony .families>div>p:nth-child(2){font-size:12px}.ceremony .families>div>p.family-address{font-size:9px}.ceremony .announcement{font-size:11px}.ceremony .ceremony-event>p:first-child{font-size:14px}.ceremony .ceremony-time-row{font-size:12px;gap:24px}.ceremony .ceremony-date strong{font-size:48px}.ceremony .ceremony-date span{font-size:16px}.ceremony .ceremony-lunar-date{font-size:10px}.ceremony .floating-decoration.right{width:28%;right:-15%;top:21%}}
/* Reception hierarchy and spacing match the supplied invitation reference. */
.reception .reception-card{padding:38px 24px 36px;color:#ece4d8}
.reception .reception-card>h2{font:700 20px/1.5 "Times New Roman",serif;margin:0 0 32px}
.reception .reception-card>h3{font:400 27px/1.5 "Times New Roman",serif;letter-spacing:0;max-width:none;margin:0 auto 32px}
.reception .reception-time{font:400 27px/1.4 "Times New Roman",serif;letter-spacing:1px;margin:0 0 28px}
.reception .reception-date{display:flex;justify-content:center;align-items:center;gap:18px;margin:0 auto 30px;font:400 14px/1.7 "Times New Roman",serif}
.reception .reception-date strong{font:400 64px/1.1 "Times New Roman",serif;border-inline:1px solid #cdb3a65c;padding:4px 20px}
.reception .schedule-summary{display:flex;justify-content:center;gap:56px;margin:0 0 32px;letter-spacing:0}
.reception .schedule-summary p{font:400 13px/1.5 "Times New Roman",serif;margin:0}
.reception .schedule-summary strong{display:block;font:400 26px/1.4 "Times New Roman",serif;margin-top:10px;letter-spacing:1px}
@media(max-width:480px){.reception .reception-card{padding:30px 17px}.reception .reception-card>h2{font-size:18px;margin-bottom:28px}.reception .reception-card>h3{font-size:22px;margin-bottom:27px}.reception .reception-time{font-size:25px;margin-bottom:25px}.reception .reception-date{gap:14px;font-size:12px}.reception .reception-date strong{font-size:58px;padding-inline:17px}.reception .schedule-summary{gap:42px}.reception .schedule-summary p{font-size:12px}.reception .schedule-summary strong{font-size:24px}}
/* Keep the selected wedding date legible when it falls on Sunday. */
.calendar-paper .calendar span.chosen:nth-child(7n),
.calendar-paper .calendar span.chosen{color:#fffaf0;font-weight:700;line-height:1;text-shadow:none}
/* Hearts use a fixed particle pool so long visits do not accumulate nodes. */
.ambient-hearts{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:6;contain:strict}
.invitation-closed> .ambient-hearts{visibility:hidden}
.opening>.ambient-hearts{position:absolute;z-index:0}
.opening .opening-card{z-index:1}
.opening .opening-hearts{display:none}
.ambient-heart{position:absolute;top:100%;font-size:var(--size);color:#c88589;opacity:0;animation:ambient-heart-rise var(--duration) var(--delay) linear infinite}
.opening .ambient-heart{color:#e6bcaa}
.ambient-heart .heart-icon{display:block;width:1em;height:1em}
.hearts-paused .ambient-heart{animation-play-state:paused}
@keyframes ambient-heart-rise{0%{opacity:0;transform:translate3d(0,30px,0) rotate(var(--tilt))}12%,80%{opacity:var(--alpha)}45%{transform:translate3d(var(--drift),-55vh,0) rotate(0deg)}100%{opacity:0;transform:translate3d(0,-115vh,0) rotate(var(--tilt))}}
.opening{transition:opacity .78s ease,visibility .78s;isolation:isolate}
.opening.is-opening .opening-card{animation:invitation-card-open 1.2s cubic-bezier(.22,.61,.36,1) both}
.opening.is-opening .seal{animation:opening-seal-beat .55s ease both}
.opening.is-opening #open-invitation{animation:opening-button-press .32s ease both;opacity:1}
.opening-burst{position:fixed;inset:0;z-index:2;pointer-events:none;overflow:hidden}
.opening-burst>span{position:absolute;font-size:var(--size);color:#dfb9a3;opacity:0;animation:opening-heart-burst 1s var(--delay) cubic-bezier(.15,.65,.3,1) both}
.opening-burst .heart-icon{display:block;width:1em;height:1em}
.invitation-revealing .hero h1,.invitation-revealing .hero .eyebrow{animation:opening-content-reveal 1.1s .1s ease both}
.invitation-revealing .hero .envelope-scene{animation:opening-content-reveal 1.3s ease both}
@keyframes invitation-card-open{0%{opacity:1;transform:scale(1)}30%{opacity:1;transform:scale(1.025)}100%{opacity:0;transform:translateY(-28px) scale(1.09)}}
@keyframes opening-seal-beat{0%,100%{transform:scale(1)}35%{transform:scale(1.2)}65%{transform:scale(.96)}}
@keyframes opening-button-press{40%{transform:scale(.94)}100%{transform:scale(1)}}
@keyframes opening-heart-burst{0%{opacity:0;transform:translate(-50%,-50%) scale(.25)}16%{opacity:.9}100%{opacity:0;transform:translate(calc(-50% + var(--x)),calc(-50% + var(--y))) rotate(var(--turn)) scale(1.1)}}
@keyframes opening-content-reveal{from{opacity:0;transform:translateY(24px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){.ambient-hearts,.opening-burst{display:none}.opening{transition:opacity .18s ease,visibility .18s}.opening.is-opening .opening-card{opacity:1;transform:none}.invitation-revealing .hero h1,.invitation-revealing .hero .eyebrow,.invitation-revealing .hero .envelope-scene{opacity:1;transform:none}}
/* Opening card: balanced floral framing and a consistent vector heart. */
.opening{background:radial-gradient(ellipse at 50% 40%,#641b22 0%,#4b1017 65%,#340a10 100%);padding:22px;overflow-y:auto}
.opening .opening-card{width:min(600px,100%);padding:22px 36px 32px;border-radius:9px;box-shadow:0 18px 45px #21070b59;background:#f8f1e9}
.opening-card .seal{width:58px;height:58px;margin:0 auto 20px;background:linear-gradient(145deg,#641923,#34050c);box-shadow:0 8px 22px #42101940}
.opening-card .seal svg{display:block;width:27px;height:27px;fill:#f8eddf;overflow:visible}
.opening .opening-card h1{position:relative;z-index:1;font:36px/1.08 'Viaoda Libre',Georgia,serif;margin:0}
.opening .opening-card h1 span{font:20px/1.6 Georgia,serif}
.opening .opening-flower{top:23px;width:125px;height:220px;opacity:.9;transform-origin:center}
.opening .opening-flower.left{left:-15px;transform:rotate(17deg)}
.opening .opening-flower.right{right:-15px;transform:scaleX(-1) rotate(17deg)}
.opening-card .ornament{display:flex;align-items:center;justify-content:center;gap:12px;margin:20px auto 13px;color:#8a5557;opacity:1}
.opening-card .ornament:before,.opening-card .ornament:after{content:'';width:40px;height:1px;background:linear-gradient(90deg,transparent,#681b26)}
.opening-card .ornament:after{transform:rotate(180deg)}
.opening-card .ornament span{font-size:17px;line-height:1}
.opening .opening-date{font:400 19px/1.5 Georgia,serif;color:#8a5557;margin:0}
.opening .opening-card .dear{font:400 19px/1.5 Georgia,serif;color:#8a5557;margin:24px 0}
.opening .opening-card .button{min-width:140px;padding:12px 27px;font:600 19px/1.4 Georgia,serif;border-radius:40px;box-shadow:0 6px 18px #51141940}
@media(max-width:480px){.opening{padding:16px}.opening .opening-card{padding:24px 18px 28px}.opening .opening-card h1{font-size:32px}.opening .opening-flower{top:32px;width:80px;height:195px;opacity:.8}.opening .opening-flower.left{left:-24px}.opening .opening-flower.right{right:-24px}.opening .opening-date,.opening .opening-card .dear{font-size:17px}.opening-card .seal{width:56px;height:56px}.opening-card .seal svg{width:26px;height:26px}}
/* One vector heart throughout the invitation, independent of system fonts. */
.heart-icon{display:inline-block;width:1em;height:1em;fill:currentColor;vertical-align:-.12em;flex-shrink:0;overflow:visible}
#hearts{display:inline-flex;align-items:center;gap:6px}
#restore-tools .heart-icon{display:block;width:17px;height:17px;margin:auto}
.opening-hearts .heart-icon{width:27px;height:27px}
.celebration-particle .heart-icon,.gift-burst .heart-icon,.petal .heart-icon{display:block;width:1em;height:1em}
.celebration-particle,.gift-burst{color:#a63b4b}
.calendar-paper .calendar-note:before{content:'';display:block;flex:0 0 14px;width:14px;height:14px;background:#681b26;mask:url('assets/heart.svg') center/contain no-repeat;-webkit-mask:url('assets/heart.svg') center/contain no-repeat}
/* Wedding day uses the shared vector heart, with the numeral above it. */
.calendar-paper .calendar span.chosen{position:relative;isolation:isolate;background:transparent;border-radius:0;box-shadow:none;color:#fffaf0;padding-bottom:4px}
.calendar-paper .calendar span.chosen:before{content:'';position:absolute;inset:-3px -3px -5px;background:#681b26;z-index:-1;mask:url('assets/heart.svg') center/contain no-repeat;-webkit-mask:url('assets/heart.svg') center/contain no-repeat}
.opening .opening-card .seal svg.opening-heart{width:29px;height:27px;fill:#f8eddf;transform:translateY(1px)}@media(max-width:480px){.opening .opening-card .seal svg.opening-heart{width:28px;height:26px}}
/* Compact invitation toolbar with consistent vector icons and touch targets. */
.dock{gap:4px;padding:7px 8px;bottom:calc(16px + env(safe-area-inset-bottom,0px));border:1px solid #d9c4af;border-radius:22px;background:linear-gradient(135deg,#fffaf3f5,#f5ebdcf5);box-shadow:0 8px 28px #39101524,inset 0 1px 0 #fff;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);max-width:calc(100vw - 24px)}
.dock button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:6px 12px;border-radius:15px;color:#511419;font:500 12px/1.3 Arial,sans-serif;cursor:pointer;transition:background .2s,transform .2s;filter:none}
.dock button:hover{background:#5114190a;filter:none}.dock button:active{transform:scale(.96)}
.dock #hearts{gap:9px;padding:3px 11px 3px 3px}
.dock-heart{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:linear-gradient(140deg,#782a35,#511419);color:#fff2e3;box-shadow:0 3px 8px #51141920}
.dock-heart .heart-icon{width:21px;height:21px;vertical-align:0}
.dock-heart-copy{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.dock-heart-copy>span:first-child{font-size:10px;color:#8d6a60;letter-spacing:.15px}
.dock #heart-count{font:600 15px/1.1 Arial,sans-serif;font-variant-numeric:tabular-nums;color:#511419;max-width:72px;overflow:hidden;text-overflow:ellipsis}
.dock-divider{height:27px;width:1px;background:#d9c4af;margin-inline:3px}
.dock-line-icon{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.dock #hide-tools{width:44px;padding:0;color:#98766b;background:#51141906;border:0;margin-left:2px}
#restore-tools{border:1px solid #d9c4af;background:linear-gradient(145deg,#fffaf3,#f2e6d7);color:#681b26;box-shadow:0 5px 18px #39101524;bottom:calc(20px + env(safe-area-inset-bottom,0px));cursor:pointer}
.invitation-closed #restore-tools{visibility:hidden}
@media(max-width:360px){.dock{padding:6px;gap:2px}.dock button{padding-inline:9px}.dock-heart-copy>span:first-child{font-size:9px}}
@media(prefers-reduced-motion:reduce){.dock button{transition:none}}
/* Share dialog: a keepsake QR card and a clear primary sharing action. */
#share-dialog{width:min(440px,calc(100vw - 28px));max-height:calc(100dvh - 32px);padding:26px;border:1px solid #dfcbb7;border-radius:24px;background:#fffaf4;box-shadow:0 24px 80px #24090d59;color:#511419}
#share-dialog::backdrop{background:#25090db8;backdrop-filter:blur(7px)}
#share-dialog header{gap:12px;align-items:center}#share-dialog header h2{font:400 28px/1.2 'Viaoda Libre',Georgia,serif;letter-spacing:-.4px}
#share-dialog header button{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;padding:0;background:#f2e9df;border:0;border-radius:50%;color:#6a4443;font:26px/1 Arial;transition:background .2s;cursor:pointer}
#share-dialog header button:hover{background:#e9d7c9}
#share-dialog .sheet-intro{margin:9px 0 21px;font:13px/1.6 Arial,sans-serif;color:#947269}
.share-keepsake{text-align:center;border:1px solid #e3cfb9;border-radius:17px;padding:21px 16px 16px;background:radial-gradient(ellipse at top,#fffdf8,#f5eadb);box-shadow:inset 0 0 0 5px #fffaf480}
.share-eyebrow{font:9px/1.4 Arial,sans-serif;letter-spacing:2px;color:#98765b}
#share-dialog .share-couple{font:400 24px/1.4 'Viaoda Libre',Georgia,serif;margin:9px 0 4px;color:#511419}
.share-couple>span{font-size:18px;color:#b08b6b;margin:0 3px}
#share-dialog .share-date{font:11px/1.5 Arial,sans-serif;letter-spacing:2px;color:#947269;margin:0 0 15px}
.share-qr-frame{width:190px;max-width:100%;margin:auto;background:#fff;border:1px solid #eadacb;border-radius:13px;padding:9px;box-shadow:0 5px 16px #5c302210}
#share-dialog .share-qr{display:block;width:100%;height:auto;aspect-ratio:1;padding:0;margin:0;border-radius:5px;background:#fff;image-rendering:auto}
#share-dialog .share-scan{font:11px/1.5 Arial,sans-serif;color:#90746a;margin:12px 0 0}
#share-dialog .share-link-section{margin-top:20px}
#share-dialog label{font:600 12px/1.4 Arial,sans-serif;margin:0 0 8px;color:#684441}
.share-link-field{display:flex;align-items:center;gap:9px;padding:5px 5px 5px 12px;border:1px solid #ddc9ba;border-radius:12px;background:white}
.share-icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.share-link-field>.share-icon{width:16px;color:#aa8773}
#share-dialog #share-url{min-width:0;flex:1;width:0;border:0;box-shadow:none;background:transparent;padding:7px 0;margin:0;border-radius:0;color:#674747;font:12px/1.5 Arial,sans-serif;text-overflow:ellipsis}
#share-dialog #copy-link{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border:0;border-radius:9px;background:#f1e7dc;color:#681b26;cursor:pointer}
#share-dialog #copy-link:hover,#share-dialog #copy-link.copied{background:#681b26;color:#fffaf0}
#share-dialog #share-feedback{font:11px/1.6 Arial,sans-serif;min-height:18px;margin:8px 0 0;color:#947269}
#share-dialog .share-actions{display:grid;grid-template-columns:1.15fr 1fr;gap:10px;margin-top:19px}
#share-dialog .share-actions .button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:11px 10px;margin:0;border:1px solid #511419;border-radius:12px;background:#511419;color:#fff7ed;font:600 12px/1.4 Arial,sans-serif;letter-spacing:0;text-decoration:none;cursor:pointer}
#share-dialog .share-actions a.button{background:transparent;border-color:#d9c4b2;color:#681b26}
#share-dialog .share-actions .button:hover{filter:brightness(.93)}
@media(max-width:380px){#share-dialog{padding:20px}#share-dialog header h2{font-size:25px}#share-dialog .share-couple{font-size:21px}.share-qr-frame{width:168px}}
@media(max-height:700px){#share-dialog{padding:20px}#share-dialog .sheet-intro{margin-bottom:14px}.share-keepsake{padding-top:14px}.share-qr-frame{width:155px}#share-dialog .share-link-section{margin-top:14px}#share-dialog .share-actions{margin-top:13px}}
/* Center the wedding-day numeral inside the heart rather than above its center. */
.calendar-paper .calendar span.chosen{display:flex;align-items:center;justify-content:center;padding:3px 0 0;box-sizing:border-box;font-family:Georgia,'Times New Roman',serif;font-size:19px;line-height:1}
@media(max-width:380px){.calendar-paper .calendar span.chosen{font-size:17px}}
