@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600&family=DM+Sans:wght@400;500;600&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap');
:root{--paper:#f6f1e8;--ink:#352f2b;--muted:#968477;--wine:#7b3045;--line:#e1d6c8;--serif:'Playfair Display',Georgia,serif;--sans:'DM Sans',Arial,sans-serif;--script:'Caveat',cursive;--flap:0deg;--paper-y:0px;--paper-scale:.88;--front-opacity:1;--seal-opacity:1;--intro-opacity:1;--letter-opacity:0;--scene-y:70px;--progress:0}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased}html{scroll-behavior:smooth}button,input,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}[hidden]{display:none!important}button:focus-visible,input:focus-visible,a:focus-visible{outline:2px solid var(--wine);outline-offset:6px}button:disabled{cursor:wait}em{color:var(--wine);font-weight:500}.grain{position:fixed;inset:0;z-index:20;pointer-events:none;opacity:.025;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23000' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}.topbar{position:absolute;top:0;left:0;width:100%;height:90px;padding:0 6%;display:flex;justify-content:space-between;align-items:center;z-index:15}.wordmark{font-family:var(--serif);font-size:25px;letter-spacing:-1px}.wordmark i{color:var(--wine);font-weight:400}.topbar>span:not(.header-heart){font-size:9px;letter-spacing:2.5px;color:var(--muted)}.header-heart{font-size:25px;color:var(--wine)}.scroll-story{height:360vh;height:360svh;position:relative}.stage{position:sticky;top:0;height:100vh;height:100svh;min-height:560px;overflow:hidden;display:flex;align-items:center;justify-content:center;perspective:1600px;background:radial-gradient(ellipse at 50% 62%,#e6d8c860,transparent 65%)}.stage-intro{position:absolute;top:16%;text-align:center;z-index:8;opacity:var(--intro-opacity);transform:translateY(calc((1 - var(--intro-opacity))*-22px));pointer-events:none}.eyebrow{font-size:9px;letter-spacing:2.6px;color:var(--wine);font-weight:500;line-height:1.8;margin:0 0 22px}h1{font-family:var(--serif);font-weight:500;font-size:clamp(34px,4vw,54px);letter-spacing:-2px;margin:0 0 17px}.stage-intro>p:last-child{font-size:12px;color:var(--muted)}.envelope-scene{width:500px;height:320px;position:relative;transform:translateY(var(--scene-y));isolation:isolate}.envelope-shadow{position:absolute;bottom:-60px;left:10%;width:80%;height:45px;border-radius:50%;background:#6f4e3026;filter:blur(22px);opacity:var(--front-opacity)}.envelope-back{position:absolute;inset:0;background:#d4baa0;border-radius:7px;box-shadow:0 16px 45px #68513b1f;opacity:var(--front-opacity)}.envelope-front{position:absolute;inset:0;z-index:5;background:linear-gradient(150deg,#e9d4b9,#d4b695);clip-path:polygon(0 0,50% 54%,100% 0,100% 100%,0 100%);border-radius:4px 4px 8px 8px;opacity:var(--front-opacity)}.envelope-front::after{content:'';position:absolute;inset:0;background:#ecdac0;clip-path:polygon(0 100%,50% 43%,100% 100%);filter:drop-shadow(0 -1px 2px #9576591f)}.envelope-front>span{position:absolute;z-index:1;bottom:28px;left:0;width:100%;text-align:center;font-family:var(--script);font-size:35px;color:#8a6650}.envelope-flap{position:absolute;inset:0;z-index:7;transform-origin:50% 0;transform:rotateX(var(--flap));backface-visibility:visible;background:linear-gradient(180deg,#ead7bd,#ddc3a3);clip-path:polygon(0 0,100% 0,50% 57%);filter:drop-shadow(0 3px 1px #785a3e24);opacity:var(--front-opacity)}.wax-seal{position:absolute;top:45%;left:calc(50% - 25px);width:50px;height:50px;border-radius:49% 45% 46% 44%;z-index:8;background:linear-gradient(135deg,#a24f5c,#713044);box-shadow:0 3px 6px #3d172d33,inset 0 0 0 4px #b4696940,inset 0 0 0 5px #5c213b50;display:grid;place-items:center;color:#efcbc3;font-size:27px;opacity:var(--seal-opacity);transform:scale(var(--seal-opacity))}.letter{position:absolute;top:16px;left:6%;width:88%;height:540px;background:#fffdf7;border:1px solid #e8ded0;box-shadow:0 8px 28px #6c4f3914;z-index:3;text-align:center;padding:26px 28px;transform:translateY(var(--paper-y)) scale(var(--paper-scale));transform-origin:50% 0;will-change:transform;clip-path:inset(0 0 var(--letter-clip,260px) 0);border-radius:3px}.letter-meta{font-size:8px;letter-spacing:2px;color:#ad9784;display:block;margin-bottom:20px}.letter figure{width:180px;margin:0 auto 19px;transform:rotate(-4deg);padding:6px 6px 1px;background:white;box-shadow:0 5px 12px #543e291c;opacity:var(--letter-opacity)}.letter figure img{width:100%;height:143px;object-fit:cover;display:block}.letter figcaption{font-family:var(--script);font-size:19px;color:#9c8168;padding:4px 0}.letter h2{font-family:var(--serif);font-size:49px;line-height:1.14;letter-spacing:-1.8px;font-weight:500;margin:0 0 18px;opacity:var(--letter-opacity)}.letter-note{font-size:11px;color:#998574;line-height:1.9;opacity:var(--letter-opacity)}.letter-signature{font-family:var(--script);font-size:22px;color:#a18067;display:block;margin-top:15px;opacity:var(--letter-opacity)}.scroll-cue{position:absolute;bottom:35px;left:50%;transform:translateX(-50%);z-index:10;background:none;border:0;color:#9b8575;font-size:10px;letter-spacing:1px;display:flex;flex-direction:column;align-items:center;gap:10px;padding:5px 15px;white-space:nowrap}.scroll-line{height:25px;width:1px;background:linear-gradient(#bda58e,transparent)}.scroll-arrow{font-size:16px;animation:nudge 2s ease-in-out infinite}.story-progress{position:absolute;bottom:0;left:0;width:100%;height:2px;background:#e9dfd2}.story-progress>span{display:block;width:calc(var(--progress)*100%);height:100%;background:#9f6270}.answer-section{position:relative;min-height:90vh;min-height:90svh;display:flex;align-items:center;justify-content:center;padding:90px 24px 110px;border-top:1px solid var(--line);background:radial-gradient(ellipse at 50% 20%,#efe1d7a0,transparent 65%)}.answer-wrap,.later-message{max-width:470px;text-align:center;width:100%}.little-heart{display:block;font-family:var(--serif);font-size:56px;color:var(--wine);line-height:1.2;margin-bottom:23px}.answer-section h2{font-family:var(--serif);font-size:clamp(43px,5vw,65px);font-weight:500;line-height:1.15;letter-spacing:-2px;margin:0 0 23px}.answer-description,.later-message>p:not(.eyebrow){color:var(--muted);font-size:13px;line-height:1.9}.answer-description{margin-bottom:32px}form{width:320px;max-width:100%;margin:auto;text-align:left}label{font-size:10px;color:#927b6a;display:block;letter-spacing:.4px;margin-bottom:10px}.password-field{display:flex;align-items:center;border:1px solid #d9c7b7;background:#fffaf3;border-radius:5px;overflow:hidden}.password-field:focus-within{border-color:var(--wine);box-shadow:0 0 0 3px #7b304510}input{width:100%;min-width:0;background:transparent;border:0;padding:17px 14px;color:var(--ink);font-size:13px;outline:0!important}input::placeholder{color:#b8a594}.password-field button{font-size:9px;letter-spacing:.5px;color:var(--wine);border:0;background:none;padding:18px 13px}.form-message{font-size:11px;line-height:1.5;min-height:18px;margin:9px 0;color:var(--wine)}.button{border:0;border-radius:4px;padding:17px 20px;min-height:54px;font-size:12px;transition:transform .25s,box-shadow .25s;background:var(--wine);color:#fff8ee;display:flex;justify-content:center;align-items:center;gap:24px;width:100%}.button span{font-size:21px;line-height:1}.button:hover{transform:translateY(-2px);box-shadow:0 8px 22px #7b30451f}.button:disabled{opacity:.65;transform:none}.quiet-button{border:0;border-bottom:1px solid transparent;background:none;color:#9e8979;font-size:10px;padding:9px 0;margin-top:20px}.quiet-button:hover{color:var(--wine);border-bottom-color:currentColor}.consent-note{font-size:9px;color:#ac9888;margin-top:28px;line-height:1.7}.success-screen{position:relative;min-height:100svh;padding:65px 22px 80px;text-align:center;background:radial-gradient(ellipse at 50% 35%,#edd7d3,#f6f1e8 75%);animation:appear 1s ease both}.success-inner{max-width:600px;margin:auto}.beating-heart{font-family:Georgia,serif;line-height:1;font-size:85px;color:var(--wine);margin:0 0 25px;animation:heartbeat 1.8s ease-in-out infinite}.success-screen h2{font-family:var(--serif);font-size:clamp(44px,6vw,75px);line-height:1.15;font-weight:500;letter-spacing:-2.4px;margin:0 0 25px;outline:none}.success-screen p:not(.eyebrow){font-size:13px;line-height:1.9;color:#947968}.success-photo{max-width:330px;background:#fffcf6;padding:10px 10px 13px;margin:35px auto 25px;transform:rotate(-4deg);box-shadow:0 14px 40px #7b30451a}.success-photo img{width:100%;height:auto;display:block}.success-photo figcaption{font-family:var(--script);font-size:24px;color:#967660;padding:12px 0 0}.success-date{font-size:9px;letter-spacing:2px;color:#a48b78}body.accepted main,body.accepted .topbar{display:none}footer{display:flex;align-items:center;justify-content:space-between;margin:0 6%;padding:23px 0;border-top:1px solid var(--line);color:#ad9887;font-size:9px}footer>span:last-child{color:var(--wine);font-size:20px}.celebration{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:25}.confetti-heart{position:absolute;top:-60px;left:var(--left);font-size:var(--size);color:var(--color);opacity:0;animation:fall var(--duration) var(--delay) ease-in forwards}.noscript-note{text-align:center;padding:30px;font-size:13px;color:var(--wine)}@keyframes nudge{0%,100%{transform:translateY(0);opacity:.5}50%{transform:translateY(5px);opacity:1}}@keyframes heartbeat{0%,100%{transform:scale(1)}12%{transform:scale(1.13)}25%{transform:scale(1)}37%{transform:scale(1.07)}}@keyframes appear{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes fall{0%{opacity:0;transform:translateY(-20px) rotate(0)}10%{opacity:.8}100%{opacity:0;transform:translateY(115vh) rotate(var(--rotation))}}
@media(max-width:620px){.topbar{height:75px;padding:0 24px}.wordmark{font-size:22px}.topbar>span:not(.header-heart){font-size:7px;letter-spacing:1.8px}.stage{min-height:540px}.stage-intro{top:18%}h1{font-size:34px;letter-spacing:-1.3px}.stage-intro>p:last-child{font-size:11px}.eyebrow{font-size:8px;letter-spacing:2px}.envelope-scene{width:330px;height:215px;max-width:88vw}.envelope-front>span{font-size:29px;bottom:17px}.wax-seal{width:41px;height:41px;left:calc(50% - 20px);font-size:23px;top:45%}.letter{height:470px;padding:21px 14px;left:3%;width:94%;top:10px}.letter-meta{font-size:6px;letter-spacing:1.6px;margin-bottom:16px}.letter figure{width:155px;margin-bottom:16px}.letter figure img{height:127px}.letter figcaption{font-size:17px}.letter h2{font-size:42px;margin-bottom:14px}.letter-note{font-size:10px;line-height:1.8}.letter-signature{font-size:20px;margin-top:13px}.scroll-cue{bottom:24px;font-size:9px;gap:7px}.scroll-line{height:18px}.answer-section{padding:70px 26px 80px;min-height:85svh}.answer-section h2{font-size:48px}.answer-description{font-size:12px}.little-heart{font-size:48px}.success-screen{padding-top:60px}.success-screen h2{font-size:50px}.success-photo{max-width:285px}.success-photo figcaption{font-size:22px}footer{font-size:8px}}
@media(max-height:680px) and (min-width:621px){.letter{height:470px;padding:18px}.letter figure{width:145px;margin-bottom:12px}.letter figure img{height:115px}.letter h2{font-size:43px}.letter-meta{margin-bottom:12px}.letter-note{font-size:10px}.letter-signature{margin-top:10px}.stage-intro{top:14%}}
.personal-note{padding:85px 24px 95px;border-top:1px solid var(--line)}.note-paper{max-width:650px;margin:auto;padding:45px 58px;background:#fffdf7;border:1px solid #e8ded0;box-shadow:0 12px 40px #6c4f390c;transform:rotate(-.6deg)}.note-topline{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:30px;font-family:var(--script);font-size:24px;color:#a18067}.note-paper .eyebrow{font-size:8px;letter-spacing:2px;margin-bottom:18px}.note-paper h2{font-family:var(--serif);font-size:42px;font-weight:500;line-height:1.2;letter-spacing:-1.3px;margin:0 0 27px}.note-body{font-size:14px;color:#817061;line-height:2}.note-body p{margin:0 0 20px}.note-body .note-ending{color:var(--wine)}.note-signature{font-family:var(--script);font-size:26px;text-align:right;color:#a18067;margin:25px 0 0}@media(max-width:620px){.personal-note{padding:55px 23px 65px}.note-paper{padding:28px 25px}.note-topline{font-size:22px;margin-bottom:25px}.note-paper h2{font-size:32px}.note-body{font-size:13px}.note-signature{font-size:23px}}
.motion-toggle{position:absolute;bottom:105px;z-index:12;border:0;border-bottom:1px solid #b89d88;background:none;padding:5px;color:var(--wine);font-size:10px}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}body:not(.motion-enabled) *,body:not(.motion-enabled) *::before,body:not(.motion-enabled) *::after{animation:none!important;transition:none!important}body:not(.motion-enabled) .scroll-story{height:100svh;min-height:690px}body:not(.motion-enabled) .stage{min-height:690px}body:not(.motion-enabled) .stage-intro{display:none}body:not(.motion-enabled) .confetti-heart{display:none}}
