:root{--paper: #efe9dc;--paper-deep: #e4dccb;--envelope: #f5f0e5;--envelope-shade: #e6dfcf;--sage: #8a9a72;--olive: #56623f;--olive-deep: #3d4731;--ink: #4a4a3c;--muted: #8c8672;--serif: "Cormorant Garamond", Georgia, serif;--script: "Pinyon Script", "Cormorant Garamond", cursive;--invite-serif: "Crimson Pro", Georgia, serif;--invite-sans: "Marcellus", Optima, "Segoe UI", sans-serif}*{box-sizing:border-box;margin:0;padding:0}html,body{height:100%}body{font-family:var(--serif);color:var(--ink);background-color:var(--paper);background-image:radial-gradient(ellipse at center,transparent 40%,rgba(120,105,75,.12) 100%),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .3 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");overflow-x:hidden}.gate{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:16px;transition:opacity .6s ease}.gate.leaving{opacity:0}.gate-form{width:min(100%,340px);display:flex;flex-direction:column;align-items:center;text-align:center;gap:1rem}.gate-form.shake{animation:shake .4s ease}@keyframes shake{20%,60%{transform:translate(-6px)}40%,80%{transform:translate(6px)}}.gate-form{font-family:var(--invite-sans)}.gate-names{margin-bottom:.4rem;font-family:var(--invite-serif);font-weight:400;font-size:clamp(2.6rem,12vw,3.6rem);line-height:1.1;white-space:nowrap;color:#3b3830}.gate-label{font-size:1.05rem;line-height:1.5;color:#5b574c}.gate-input{width:100%;padding:.7em 1em;font:inherit;font-size:1.05rem;letter-spacing:.2em;text-align:center;color:var(--ink);background:#f5f0e5b3;border:1px solid rgba(86,98,63,.35);border-radius:999px;outline:none;transition:border-color .2s ease,box-shadow .2s ease}.gate-input:focus{border-color:var(--olive);box-shadow:0 0 0 3px #8a9a7233}.gate-button{padding:.55em 2.2em;font:inherit;font-size:1rem;letter-spacing:.3em;text-transform:uppercase;color:var(--envelope);background:var(--olive);border:0;border-radius:999px;cursor:pointer;transition:background .2s ease}.gate-button:hover,.gate-button:focus-visible{background:var(--olive-deep);outline:none}.gate-error{min-height:1.4em;font-size:.95rem;color:#8a5a44}.scene{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2.5rem;padding:16px;transition:opacity .9s ease,transform .9s ease}.scene{animation:fade-in .8s ease backwards}@keyframes fade-in{0%{opacity:0}}.hint{font-style:italic;letter-spacing:.12em;color:var(--muted);font-size:1.05rem;transition:opacity .4s ease}.hint.top{font-family:var(--invite-serif);font-style:normal;font-weight:400;letter-spacing:0;font-size:2.2rem;color:var(--olive)}.hint.bottom{text-transform:uppercase;font-size:.8rem;letter-spacing:.3em}.envelope{position:relative;width:min(88vw,480px);aspect-ratio:3 / 2;border:0;background:none;cursor:pointer;perspective:1400px;transform:rotate(-1.5deg);filter:drop-shadow(0 1px 1px rgba(70,60,40,.18)) drop-shadow(0 10px 14px rgba(70,60,40,.12)) drop-shadow(0 28px 40px rgba(70,60,40,.1));-webkit-tap-highlight-color:transparent;--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .37 0 0 0 0 .28 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .09' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .35 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E")}.envelope:focus-visible{outline:1px solid var(--sage);outline-offset:14px;border-radius:2px}.envelope span{position:absolute;display:block}.face{top:0;right:0;bottom:0;left:0}.env-back{top:0;right:0;bottom:0;left:0;border-radius:3px;background:var(--grain),linear-gradient(180deg,#e3dac7,#d9cfba)}.letter{left:5%;right:5%;top:4%;height:92%;background-color:var(--paper);background-size:cover;background-position:center 72%;border-radius:1px;box-shadow:0 0 0 .5px #5a503c26,0 1px 2px #0000001a;z-index:1;transition:transform 1.4s cubic-bezier(.33,0,.2,1)}.env-pocket{top:0;right:0;bottom:0;left:0;z-index:2;border-radius:3px;clip-path:polygon(0 0,50% 55%,100% 0,100% 100%,0 100%);background:var(--grain),linear-gradient(90deg,rgba(120,100,70,.07),transparent 22%,transparent 78%,rgba(120,100,70,.07)),#f1ebdf}.env-bottom{top:0;right:0;bottom:0;left:0;z-index:2;filter:drop-shadow(0 -1px .5px rgba(90,75,50,.16)) drop-shadow(0 -3px 4px rgba(90,75,50,.06))}.env-bottom .face{border-radius:0 0 3px 3px;clip-path:polygon(0 100%,1% 97%,50% 47%,99% 97%,100% 100%);background:var(--grain),linear-gradient(175deg,#f6f1e7 20%,#ede6d8)}.env-flap{left:0;right:0;top:0;height:58%;z-index:3;transform-origin:top center;filter:drop-shadow(0 1px .5px rgba(90,75,50,.2)) drop-shadow(0 4px 5px rgba(90,75,50,.09));transition:transform 1s cubic-bezier(.45,.05,.3,1)}.env-flap .face{clip-path:polygon(0 0,100% 0,99% 3%,50% 100%,1% 3%);border-radius:3px 3px 0 0}.flap-inside{background:var(--grain),linear-gradient(0deg,#ddd3bf,#e6ddcb)}.flap-outside{background:var(--grain),linear-gradient(180deg,#f7f2e8,#efe8da)}.seal{position:absolute;left:50%;top:100%;width:22%;height:auto;transform:translate(-50%,-54%) rotate(-6deg);filter:drop-shadow(0 1px 1px rgba(30,35,20,.35)) drop-shadow(0 3px 4px rgba(30,35,20,.18));pointer-events:none;-webkit-user-select:none;user-select:none}.opening .hint{opacity:0}.flap-open .env-flap{transform:rotateX(180deg)}.flap-open .flap-outside,.flap-open .seal{animation:hide-at-half 1s forwards}@keyframes hide-at-half{0%,49%{visibility:visible}50%,to{visibility:hidden}}.flap-closing .flap-outside,.flap-closing .seal{animation:show-at-half 1s forwards}@keyframes show-at-half{0%,49%{visibility:hidden}50%,to{visibility:visible}}.flap-behind .env-flap{z-index:0}.letter-out .letter{transform:translateY(-60%)}.fade-away{opacity:0;pointer-events:none}.invitation{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;padding:16px;overflow-y:auto;opacity:0;visibility:hidden;transition:opacity 1s ease .15s,visibility 0s linear 1.15s}.invitation.show{opacity:1;visibility:visible;transition:opacity 1s ease .15s}.card{position:relative;container-type:inline-size;width:min(100%,calc((100dvh - 48px) * 2 / 3),620px);aspect-ratio:2 / 3;flex-shrink:0;margin:auto;background-color:var(--paper);background-size:cover;background-position:center;border-radius:3px;box-shadow:0 30px 60px -20px #3c321e59,0 4px 12px #3c321e1f;transform:translateY(24px) scale(.96);transition:transform 1.1s cubic-bezier(.2,.8,.25,1) .15s}.invitation.show .card{transform:none}.close{position:fixed;top:16px;right:16px;z-index:10;width:44px;height:44px;display:grid;place-items:center;border:1px solid rgba(86,98,63,.35);border-radius:50%;background:#f5f0e5d9;color:var(--olive);cursor:pointer;box-shadow:0 2px 8px #3c321e1f;transition:background .25s ease,color .25s ease,border-color .25s ease}.close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}.close:hover,.close:focus-visible{background:var(--olive);color:var(--envelope);border-color:var(--olive);outline:none}.sample-text{position:absolute;inset:9% 8% auto;text-align:center;color:var(--ink)}.eyebrow{text-transform:uppercase;letter-spacing:.32em;font-size:2.6cqw;color:var(--muted)}.names{font-family:var(--script);font-weight:400;font-size:17cqw;line-height:1.1;color:var(--olive);margin:3cqw 0 2cqw}.names span{font-size:.6em;color:var(--sage)}.request{font-style:italic;font-size:3.9cqw;line-height:1.45}.date{margin-top:5cqw;text-transform:uppercase;letter-spacing:.24em;font-size:3.1cqw;font-weight:600;color:var(--olive-deep)}.place{font-style:italic;font-size:3.4cqw;color:var(--muted);margin-top:1.2cqw}.more-info{position:absolute;left:50%;transform:translate(-50%,-50%);white-space:nowrap;font-size:max(15px,3.8cqw);font-style:italic;letter-spacing:.06em;color:var(--olive);text-decoration:none;padding:.45em 1.4em;border:1px solid rgba(86,98,63,.45);border-radius:999px;background:#f5f0e599;transition:background .25s ease,color .25s ease,border-color .25s ease}.more-info:hover,.more-info:focus-visible{background:var(--olive);color:var(--envelope);border-color:var(--olive);outline:none}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition-duration:.01ms!important;transition-delay:0s!important}}
