@font-face{font-family:Great Vibes;src:url("assets/script.ttf") format("truetype");font-display:swap}
:root{color-scheme:dark;--ink:#36231c;--cream:#f7eee3;--paper:#412b23;--edge:#c7b1a299;--torn:polygon(0 35%,3% 29%,6% 46%,9% 37%,12% 54%,16% 21%,20% 29%,24% 16%,30% 39%,34% 22%,39% 32%,44% 16%,51% 24%,57% 42%,61% 39%,66% 57%,71% 66%,75% 56%,79% 42%,84% 39%,89% 22%,94% 45%,97% 52%,100% 40%,100% 100%,0 100%)}
*{box-sizing:border-box}
html{scroll-behavior:smooth;background:#241913}
body{margin:0;color:var(--cream);font:clamp(16px,4.9vw,22px)/1.26 Georgia,"Times New Roman",serif;background:radial-gradient(ellipse at 50% 20%,#473128,#211611 83%) fixed}
body.is-closed{overflow:hidden}
img{display:block;max-width:100%}
button,input{font:inherit;color:inherit}
button,a{-webkit-tap-highlight-color:transparent}
a{color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid #c9a779;outline-offset:5px}
p,h1,h2,h3,ol{margin:0}
.page{position:relative;max-width:480px;margin:auto;overflow:hidden;background:#342118 url("assets/satin-hd.webp") center top/100% auto repeat-y;box-shadow:0 0 100px #160d09}
main{min-height:100svh}
section,footer{text-align:center;position:relative}
h2{font:400 clamp(49px,15vw,73px)/.99 "Great Vibes",Georgia,serif;text-wrap:balance}
.hero{width:100%;aspect-ratio:448/725;background:url("assets/hero-hd.webp") center top/cover no-repeat;overflow:hidden}
.name-card{
  position:absolute;container-type:inline-size;top:54.2%;width:97.5%;left:1%;
  transform:translateY(87%) rotate(-4deg);transform-origin:55% 62%;
}
.is-open .name-card{
  transform:none;
  animation:lift-name-card 1.15s 1s cubic-bezier(.24,.62,.34,1) both;
}
@keyframes lift-name-card{
  0%{transform:translateY(87%) rotate(-4deg)}
  68%{transform:translateY(-2.5%) rotate(1deg)}
  100%{transform:none}
}
.name-card img{width:100%;height:auto}
.card-names{
  position:absolute;inset:5.5% 5% auto;text-align:center;color:#31251d;
  font:400 12.7cqw/1.02 "Great Vibes",Georgia,serif;white-space:nowrap;
}
/* Opening screen */
.envelope-paper{--paper-grain:url("assets/envelope-paper.webp") 0 0/384px 384px repeat}
.envelope{
  position:fixed;z-index:4;inset:0;display:grid;place-items:center;
  background:#f2e6d5;perspective:1200px;
  transition:opacity .45s .57s;overflow:hidden;
}
.envelope-paper{
  position:relative;width:100%;height:100%;
  container-type:inline-size;isolation:isolate;
  background:#f7f1e8;color:#3b2721;
  transition:transform .75s .23s cubic-bezier(.4,0,.3,1),opacity .4s .43s;
}
.envelope-folds{
  position:absolute;inset:0;border-radius:inherit;
  background:
    var(--paper-grain),
    linear-gradient(44deg,#fffcf344,transparent 42%),
    linear-gradient(136deg,#f6ead8 8%,#dbc5ab 51%,#f1e3d1 87%);
  box-shadow:inset 0 1px 3px #fffdf5a8,inset 0 -2px 4px #5f40292b;
}
.envelope-pocket{
  position:absolute;inset:0;border-radius:inherit;
  filter:drop-shadow(0 -2px 2px #6343293d);
  pointer-events:none;
}
.envelope-pocket::before{
  content:"";position:absolute;inset:0;border-radius:inherit;
  clip-path:polygon(0 100%,0 76%,48.5% 47%,100% 79%,100% 100%);
  background:
    var(--paper-grain),
    radial-gradient(ellipse at 27% 69%,#fffdf5 0%,transparent 68%),
    linear-gradient(165deg,#fff8e9 52%,#f5e9d7 83%,#e4d0b7);
  box-shadow:inset 0 -1px 2px #67482e32;
}
.envelope-flap{
  position:absolute;inset:0 0 36%;transform-origin:top;
  filter:drop-shadow(1px 2px 1px #593a2a58) drop-shadow(2px 4px 4px #67462f2e);
  transition:transform .65s cubic-bezier(.53,0,.27,1);
}
.envelope-flap::before,.envelope-flap::after{
  content:"";position:absolute;border-radius:inherit;
  clip-path:polygon(0 0,100% 0,100% 35%,53% 88%,48.5% 92%,44% 88%,0 42%);
}
.envelope-flap::before{
  inset:0;
  background:linear-gradient(153deg,#fffdf6 8%,#d8bd9f 82%);
}
.envelope-flap::after{
  inset:1px 1px 2px;
  background:
    var(--paper-grain),
    radial-gradient(ellipse at 24% 0%,#fffdf6 0%,transparent 72%),
    linear-gradient(159deg,#fcf6eb 20%,#f1e2cf 90%);
}
.envelope-title,.envelope-initials,.seal{position:absolute;left:50%;translate:-50% 0;margin:0;text-align:center}
.envelope-title{
  top:9.5%;width:92%;
  font:400 min(13cqw,13svh,92px)/1.04 "Great Vibes",Georgia,serif;
  transition:opacity .22s .09s,transform .46s;
}
.envelope-title span{display:block;margin-top:.06em}
.seal{
  top:55.5%;translate:-50% -50%;display:grid;place-items:center;
  width:clamp(52px,min(35cqw,31svh),228px);
  border:0;padding:0;border-radius:46% 53% 44% 51% / 52% 44% 53% 45%;
  background:transparent;transition:opacity .28s,transform .28s;
}
.seal img{width:100%;height:auto;filter:sepia(1) saturate(1.35) hue-rotate(336deg) brightness(.77) drop-shadow(1px 2px 1px #39241e69) drop-shadow(2px 4px 3px #39241e36)}
.seal:hover{transform:scale(1.055)}
.seal:active{transform:scale(.96)}
.envelope-initials{
  top:74%;font:400 min(20cqw,19svh,138px)/1 "Great Vibes",Georgia,serif;
  font-feature-settings:"ss02" 1;letter-spacing:.035em;
}
.is-open .envelope{opacity:0;pointer-events:none}
.is-open .envelope-paper{transform:translateY(12%);opacity:0}
.is-open .envelope-flap{transform:rotateX(168deg)}
.is-open .envelope-title{opacity:0;transform:translateY(-28%)}
.is-open .seal{opacity:0;transform:scale(1.14)}
.paper{position:relative;background:linear-gradient(#432c23e4,#41291fde),url("assets/satin-hd.webp") center/100% auto repeat}
.paper::before,.paper::after{content:"";position:absolute;z-index:1;left:0;right:0;height:20px;background:var(--paper);pointer-events:none}
.paper::before{bottom:calc(100% - 2px);clip-path:var(--torn)}
.paper::after{top:calc(100% - 2px);clip-path:var(--torn);transform:rotate(180deg)}
.intro{padding:55px 9% 49px}
.intro p,.rsvp>p{margin-top:25px}
.pearl,.flower{position:absolute;pointer-events:none}
.pearl{width:11%}
.pearl-intro{right:6%;bottom:18px;transform:rotate(17deg)}
.calendar-section{padding:13px 10% 88px}
.calendar-title{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:12px}
.calendar-title span:nth-child(2){font-size:.76em}
.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:7px 0;font-size:.89em}
.calendar span{position:relative;display:grid;place-items:center;aspect-ratio:1.16}
.calendar .heart{
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 35 C17 32 3.5 23 3.5 14.5 A8.5 8.5 0 0 1 20 12 A8.5 8.5 0 0 1 36.5 14.5 C36.5 23 23 32 20 35 Z' fill='none' stroke='%23f7eee3' stroke-width='2.1' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / min(102%,42px) auto no-repeat;
  line-height:1;
}
.venue{padding:0 10% 66px}
.venue-video{
  display:block;width:100%;height:auto;aspect-ratio:4/3;margin:0 auto 25px;
  border:1px solid var(--edge);background:#241913;
}
.venue p{margin:23px 0;line-height:1.6}
.outline{display:inline-grid;place-items:center;min-height:62px;min-width:62%;padding:9px 16px;border:1px solid var(--edge);background:#3c261f1c;text-decoration:none;transition:background .2s}
.outline:hover{background:#f7eee321}
.schedule{padding:0 11% 85px}
.schedule h2,.schedule ol{position:relative;z-index:1}
.schedule ol{list-style:none;padding:0;margin-top:30px;text-align:left}
.schedule li{margin-bottom:25px}
.schedule li:nth-child(n+3){max-width:70%}
.schedule h3{font-size:1em;font-weight:400}
.schedule li p{margin:6px 0 0;font-size:.81em;color:#e3ccbc}
.flower-top{width:34%;left:-3%;top:18%;opacity:.4;transform:rotate(-9deg)}
.flower-bottom{width:39%;right:2%;bottom:8%}
.dress-wrap{padding:77px 5.4% 74px}
.dress{background:#fffdfb url("assets/shell-fragment.webp") top 95px center/86% auto no-repeat;color:#29211c;padding:33px 6% 27px;position:relative}
.dress::before,.dress::after{content:"";position:absolute;top:18px;bottom:18px;width:1px;background:#7e746c}
.dress::before{left:4.5%}
.dress::after{right:4.5%}
.dress p{margin:22px auto 0}
.palette{display:flex;flex-wrap:wrap;gap:9px 5%;justify-content:center;margin:29px 0 36px}
.palette img{width:26%;height:auto;aspect-ratio:1;border-radius:50%;object-fit:cover}
.gallery{width:87%;margin:auto}
.gallery-frame{display:grid;width:min(83%,225px);aspect-ratio:274/449;margin-inline:auto;overflow:hidden;background:#eee7e0}
.gallery-frame img{grid-area:1/1;width:100%;height:auto}
.gallery-nav{display:flex;gap:8px;justify-content:center;margin-top:10px}
.gallery-nav button{background:#402c25;color:#f6ebe3;border:0;border-radius:50%;width:35px;height:35px;padding:0;font:25px/1 Georgia,serif}
.dress .dress-note{margin:16px auto 0;font-size:.72em;font-style:italic;line-height:1.4;color:#59453a}
.rsvp{padding:36px 11% 65px}
.rsvp>p{margin-bottom:16px}
.pearl-rsvp{width:8%;right:4%;top:1%;transform:rotate(25deg)}
.down{display:inline-block;text-decoration:none;margin-bottom:24px;line-height:1}
form{text-align:left;scroll-margin-top:24px}
fieldset{border:0;padding:0;margin:22px 0;min-width:0}
legend{padding:0;margin:0 0 10px}
.field{display:block}
.field[hidden]{display:none}
.field input{width:100%;height:57px;background:#ffefe708;border:1px solid var(--edge);border-radius:0;padding:10px 13px;margin-top:8px}
.field input::placeholder{color:#efdcc59c}
.choice{display:flex;gap:8px;align-items:center;font-size:.82em;margin:8px 0;cursor:pointer}
.choice input{appearance:none;flex:0 0 18px;height:18px;margin:0;border:1px solid #e2cdb9;border-radius:50%;cursor:pointer}
.choice input[type="radio"]:checked{background:radial-gradient(circle,#f0dac3 46%,transparent 51%)}
.choice input[type="checkbox"]{border-radius:2px}
.choice input[type="checkbox"]:checked{
  background:#f0dac3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8 3 3 6-6' fill='none' stroke='%23412b23' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
form .outline{width:100%;margin-top:22px}
.status{font-size:.78em}
.status:empty{display:none}
.status:not(:empty){margin:12px 0 0}
.contacts{background:url("assets/satin-hd.webp") center top/100% auto repeat-y;padding:65px 11% 64px}
.contact{margin:20px auto 39px}
.contact>p:first-child{line-height:1.5;margin-bottom:18px}
.countdown{position:relative;margin-top:50px;isolation:isolate}
.countdown-lamp{position:relative;width:89%;margin-left:auto;margin-right:-14%}
.countdown-lamp img{
  position:relative;width:100%;height:auto;filter:brightness(.74) saturate(.75);
  transition:filter .9s ease-out;
}
.countdown-lamp::before,.countdown-lamp::after{
  content:"";position:absolute;pointer-events:none;opacity:0;
  transition:opacity 1.1s ease-out;
}
.countdown-lamp::before{
  top:91%;left:29%;width:111%;height:112%;transform:translateX(-50%);
  background:radial-gradient(ellipse at 50% 1%,#ffe2adbf 0%,#ffd8a268 29%,#f2b96828 54%,transparent 75%);
  filter:blur(11px);
}
.countdown-lamp::after{
  top:55%;left:29%;width:70%;height:58%;transform:translateX(-50%);
  background:radial-gradient(ellipse,#ffdf9c9c 0%,#ffd99b35 43%,transparent 72%);
  mix-blend-mode:screen;
}
.countdown.is-lit .countdown-lamp img{filter:brightness(1.37) saturate(1.16)}
.countdown.is-lit .countdown-lamp::before,.countdown.is-lit .countdown-lamp::after{opacity:1}
@media(prefers-reduced-motion:no-preference){
  .countdown.is-lit .countdown-lamp::before,.countdown.is-lit .countdown-lamp::after{
    animation:lamp-glow 3.6s ease-in-out 1.2s infinite alternate;
  }
  .countdown.is-lit .countdown-lamp img{
    animation:lamp-shade 3.6s ease-in-out 1.2s infinite alternate;
  }
}
@keyframes lamp-glow{
  from{opacity:1}
  to{opacity:.58}
}
@keyframes lamp-shade{
  from{filter:brightness(1.37) saturate(1.16)}
  to{filter:brightness(1.13) saturate(1.04)}
}
.countdown p{margin:12px 0 24px}
.clock{display:flex;justify-content:center;gap:5px}
.clock span{font-size:.54em;width:19%;padding:6px 0}
.clock span:first-child{border:1px solid #f6e8db8c;border-radius:50%;border-left-color:transparent}
.clock b{display:block;font-size:2.8em;line-height:1.15;font-weight:400}
@media(max-width:350px){.flower-bottom{opacity:.72}.intro{padding-inline:7%}}
@media(prefers-reduced-motion:no-preference){.animate [data-reveal]{opacity:0;transform:translateY(20px);transition:opacity .65s,transform .65s}.animate [data-reveal].visible,.animate [data-reveal]:focus-within{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
