@font-face{font-family:TrajanDetails;src:local('Trajan Pro'),local('TrajanPro-Regular'),local('Trajan Pro 3');font-display:swap}
@font-face{font-family:Cinzel;src:url('assets/cinzel-variable.ttf') format('truetype');font-weight:400 900;font-display:swap}
@font-face{font-family:Pinyon;src:url('assets/pinyon-script.ttf') format('truetype');font-display:swap}
:root{--details:TrajanDetails,Cinzel,Georgia,serif;--function:Pinyon,'Invitation',serif;--shell:100vw}
.toolbar[hidden]{display:none!important}
.invitation-shell{width:100%;max-width:none;border:0;box-shadow:none}
.reading.journey{padding:0;max-width:none}
.portal,.reading-backdrop{width:100%;border:0}
.entrance-scene:before{content:'';position:absolute;inset:-20px;background:linear-gradient(#5b49392b,#4b3c2d33),url('assets/emerald.webp') center/cover;filter:blur(14px)}
.artboard{width:max(min(100vw,calc(100dvh * 4 / 7)),calc(100dvh * 4 / 7));max-width:none}
.sound-button{right:max(14px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom))}
.reading-backdrop img{transform:none;object-position:50% 48%}
.reading-backdrop>div{background:linear-gradient(90deg,#211e1bd9,#211e1bd1 35%,#211e1bd1 65%,#211e1bd9)}
/* Preserve each complete painting; the text coordinates follow its original clear area. */
.story-scene{--paper:#f9ecd5;position:relative;isolation:isolate;overflow:hidden;height:var(--scene-height,100dvh);min-height:100dvh;display:block;background:var(--paper);color:#60462f;scroll-margin-top:0}
.story-scene:before{content:'';position:absolute;inset:-20px;z-index:-1;background-image:var(--scene-image);background-position:center;background-size:cover;filter:blur(18px);transform:scale(1.05)}
.scene-art{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center;transform:none;mask:none;-webkit-mask:none;pointer-events:none;z-index:0}
.scene-copy{position:absolute;z-index:2;max-width:none;min-height:0;margin:0;padding:0;text-align:center;--fit-scale:1}
.scene-body{position:absolute;left:50%;top:50%;width:100%;transform:translate(-50%,-50%) scale(var(--fit-scale));transform-origin:center;font-family:var(--details);font-style:normal}
.scene-copy h2{font:46px/1.12 var(--function);font-weight:400;color:#745031;letter-spacing:0;overflow-wrap:normal;text-wrap:balance;margin:0}
.scene-kicker{font:8px/1.4 var(--details);text-transform:uppercase;letter-spacing:1.4px;color:#8e6c3f;margin:0 0 9px}
.small-ornament{font:11px/1 var(--serif);color:#ab854c;display:flex;align-items:center;justify-content:center;gap:12px;margin:13px auto}
.small-ornament:before,.small-ornament:after{content:'';width:33px;height:1px;background:linear-gradient(90deg,transparent,#ab854c80)}
.small-ornament:after{transform:rotate(180deg)}
.event-subtitle{font:11px/1.6 var(--details);color:#8b6740;max-width:310px;margin:9px auto 0;text-wrap:balance}
.event-date>p{font:9px/1.5 var(--details);letter-spacing:.9px;color:#89663e;text-transform:uppercase}
.event-date strong{display:block;font:19px/1.4 var(--details);color:#68472b;letter-spacing:.2px;margin:3px 0}
.event-time{font:12px/1.5 var(--details);color:#79532f;margin-top:9px}
.event-venue{margin:15px auto 0}
.event-venue h3{font:14px/1.45 var(--details);font-weight:500;letter-spacing:.15px;color:#6f4b2d;margin:0;text-wrap:balance}
.event-venue p{font:10.5px/1.65 var(--details);color:#806245;margin-top:6px;text-wrap:balance;overflow-wrap:anywhere}
.event-copy .guest-actions{margin:16px 0 0;gap:16px;align-items:center}
.event-copy .gold-button{font:9px/1.4 var(--details);letter-spacing:.15px;min-height:44px;padding:10px 17px;gap:8px}
.event-copy .location-button{font:9px/1.4 var(--details);color:#775532;padding:5px 10px;min-height:44px;gap:3px}
.event-copy .location-button svg{color:#9d783e;width:18px;height:18px}
.calendar-alternatives{font:9px/1.4 var(--details);color:#87683e;margin:6px auto 0;padding:9px 7px;min-height:30px}
.night-scene{--paper:#343c33;color:#eadbb8}
.night-scene h2{color:#efd18b}
.night-scene .scene-kicker,.night-scene .event-date>p{color:#c8b486}
.night-scene .event-subtitle,.night-scene .event-venue p{color:#d4c09b}
.night-scene .event-date strong,.night-scene .event-time,.night-scene .event-venue h3{color:#f0dcb6}
.night-scene .location-button,.night-scene .calendar-alternatives{color:#e4cb98}
.night-scene .small-ornament{color:#c6a967}


.family-copy h2{font-size:43px}
.family-host{font:14px/1.5 var(--details);color:#71502f}
.family-introduction{font:10px/1.55 var(--details);color:#7b5f43;max-width:320px;margin:7px auto 12px;text-wrap:balance}
.family-person h3{font:40.8px/1.1 var(--function);color:#805c37;margin:0 0 5px}
.family-person>p:not(.relationship){font:10.5px/1.65 var(--details);color:#674c34;max-width:350px;margin:auto;text-wrap:balance;overflow-wrap:anywhere}
.family-person .relationship{font:7.5px/1.4 var(--details);text-transform:uppercase;letter-spacing:1px;color:#987749;margin:7px 0 3px}
.family-with{font:23px/1 var(--function);color:#9c7b4d;margin:11px auto}
.scene-next{display:inline-flex;align-items:center;justify-content:center;gap:7px;font:9px/1.5 var(--details);text-decoration:none;color:#8b6b40;margin-top:13px;min-height:30px}

.rsvp-copy h2{font:40px/1.12 var(--function);text-wrap:balance}
.rsvp-dates{font:15px/1.5 var(--details);color:#8a6339;margin-top:11px}
.rsvp-family{font:11px/1.6 var(--details);color:#806044}
.rsvp-label{font:8px/1.4 var(--details);letter-spacing:1.6px;color:#927043;text-transform:uppercase;margin:16px 0 10px}
#rsvp-contacts{display:flex;flex-direction:column;gap:9px}
.rsvp-contact{display:flex;flex-direction:column;gap:3px;text-decoration:none;min-height:39px;justify-content:center}
.rsvp-contact span:first-child{font:12px/1.45 var(--details);color:#704f2f}
.rsvp-contact span:last-child{font:10.5px/1.4 var(--details);letter-spacing:.6px;color:#896841}
.joy-label{margin-top:16px;margin-bottom:7px}
#sharing-joy{font:11px/1.6 var(--details);color:#806044;max-width:320px;margin:auto;text-wrap:balance}
.rsvp-copy .replay-button{font:9px/1.4 var(--details);color:#927044;margin-top:12px;padding:7px;min-height:30px}
/* The opening uses the same measured fit, with the countdown directly after the card. */
.opening-page{position:relative;height:calc(100dvh + var(--extra-space,0px));min-height:0;padding:max(20px,env(safe-area-inset-top)) 24px max(20px,env(safe-area-inset-bottom));--fit-scale:1}
.opening-page .invitation-copy{position:absolute;left:50%;top:50%;width:calc(100% - 48px);max-width:350px;transform:translate(-50%,-50%) scale(var(--fit-scale));transform-origin:center}
.ganesh-blessing{color:#e9d8b4;margin-bottom:0}
.ganesh-blessing img{display:block;width:48px;height:48px;object-fit:contain;margin:0 auto 4px;filter:drop-shadow(0 2px 8px #0003)}
.ganesh-blessing p{font:10px/1.7 Georgia,serif;letter-spacing:.1px}
.opening-page .family-heading{font:8px/1.5 var(--details);letter-spacing:1.2px;margin:4px auto 13px;max-width:300px}
.opening-page h1{font:42px/.95 var(--details);letter-spacing:1px}
.opening-page h1 em{font:30px/1 var(--function);margin:6px auto}
.opening-page .invitation-wording{font:9px/1.65 var(--details);letter-spacing:.6px;text-transform:none;max-width:310px;margin:13px auto 0;text-wrap:balance}
.opening-page .ornament{margin:12px 35px;font-size:11px}
.scratch-card{min-height:92px}
.date-details{min-height:90px;padding:11px 8px}
.date-details>p:first-child{font:8px/1.5 var(--details);letter-spacing:1px;margin-bottom:5px}
.date-details>p:last-child{font:8px/1.5 var(--details);letter-spacing:1px;margin-top:6px}
.date-main#date-range{font:18px/1.5 var(--details);white-space:normal;max-width:290px;margin:auto;letter-spacing:.1px}
.scratch-instruction{gap:7px}
.scratch-instruction>span{font:8px var(--details);letter-spacing:1px}
.scratch-instruction small{font:9px var(--details);padding:4px 11px}
.date-section>.quiet-link{font:9px/1.5 var(--details);padding:7px 4px;min-height:28px}
.opening-page .countdown{margin:4px auto 6px;gap:6px;max-width:305px}
.countdown>div{padding:7px 3px}
.countdown strong{font:18px/1.1 var(--details)}
.countdown span{font:7px/1.3 var(--details);letter-spacing:.6px;margin-top:4px}
.countdown-caption{font:9px/1.5 var(--details);color:#d5c29b}
.journey-cue{display:flex;flex-direction:column;align-items:center;gap:4px;color:#d8bd7e;font:9px/1.4 var(--details);text-decoration:none;margin:15px auto 0;min-height:30px}
.journey-cue>span{font:16px/1 var(--serif)}
.journey .celebration-today{font:10px/1.5 var(--details);margin:5px auto 0}
/* Dialogs scroll independently, respect display cut-outs, and keep their actions reachable. */
.panel{width:min(100%,500px);padding-top:max(45px,env(safe-area-inset-top));height:100dvh;max-height:100dvh}
.location-content{min-height:calc(100dvh - 90px)}
.location-content>p[data-content=address]{white-space:pre-line;font-family:var(--details);font-style:normal;font-size:11px}
.location-content h2{font-family:var(--details);font-size:21px}
.calendar-content{max-width:330px;margin:20px auto;display:flex;flex-direction:column;gap:16px;text-align:center}
.calendar-content #calendar-event-name{font:14px/1.7 var(--details);color:#e9d1a0}
.calendar-content .calendar-note{font:12px/1.8 var(--sans);color:#b9ab92;margin-bottom:6px}
.calendar-content .outline-button{text-decoration:none}
.customize-panel select{display:block;width:100%;background:#211f1d;border:1px solid #d3b56c3b;border-radius:7px;padding:12px 11px;margin-top:9px;color:#f6e9d1;font:14px/1.5 var(--serif)}
.scene-effects{position:absolute;inset:0;pointer-events:none;z-index:1;overflow:hidden}
.scene-particle{position:absolute;top:-4%;left:var(--px);width:var(--size);height:calc(var(--size) * .65);border-radius:80% 0 70% 25%;background:#d8627a;opacity:0;animation:scene-fall var(--duration) linear var(--delay) infinite;animation-play-state:paused}
.is-current .scene-particle{animation-play-state:running}
.night-scene .scene-particle{width:3px;height:3px;background:#ebd28c;border-radius:50%;box-shadow:0 0 7px #ffda71;animation-name:scene-mote}
.haldi-scene .scene-particle{background:#e9b535}
.ceremony-glow{position:absolute;width:18%;height:5%;left:41%;bottom:5%;background:radial-gradient(ellipse,#ffe49a45,transparent 70%);animation:lamp-breathe 2s ease-in-out infinite alternate;animation-play-state:paused}
.is-current .ceremony-glow{animation-play-state:running}

@keyframes scene-fall{0%{opacity:0;transform:translateY(0) rotate(0)}10%,85%{opacity:.5}100%{opacity:0;transform:translateY(110dvh) rotate(230deg)}}
@keyframes scene-mote{0%{opacity:0;transform:translateY(95dvh)}30%,60%{opacity:.7}100%{opacity:0;transform:translateY(10dvh)}}

@media(max-height:680px){
 .scene-copy{width:calc(100% - 44px)}
 .scene-copy h2{font-size:40px}
 .scene-kicker{font-size:7px;margin-bottom:6px}
 .small-ornament{margin:9px auto}
 .event-subtitle{font-size:10px;margin-top:6px}
 .event-venue{margin-top:11px}
 .event-copy .guest-actions{margin-top:12px}
 .family-copy h2{font-size:36px}
 .family-person h3{font-size:36px}
 .family-introduction{font-size:9px;margin:5px auto 9px}
 .family-person>p:not(.relationship){font-size:10px;line-height:1.5}
 .family-person .relationship{margin-top:5px}
 .family-with{margin:7px auto}
 .scene-next{margin-top:8px}
 .rsvp-copy h2{font-size:34px}
 .rsvp-label{margin-top:11px;margin-bottom:6px}
 #rsvp-contacts{gap:5px}
 .opening-page{padding-top:14px;padding-bottom:14px}
 .ganesh-blessing img{width:36px;height:36px}
 .ganesh-blessing p{font-size:9px;line-height:1.6}
 .opening-page .family-heading{font-size:7px;margin:3px auto 9px}
 .opening-page h1{font-size:34px}
 .opening-page h1 em{font-size:24px;margin:4px auto}
 .opening-page .invitation-wording{font-size:8px;margin-top:9px}
 .opening-page .ornament{margin:9px 35px}
 .scratch-card{min-height:80px}.date-details{min-height:78px}
 .date-main#date-range{font-size:16px}
 .journey-cue{margin-top:9px}
}
@media(min-width:650px) and (max-height:580px){
 .opening-page .invitation-copy{max-width:790px;width:calc(100% - 70px);display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}
 .opening-page .ornament{display:none}
 .opening-page h1{font-size:29px}
 .opening-page .invitation-wording{max-width:300px}
 .opening-page .family-heading{margin-bottom:7px}
 .ganesh-blessing img{width:30px;height:30px}
 .ganesh-blessing p{font-size:8px}
}
@media(prefers-reduced-motion:reduce){.scene-particle,.ceremony-glow,.has-appeared .scene-body{animation:none!important}.scene-body{opacity:1}}
/* Compact the type inside the original painted clearing, without changing the painting. */
.event-copy h2{font-size:42px}
.event-subtitle{font-size:10px;line-height:1.5;margin-top:7px}
.event-copy .small-ornament{margin:7px auto}
.event-venue{margin-top:10px}
.event-copy .guest-actions{margin-top:12px}
.calendar-alternatives{margin-top:0;padding-top:7px;padding-bottom:7px}
html{overflow-anchor:none}
.event-copy h2{font-size:var(--heading-size,42px)}

/* Fixed invitation colors: light artwork must not inherit a browser's dark-page palette. */
:root{color-scheme:only light}
.scene-copy{--reading-ink:#342617;--reading-soft:#513b25;--heading-ink:#543116}
.scene-body{opacity:1!important;animation:none!important;color:var(--reading-ink);-webkit-text-fill-color:var(--reading-ink)}
.scene-copy h2,.scene-copy .family-person h3,.scene-copy .family-with{color:var(--heading-ink);-webkit-text-fill-color:var(--heading-ink)}
.scene-copy p,.scene-copy h3,.scene-copy strong,.scene-copy a,.scene-copy button{color:var(--reading-ink);-webkit-text-fill-color:var(--reading-ink)}
.scene-copy .scene-kicker,.scene-copy .relationship,.scene-copy .event-subtitle,.scene-copy .scene-next,.scene-copy .calendar-alternatives,.scene-copy .rsvp-label{color:var(--reading-soft);-webkit-text-fill-color:var(--reading-soft)}
.scene-copy p,.scene-copy h3,.scene-copy strong,.scene-copy a,.scene-copy button{font-weight:550}
.event-venue p,.family-person>p:not(.relationship){font-size:12px;line-height:1.6}
.event-venue h3{font-size:15px;font-weight:600}
.family-introduction{font-size:11.5px;line-height:1.55}
.family-person .relationship{font-size:9px;letter-spacing:.6px;font-weight:600}
.event-date>p{font-size:10.5px;font-weight:550}
.event-subtitle{font-size:11px}
.scene-kicker{font-size:9px;font-weight:550;letter-spacing:1px}
.rsvp-contact span:first-child{font-size:13px;font-weight:550;color:var(--reading-ink);-webkit-text-fill-color:var(--reading-ink)}
.rsvp-contact span:last-child{font-size:12px;font-weight:550;color:var(--reading-ink);-webkit-text-fill-color:var(--reading-ink)}
#sharing-joy,.rsvp-family{font-size:12px;font-weight:550}
.night-scene .scene-copy{--reading-ink:#fff1d3;--reading-soft:#f0d7a6;--heading-ink:#f2d184}
.scene-copy .gold-button,.scene-copy .gold-button span{color:#342510;-webkit-text-fill-color:#342510}
.scene-copy .small-ornament{color:var(--reading-soft);-webkit-text-fill-color:var(--reading-soft)}
.opening-page{color:#fff1d4;-webkit-text-fill-color:#fff1d4}
.opening-page h1,.opening-page h1 span,.opening-page h1 em{color:#f0cf7f;-webkit-text-fill-color:#f0cf7f}
.opening-page .countdown strong,.opening-page .countdown span,.opening-page .date-details p{color:#fff1d4;-webkit-text-fill-color:#fff1d4}
.scratch-instruction,.scratch-instruction span,.scratch-instruction small{color:#49300e;-webkit-text-fill-color:#49300e}

.scratch-instruction small{color:#fff2c6;-webkit-text-fill-color:#fff2c6}
.story-scene .scene-copy .scene-body p,
.story-scene .scene-copy .scene-body h3,
.story-scene .scene-copy .scene-body strong,
.story-scene .scene-copy .scene-body a,
.story-scene .scene-copy .scene-body button{color:var(--reading-ink);-webkit-text-fill-color:var(--reading-ink)!important;font-weight:550}
.story-scene .scene-copy .scene-body h2,
.story-scene .scene-copy .scene-body .family-person h3,
.story-scene .scene-copy .scene-body .family-with{color:var(--heading-ink);-webkit-text-fill-color:var(--heading-ink)!important}
.story-scene .scene-copy .scene-body .gold-button,
.story-scene .scene-copy .scene-body .gold-button span{color:#342510;-webkit-text-fill-color:#342510!important}
html{scrollbar-width:none}
html::-webkit-scrollbar{display:none}
/* Plain typographic initials, using the same gold and Roman lettering as the names. */
.opening-page .couple-monogram{display:block;width:164px;height:auto;aspect-ratio:1.3;margin:8px auto 14px;overflow:hidden}
@media(max-height:680px){.opening-page .couple-monogram{width:124px;margin:6px auto 10px}}
@media(min-width:650px) and (max-height:580px){.opening-page .couple-monogram{width:100px;margin:5px auto}}

.desktop-uniform .opening-page{height:var(--desktop-scene-height)}
.desktop-uniform .opening-page:before{content:'';position:absolute;inset:0;z-index:-1;background-image:linear-gradient(#211e1bce,#211e1bce),url('assets/courtyard.webp');background-size:100% 100%,auto 100%;background-repeat:no-repeat;background-position:center}
.desktop-uniform .opening-page{isolation:isolate}

/* Distinct, fixed heading inks against each original illustration. */
#family .scene-copy .scene-body .family-person h3{color:#782d4d;-webkit-text-fill-color:#782d4d!important}
.sangeet-scene .scene-copy{--heading-ink:#ffda91}
.mayrah-scene .scene-copy{--heading-ink:#884222}
.haldi-scene .scene-copy{--heading-ink:#275d42}
.wedding-scene .scene-copy{--heading-ink:#8d3057}
.journey-cue>.journey-label{font:9px/1.4 var(--details)}

/* One weekday line and one complete ordinal date, with an editor override. */
.event-date .event-full-date{font-size:var(--date-size,19px);white-space:pre-line}
.scene-copy .styled-words{white-space:inherit}
