/* ============ Base ============ */
:root{--paper-tex:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.035 .06' numOctaves='4' seed='3'/%3E%3CfeDiffuseLighting lighting-color='%23fff' surface-scale='2.2'%3E%3CfeDistantLight azimuth='45' elevation='58'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
 --shadow:rgba(80,60,30,.22);color-scheme:light;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
*,*::before,*::after{box-sizing:inherit}
html{scroll-behavior:smooth;scroll-padding-top:env(safe-area-inset-top,0px)}
body{margin:0;display:flex;justify-content:center;background:var(--paper);font-family:var(--f-body);color:var(--ink)}
.wrap{width:100%;max-width:460px;position:relative;overflow:hidden;container-type:inline-size;background:var(--paper) var(--paper-image,var(--paper-tex));background-size:var(--paper-size,auto);box-shadow:0 0 40px var(--shadow)}
.sec{position:relative;overflow:hidden}
.script{font-family:var(--f-script);color:var(--brown)}.disp{font-family:var(--f-display);letter-spacing:.08em;color:var(--brown);text-transform:uppercase;font-weight:500}
img{max-width:100%}.prop{position:absolute;pointer-events:none;z-index:3}
.flowers{width:61cqw}.flowers.bl{left:-1cqw;bottom:-22cqw}.flowers.tr{right:-1cqw;top:-1cqw;transform:scale(-1,-1)}.flowers.br{right:-1cqw;bottom:-1cqw;transform:scaleX(-1)}
.rings{width:24cqw;top:3%;left:7%}.rings.small{width:17cqw;top:5cqw;left:62%}.rings.left{left:5%}
.ribbon{right:0;top:0;height:100%;width:auto;max-width:20cqw;object-fit:cover;object-position:top}
.polaroid{margin:0;/* background: #fbf8f2; *//* padding: 2cqw 2cqw 7cqw; *//* box-shadow: 0 2cqw 4cqw var(--shadow); */}
.polaroid:not(.hero){background:#fbf8f2;padding:2cqw 2cqw 7cqw;box-shadow:0 2cqw 4cqw var(--shadow)}
.polaroid img{display:block;width:100%;aspect-ratio:1;object-fit:cover}
.reveal{opacity:0;transform:translateY(4cqw);transition:opacity .9s,transform .9s}.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}*{animation:none!important;scroll-behavior:auto!important}}
[hidden]{display:none!important}

/* ============ Cover ============ */
.cover{aspect-ratio:586/1148;min-height:100svh;background-color:color-mix(in srgb,var(--brown) 11%,transparent);transition:opacity 1s,transform 1.1s cubic-bezier(.6,0,.3,1)}.cover.go{opacity:0;transform:scale(1.35)}
.cover-title{position:absolute;top:22%;left:0;right:0;margin:0;text-align:center;font-size:5.4cqw;line-height:1.2}
.cover .ringflower{width:22cqw;top:-1%;left:-2%;z-index:2}
.cover .rings{width:24cqw;top:4%;left:9%}
.cover .ribbon{max-width:23cqw}
.cover .flowers.bl{width:65cqw;left:-3cqw;bottom:-7cqw}
.envelope{position:absolute;left:10%;top:31%;width:82%;border:0;background:none;padding:0;cursor:pointer;filter:drop-shadow(1.5cqw 2.5cqw 3cqw var(--shadow));animation:nudge 2.6s ease-in-out infinite}
.envelope:focus-visible{outline:2px solid var(--gold)}.envelope img{width:100%;display:block}@keyframes nudge{50%{transform:translateY(-1.4cqw) rotate(-1deg)}}
.cover-hint{position:absolute;left:23%;right:5%;top:66%;margin:0;text-align:center;font-size:8.5cqw;line-height:1.05;animation:pulse 2.6s infinite}@keyframes pulse{50%{opacity:.5}}

/* ============ Intro ============ */
.intro{aspect-ratio:576/966}
.intro .flowers.tr{width:33cqw;right:-8cqw;top:-1cqw}
.intro .rings.small{width:18cqw;top:6.5%;left:62%}
.open-envelope{position:absolute;left:10%;top:8.5%;width:80%;height:54.6%;z-index:1;pointer-events:none}
.intro .hero{position:absolute;left:28%;top:20.7%;width:45.5%;padding:0cqw 0cqw 0cqw;z-index:4;transform:rotate(-1.6deg)}
.hero img{aspect-ratio:270/180;object-position:center 20%}
.married{position:absolute;left:0;right:0;top:40.2%;margin:0;text-align:center;font-size:6.8cqw;transform:rotate(-3deg);z-index:5}
.nameplate{position:absolute;left:17.5%;top:47.7%;width:61.5%;height:49%;z-index:4;filter:drop-shadow(.8cqw 1.2cqw 1.2cqw var(--shadow))}
.nameplate>img{display:block;width:100%;height:100%;object-fit:fill}
.names{position:absolute;inset:0;padding-top:18%;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;color:var(--brown);z-index:1}
.names small{font-size:2.8cqw;line-height:1.35;margin-bottom:8cqw}.names .big{font-size:10cqw;line-height:1.05}.names .and{font-size:5.2cqw;line-height:1;margin:2cqw 0 0}

/* ============ Event cards / schedule ============ */
.evw{padding:18cqw 0}.sheet{position:relative;z-index:1;margin:0 5cqw;background:var(--card);padding:8cqw 6cqw;text-align:center;box-shadow:.8cqw 1.6cqw 4cqw var(--shadow)}
.the{display:block;text-align:left;font-size:17cqw;line-height:.9;color:var(--gold);margin:-2cqw 0 -1cqw 2cqw}
.sheet h2{margin:0 0 5cqw;text-align:left;font-size:8.2cqw;letter-spacing:.2em}
.sep{aspect-ratio:302/39;background:url("../assets/icons/2ndline.png") center/100% 100% no-repeat;margin:6cqw 3cqw 5cqw}
.sep.first{aspect-ratio:281/30;background-image:url("../assets/icons/1stline.png")}
.ico{display:block;margin:0 auto 1.5cqw;height:11cqw;width:auto}
.sheet h3{margin:0 0 2.2cqw;font:500 4.6cqw var(--f-display);letter-spacing:.2em;text-transform:uppercase;color:var(--ink)}
.sheet p{margin:0 0 2cqw;font-style:italic;font-size:3.2cqw;line-height:1.55}.sheet p+p{margin-top:3.5cqw}.sheet .big{font-size:3.8cqw}.sheet .small{font-size:2.6cqw;font-style:normal;line-height:1.55}
.pill{display:inline-block;margin:2.5cqw 0 1cqw;padding:2.4cqw 8cqw;border:.4cqw solid var(--gold);border-radius:9cqw;font:2.7cqw var(--f-body);letter-spacing:.2em;text-transform:uppercase;color:var(--ink);text-decoration:none;background:#fbf7ee}
.pill.sm{font-size:2.4cqw;padding:1.7cqw 8cqw}.pill:hover,.pill:focus-visible{background:var(--gold);color:#fff;outline:none}
.sched-title{text-align:center!important;font-size:9cqw!important;line-height:.95;margin-bottom:8cqw!important}.sched-title .script{display:block;font-size:15cqw;text-transform:none;margin:0 0 -5cqw 22cqw;letter-spacing:0}
.row{display:grid;grid-template-columns:27cqw 1fr;gap:4cqw;align-items:center;margin-bottom:4cqw;text-align:left}
.row>img{width:27cqw;mix-blend-mode:multiply}.row .badge{font-size:7cqw;text-align:center}
.row b{display:block;text-align:center;font:500 5.6cqw var(--f-display);letter-spacing:.1em;border-bottom:1px solid var(--gold);padding-bottom:1cqw;margin-bottom:1.6cqw}
.row ul{margin:0;padding-left:4cqw;font-size:3cqw;letter-spacing:.06em;line-height:1.6}.row p{margin:0;font-size:3cqw;letter-spacing:.06em;line-height:1.5;font-style:normal}

/* ============ RSVP ============ */
.rsvp{padding:12cqw 0}.rsvp-env{position:relative;width:78%;margin:10cqw auto 0}.rsvp-env img{width:100%;display:block;filter:drop-shadow(1cqw 2cqw 2cqw var(--shadow))}
.rsvp-text{position:absolute;left:8%;top:43.8%;width:82.7%;height:39.5%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.rsvp-text .script{font-size:7cqw;color:var(--gold);line-height:1}.rsvp-text h2{margin:0;font-size:9cqw}.rsvp-text p{margin:2cqw 3cqw 0;font-size:2.5cqw;line-height:1.5}
.form-card{margin:10cqw 7cqw 0;background:var(--card);padding:7cqw 6cqw;box-shadow:.6cqw 1.4cqw 3.5cqw var(--shadow);font-size:3.2cqw;position:relative;z-index:2}
.q{display:block;font-weight:700;margin:5cqw 0 1.6cqw}.q:first-child{margin-top:0}
.form-card input[type=text],.form-card input[type=tel],.form-card input[type=number]{width:100%;height:8cqw;padding:0 2.5cqw;border:.5cqw solid #8d8579;background:#fff;font:inherit;border-radius:.6cqw}
.opt{display:flex;align-items:center;gap:2.4cqw;background:#dcd8d0;padding:2.4cqw 3cqw;margin-bottom:1.6cqw;cursor:pointer;border-radius:.6cqw}.opt:has(input:checked){background:var(--gold);color:#fff}
.form-card button{width:100%;margin-top:5cqw;height:10cqw;background:#cbbfa8;border:0;font:4.2cqw var(--f-body);border-radius:1.2cqw;cursor:pointer}.form-card button:hover{background:var(--gold);color:#fff}
.error{color:#a33;margin:2cqw 0 0}.thanks{text-align:center;padding:6cqw 0}.thanks .script{font-size:12cqw;color:var(--gold)}.thanks p{font-style:normal}
.group-photo{margin:8cqw 10cqw 0}.group-photo img{width:100%;display:block;box-shadow:0 1cqw 3cqw var(--shadow)}

/* ============ Countdown / music ============ */
.mood{padding:8cqw 0 62cqw}.turntable{display:block;position:relative;width:76cqw;margin:0 auto;border:0;background:none;padding:0;cursor:pointer;filter:drop-shadow(1.4cqw 2.4cqw 2cqw var(--shadow))}
.turntable:focus-visible{outline:2px solid var(--gold)}.turntable img{width:100%;display:block}
.lid{position:absolute;left:12%;top:13%;width:62%;text-align:center;font-size:7cqw;line-height:1.15;transform:rotate(-8deg);pointer-events:none}
.sheen{position:absolute;left:33%;top:47%;width:42.8%;aspect-ratio:1;border-radius:50%;pointer-events:none;opacity:0;transition:opacity .6s;background:conic-gradient(transparent 0 8%,rgba(255,255,255,.3) 12%,transparent 18% 58%,rgba(255,255,255,.22) 62%,transparent 68%);-webkit-mask:radial-gradient(circle,transparent 0 24%,#000 26% 96%,transparent 97%);mask:radial-gradient(circle,transparent 0 24%,#000 26% 96%,transparent 97%);animation:spin 2.4s linear infinite;animation-play-state:paused}
.turntable.on .sheen{opacity:1;animation-play-state:running}@keyframes spin{to{transform:rotate(360deg)}}
.count{position:relative;z-index:2;margin:10cqw 0 0 5%;width:90%;background:var(--card);padding:5cqw 2cqw 4cqw;text-align:center;box-shadow:0 1cqw 4cqw var(--shadow)}
.count h3{margin:0;font:400 6.4cqw var(--f-display);letter-spacing:.05em;text-transform:uppercase;color:#222}.count .script{display:block;font-size:11cqw;color:var(--gold);line-height:1;margin-bottom:1cqw}
.digits{display:flex;justify-content:center;align-items:flex-start;gap:1cqw}.digits b{display:block;font:500 9cqw var(--f-display);color:#1d1a16;min-width:15cqw;font-variant-numeric:tabular-nums}
.digits i{font:normal 9cqw var(--f-display);color:#1d1a16}.digits small{font-size:2.2cqw;letter-spacing:.1em;text-transform:uppercase}
.polaroid.moment{position:absolute;width:27cqw;z-index:4;padding-bottom:6cqw}.m1{left:5%;bottom:10cqw;transform:rotate(-8deg)}.m2{left:31%;bottom:4cqw;transform:rotate(7deg)}

/* ============ Thank you ============ */
.thanks.sec{padding:14cqw 0 52cqw}.polaroid.end{width:66%;margin:6cqw auto 0;transform:rotate(4deg);padding-bottom:9cqw}.end img{aspect-ratio:3/4}
.note{position:relative;z-index:4;width:70%;margin:-5cqw 0 0 16%;background:#f9f5ec;padding:4cqw 4cqw;text-align:center;box-shadow:0 1cqw 3cqw var(--shadow)}
.note .script{display:block;font-size:7cqw;color:var(--gold)}.note p{margin:1cqw 0;font-size:2.5cqw;line-height:1.5}.note .sig{font-size:6cqw}
