/* The single final typography system: titles, reading text, labels, and names. */
:root{--script:'Pinyon Script',cursive;--type-heading:clamp(38px,2rem + 2vw,64px);--type-subheading:clamp(27px,1.4rem + .8vw,38px);--type-body:clamp(15px,.88rem + .2vw,18px);--type-label:clamp(10px,.58rem + .1vw,12px);--type-name:clamp(66px,3rem + 4vw,112px);--type-ink:#594b44;--type-wine:#94464b;--type-muted:#7b7063}
body{font-family:var(--sans);font-size:var(--type-body);line-height:1.75;color:var(--type-ink)}
h1,h2,h3{font-synthesis:none;text-wrap:balance}
.section h2,.invitation h2,#reveal h2,#countdown h2,.family-dedication h2,.rsvp-panel h2,footer h2{font-family:var(--serif);font-size:var(--type-heading);font-style:normal;font-weight:500;line-height:1.14;letter-spacing:-.02em;color:var(--type-wine);margin:14px auto 30px;max-width:820px}
.section .eyebrow,.hero .eyebrow,footer>.eyebrow,.blessings>.eyebrow{font-family:var(--sans);font-size:var(--type-label);font-style:normal;font-weight:500;letter-spacing:.18em;line-height:1.65;color:var(--type-muted)}
.hero h1{font-family:var(--script);font-size:clamp(86px,4rem + 6vw,156px);font-weight:400;line-height:1.13;letter-spacing:0;color:var(--type-wine)}
.hero h1 em{font-family:var(--serif);font-size:.28em;font-weight:400;font-style:italic;line-height:1.2;margin:4px 0}
.hero .eyebrow{margin-bottom:28px}.scroll-cue{font-size:10px;letter-spacing:.2em}
.chapters{max-width:650px}.chapters article{margin:34px auto 0;padding-top:28px}.chapters article+article{border-top:1px solid #b3986326}
.chapters h3{font-family:var(--serif);font-size:var(--type-subheading);font-weight:500;font-style:normal;line-height:1.25;letter-spacing:-.01em;color:var(--type-wine);margin:0 auto 12px}
.chapters p{font-family:var(--sans);font-size:var(--type-body);font-weight:400;line-height:1.8;color:var(--type-ink);max-width:46ch;margin-inline:auto}
.story h2{margin-bottom:8px}.story .floral-ornament{margin-bottom:24px}
.invitation{max-width:1040px;margin-inline:auto}.invitation h2{font-size:var(--type-heading);max-width:580px;margin-bottom:16px}
.invitation>p:not(.eyebrow):not(.full-name){font-family:var(--sans);font-size:var(--type-body);line-height:1.7}
.invitation h3{font-family:var(--script);font-size:var(--type-name);font-style:normal;font-weight:400;line-height:1.2;letter-spacing:0;color:var(--type-wine);margin:32px auto 0;padding-inline:6px}
.invitation .full-name{font-family:var(--serif);font-size:clamp(21px,1.15rem + .4vw,27px);font-weight:500;line-height:1.4;letter-spacing:.015em;color:var(--type-ink);margin:2px auto 0;max-width:100%;padding:0}
.invitation>.amp{font-family:var(--serif);font-size:30px;font-style:italic;font-weight:400;line-height:1;margin:22px auto -10px;color:#ab8b68}
.blessings{margin:38px auto 0;max-width:560px;padding-top:25px;border-top:1px solid #b3986335}.blessings>.eyebrow{margin-bottom:14px}
.blessings>p:not(.eyebrow){font-family:var(--serif);font-size:clamp(21px,1.15rem + .35vw,26px);font-weight:500;line-height:1.5;color:var(--type-ink)}
.blessings>p:last-child{font-family:var(--sans);font-size:var(--type-body);font-weight:400;line-height:1.7;margin-top:10px}
#reveal h2{max-width:680px}#countdown h2{margin-bottom:0}
.family-names p{font-family:var(--serif);font-size:var(--type-subheading);font-weight:500;line-height:1.35;color:var(--type-ink)}
.family-names span{font-family:var(--serif);font-size:28px;line-height:1.2;color:#ab8b68}
.family-blessing-label,.family-closing{font-family:var(--sans);font-size:var(--type-body);font-style:normal;line-height:1.7;color:var(--type-muted)}
.family-dedication>.eyebrow{font-size:var(--type-label)}
.rsvp-panel h2{letter-spacing:.025em;margin-top:0}.rsvp-panel>p,.guest-wishes,.film-slot,footer>p:not(.eyebrow){font-family:var(--sans);font-size:var(--type-body);line-height:1.75;font-weight:400;color:var(--type-ink)}
input:not([type=checkbox]),textarea,fieldset label{font-family:var(--sans);font-size:16px;font-weight:400;line-height:1.6}
form>label,legend{font-family:var(--sans);font-size:var(--type-label);letter-spacing:.12em;font-weight:500}
.form-note,.map-note,.time-note{font-family:var(--sans);font-size:12px;line-height:1.65;color:var(--type-muted)}
.submit{font-family:var(--sans);font-size:11px;letter-spacing:.12em;font-weight:500}
/* Keep the approved event-card scale, but use the same upright heading role. */
.celebrations .event-copy h3{font-family:var(--serif);font-weight:600;font-style:normal;letter-spacing:-.015em}
.celebrations .event-date,.celebrations .event-schedule p,.celebrations .event-venue{font-family:var(--serif);font-style:normal}
footer h2{font-size:var(--type-heading);line-height:1.2;margin:14px auto 32px}footer>p:not(.eyebrow){max-width:540px}
@media(max-width:600px){.hero h1{font-size:clamp(78px,22vw,118px)}.invitation h3{font-size:clamp(65px,18.5vw,96px)}.section{padding-block:64px}.chapters article{margin-top:24px;padding-top:22px}.invitation h2{max-width:300px}.family-dedication h2{font-size:var(--type-heading)}.invitation .full-name{max-width:100%}.rsvp-panel>p br{display:none}}

/* Quiet, consistent lining numerals. */
#clock strong,.heart .hidden-date .revealed-day,.heart .hidden-date .revealed-year,.celebrations .event-date,.celebrations .event-schedule strong,.time-note,#guests{font-family:var(--sans);font-style:normal;font-weight:400;font-variant-numeric:lining-nums tabular-nums;letter-spacing:-.025em}
#clock strong{font-size:clamp(27px,6.6cqi,60px);line-height:1.2}
.heart .hidden-date .revealed-day{font-size:16cqw}.heart .hidden-date .revealed-year{font-size:11cqw}
.heart .hidden-date .revealed-month{font-family:var(--sans);font-size:7cqw;font-weight:400;letter-spacing:.14em;margin:3cqw 0}
.celebrations .event-date{letter-spacing:0;font-size:clamp(15px,4cqi,19px)}.celebrations .event-schedule strong{font-size:.92em;font-weight:500;white-space:nowrap}
html.invitation-locked,body.gate-pending{overflow:hidden;overscroll-behavior:none}
body.gate-pending> :not(#welcome-gate):not(noscript){visibility:hidden}
body.gate-pending>.invitation-surface{visibility:visible;opacity:0;transform:translateY(12px);transition:opacity 1s ease,transform 1s cubic-bezier(.2,.6,.3,1);pointer-events:none}
#welcome-gate{position:fixed;inset:0;z-index:100;display:grid;place-items:center;min-height:100svh;padding:28px 24px;background:#f5ded1 url('reference-hero.png') center/cover no-repeat;overflow-y:auto;text-align:center;opacity:1;transition:opacity .85s ease,transform 1s ease}
.welcome-content{width:min(580px,100%);padding:24px 0}
.welcome-floral{width:min(270px,65vw);height:auto;margin:0 auto 22px}
.welcome-eyebrow{font:500 10px/1.7 var(--sans);letter-spacing:.23em;color:#80675e}
#welcome-title{font:400 clamp(65px,5.3vw,100px)/1.1 var(--script);color:var(--type-wine);margin:22px 0 30px;letter-spacing:0}
#welcome-title span{display:block;font:italic 26px/1.2 var(--serif);margin:4px 0}
#begin-invitation{display:inline-flex;align-items:center;justify-content:center;gap:22px;border:1px solid #b99b707d;border-radius:999px;min-height:52px;padding:15px 32px;background:#fff9edf0;color:#725248;box-shadow:0 5px 22px #8c6c4012;font:500 11px/1.5 var(--sans);letter-spacing:.18em;text-transform:uppercase;transition:background .25s,box-shadow .25s}
#begin-invitation:hover{background:#fffaf3;box-shadow:0 6px 26px #8c6c4026}#begin-invitation:focus-visible{outline:2px solid #94464b;outline-offset:6px}
#begin-invitation>span{font-size:18px;letter-spacing:0}.welcome-note{font:italic 18px/1.5 var(--serif);color:#866f62;margin-top:18px}
body.invitation-opening>.invitation-surface{opacity:1;transform:none}
body.invitation-opening #welcome-gate{opacity:0;transform:translateY(-8px);pointer-events:none}
body.invitation-open>.invitation-surface{opacity:1;transform:none}
@media(max-width:600px){#welcome-gate{background-size:auto 100%;padding:24px}.welcome-floral{width:220px}#welcome-title{font-size:clamp(64px,19vw,88px)}}
@media(prefers-reduced-motion:reduce){#welcome-gate,body.gate-pending>.invitation-surface{transition:none!important;transform:none!important}}

/* Programmatic entrance focus is a reading position, not an interactive control. */
.hero h1[tabindex='-1']:focus,.hero h1[tabindex='-1']:focus-visible{outline:none}

/* A compact date composition, optically centered in the ivory heart. */
.heart .hidden-date{padding:0 14% 2%;text-align:center;justify-content:center;align-items:center;gap:0}
.heart .hidden-date .revealed-day{font-family:var(--sans);font-size:13cqw;font-weight:400;line-height:1;letter-spacing:-.035em;margin:0;font-variant-numeric:lining-nums tabular-nums}
.heart .hidden-date .revealed-month{font-family:var(--sans);font-size:4.6cqw;font-weight:500;line-height:1.4;letter-spacing:.18em;text-indent:.18em;margin:2.8cqw 0 1.8cqw}
.heart .hidden-date .revealed-year{font-family:var(--sans);font-size:6.6cqw;font-weight:400;line-height:1.2;letter-spacing:.04em;text-indent:.04em;margin:0;font-variant-numeric:lining-nums tabular-nums}

/* RSVP: a floral reply card with an editorial introduction and warm paper fields. */
#rsvp{padding-inline:clamp(18px,5vw,80px);background:radial-gradient(ellipse at 15% 35%,#dce4d342,transparent 55%),radial-gradient(ellipse at 90% 75%,#edc9c442,transparent 55%)}
#rsvp .rsvp-panel{position:relative;isolation:isolate;max-width:1060px;display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(32px,5vw,72px);align-items:center;padding:clamp(36px,5vw,68px);border:1px solid #c5aa7c99;border-radius:160px 160px 18px 18px;background:radial-gradient(ellipse at 0 0,#f1dadb85,transparent 55%),linear-gradient(145deg,#fffaf2ed,#f6eee2ed);box-shadow:0 22px 65px #76574710,0 2px 8px #7657470a}
#rsvp .rsvp-panel:before{content:'';position:absolute;inset:10px;border:1px solid #c5aa7c55;border-radius:150px 150px 10px 10px;pointer-events:none;z-index:-1}
.rsvp-introduction{text-align:center;padding:28px 0}
#rsvp .rsvp-introduction .floral-ornament{width:min(330px,100%);margin:0 auto 28px}
#rsvp .rsvp-introduction .eyebrow{color:#8a735a;font-size:10px;letter-spacing:.24em;margin:0 0 14px}
#rsvp .rsvp-introduction h2{margin:0 0 24px;letter-spacing:.05em}
.rsvp-introduction>p:not(.eyebrow){font:400 var(--type-body)/1.85 var(--sans);color:var(--type-ink);max-width:29ch;margin:auto}
.rsvp-introduction:after{content:'✧';display:block;color:#ad9060;font:28px/1 var(--serif);margin:30px auto 0;width:100px;border-bottom:1px solid #c5aa7c66;padding-bottom:20px}
#rsvp-form{margin:20px 0 0;min-width:0}
#rsvp-form>label,#rsvp-form legend{color:#7c5e50;letter-spacing:.14em;font-size:10px;margin-bottom:10px}
#rsvp-form #name{background:#fffcf6ba;border:1px solid #c6ac864d;border-radius:6px;padding:13px 15px;min-height:50px;box-shadow:inset 0 1px 3px #735f3e05;margin-bottom:24px}
#rsvp-form #name::placeholder{color:#8c8075}
#rsvp-form .stepper{width:fit-content;gap:14px;padding:5px;border:1px solid #c6ac865c;border-radius:999px;background:#fffaf3b3;margin-bottom:26px}
#rsvp-form .stepper .round{width:44px;height:44px;border:0;background:#efe3d4;color:#79464a;font-size:22px}
#rsvp-form #guests{width:42px;font-size:18px;color:var(--type-ink)}
#rsvp-form fieldset{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:24px}
#rsvp-form fieldset label{padding:11px 12px;min-height:52px;gap:9px;font-size:13px;line-height:1.45;border:1px solid #c6ac864d;border-radius:6px;background:#fffaf48c;cursor:pointer;transition:background .2s,border-color .2s}
#rsvp-form fieldset label:has(input:checked){background:#eddcda;border-color:#a85d6380;color:#763f44}
#rsvp-form fieldset label:last-child{grid-column:1/-1;background:transparent}
#rsvp-form fieldset input{flex:none;width:17px;height:17px}
#rsvp-form .submit{border-radius:999px;min-height:52px;background:linear-gradient(120deg,#91474d,#aa6265);box-shadow:0 5px 14px #91474d1a;font-size:11px;letter-spacing:.16em;margin-top:0}
#rsvp-form .submit:hover{background:#854149}
#rsvp-form :is(button,input):focus-visible{outline:2px solid #94464b;outline-offset:3px}
#rsvp-form .form-note{font-size:11px;color:#7b7063;margin:14px auto;max-width:32ch}
#rsvp-form .form-status:not(:empty){padding:14px;border:1px solid #b4bda2;background:#eff1e7;border-radius:6px;font-size:14px}
#rsvp-form #clear{font-size:12px;color:#805e55}
@media(max-width:760px){#rsvp .rsvp-panel{grid-template-columns:1fr;gap:0;padding:36px 26px 30px;border-radius:110px 110px 14px 14px}#rsvp .rsvp-panel:before{inset:8px;border-radius:102px 102px 8px 8px}.rsvp-introduction{padding:12px 0 0}#rsvp .rsvp-introduction .floral-ornament{width:min(275px,100%);margin-bottom:18px}.rsvp-introduction:after{margin:22px auto 0;padding-bottom:14px}#rsvp-form{margin-top:28px}#rsvp-form fieldset label{font-size:12px;padding:10px;min-height:54px}}
@media(max-width:360px){#rsvp .rsvp-panel{padding-inline:22px}#rsvp-form fieldset{grid-template-columns:1fr}#rsvp-form fieldset label{font-size:13px}}
/* Keep all guest-counter controls on one shared center line. */
#rsvp-form .stepper{display:grid;grid-template-columns:44px 42px 44px;align-items:center;justify-items:center;gap:10px;padding:6px}
#rsvp-form .stepper .round{display:grid;place-items:center;padding:0;margin:0;line-height:1;min-height:44px;border-radius:50%}
#rsvp-form .stepper #guests{display:block;box-sizing:border-box;width:42px;height:44px;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;line-height:normal;text-align:center;appearance:textfield}
#rsvp-form #guests::-webkit-inner-spin-button,#rsvp-form #guests::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}

/* Heritage palette: burgundy ink, warm cream, aged brass. */
:root{--wine:#681f2c;--body:#493a32;--gold:#a3844e;--type-wine:#681f2c;--type-ink:#493a32;--type-muted:#746354}
body{background:#f8f1e3;color:#493a32}
.hero{background:transparent}.hero::before{background:radial-gradient(ellipse at 50% 15%,#eee1c9,transparent 65%),linear-gradient(#f4ead7,#f8f1e3);filter:none}
.hero::after{content:'';position:absolute;inset:24px 4% 8%;border:1px solid #a3844e55;border-radius:48% 48% 0 0;pointer-events:none;z-index:-1}
#welcome-gate{background:radial-gradient(ellipse at 50% 25%,#eee1c9,transparent 65%),#f8f1e3}
#welcome-gate:before{content:'';position:absolute;inset:24px;border:1px solid #a3844e66;border-radius:45% 45% 12px 12px;pointer-events:none}
#begin-invitation{color:#681f2c;border-color:#a3844e88;background:#fcf6e9}.welcome-eyebrow,.welcome-note{color:#746354}
.petal-track i,.reveal-petal i{background:radial-gradient(ellipse at 25% 20%,#ab6765,#782c3d 60%,#511924)}
.floral-ornament img,.welcome-floral,.clock-frame>img{filter:sepia(.52) saturate(.58)}
.family-dedication{background:linear-gradient(135deg,#f7eddd,#fdf8ef);border-color:#a3844e66}
#rsvp{background:radial-gradient(ellipse at 15% 35%,#daceb542,transparent 55%),radial-gradient(ellipse at 90% 75%,#681f2c0a,transparent 55%)}
#rsvp .rsvp-panel{background:radial-gradient(ellipse at 0 0,#ded0b585,transparent 55%),linear-gradient(145deg,#fffaf0,#f1e5d2)}
#rsvp-form fieldset label:has(input:checked){background:#681f2c10;border-color:#681f2c80;color:#681f2c}
#rsvp-form .submit,.submit{background:#681f2c;color:#fff7e6}#rsvp-form .submit:hover{background:#501722}
#rsvp-form .stepper .round{background:#e9dcc4;color:#681f2c}input[type=checkbox]{accent-color:#681f2c}
.music{color:#681f2c;border-color:#681f2c;background:#fcf7ed}.dots button[aria-pressed=true]{background:#681f2c}
footer{background:#eee2cd55}.family-names span,.invitation>.amp{color:#a3844e}
.celebrations .event-invitation{filter:none;background-size:100% 100%;border:1px solid #a3844e40;box-shadow:0 10px 28px #3727191c}
.celebrations .event-invitation.bhog,.celebrations .event-invitation.mehendi,.celebrations .event-invitation.jaggo,.celebrations .event-invitation.wedding,.celebrations .event-invitation.reception{--writing-top:23%;--writing-bottom:24%}
.celebrations .event-invitation .event-copy{inset:var(--writing-top) 16% var(--writing-bottom);color:#522536}
.celebrations .event-invitation .event-copy :is(h3,.eyebrow,.save-date){color:inherit}
.celebrations .event-invitation .pill{background:#681f2c;color:#fff7e6}
.celebrations .event-invitation:is(.wedding,.jaggo,.mehendi) .event-copy{color:#fff3d6}
.celebrations .event-invitation:is(.wedding,.jaggo,.mehendi) .pill{background:#fbf0d9;color:#681f2c}
.celebrations .event-invitation .save-date{border-color:currentColor}
.celebrations .event-invitation.reception .event-copy{inset:23% 16% 24%;color:#492c29}
.celebrations .event-invitation.mehendi .event-copy{color:#4e241b}.celebrations .event-invitation.mehendi .pill{background:#681f2c;color:#fff7e6}
.celebrations .event-invitation.wedding{--writing-top:24%;--writing-bottom:20%}
.celebrations .event-invitation.wedding .event-copy{inset:var(--writing-top) 13% var(--writing-bottom)}
.celebrations .event-invitation.wedding .event-schedule p{font-size:clamp(12px,3.6cqi,16px);line-height:1.3;white-space:nowrap}
.celebrations .event-invitation .event-venue{font-size:clamp(13px,3.8cqi,17px)}

/* Supplied floral opening dissolves into one continuous, quiet paper wash. */
body{background:radial-gradient(ellipse at 8% 28%,rgba(104,31,44,.045),transparent 58%),radial-gradient(ellipse at 94% 70%,rgba(104,31,44,.035),transparent 58%),linear-gradient(135deg,#faf4e9,#f3e9d9 52%,#faf4e9);background-attachment:fixed}
.hero::before{background:url('burgundy-floral-hero.png') center center/cover no-repeat;filter:none;-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 60%,rgba(0,0,0,.95) 70%,rgba(0,0,0,.7) 80%,rgba(0,0,0,.3) 90%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0%,#000 60%,rgba(0,0,0,.95) 70%,rgba(0,0,0,.7) 80%,rgba(0,0,0,.3) 90%,transparent 100%)}
.hero::after,#welcome-gate:before{content:none}
#welcome-gate{background:#f8f1e3 url('burgundy-floral-hero.png') center center/cover no-repeat;isolation:isolate}
#welcome-gate .welcome-content{position:relative;z-index:2}
.petal-track i,.reveal-petal i{background:radial-gradient(ellipse at 25% 20%,#ac626b 0%,#7b263a 52%,#4b1424 100%)}
#rsvp,footer{background:transparent}
@media(max-width:760px){.hero::before,#welcome-gate{background-position:center;background-size:cover}}

.blessings .groom-parent-blessing{margin-top:16px}.groom-family{margin-top:30px;padding-top:24px;border-top:1px solid #a3844e44}.groom-family>.eyebrow{font:500 10px/1.6 var(--sans);letter-spacing:.16em;color:var(--type-muted);margin-bottom:14px}
.moments .portrait-photo img{object-fit:contain}.moments .rotated-photo img{position:absolute;left:50%;top:50%;width:80%;height:125%;max-width:none;object-fit:contain;transform:translate(-50%,-50%) rotate(-90deg)}
#lightbox.rotated-lightbox img{max-width:70svh;max-height:75vw;transform:rotate(-90deg);margin:9vw auto} .dots{flex-wrap:wrap;justify-content:center}

/* Fill every frame proportionally; crop edges instead of stretching. */
.moments .slide img{object-fit:cover;object-position:center}.moments .slide{background:#f3eadb}.moments .slide img[src="moment-4.jpg"]{object-position:center 60%}.moments .slide img[src="moment-7.jpg"]{object-position:center 40%}

/* Nine pagination indicators remain on a single responsive row. */
.moments .gallery-nav{display:flex;align-items:center;flex-wrap:nowrap;width:min(460px,calc(100% - 24px));gap:8px;padding:8px;box-sizing:border-box}
.moments .gallery-nav .round{flex:0 0 44px;width:44px;min-width:44px;height:44px}
.moments .gallery-nav .dots{display:flex;flex:1 1 0;min-width:0;flex-wrap:nowrap;gap:0;justify-content:center;align-items:center}
.moments .gallery-nav .dots button{flex:1 1 0;width:auto;min-width:0;max-width:30px;height:44px;padding:0;border:0}
.moments .gallery-nav .dots button:before{width:6px;height:6px}
.moments .gallery-nav .dots button[aria-pressed=true]:before{width:14px}
@media(max-width:360px){.moments .gallery-nav{gap:4px;padding:6px}.moments .gallery-nav .dots button[aria-pressed=true]:before{width:12px}}
