@font-face{font-family:'Pinyon Script';src:url('assets/pinyon.woff') format('woff');font-display:swap}
@font-face{font-family:'Aref Ruqaa';src:url('assets/ruqaa.woff') format('woff');font-display:swap}
@font-face{font-family:'Noto Naskh Arabic';src:url('assets/naskh.woff') format('woff');font-display:swap}
:root{--script:'Pinyon Script','Brush Script MT',cursive;--arabic:'Noto Naskh Arabic',Tahoma,serif;--serif:var(--arabic);--ruqaa:'Aref Ruqaa',var(--arabic);--ink:#644932;--gold:#a17b43;--paper:#f8efe3;--width:470px;color:var(--ink);font-family:var(--serif);background:#e9dfcf;font-synthesis:none;scroll-behavior:smooth}
*{box-sizing:border-box} body{margin:0;background:radial-gradient(ellipse at 45% 32%,#f8f3e9,#ded2bf 85%);min-height:100svh} body.sealed{overflow:hidden;height:100svh} .folio{position:relative;margin:auto;max-width:var(--width);min-height:100svh;background:var(--paper);box-shadow:0 0 50px #5b44251c;isolation:isolate} .sealed .folio{height:100svh;overflow:hidden} #envelope{position:absolute;inset:0;z-index:5;height:100svh;background:#eee2d0} #envelope[hidden]{display:none!important}.hero{position:relative;height:100svh;min-height:490px;max-height:1070px;isolation:isolate;overflow:hidden;text-align:center;background:#edddbf}
.palace{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center center;z-index:-2} .hero-title{position:absolute;top:20%;left:10%;width:80%;color:#624628;text-shadow:0 1px 4px #fff6df;line-height:1.05} .hero-title p,.hero-title h1{margin:0}.hero-title p{font:1.12rem/1.55 var(--arabic)}.hero-title .wedding-line{font:clamp(1.9rem,7.7vw,2.55rem)/1.57 var(--ruqaa)}.divider{display:flex;align-items:center;justify-content:center;gap:7px;margin:1px auto 7px;font-size:13px;color:#a37c40}.divider:before,.divider:after{content:'';width:26px;height:1px;background:linear-gradient(90deg,transparent,#bb9b65)}.divider:after{transform:rotate(180deg)}.hero-title h1{font:clamp(3.4rem,14vw,4.45rem)/1.1 var(--script);font-weight:400;outline:none}.hero-title h1 i,.ending i{font-size:.5em;margin:0 .16em;font-style:normal}.scroll-link{position:absolute;bottom:max(3.8%,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);color:#654824;text-decoration:none;display:flex;flex-direction:column;align-items:center;padding:8px 16px;font:1.18rem/1.5 var(--arabic);text-shadow:0 0 6px #fff9e7,0 0 10px #fff9e7}.scroll-link span{border-bottom:1px solid currentColor;border-right:1px solid currentColor;width:7px;height:7px;transform:rotate(45deg);margin:4px auto 0;animation:cue 2.2s ease-in-out infinite}@keyframes cue{50%{translate:0 4px}}
.sheet{text-align:center;position:relative;background-color:var(--paper);background-image:radial-gradient(ellipse at 15% 40%,#fff9f23b,transparent 65%),radial-gradient(ellipse at 90% 85%,#f0d7c333,transparent 55%)} h2,h3,p{margin:0} h2{font:400 clamp(2.45rem,10vw,3.05rem)/1.55 var(--ruqaa)} .date{padding:65px 8.5% 28px}.instruction{font-size:1.12rem;margin:13px 0 21px}.instruction i{font-style:normal;color:#aa8649;font-size:14px;padding:0 3px}.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.foil{position:relative;width:100%;aspect-ratio:.78;border:1px dashed #ad8952;border-radius:9px;color:#62482e;font:400 clamp(1.65rem,6.1vw,1.95rem)/1.65 var(--serif);background:linear-gradient(135deg,#fcf7ec,#f0dfc6);overflow:hidden;box-shadow:0 3px 9px #916c3820;cursor:pointer;touch-action:none;padding:0;outline-offset:4px}.foil[data-part=month]{font-size:clamp(1.24rem,5vw,1.55rem)}.foil canvas{width:100%;height:100%;position:absolute;inset:0;transition:opacity .38s}.foil.revealed canvas{opacity:0;pointer-events:none}.foil.revealed{touch-action:pan-y}.unit,.metadata,.letter-preface{font-size:.98rem;letter-spacing:normal;font-weight:400}.unit{display:block;margin-top:10px}.metadata{color:#776148;letter-spacing:normal}.date .metadata{margin-top:19px;font-size:.875rem;letter-spacing:normal}
.letter{min-height:535px;margin-top:0;display:grid;align-items:center;padding:114px 15% 80px;isolation:isolate}.arch-lines{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}.letter-inner{position:relative;z-index:1}.letter-preface{font-size:1.1rem;letter-spacing:normal}.letter-couple{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:12px;margin:21px 0 16px}.letter-couple span{font:3.35rem/.91 var(--script)}.letter-couple small{font:1.35rem/1.3 var(--ruqaa)} .flourish{display:flex;justify-content:center;align-items:center;gap:8px;color:#ab854b;font:1.22rem/1 var(--serif)}.flourish span{width:40px;height:1px;background:linear-gradient(90deg,transparent,#bca172)}.flourish span:last-child{transform:rotate(180deg)}.letter h2{font-size:clamp(2rem,8.4vw,2.6rem);margin:20px -12px 10px}.letter-body{font-size:1.23rem;line-height:1.8;text-wrap:pretty;max-width:270px;margin:auto}.bouquet{position:absolute;bottom:6px;width:32%;z-index:-1;pointer-events:none}.bouquet.left{left:0}.bouquet.right{right:0;transform:scaleX(-1)}
.timeline{padding:50px 8% 74px}.timeline h2{font-size:clamp(2.55rem,10.2vw,3.2rem)}.timeline .flourish{margin:6px 0 22px}.timeline .flourish span{width:62px}.events{padding:0;margin:0;list-style:none;position:relative}.events:before{content:'';position:absolute;inset:0 auto 0 50%;width:1px;background:linear-gradient(transparent,#bfa06d 10%,#bfa06d 90%,transparent)}.events li{display:grid;grid-template-columns:1fr 20px 1fr;align-items:center;gap:5px;min-height:144px}.events img{width:min(100%,132px);justify-self:center}.event-node{width:10px;height:10px;margin:auto;transform:rotate(45deg);border:1px solid #b79a65;box-shadow:0 0 0 3px var(--paper);background:#dfc492}.event-copy{padding:0 2px}.time{font:1.42rem/1.6 var(--ruqaa);white-space:nowrap;color:#805d34}.event-copy h3{font:400 1.3rem/1.55 var(--serif);margin:6px 0 2px}.event-copy p:last-child:not(.time){font-size:1.05rem}.ending{font:2.8rem/1.1 var(--script);margin:32px 0 8px}.endnote{font-size:.875rem;letter-spacing:normal}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#sound{position:fixed;right:max(14px,calc((100vw - var(--width)) / 2 + 15px));bottom:max(16px,env(safe-area-inset-bottom));height:44px;width:44px;z-index:3;border:1px solid #ead09e;border-radius:50%;background:linear-gradient(135deg,#d5ad64,#b68940);color:white;box-shadow:0 2px 8px #58422225;display:grid;place-items:center;cursor:pointer}#sound[hidden]{display:none}.sealed .hero-title,.sealed .scroll-link{visibility:hidden}@keyframes appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}:focus-visible{outline:2px solid #78552b;outline-offset:3px}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
.sealed.revealing .scroll-link,.sealed.revealing .hero-title{visibility:visible}
.revealing .palace{animation:palace-reveal 3.3s cubic-bezier(.2,.55,.32,1) both}
.revealing .hero-title>*{animation:appear .8s ease-out 1.85s both}
.revealing .hero-title>.wedding-line{animation-delay:2.02s}
.revealing .hero-title>.divider,.revealing .hero-title>h1{animation-delay:2.2s}
@keyframes palace-reveal{from{transform:scale(1.045)}to{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.revealing .hero-title>*,.revealing .palace{animation:none}}

.hero{background-image:url(data:image/webp;base64,UklGRgAGAABXRUJQVlA4IPQFAAAQGQCdASpAAIAAPqlEnEkmI6KhLRTuSMAVCUAXyATVpwDgpX+m3fnO2OR/ZKajnBfYiO8taRmslBXV3tiDKCfFQISo3EomKCHQ6plCz8SpnwQ4ffQcvFeXu5wV0K6LJTM9/xkXCXmrRAjMWMg5qNcZGE/9LFeANiKuypq7XkIZoVpqWefl9C45RCs58WkS5wyD0WYEFE78b1HrzNkOX/eeslOubXm7P4AuS28FdnXHcwtfeEYN9tvRTHRb6yXu+UuXAXipExfop1SGNFEGQWW6AAD3kqe93WHYLcE5zex9QeYPnb6zi6VvWGh1KNuG3yighsoMOZRmIbnhAD5uj/0Kg1+tP23be6TjVq71bMcbULz+pv/yOSErRGeSpzoN3jo+bek35+lNvAla60ZC6yvC9itZ00X52Z7O92SdsPampZy/WRxEy3X4d0BuTH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wsam8rLkM/oOLe2D1GxA49NDDyKWj9ziqPAOjRrm4VblEslZ8bJDn6Use5epTcsygIjwnnG2n6ut+Vf1d62rAKKxNQqTZCKScxfauK5BhB3kA3S6pOr3Mp0zdf6T/FHV3kCCdYjT9azC+bPGAT1UJwBFYhVUQ0ZRqEYdMa8PGm9YsClVzR1toqseIhu47pVfuKFhUkLBWScWIDgmmxUV32Q2htgW/Yx2jItqL0KED+eAdMM2wW1TORNqB+Jy9SDcgnhklxCBWAN8IcZWJdXMQlYy3KIklRXGdu7pJGoiWbargu1nOiGdYe1mTBykOj0s27gn7uOqbo2uqR/eAi8WmgYUP9RO1/G3u20uaUC3qoG9dEQbxqJSx4jqFAwJgVsqR7pMvom0Oe7DIDZ36hymnAIEZVO+jn0U37KVkH/R084JB0/h5sx+D16hYEbFqLD2lijN9yM9L0Km9cvNwH/lSaAuxeQcIMRdu/NJ44AAAA=);background-size:cover;background-position:center}

.date-calendar{display:inline-flex;align-items:center;min-height:44px;margin-top:8px;padding:0 18px;border:1px solid #b79b70;border-radius:24px;color:#655039;font:inherit;text-decoration:none}.date-calendar:focus-visible{outline:2px solid currentColor;outline-offset:3px}
