@font-face{font-family:Cormorant;src:url("assets/CormorantGaramond.ttf") format("truetype");font-weight:300 700;font-display:swap}
@font-face{font-family:"DM Sans";src:url("assets/DMSans.ttf") format("truetype");font-weight:100 1000;font-display:swap}
:root{
  color-scheme:dark;
  --ink:#faebcf;
  --soft:#e3c6a4;
  --gold:#e7b77c;
  --velvet:#441522;
  --night:#240910;
  --line:#d4a97166;
  --serif:Cormorant,Georgia,serif;
  --sans:"DM Sans",Arial,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--night);color:var(--ink);font:400 1rem/1.6 var(--sans)}
body.opening-locked{overflow:hidden;overscroll-behavior:none}
[hidden]{display:none!important}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid #ffdb9e;outline-offset:5px}
h1,h2,p{margin:0}
h1,h2{font:500 clamp(2.9rem,7vw,6.4rem)/.91 var(--serif);letter-spacing:-.042em}
h1 em,h2 em{color:var(--gold);font-weight:400}
.kicker,.card-details dt{font:600 .69rem/1.4 var(--sans);text-transform:uppercase;letter-spacing:.24em;color:var(--gold)}
.button,#theatre-start,.theatre-next{
  display:inline-flex;align-items:center;justify-content:center;gap:.68rem;min-height:44px;padding:.67rem 1.1rem;
  border:1px solid var(--line);color:var(--ink);font:600 .78rem/1.3 var(--sans);text-align:center;
  background:#2f0b16;transition:background .22s,color .22s,border-color .22s;
}
.button:hover,#theatre-start:hover,.theatre-next:hover{background:#5a2031;border-color:var(--gold)}
.button-gold{background:#e6bf88;color:#301018;border-color:#e6bf88}
.button-gold:hover{background:#fae1b5;color:#301018}
#music-toggle{
  position:fixed;z-index:8;right:max(.75rem,env(safe-area-inset-right));bottom:max(.75rem,env(safe-area-inset-bottom));
  display:flex;align-items:center;gap:.45rem;min-height:44px;max-width:calc(100% - 1.5rem);padding:.48rem .83rem;
  border:1px solid #b88b58;border-radius:100px;background:#3c0c19;color:#ffe4aa;box-shadow:0 3px 13px #18050a80;
  font-size:.73rem;
}
#music-toggle:hover{background:#5a2031}
#music-toggle span:first-child{font-size:1rem}
.theatre,.theatre-sticky{height:100svh}
.theatre{background:#230810}
.theatre-sticky{position:relative;display:grid;place-items:center;isolation:isolate;overflow:hidden}
.theatre-sticky:before{
  content:"";position:absolute;inset:-4%;z-index:-1;filter:blur(16px);
  background:linear-gradient(#22061082,#220610d6),url("assets/theatre/stage.png") center 39%/cover;
}
.theatre-picture{position:relative;width:min(100%,54svh);height:100%;overflow:hidden;box-shadow:0 0 75px #170309d6}
#theatre-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.theatre-roses{
  position:absolute;left:50%;bottom:0;translate:-50% 0;width:max(100%,54svh);height:auto;max-width:none;
  opacity:0;transition:opacity .65s;pointer-events:none;
}
.has-title .theatre-roses{opacity:1}
.theatre-title{
  position:absolute;top:40%;left:50%;width:min(66%,310px);isolation:isolate;text-align:center;
  color:#fff0d6;opacity:0;transform:translateX(-50%) scale(.94);
  transition:opacity .85s ease,transform 1.25s cubic-bezier(.15,.66,.2,1);pointer-events:none;
}
.theatre-title:before{
  content:"";position:absolute;z-index:-1;inset:-13% -18% -16%;
  background:radial-gradient(ellipse,#210307ef 12%,#260407b7 45%,transparent 74%);
}
.has-title .theatre-title{opacity:1;transform:translateX(-50%) scale(1)}
.theatre-title img{width:auto;height:clamp(90px,23svh,210px);margin:auto auto .45rem;filter:drop-shadow(0 3px 6px #230406)}
.theatre-title .monogram-names{font:600 clamp(.88rem,2.9svh,1.4rem)/1.2 var(--serif);letter-spacing:.27em;text-indent:.27em}
.monogram-names span{color:var(--gold)}
.theatre-title time{font:500 .79rem/1.6 var(--serif);letter-spacing:.24em}
#theatre-start,.theatre-next{
  position:absolute;bottom:clamp(4.25rem,10svh,5.5rem);z-index:2;border-color:#e1b57d;
  opacity:0;visibility:hidden;transition:opacity .35s,visibility .35s,background .22s;
}
.has-start #theatre-start,.has-next .theatre-next{opacity:1;visibility:visible}

.topbar{
  background:#260a12;min-height:60px;padding:.6rem clamp(1.15rem,7vw,7rem);
  display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)
}
.topbar img{object-fit:contain}
.topbar nav{display:flex;gap:clamp(1rem,3.1vw,2.8rem);font-size:.77rem}
.topbar nav a:hover{color:var(--gold);text-decoration:underline;text-underline-offset:5px}
.card-scene{
  position:relative;display:grid;place-items:center;padding:clamp(2rem,6vw,6.5rem) 1rem;isolation:isolate;
  background:radial-gradient(ellipse at 50% 12%,#6a2639,#2d0c17 72%);overflow:hidden;
}
.card-scene:before,.card-scene:after{content:"";position:absolute;z-index:-1;pointer-events:none}
.card-scene:before{
  inset:0;background:linear-gradient(90deg,#21070b2e,#260b16d9 39%,#260b16d9 61%,#21070b2e),url("assets/theatre/curtain-001.png") center 38%/cover;
  opacity:.63;
}
.card-scene:after{inset:auto 0 0;height:45%;background:linear-gradient(transparent,#270913)}
.invitation-card{
  position:relative;width:min(100%,720px);padding:clamp(2rem,5vw,4.2rem) clamp(1.25rem,5vw,5.1rem);
  display:grid;justify-items:center;text-align:center;isolation:isolate;
  background:radial-gradient(ellipse at 50% 18%,#692a3c,#4a1929 50%,#32101d 100%);
  box-shadow:0 12px 70px #19040e91;
}
.card-mark{height:clamp(71px,11vw,125px);width:auto;object-fit:contain;margin-bottom:.85rem}
.invitation-card h1{margin:.38rem 0 .1rem}
.card-message{color:var(--soft);max-width:35ch}
.card-details{display:grid;grid-template-columns:1fr 1fr;width:100%;margin:1.45rem 0 .95rem}
.card-details div{padding:.72rem .35rem}
.card-details dt{font-size:.61rem;letter-spacing:.16em}
.card-details dd{margin:.24rem 0 0;font:600 clamp(.99rem,3.8vw,1.44rem)/1.05 var(--serif)}

.date-scene{background:#250913}
.date-stage{
  display:grid;place-items:center;min-height:min(740px,100svh);padding:1.35rem 1rem;
  background:#320c17;
}
.date-frame{
  position:relative;width:min(90vw,525px);min-height:340px;padding:clamp(1.55rem,4svh,3rem) 1.2rem;
  display:grid;justify-items:center;text-align:center;
}
.date-heading{display:grid;justify-items:center;gap:.22em;line-height:1;color:var(--ink)}
.date-weekday,.date-year{font:600 .75rem/1 var(--sans);text-transform:uppercase;letter-spacing:.26em}
.date-digits{display:flex;font:500 clamp(5.4rem,16svh,9.9rem)/.75 var(--serif);color:var(--gold)}
.date-digits span{display:block}
.date-month{font:500 italic clamp(2.65rem,7svh,4.35rem)/.95 var(--serif);letter-spacing:-.045em}
.date-actions{width:100%;margin-top:clamp(1rem,3svh,2rem)}
.countdown{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));max-width:330px;margin:0 auto .85rem;border-block:1px solid var(--line)}
.countdown div{padding:.32rem .25rem;display:grid}
.countdown div+div{border-left:1px solid var(--line)}
.countdown b{font:600 clamp(1.5rem,5vw,2.5rem)/1 var(--serif);font-variant-numeric:tabular-nums}
.countdown span{color:var(--soft);font-size:.64rem}
@supports (animation-timeline:view()){
  @media(prefers-reduced-motion:no-preference) and (min-height:600px){
    .date-scene{height:151svh;view-timeline-name:--date;view-timeline-axis:block}
    .date-stage{position:sticky;top:0;height:100svh}
    .date-weekday,.date-digits span,.date-month,.date-year,.date-actions{
      animation-timeline:--date;animation-fill-mode:both;animation-timing-function:ease-out;
    }
    .date-weekday{animation-name:date-ink;animation-range:cover 17% cover 37%}
    .date-digits span:first-child{animation-name:date-left;animation-range:cover 22% cover 43%}
    .date-digits span:last-child{animation-name:date-right;animation-range:cover 26% cover 47%}
    .date-month,.date-year{animation-name:date-ink;animation-range:cover 33% cover 53%}
    .date-actions{animation-name:date-ink;animation-range:cover 40% cover 60%}
    @keyframes date-ink{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}
    @keyframes date-left{from{opacity:0;translate:-.22em .1em}to{opacity:1;translate:0 0}}
    @keyframes date-right{from{opacity:0;translate:.22em .1em}to{opacity:1;translate:0 0}}
    .date-frame:focus-within .date-actions{animation:none;opacity:1}
  }
}

.section{display:grid;gap:clamp(1.5rem,5vw,6rem);align-items:center;padding:clamp(2.5rem,8vw,7rem) clamp(1.25rem,8vw,9rem)}
.venue-section,.rsvp-section{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);border-top:0}
.venue-section{background:#411521}
.venue-copy h2,.rsvp-copy h2{margin:.4rem 0 .7rem;font-size:clamp(2.85rem,6vw,5.5rem)}
.venue-copy>p:not(.kicker),.rsvp-copy>p:not(.kicker){color:var(--soft);margin-bottom:1.15rem;max-width:35ch}
.map-wrap{padding:5px;border:1px solid var(--line);background:#2e0d18}
.map-wrap iframe{display:block;width:100%;height:clamp(230px,32vw,370px);border:none;background:#35111c}
.rsvp-section{background:radial-gradient(ellipse at 78% 32%,#5a2234,#2f101d 77%)}
#rsvpForm{display:grid;gap:.7rem;padding:clamp(1rem,3vw,2.25rem);border:1px solid var(--line);background:#2c0b16}
#rsvpForm label{display:grid;gap:.22rem;font-size:.76rem;color:var(--soft)}
#rsvpForm :is(input,select,textarea){width:100%;min-height:44px;padding:.46rem .65rem;border:1px solid #b98d636f;background:#391521;color:var(--ink);border-radius:0}
#rsvpForm button{justify-self:start}
#response{display:grid;gap:.45rem;padding-top:.55rem;border-top:1px solid var(--line)}
#responseText{resize:vertical}
#copyStatus{color:var(--soft);font-size:.77rem}
#copyStatus:empty{display:none}
footer{display:grid;justify-items:center;gap:.35rem;background:#210710;color:var(--soft);padding:2rem 1.25rem 4.4rem}
footer p{font:500 1.4rem/1.2 var(--serif)}
.scene-piece{opacity:0;translate:0 17px;transition:opacity .85s ease var(--beat),translate 1s ease var(--beat)}
.scene-piece.in-scene,.scene-piece:focus-within{opacity:1;translate:0 0}
@media(max-width:720px){
  .venue-section,.rsvp-section{grid-template-columns:1fr}
  .card-scene{padding-inline:.85rem}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  .scene-piece{opacity:1;translate:none}
}

#rsvpForm.scene-piece{translate:none;transition-property:opacity}
#rsvpForm:focus-within{transition:none}

.invitation-card{
  width:min(100%,790px);
  padding:clamp(3.4rem,8vw,7rem) clamp(2.25rem,10vw,8.25rem);
  background:radial-gradient(ellipse at 48% 35%,#652c40,#401321 62%,#2a0913);
  isolation:isolate;
  box-shadow:0 24px 84px #17040c9c;
}
.card-floral-frame{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:fill;
  pointer-events:none;
  filter:drop-shadow(0 8px 12px #17040cd1);
  z-index:-1;
}
.invitation-card h1{margin:.38rem 0 .62rem}
.card-message{max-width:32ch}
.card-details{margin:.9rem 0 .85rem}
.card-mark{height:clamp(63px,9vw,108px);margin-bottom:.65rem}
.date-stage{position:relative;isolation:isolate;overflow:hidden}
.rose-garden{
  position:absolute;
  z-index:-2;
  inset:0;
  background:
    radial-gradient(ellipse at center,#2507133d 0%,#2507130e 48%,#25071348 100%),
    url("assets/roseraie-nocturne.jpg") center/cover;
}
.date-frame{
  position:relative;
  isolation:isolate;
  max-width:100%;
}
.date-frame:before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:-13% -13%;
  background:radial-gradient(ellipse,#240711ed 12%,#240711a6 44%,transparent 74%);
  pointer-events:none;
}
.date-garland{
  position:absolute;
  width:clamp(82px,18vw,245px);
  height:auto;
  max-height:66svh;
  object-fit:contain;
  pointer-events:none;
  z-index:-1;
  filter:drop-shadow(0 10px 14px #18030be0);
}
.date-rose-left{right:calc(100% - 21px);bottom:-5%;rotate:-9deg}
.date-rose-right{left:calc(100% - 21px);top:-7%;rotate:10deg}
.countdown{border:0}
.countdown div+div{border:0}
.venue-section{position:relative;isolation:isolate;overflow:hidden}
.venue-florals{
  position:absolute;z-index:-1;
  left:-5.25rem;bottom:-4.5rem;
  transform:rotate(56deg);
  width:clamp(160px,23vw,300px);
  opacity:.48;
  pointer-events:none;
}
@supports (animation-timeline:view()){
  @media(prefers-reduced-motion:no-preference) and (min-height:600px){
    .rose-garden,.date-garland{
      animation-timeline:--date;
      animation-fill-mode:both;
      animation-timing-function:ease-out;
    }
    .rose-garden{animation-name:garden-approach;animation-range:cover 8% cover 68%}
    .date-rose-left{animation-name:garland-left;animation-range:cover 12% cover 42%}
    .date-rose-right{animation-name:garland-right;animation-range:cover 17% cover 48%}
    @keyframes garden-approach{from{scale:1}to{scale:1.08}}
    @keyframes garland-left{from{opacity:0;translate:-2rem 1rem}to{opacity:1;translate:0 0}}
    @keyframes garland-right{from{opacity:0;translate:2rem -1rem}to{opacity:1;translate:0 0}}
  }
}
@media(max-width:600px){
  .card-scene{padding:1.15rem .45rem 1.5rem}
  .invitation-card{
    padding:clamp(3.5rem,14vw,5.2rem) clamp(2.1rem,11.8vw,4.45rem);
  }
  .invitation-card h1{font-size:clamp(2.45rem,10.7vw,4.4rem)}
  .card-message{font-size:.85rem;line-height:1.47}
  .invitation-card .kicker{font-size:.59rem;letter-spacing:.15em}
  .card-details dd{font-size:clamp(.78rem,3.7vw,1.26rem)}
  .card-details dt{font-size:.56rem}
  .date-frame{width:min(88vw,355px);padding-inline:1.6rem}
  .rose-garden{background-position:center}
  .date-rose-left{right:auto;left:-3.45rem;bottom:-5%;}
  .date-rose-right{left:auto;right:-3.4rem;top:-5%;}
  .venue-florals{left:auto;right:-3rem;top:-4rem;opacity:.43;rotate:-29deg;}
}

@supports (animation-timeline:view()){
  @media(prefers-reduced-motion:no-preference) and (min-height:600px){
    .date-stage{position:sticky}
  }
}
@media(max-width:600px){
  .card-details dd{max-width:12ch;margin-inline:auto}
}
@media(min-width:601px){
  .card-details{max-width:420px}
}
@media(max-width:600px){
  .date-rose-left{left:-2.6rem;bottom:-12%;width:clamp(89px,27vw,113px)}
  .date-rose-right{right:-1.9rem;top:-19%;width:clamp(89px,27vw,113px)}
}

.music-status:not(:empty){
  position:fixed;z-index:8;right:max(.75rem,env(safe-area-inset-right));
  bottom:calc(max(.75rem,env(safe-area-inset-bottom)) + 52px);
  max-width:calc(100% - 1.5rem);padding:.45rem .8rem;
  border:1px solid var(--line);background:#3c0c19;color:var(--ink);font-size:.8rem;
}
.producer-credit{
  display:grid;justify-items:center;gap:.45rem;
  margin-top:1rem;padding-top:1rem;border-top:1px solid var(--line);
  text-align:center;font:400 .85rem/1.6 var(--sans);
}
.producer-credit p{font:inherit}
.producer-credit p:first-child{color:var(--gold)}
.producer-credit img{height:auto;margin:.15rem 0}
.producer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:.15rem .85rem}
.producer-links a{text-decoration:underline;text-underline-offset:.2em}
.producer-credit a:hover{color:var(--ink)}
