:root{--paper:#f6f1e7;--white:#fffcf5;--ink:#293d35;--muted:#64695e;--rust:#9a4836;--line:#d9d5c6;--pink:#edc6bc;--ease:cubic-bezier(.22,1,.36,1)}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:35px}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.65 ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--rust);outline-offset:5px}button{color:inherit}img{display:block;width:100%;object-fit:cover}h1,h2,p,figure{margin:0}h1,h2,.closing>p{font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-.055em;line-height:1.03}em{font-weight:400;color:var(--rust)}.wrap{width:min(1220px,calc(100% - 96px));margin:auto}.site-header{height:98px;margin:0 48px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{font:italic 30px Georgia,serif;letter-spacing:-.045em;text-decoration:none}.brand span{font-size:19px}.site-header nav{display:flex;gap:36px;font-size:13px}.site-header nav a{text-decoration:none;padding:10px 0}.site-header nav a:hover,.text-link:hover{color:var(--rust)}.small-button{border:1px solid var(--ink);border-radius:4px;background:transparent;padding:10px 19px;font-size:12px;min-height:44px}.small-button span{margin-left:20px}.small-button:hover{background:var(--ink);color:var(--white)}.skip{position:absolute;left:20px;top:10px;transform:translateY(-150%);background:var(--ink);color:white;padding:12px;z-index:30}.skip:focus{transform:none}.eyebrow{font-size:10px;letter-spacing:.15em;text-transform:uppercase;font-weight:650;line-height:1.6}.hero{min-height:730px;display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:65px;padding:70px 0 80px}.hero-copy .eyebrow{display:flex;align-items:center;gap:12px}.little-star{font-size:26px;color:var(--rust);font-weight:400}.hero h1{font-size:clamp(70px,7.2vw,105px);margin:24px 0 28px;line-height:.97;overflow-wrap:anywhere}.hero-note{color:var(--muted);font-size:16px;line-height:1.75;white-space:pre-line}.hero-actions{margin-top:32px;display:flex;align-items:center;gap:24px;flex-wrap:wrap}.button{display:inline-flex;gap:24px;justify-content:center;align-items:center;padding:15px 23px;min-height:50px;border:0;border-radius:3px;font-size:12px;font-weight:550;text-decoration:none;transition:background .2s,transform .2s}.primary{background:var(--ink);color:var(--white)}.primary:hover{background:#3d5549;transform:translateY(-2px)}.text-link{display:inline-flex;align-items:center;gap:9px;min-height:44px;background:none;border:0;padding:0;font-size:12px;text-decoration:none;transition:color .2s}.from{font-size:11px;color:var(--muted);margin-top:35px}.date:before{content:' · ';margin:0 6px}.date:empty{display:none}.hero-art{position:relative;padding:25px 27px 0}.handwritten{font:italic 23px/1.5 Georgia,serif;color:var(--rust);letter-spacing:-.025em}.top-note{position:absolute;top:-16px;left:4px;transform:rotate(-7deg);z-index:2}.polaroid{position:relative;background:var(--white);padding:15px 15px 0;transform:rotate(5deg);box-shadow:0 9px 24px #293d3517,0 1px 3px #293d3510}.polaroid img{height:440px;object-position:center 68%;filter:sepia(.16)}.polaroid figcaption{min-height:74px;display:grid;place-items:center;text-align:center;padding:10px 4px;font:italic 19px Georgia,serif}.tape{position:absolute;top:-18px;left:38%;width:110px;height:38px;background:#d3b89180;transform:rotate(-8deg);z-index:1;clip-path:polygon(0 5%,98% 0,100% 93%,3% 100%)}.birthday-stamp{width:119px;height:119px;border:1px dashed var(--rust);border-radius:50%;position:absolute;right:-21px;bottom:20px;background:var(--paper);display:flex;align-items:center;justify-content:center;flex-direction:column;transform:rotate(-14deg);color:var(--rust);box-shadow:0 0 0 5px var(--paper),0 0 0 6px var(--rust)}.birthday-stamp span{font-size:7px;letter-spacing:.13em}.birthday-stamp strong{font:italic 38px Georgia,serif;line-height:1.5}.photo-hint{font-size:10px;text-align:center;color:var(--muted);margin-top:30px}.sketch-star{position:absolute;left:-24px;bottom:17px;width:67px;color:var(--rust);transform:rotate(12deg)}.ribbon{border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;justify-content:center;gap:48px;align-items:center;padding:23px 24px;font-size:11px;color:var(--muted)}.ribbon span:nth-child(even){font-size:20px;color:var(--rust)}h2{font-size:clamp(43px,4.4vw,65px)}.wish-section,.letter-section{display:grid;grid-template-columns:1fr 1fr;gap:90px;align-items:center;padding:110px 0}.section-intro h2,.letter-side h2{margin:24px 0}.section-intro>p:last-child,.letter-side>p:not(.eyebrow){color:var(--muted);font-size:14px}.cake-area{text-align:center}.cake{position:relative;width:270px;margin:0 auto 34px;height:240px;padding-top:100px}.candles{position:absolute;left:50%;top:24px;transform:translateX(-50%);display:flex;gap:24px;z-index:3}.candle{height:67px;width:11px;background:repeating-linear-gradient(35deg,var(--rust) 0,var(--rust) 7px,#efbaa6 7px,#efbaa6 13px);border-radius:2px}.candle:nth-child(even){margin-top:11px;height:56px}.flame{position:absolute;top:-23px;width:12px;height:20px;background:#e5a13d;box-shadow:0 0 15px #e9ad5060;border-radius:90% 0 80% 60%;transform:rotate(-35deg);animation:flicker 1s ease-in-out infinite alternate;transform-origin:center bottom;transition:opacity .35s,scale .35s}.candle:nth-child(even) .flame{top:-12px;animation-delay:.3s}.candles.out .flame{opacity:0;scale:0}.cake-top{position:relative;background:#edd3b4;border-radius:50%;height:53px;z-index:2;border:1px solid #d9bea1}.cake-layer{position:relative;height:97px;background:#f0dcc2;margin-top:-27px;border:1px solid #d9bea1;border-top:0;display:grid;place-items:center;padding-top:18px}.cake-layer:after{content:'';position:absolute;left:0;right:0;top:16px;height:20px;border-bottom:8px dotted var(--pink)}.cake-layer span{font:italic 23px Georgia,serif;color:var(--rust);margin-top:20px}.cake-bottom{height:32px;border-radius:50%;background:#f0dcc2;border-bottom:2px solid #d9bea1;margin-top:-17px;position:relative;z-index:1}.cake-plate{height:30px;border-radius:50%;width:310px;background:#dedfd3;position:absolute;left:-20px;bottom:14px;border:1px solid #bbc6b5}.wish-result{font-size:11px;min-height:38px;color:var(--muted);margin-top:15px}.memory-section{background:#eee7d9;padding:105px 0}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:40px;margin-bottom:52px}.section-heading h2{margin-top:23px}.section-heading>p{font-size:13px;color:var(--muted);max-width:300px}.memory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:29px}.memory-card{background:var(--white);padding:13px;border:0;width:100%;text-align:left;position:relative;min-width:0;perspective:1200px;box-shadow:0 3px 9px #293d3509;transition:transform .35s var(--ease)}.memory-card:nth-child(1){transform:rotate(-2deg)}.memory-card:nth-child(3){transform:rotate(2deg)}.memory-card:hover{transform:translateY(-8px) rotate(0deg)}.memory-inner{height:310px;position:relative;transform-style:preserve-3d;transition:transform .65s var(--ease)}.memory-card.flipped .memory-inner{transform:rotateY(180deg)}.memory-front,.memory-back{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden}.memory-front img{height:100%;filter:saturate(.75);object-position:65% center}.memory-back{transform:rotateY(180deg);background:#f3ecdf;display:flex;justify-content:center;flex-direction:column;padding:25px;color:var(--ink)}.memory-back .eyebrow{color:var(--rust);font-size:9px;margin-bottom:19px}.memory-back p{font:18px/1.65 Georgia,serif}.memory-caption{padding:22px 8px 13px;display:flex;justify-content:space-between;align-items:center;gap:10px;font:italic 20px Georgia,serif}.memory-caption span:last-child{font:14px system-ui;color:var(--rust)}.sample-label{font-size:10px;color:var(--muted);text-align:center;margin-top:39px}.drawn-arrow{margin-top:24px;width:125px;color:var(--rust)}.envelope{background:#eee2cb;position:relative;min-height:375px;border:1px solid #d4c4a7;box-shadow:0 10px 30px #293d350a;transform:rotate(2deg)}.envelope-cover{min-height:375px;position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;background:linear-gradient(30deg,transparent 49.8%,#d8c8aa 50%,transparent 50.3%),linear-gradient(-30deg,transparent 49.8%,#d8c8aa 50%,transparent 50.3%)}.envelope-cover>.eyebrow{position:relative;background:#eee2cb}.envelope-cover>strong{font:italic 52px Georgia,serif;background:#eee2cb;line-height:1.3;padding:0 15px;overflow-wrap:anywhere;max-width:90%;text-align:center}.seal{border:0;background:var(--rust);color:var(--white);display:flex;gap:10px;align-items:center;padding:14px 19px;border-radius:28px;min-height:48px;font-size:11px;box-shadow:0 3px 6px #61332018}.seal:hover{background:#803927}.envelope-cover>.handwritten{font-size:16px;margin-top:12px;background:#eee2cb}.letter-paper{background:var(--white);padding:40px;animation:unfold .5s var(--ease)}.letter-paper>.handwritten{margin-bottom:22px}.letter-paper #letterText p{font:17px/1.8 Georgia,serif;margin-bottom:20px}.signature{margin-top:25px}.envelope.open{transform:none}.envelope.open .envelope-cover{display:none}.notes-section{padding:100px 0;background:#edf0e7}.notes-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px;margin-bottom:38px}.note{padding:30px;background:#fffcf2;position:relative}.note:nth-child(3n+2){background:#f1ddd3}.note:nth-child(3n+3){background:#e0e7d6}.note p{font:italic 21px/1.5 Georgia,serif;overflow-wrap:anywhere}.note small{display:block;font-size:10px;letter-spacing:.05em;margin-top:20px}.note-remove{position:absolute;top:5px;right:5px;border:0;background:none;width:44px;height:44px;font-size:20px;opacity:.6}.note-empty{grid-column:1/-1;text-align:center;border:1px dashed #bac4b3;padding:35px;color:var(--muted);font:italic 20px Georgia,serif}.wish-form{display:grid;grid-template-columns:1fr 2fr auto;gap:20px;align-items:end}.wish-form .button{margin-bottom:0}label{display:block;font-size:11px;font-weight:600;letter-spacing:.02em;margin-bottom:8px}input,textarea{width:100%;border:1px solid #c6cbbb;padding:12px;border-radius:3px;background:#fffcf580;color:var(--ink);font-size:14px}input{min-height:49px}textarea{resize:vertical;line-height:1.6}.wish-form textarea{height:49px;min-height:49px}.form-status{font-size:12px;min-height:22px;margin-top:14px}.closing{text-align:center;padding:120px 0}.closing>p{font-size:clamp(48px,5.8vw,85px);margin:28px 0}.closing .text-link{font-size:14px}.site-footer{margin:0 48px;border-top:1px solid var(--line);padding:30px 0;display:flex;align-items:center;justify-content:space-between;gap:20px}.site-footer>span{font-size:10px;color:var(--muted)}.site-footer .brand{font-size:24px}dialog{width:min(700px,calc(100% - 28px));max-height:90svh;padding:35px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);box-shadow:0 30px 120px #0003}dialog::backdrop{background:#182a2470;backdrop-filter:blur(3px)}body.editing{overflow:hidden}.editor-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.editor-header h2{font-size:48px;margin-top:10px}.close-button{border:1px solid var(--line);background:none;min-width:44px;min-height:44px;font-size:27px;border-radius:50%}.editor-help{font-size:12px;color:var(--muted);margin:20px 0 25px}.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:20px}#editForm input,#editForm textarea{margin-bottom:19px}#editForm small{display:block;font-size:10px;margin:-12px 0 19px;color:var(--muted)}input[type=file]{font-size:11px;padding:10px;min-width:0}fieldset{border:1px solid var(--line);padding:19px;margin:5px 0 24px}legend{font:italic 23px Georgia,serif;padding:0 8px}.memory-edit+.memory-edit{border-top:1px solid var(--line);padding-top:20px;margin-top:5px}.memory-edit>.eyebrow{color:var(--rust);margin-bottom:14px}.editor-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:18px}#editStatus{color:var(--rust);font-size:12px}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);background:var(--ink);color:var(--white);padding:12px 20px;border-radius:4px;font-size:12px;z-index:100;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:calc(100% - 30px);text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}#confetti{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:90}.confetti-piece{position:absolute;top:-30px;width:8px;height:13px;animation:fall 2.8s ease-in forwards} [hidden]{display:none!important}@keyframes flicker{to{transform:rotate(-24deg) scale(.93)}}@keyframes unfold{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}@keyframes fall{to{transform:translate(var(--drift),110vh) rotate(var(--spin));opacity:.3}}
@media(min-width:1500px){.hero{min-height:790px}}@media(max-width:1050px){.wrap{width:calc(100% - 64px)}.site-header,.site-footer{margin:0 32px}.hero{gap:25px;min-height:650px}.hero h1{font-size:85px}.hero-art{padding:20px}.polaroid img{height:380px}.birthday-stamp{right:-6px;bottom:29px;width:100px;height:100px}.birthday-stamp strong{font-size:32px}.hero-copy .eyebrow{font-size:9px}.memory-inner{height:285px}.memory-back{padding:18px}.memory-back p{font-size:16px}.memory-caption{font-size:17px}.wish-section,.letter-section{gap:55px}.wish-form{grid-template-columns:1fr 1.7fr}.wish-form .button{grid-column:2;justify-self:end}.ribbon{gap:25px;font-size:10px}.notes-grid{gap:16px}.note{padding:24px}.note p{font-size:19px}}
@media(max-width:720px){.wrap{width:calc(100% - 44px)}.site-header{height:78px;margin:0 22px}.brand{font-size:26px}.brand span{font-size:17px}.site-header nav{display:none}.small-button{padding:9px 12px;font-size:11px}.small-button span{margin-left:12px}.hero{grid-template-columns:1fr;padding:36px 0 55px;gap:65px}.hero-copy .eyebrow{font-size:8px;letter-spacing:.12em}.little-star{font-size:23px}.hero h1{font-size:clamp(68px,16vw,94px);margin-top:20px;line-height:.96}.hero-note{font-size:14px}.hero-actions{gap:16px;margin-top:25px}.button{font-size:11px;padding:14px 18px;gap:18px}.text-link{font-size:11px}.from{margin-top:22px}.hero-art{width:min(430px,100%);margin:auto;padding:15px 30px 0 17px}.polaroid{padding:11px 11px 0;transform:rotate(4deg)}.polaroid img{height:380px}.polaroid figcaption{font-size:17px;min-height:68px}.top-note{font-size:20px;top:-20px;left:3px}.birthday-stamp{right:6px;bottom:26px;width:95px;height:95px}.birthday-stamp span{font-size:6px}.sketch-star{left:-10px;width:50px;bottom:27px}.photo-hint{font-size:9px;margin-top:25px}.ribbon{justify-content:center;gap:19px;padding:18px}.ribbon span:nth-child(n+4){display:none}.ribbon span{font-size:9px}.ribbon span:nth-child(2){font-size:18px}.wish-section,.letter-section{grid-template-columns:1fr;gap:50px;padding:75px 0}.section-intro h2,.letter-side h2{margin:17px 0 21px}h2{font-size:49px}.section-intro>p:last-child,.letter-side>p:not(.eyebrow){font-size:13px}.cake{transform:scale(.93);margin-bottom:15px}.cake-area{padding-top:0}.memory-section,.notes-section{padding:74px 0}.section-heading{display:block;margin-bottom:38px}.section-heading h2{margin-top:17px;font-size:47px}.section-heading>p{margin-top:25px;font-size:12px}.memory-grid{grid-template-columns:1fr;gap:30px;margin:0 10px}.memory-inner{height:320px}.memory-caption{font-size:21px}.memory-back{padding:30px}.memory-back p{font-size:19px}.memory-card:nth-child(2){transform:rotate(1deg)}.memory-card:nth-child(3){transform:rotate(-1.5deg)}.sample-label{font-size:9px;padding:0 20px}.drawn-arrow{display:none}.envelope{min-height:340px;transform:rotate(1deg)}.envelope-cover{min-height:340px}.letter-paper{padding:28px}.letter-paper #letterText p{font-size:16px}.notes-grid{grid-template-columns:1fr;gap:14px}.note{padding:28px}.note-empty{font-size:18px;padding:28px}.wish-form{grid-template-columns:1fr;gap:15px}.wish-form textarea{height:85px}.wish-form .button{grid-column:1;width:100%}.closing{padding:85px 0}.closing>p{font-size:clamp(42px,11vw,64px)}.site-footer{margin:0 22px;flex-wrap:wrap;padding:24px 0;gap:15px}.site-footer .text-link{width:100%}.site-footer>span{font-size:9px}dialog{padding:23px;max-height:92svh}.editor-header h2{font-size:42px}.field-pair{grid-template-columns:1fr;gap:0}.editor-footer{align-items:stretch;flex-direction:column;gap:10px}.editor-footer .text-link{justify-content:center}fieldset{padding:14px}.editor-help{font-size:12px}.wish-result{font-size:10px}.memory-caption{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}.memory-inner{transform-style:flat}.memory-card.flipped .memory-front{display:none}.memory-card.flipped .memory-back,.memory-card.flipped .memory-inner{transform:none}.confetti-piece{display:none}}
.memory-back{overflow-y:auto;overscroll-behavior:contain}.memory-back p{white-space:pre-line}.letter-paper #letterText p{white-space:pre-line}
