@font-face{font-family:Corm;src:url('corm.ttf') format('truetype');font-weight:300 700;font-display:swap}
@font-face{font-family:Wedding;src:url('cormorant-infant-italic.ttf') format('truetype');font-weight:300 700;font-style:italic;font-display:swap}
:root{--ink:#641e30;--paper:#fffdf8;--muted:#805d61;--panel:50%;color-scheme:light}
*{box-sizing:border-box}html{background:#28191f;scroll-behavior:smooth}body{margin:0;color:var(--ink);font:22px/1.35 Corm,Georgia,serif}body.locked{overflow:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit}button:focus-visible,a:focus-visible{outline:2px solid #d9a679;outline-offset:5px}h1,h2,h3,p{margin:0}.script{font-family:Wedding,Georgia,serif;font-style:italic;font-weight:500}
body:before{content:"";position:fixed;inset:-30px;z-index:-2;background:linear-gradient(#1d111aca,#301522d9),url('../photos/g9.jpg') center 40%/cover;filter:blur(17px)}
body:after{content:"";position:fixed;inset:0;z-index:-1;opacity:.18;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23d2b491' stroke-width='.7'%3E%3Cpath d='M90 155V25m0 65C50 2 5 32 28 67c18 25 56 3 29-14-17-10-29 13-11 15m44 22c40-88 85-58 62-23-18 25-56 3-29-14 17-10 29 13 11 15M60 135h60'/%3E%3C/g%3E%3C/svg%3E") center/180px 180px}
main{position:relative;max-width:480px;width:100%;margin:auto;box-shadow:0 0 90px #10060b70;visibility:hidden;background:var(--paper);isolation:isolate}body.revealed main{visibility:visible}.scene{position:relative;height:100svh;min-height:760px;text-align:center;isolation:isolate}.scene-image{position:absolute;inset:0;overflow:hidden}.photo{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 0%;transform-origin:50% 0%;animation:drift 24s ease-in-out infinite alternate}.scene-image:after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 50% 30%,transparent 40%,#31111e24);pointer-events:none}.hero .photo{object-position:50% 0%;transform-origin:50% 0%}.invitation .photo{object-position:50% 22%;transform-origin:50% 20%}.date-section .photo{object-position:50% 25%;transform-origin:50% 25%}.venue .photo{object-position:50% 0%;transform-origin:50% 12%}.closing .photo{object-position:50% 7%;transform-origin:50% 12%}
@keyframes drift{to{transform:scale(1.045)}}
.panel-wrap{position:absolute;bottom:0;left:0;right:0;height:var(--panel);filter:drop-shadow(0 -7px 6px #1d101b36);z-index:2}.paper{height:100%;position:relative;padding:53px 29px 28px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--paper);isolation:isolate;mask-image:url('tear.svg'),linear-gradient(#fff,#fff);mask-size:100% 56px,100% calc(100% - 54px);mask-position:top,bottom;mask-repeat:no-repeat}.paper:before{content:"";position:absolute;inset:0;z-index:-1;background:url('paper-texture.jpg') center/580px;opacity:.34;mix-blend-mode:multiply;pointer-events:none}.ornament{width:82px;height:28px;fill:none;stroke:currentColor;stroke-width:1.1;flex-shrink:0;margin:13px auto;opacity:.75}.hero .ornament{margin:0 auto 13px}.hero h1{font-size:87px;line-height:1.12;font-weight:500;letter-spacing:-.035em}.subtitle{font-size:27px;letter-spacing:.15em;margin-top:12px}.hero-date{font-size:19px;letter-spacing:.16em;margin-top:29px}#hero-title:focus{outline:none}.salutation{font-size:25px;line-height:1.2;font-weight:500;max-width:365px}.invite-copy{font-size:23px;line-height:1.24}.invite-name{font-size:49px;line-height:1.1;margin:4px 0 7px}.invitation .ornament{margin:16px auto}.invitation{--panel:51%}
.date-section{--panel:55%}.date-section .paper{padding:35px 29px 20px}.date-section h2{font-size:38px;line-height:1.05}.date-pill{display:grid;grid-template-columns:1fr 62px 1fr;align-items:center;gap:10px;width:100%;max-width:320px;margin:8px 0 6px}.date-pill span{height:45px;display:flex;align-items:center;justify-content:center;border-block:1px solid #bca0a1;font-size:14px;line-height:1.3;letter-spacing:.03em}.date-pill b{font-size:58px;line-height:1.1;font-weight:400}.invite-venue{font-size:19px}.calendar-title{font-size:20px;margin:9px 0 5px}.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;width:100%;max-width:300px;font-size:19px}.calendar span{height:24px;display:grid;place-items:center}.calendar .weekday{font-size:13px;color:var(--muted)}.calendar .chosen{color:#fffdf8;background:var(--ink);border-radius:50%;width:27px;justify-self:center;box-shadow:0 0 0 3px #641e3010}.date-section .count-title{font-size:30px;margin:11px 0 7px}.countdown{display:grid;grid-template-columns:repeat(4,1fr);width:100%;max-width:320px}.countdown>div+div{border-left:1px solid #c8afb1}.countdown b{display:block;font-size:32px;font-weight:400;line-height:1;font-variant-numeric:tabular-nums}.countdown small{font-size:15px;line-height:1.1}
.venue h2{font-size:51px;line-height:1.15;margin:0 0 18px}.eyebrow{font-size:13px;letter-spacing:.12em}.venue h3{font-size:40px;line-height:1.1;font-weight:500;margin:12px 0 9px}.venue p:not(.eyebrow){font-size:23px}.map-link{display:inline-flex;align-items:center;gap:14px;color:var(--ink);border:1px solid #a67c85;border-radius:40px;text-decoration:none;padding:12px 23px;font-size:19px;margin-top:25px;transition:background .2s,color .2s}.map-link:hover{color:var(--paper);background:var(--ink)}.closing h2{font-size:77px;line-height:1.1;margin:0 0 14px}.closing p{font-size:23px}.closing .ornament{margin:19px auto 15px}.closing .hosts-label{font-size:18px}.closing .signature{font-size:34px;margin-top:5px}.closing .closing-date{font-size:16px;letter-spacing:.1em;margin-top:25px}
.music{position:fixed;right:max(16px,calc((100vw - 480px)/2 + 16px));top:max(16px,env(safe-area-inset-top));width:36px;height:36px;z-index:20;display:grid;place-items:center;border:1px solid #fff7;border-radius:50%;background:#35132399;backdrop-filter:blur(8px);color:white;cursor:pointer;visibility:hidden;pointer-events:none}.music.ready{visibility:visible;pointer-events:auto}.music svg{width:14px;height:14px;fill:currentColor}
.opening{position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;perspective:1100px;background:#321c26}.opening:before{content:"";position:absolute;inset:-25px;background:linear-gradient(#29192370,#2e1327cb),url('../photos/g6.jpg') center 40%/cover;filter:blur(7px);transform:scale(1.08)}.opening-label{position:relative;color:#fff6e9;text-align:center;margin-bottom:56px}.opening-label .script{font-size:61px;line-height:1.1}.opening-label p{font-size:17px;letter-spacing:.12em;margin-top:9px}.envelope{position:relative;width:min(82vw,355px);height:220px;transform:rotate(-5deg);transform-style:preserve-3d;background:linear-gradient(120deg,#c9bba6,#f5ebda 50%,#d8c8b1);box-shadow:0 22px 50px #16071488,inset 0 0 0 1px #fff5df;isolation:isolate}.envelope:after,.pocket:after,.flap:after{content:"";position:absolute;inset:0;background:url('paper-texture.jpg') center/440px;mix-blend-mode:multiply;opacity:.7;pointer-events:none}.insert{position:absolute;inset:12px 17px;background:var(--paper) url('paper-texture.jpg') center/450px;text-align:center;padding:27px 8px;box-shadow:0 2px 9px #32182d40;z-index:1}.insert .script{font-size:45px;line-height:1.1}.insert p{font-size:13px;letter-spacing:.06em;margin-top:13px}.rule{width:48px;height:1px;background:#a47c85;margin:16px auto}.pocket{position:absolute;inset:0;z-index:3;background:linear-gradient(32deg,transparent 49.6%,#a5947a66 49.9%,transparent 50.5%),linear-gradient(-32deg,#e8ddca 49.5%,#b8a58c 50%,#eee5d4 50.5%);clip-path:polygon(0 0,50% 53%,100% 0,100% 100%,0 100%);box-shadow:inset 0 -1px 2px #99836c}.flap{position:absolute;inset:0;z-index:5;background:linear-gradient(165deg,#f8efdf 10%,#ded0b8 65%,#b9a587);clip-path:polygon(0 0,100% 0,50% 56%);transform-origin:top;backface-visibility:visible;filter:drop-shadow(0 2px 2px #6b514c40)}.seal{position:absolute;z-index:7;top:calc(53% - 39px);left:calc(50% - 39px);width:78px;height:78px;border:0;background:transparent;padding:0;cursor:pointer;filter:drop-shadow(1px 5px 3px #34102377)}.wax-half{position:absolute;inset:0}.wax-half svg{display:block;width:100%;height:100%}.wax-left{clip-path:polygon(0 0,54% 0,46% 22%,55% 36%,44% 49%,53% 64%,45% 80%,51% 100%,0 100%)}.wax-right{clip-path:polygon(54% 0,100% 0,100% 100%,51% 100%,45% 80%,53% 64%,44% 49%,55% 36%,46% 22%)}.open-hint{position:relative;color:#fff6e9;text-align:center;font-size:21px;margin-top:50px}.open-hint span{display:block;font-size:14px;letter-spacing:.03em;margin-top:10px;opacity:.8}
.opening.is-open{animation:opening-away .35s 2.15s forwards;pointer-events:none}.is-open .opening-label,.is-open .open-hint{opacity:0;transition:opacity .2s}.is-open .flap{animation:flap-open .7s .25s forwards}.is-open .wax-left{animation:crack-left .45s forwards}.is-open .wax-right{animation:crack-right .45s forwards}.is-open .insert{animation:letter-out 1.1s .7s forwards}.is-open .envelope{animation:envelope-away .25s 1.9s forwards}
@keyframes crack-left{30%{transform:translate(-3px,0) rotate(-8deg)}to{transform:translate(-24px,17px) rotate(-28deg);opacity:0}}@keyframes crack-right{30%{transform:translate(3px,0) rotate(7deg)}to{transform:translate(24px,12px) rotate(27deg);opacity:0}}@keyframes flap-open{50%{filter:brightness(.8)}to{transform:rotateX(180deg);z-index:0;filter:brightness(.93)}}@keyframes letter-out{to{transform:translateY(-235px) rotate(5deg)}}@keyframes envelope-away{to{opacity:0;transform:translateY(30px) rotate(-5deg)}}@keyframes opening-away{to{opacity:0;visibility:hidden}}
@media(min-width:600px){.opening:before{background-position:center 40%;background-size:cover}.envelope{height:235px}.scene{min-height:760px}}
@media(max-height:780px){.scene{min-height:760px}.date-section{--panel:57%}.date-section .paper{padding-top:30px}.salutation{font-size:23px}.invite-copy{font-size:22px}}
.hero{--panel:45%}.venue{--panel:47%}
/* A sheet overlaps the following photograph: there is no colored seam or straight cut. */
.scene:nth-child(1){z-index:5}.scene:nth-child(2){z-index:4}.scene:nth-child(3){z-index:3}.scene:nth-child(4){z-index:2}.scene:nth-child(5){z-index:1}
.scene:not(:last-child) .panel-wrap{bottom:-26px;height:calc(var(--panel) + 26px)}
.scene:not(:last-child) .paper{padding-bottom:54px;mask-image:url('tear.svg'),linear-gradient(#fff,#fff),url('tear-bottom.svg');mask-size:100% 56px,100% calc(100% - 108px),100% 56px;mask-position:top,center,bottom;mask-repeat:no-repeat}
body:before{background-image:linear-gradient(#1d111a99,#301522b3),url('../photos/g3.jpg');filter:blur(20px)}body:after{opacity:.1;background-size:230px 230px}
.date-section .paper{justify-content:flex-start;padding:48px 29px 16px}
.date-section h2{font-size:34px;line-height:1.05}
.date-pill{margin:5px 0 4px}.date-pill b{font-size:48px}.date-pill span{height:41px;font-size:13px}
.date-section .invite-venue{font-size:18px;line-height:1.2}
.calendar-title{font-size:18px;line-height:1.2;margin:7px 0 5px}
.calendar span{height:20px}.calendar{font-size:18px}
.date-section .count-title{font-size:28px;line-height:1.05;margin:10px 0 7px}
.countdown>div{line-height:1}.countdown b{font-size:30px}.countdown small{display:block;font-size:14px;line-height:16px;margin-top:3px}
.seal{border-radius:50%}.seal:focus-visible{outline-color:#fff9}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.photo{animation:none}.opening.is-open,.is-open .envelope,.is-open .insert,.is-open .flap,.is-open .wax-half{animation-duration:.01ms;animation-delay:0s}.opening-label,.open-hint{transition:none}}
