:root{--burgundy:#561f35;--dark:#311320;--ivory:#f8eedc;--paper:#fbf5e8;--ink:#342025;--muted:#76575f;--gold:#c7996d;--line:#dac6b5;--easing:cubic-bezier(.21,.88,.32,1);color-scheme:light}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font:1rem/1.65 Georgia,"Times New Roman",serif}
a{color:inherit}
button{font:inherit;cursor:pointer}
[hidden]{display:none!important}
h1,h2,p{margin:0}
a:focus-visible,button:focus-visible,input:focus-visible+span{outline:3px solid #bc7848;outline-offset:4px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip{position:fixed;inset:.8rem auto auto .8rem;z-index:10;background:#fff5e3;color:#321a24;padding:.45rem 1rem;transform:translateY(-180%)}
.skip:focus{transform:none}
.site-header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.68rem max(1.15rem,env(safe-area-inset-right)) .68rem max(1.15rem,env(safe-area-inset-left));min-height:3.55rem;background:#3b1728;color:#f3dfc4;border-bottom:1px solid #e4bc8d50;position:relative;z-index:1}
.brand{display:inline-flex;align-items:center;gap:.5rem;text-decoration:none;font-size:1.43rem;line-height:1}
.brand svg{width:1.35rem;fill:none;stroke:#e7bc8d;stroke-width:1.2}
.brand svg circle{fill:#e7bc8d}
.sample-badge{font:650 .63rem/1.1 system-ui,sans-serif;letter-spacing:.13em;text-transform:uppercase;border:1px solid #e4bc8d61;border-radius:1rem;padding:.35rem .52rem;color:#f9e4c9}
.cover{
 position:relative;isolation:isolate;min-height:38rem;min-height:max(33rem,calc(100svh - 3.55rem));
 display:grid;place-items:center;overflow:hidden;background:#57263b;color:#fff3df;text-align:center;
}
.cover-photo,.cover-wash,.cover-veil{position:absolute;inset:0;z-index:-3;pointer-events:none}
.cover-photo{
 background:linear-gradient(150deg,#674a40b0 0%,#9c685b18 44%,#70354c6b 100%),url("cover.webp") center 46%/cover no-repeat,
 radial-gradient(ellipse at 40% 25%,#c38777,#643d4c 41%,#321c2a 80%);
}
.cover-wash{z-index:-2;background:linear-gradient(0deg,#201019e0 0%,#20101969 34%,#24182411 62%,#1f142a42)}
.cover-veil{z-index:-1;background:linear-gradient(180deg,transparent,#2a14192e);opacity:.8}
.gate{
 position:absolute;z-index:1;top:-1%;bottom:-1%;width:51%;
 background:repeating-linear-gradient(90deg,#d3a08416 0 1px,transparent 1px 7px),
 radial-gradient(ellipse at 70% 42%,#763b4e,#44192d 65%,#30101e);
 transition:transform 1.15s var(--easing),opacity .85s ease;
 transform:translateX(-106%);opacity:0;pointer-events:none;
}
.gate-right{right:0;transform:translateX(106%) scaleX(-1)}
.gate-left{left:0}
.gate::before{content:"";position:absolute;inset:4% 10% 4% 10%;border:1px solid #deb38d3b;border-radius:48% 48% .35rem .35rem / 22% 22% .35rem .35rem;box-shadow:0 0 0 .38rem #40122385,0 0 0 calc(.38rem + 1px) #e2b18237}
.gate::after{content:"";position:absolute;inset:13% 26% 12%;border:1px solid #e8be951e;border-radius:52% 52% .28rem .28rem / 21% 21% .28rem .28rem}
.intro-card{display:none;position:absolute;z-index:3;inset:0;place-content:center;place-items:center;gap:1.3rem;text-align:center;transition:transform .58s var(--easing),opacity .48s}
.enhanced:not(.is-open) .intro-card{display:grid}
.enhanced:not(.is-open) .gate-left{transform:translateX(0);opacity:1}
.enhanced:not(.is-open) .gate-right{transform:translateX(0) scaleX(-1);opacity:1}
.enhanced.is-opening .intro-card{display:grid;transform:scale(.8);opacity:0;pointer-events:none}
.intro-kicker,.intro-caption,.cover-stamp,.eyebrow,.chapter-label,.film-label,.end-meta{
 font:650 .74rem/1.3 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.14em;
}
.intro-kicker{color:#edd2af}
.intro-caption{color:#f0d8bd;font-size:.68rem;letter-spacing:.12em}
.wax{
 width:7.1rem;height:7.1rem;display:grid;place-items:center;padding:0;
 color:#ffe3aa;background:radial-gradient(circle at 34% 21%,#b45c62,#85374b 48%,#641f37 76%,#48202a);
 border:1px solid #a95060;border-radius:48% 53% 44% 50%/51% 46% 52% 45%;
 box-shadow:0 .62rem 1.65rem #260c17ab,inset 0 0 0 .22rem #a84b5a,inset 0 0 0 .39rem #723043;
 font-size:2.35rem;letter-spacing:-.075em;line-height:1;transform:rotate(-7deg);text-shadow:0 1px 1px #3d1721;transition:transform .45s var(--easing);
}
.wax:hover{transform:rotate(0) scale(1.08)}
.wax i{font-size:.57em;margin:.12em;display:inline-block}
.hero-copy{
 z-index:2;align-self:end;max-width:62rem;width:100%;padding:7rem 1.25rem 7.3rem;outline:none;
}
.enhanced:not(.is-open) .hero-copy{visibility:hidden}
.hero-kicker{color:#ffe0ad;margin-bottom:.7rem;letter-spacing:.2em}
.hero-copy h1{font:400 clamp(3.25rem,13vw,8rem)/.92 Georgia,serif;letter-spacing:-.075em;text-shadow:0 .15rem 1.1rem #27132299}
.hero-copy h1 :is(span,i){display:inline-block;white-space:nowrap}
.hero-copy h1 i{font-size:.48em;font-weight:400;letter-spacing:0;vertical-align:.17em;color:#ffdcb5;margin-inline:.04em}
.hero-line{font-size:clamp(1.02rem,3vw,1.28rem);font-style:italic;margin-top:1rem;color:#fff2de}
.continue{display:inline-flex;align-items:center;gap:.72rem;margin-top:1.4rem;border-bottom:1px solid #eed8adad;text-decoration:none;padding:.32rem 0;font:600 .8rem/1.25 system-ui,sans-serif;color:#ffebcf}
.continue:hover{color:white}.continue span{font-size:1.24em}
.cover-stamp{
 z-index:2;position:absolute;bottom:max(1.2rem,env(safe-area-inset-bottom));inset-inline:1.15rem;
 display:flex;align-items:center;justify-content:space-between;gap:1rem;pointer-events:none;color:#f4dcbf;
 border-top:1px solid #efd5af7a;padding-top:.68rem;font-size:.66rem;
}
.enhanced.is-opening .hero-copy :is(.hero-kicker,h1 span,h1 i,.hero-line,.continue){animation:unfold .8s var(--easing) both}
.enhanced.is-opening .hero-copy .hero-kicker{animation-delay:.56s}
.enhanced.is-opening .hero-copy h1 span:first-child{animation-delay:.72s}
.enhanced.is-opening .hero-copy h1 i{animation-delay:.91s}
.enhanced.is-opening .hero-copy h1 span:last-child{animation-delay:1.03s}
.enhanced.is-opening .hero-copy .hero-line{animation-delay:1.21s}
.enhanced.is-opening .hero-copy .continue{animation-delay:1.34s}
@keyframes unfold{from{opacity:0;transform:translateY(1.15rem)}to{opacity:1;transform:translateY(0)}}
.enhanced:not(.is-open) .story-body{display:none}
.chapter,.end{position:relative;isolation:isolate;scroll-margin:1rem;overflow:hidden}
.chapter{padding:clamp(1.1rem,4vw,2rem) max(1.2rem,env(safe-area-inset-right)) 0 max(1.2rem,env(safe-area-inset-left))}
.chapter-label{display:flex;gap:.66rem;align-items:center;font-size:.69rem;letter-spacing:.15em;color:#764557}
.chapter-label>span{display:inline-grid;place-items:center;min-width:1.5rem;min-height:1.5rem;border:1px solid #b88f92;border-radius:50%;font-size:.57rem;letter-spacing:0}
.eyebrow{color:#985768}
.chapter h2{font:400 clamp(2.15rem,8vw,5.5rem)/.97 Georgia,serif;letter-spacing:-.06em;color:var(--burgundy)}
.chapter h2 em{font-weight:400}
.date{border-block:1px solid #dfcbb8;background:#f9efdb}
.date-inner{max-width:53rem;margin:auto;padding:clamp(3.75rem,11vw,9rem) 0 clamp(4.1rem,11vw,8rem);text-align:center}
.date h2{font-size:clamp(3.65rem,14vw,9rem);margin:.8rem 0 0}
.date h2 span{color:#a76063}
.date-rule{width:min(60%,25rem);height:1px;background:#c09d89;margin:1.25rem auto;transform-origin:center}
.date-line{font-size:clamp(.98rem,2.6vw,1.21rem)}.date-line span{color:#98475c;margin-inline:.25rem}
.prose{background:#fdf8ec;border-bottom:1px solid #e1cfbe}
.prose-inner{position:relative;max-width:33rem;margin:0 auto;padding:clamp(3.8rem,10vw,8.5rem) 0 clamp(4rem,10vw,8rem)}
.prose-inner h2{margin:.65rem 0 1.25rem}.prose-inner p:not(.eyebrow){margin-bottom:.85rem;max-width:28rem;font-size:clamp(1rem,2.4vw,1.26rem)}
.prose .story-ornament{position:absolute;z-index:-1;top:12%;right:clamp(.5rem,6vw,6rem);color:#e9d2cc;font:clamp(7.5rem,33vw,24rem)/1 Georgia,serif}
.signature{margin-top:1.32rem;font-size:1.18rem;font-style:italic;color:#79364f}
.portraits{background:#e9d6cb;border-bottom:1px solid #cbb5ac}
.portrait-heading{max-width:53rem;margin:auto;padding:clamp(2.2rem,6vw,5rem) 0 1.25rem;text-align:center}
.portrait-heading h2{margin-top:.6rem}
.gallery{max-width:30rem;margin:0 auto clamp(3.5rem,8vw,6rem);background:#321724;color:#fce7ca;padding:.75rem .75rem .45rem;box-shadow:0 1rem 2.3rem #391f3060}
.film-label{display:flex;justify-content:space-between;padding:.42rem .15rem .65rem;color:#e9c897;font-size:.62rem;font-variant-numeric:tabular-nums}
.portrait-picture{
 position:relative;isolation:isolate;aspect-ratio:3/4;max-height:32rem;overflow:hidden;
 border:1px solid #93666b;background:radial-gradient(ellipse at 40% 32%,#dbaf957a,#84495d 58%,#3d2538);
}
.portrait-picture::after{
 content:"";position:absolute;inset:0;opacity:1;background-image:url("gallery.webp");
 background-size:300% 100%;background-repeat:no-repeat;background-position:0 50%;
}
.portrait-picture.frame-1::after{background-position:50% 50%}
.portrait-picture.frame-2::after{background-position:100% 50%}
.portrait-picture.frame-moving::after{animation:frame-in .55s var(--easing) both}
@keyframes frame-in{from{opacity:.1;scale:1.045}to{opacity:1;scale:1}}
.portrait-fallback{position:absolute;inset:11% 15%;display:grid;place-items:center;border:1px solid #dfc0996b;border-radius:50% 50% .2rem .2rem / 30% 30% .2rem .2rem;background:#31152136;color:#f7dabe;font-style:italic;font-size:clamp(2.8rem,10vw,5.4rem);letter-spacing:-.1em}
.film-controls{display:grid;align-items:center;grid-template-columns:auto 1fr auto;gap:.35rem;text-align:center}
.film-button{background:none;color:#f5d7ad;border:1px solid #b99084;border-radius:50%;min-width:2.75rem;min-height:2.75rem;font-size:1.28em;margin-block:.4rem}
.film-button:hover{background:#64364c}.film-controls p{padding-inline:.5rem;font-style:italic;font-size:.9rem;color:#ffe9d2}
.countdown-section{color:#f9e9d1;background:radial-gradient(ellipse at 33% 12%,#783349,#491d31 73%);border-bottom:1px solid #793b53}
.countdown-section .chapter-label,.countdown-section .eyebrow{color:#f2c9ae}
.countdown-inner{text-align:center;max-width:42rem;margin:auto;padding:clamp(3.8rem,10vw,8rem) 0}
.countdown-inner h2{margin:.62rem 0 1.65rem;color:#fff0d5}
.countdown{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.35rem;margin-bottom:1.3rem}
.countdown>div{border-block:1px solid #dfb99581;background:#3f172842;padding:.65rem .15rem}
.countdown b{font:400 clamp(1.33rem,6.5vw,3.4rem)/1.1 Georgia,serif;font-variant-numeric:tabular-nums;display:block;color:#fbe3bf}
.countdown span{font:600 .65rem/1.2 system-ui,sans-serif;color:#f0c9ae}
.countdown-status{margin-bottom:1.4rem}
.button{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:2.78rem;padding:.5rem .97rem;text-decoration:none;border:1px solid #643348;border-radius:.25rem;background:transparent;color:#5f2a43;font:650 .88rem/1.28 system-ui,sans-serif}
.button:hover{background:#ead2cb}.button-light{border-color:#f0cda999;color:#fff1da}.button-light:hover{background:#642a4394}
.venue{background:#fbf2df;border-bottom:1px solid #e5d3bf}
.venue-inner{text-align:center;max-width:49rem;margin:auto;padding:clamp(2.25rem,7vw,5rem) 0 clamp(3.4rem,9vw,6.3rem)}
.venue-drawing{display:block;width:min(77vw,22rem);height:auto;margin:0 auto 1rem;color:#986d5a}
.venue h2{margin:.65rem 0 1rem;font-size:clamp(2.05rem,7vw,4.35rem)}
.venue .button{margin-top:1.1rem}
.reply{background:#f2e1d8;border-bottom:1px solid #cdb5b0}
.reply-inner{max-width:36rem;margin:auto;padding:clamp(3.7rem,9vw,6.8rem) 0;text-align:center}
.reply h2{margin:.7rem 0 1rem}
#rsvp-description{color:#684b58;margin:auto;max-width:26rem}
#rsvp fieldset{display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem;border:0;margin:1.2rem 0 1rem;padding:0}
#rsvp label{display:block;position:relative;cursor:pointer;min-width:8.9rem}
#rsvp input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
#rsvp label span{display:grid;place-items:center;min-height:2.65rem;padding:.38rem .6rem;border:1px solid #a57e88;border-radius:.2rem;color:#633b50;font:600 .82rem/1.25 system-ui,sans-serif}
#rsvp label input:checked+span{background:#5e2d46;color:#fff1e1;border-color:#5e2d46}
.rsvp-result{min-height:1.5em;color:#64364c;margin-top:.7rem}
.end{background:#351822;color:#f9e7cb;text-align:center;padding:clamp(3.8rem,10vw,8rem) max(1.2rem,env(safe-area-inset-right)) max(1.2rem,env(safe-area-inset-bottom)) max(1.2rem,env(safe-area-inset-left))}
.end-mark{font-size:1.7rem;color:#d5a779}.end .eyebrow{color:#e4b994;margin-top:.75rem}
.end-names{font:400 clamp(2.7rem,10vw,6.4rem)/1 Georgia,serif;letter-spacing:-.07em;margin:.5rem 0 .85rem}
.end-names i{font-size:.55em;color:#e6bc94;letter-spacing:0}
.end-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.75rem 1.5rem;margin:clamp(3rem,9vw,5.5rem) auto 0;padding-top:1rem;border-top:1px solid #ab7d7f;max-width:45rem;font-size:.62rem;letter-spacing:.095em;color:#f3dac0}
.end-meta a{padding:.25rem;text-underline-offset:.25em}
@media(min-width:700px){.site-header{padding-inline:clamp(1.25rem,5vw,5rem)}.cover-stamp{inset-inline:clamp(1.25rem,5vw,5rem)}.chapter{padding-inline:clamp(2rem,7vw,7rem)}.prose-inner{margin-left:14%}}
@media(max-width:370px){.hero-copy h1{font-size:2.92rem}.wax{width:6.3rem;height:6.3rem}.countdown span{font-size:.59rem}.cover-stamp{inset-inline:.85rem}}
@media(prefers-reduced-motion:no-preference){
 .motion .reveal{opacity:0;transform:translateY(1.2rem);transition:opacity .78s ease,transform 1s var(--easing)}
 .motion .reveal.drift-right{transform:translateX(-1.15rem);transition-duration:.72s}
 .motion .reveal.letter-rise{transform:translateY(1.65rem)}
 .motion .reveal.rule-in{opacity:.3;transform:scaleX(.12);transition-duration:1.1s}
 .motion .reveal.marks-in{transform:translateX(1.1rem) rotate(10deg);transition-duration:1.45s}
 .motion .reveal.slide-soft{transform:translateX(1.85rem)}
 .motion .reveal.film-in{transform:translateY(1.6rem) rotate(-2deg) scale(.97)}
 .motion .reveal.glow-in{transform:scale(.92);transition-duration:1.12s}
 .motion .reveal.in-view,.motion .reveal:focus-within{opacity:1;transform:none}
}
@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto}
 *,*::before,*::after{transition:none!important;animation:none!important}
}
/* The painted triptych has three exact 512x1024 cells; preserve that 1:2 ratio. */
.gallery{max-width:22rem}
.portrait-picture{width:min(100%,19rem);aspect-ratio:1/2;max-height:none;margin-inline:auto}
.hero-copy .continue:focus-visible{animation:none!important}
@media (min-width:800px){.cover-photo{background-position:center,center 40%,center}}

/* Personalized names can be longer than the short sample names. */
.is-personalized .hero-copy h1 :is(span,bdi),.is-personalized .end-names bdi,.is-personalized #venue-title{max-inline-size:100%;overflow-wrap:anywhere;white-space:normal}
.is-personalized .hero-copy h1 span{white-space:normal;text-wrap:balance}
