@font-face{font-family:"WeddingSong";src:url("assets/fonts/STSONG.TTF") format("truetype");font-style:normal;font-weight:100 900;font-display:swap}
@font-face{font-family:"WeddingZhongSong";src:url("assets/fonts/STZHONGS.TTF") format("truetype");font-style:normal;font-weight:100 900;font-display:swap}
:root{color-scheme:dark;--night:#090b18;--paper:#eee9df;--gold:#d6b77e;--muted:#aaa9b6;--fade:850ms;--serif:"WeddingSong",serif;--sans:"WeddingSong",serif;--heading:"WeddingZhongSong","WeddingSong",serif}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{background:#060813;color:var(--paper);font-family:var(--serif);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:default}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible{outline:2px solid var(--gold);outline-offset:6px}input:focus-visible,select:focus-visible,textarea:focus-visible{outline:1px solid var(--gold);border-color:var(--gold)}button{color:inherit}button:disabled{pointer-events:none}img{display:block;max-width:100%;height:auto}h1,h2,h3,p,figure{margin:0}h2{font-size:clamp(1.5rem,4.4vw,2rem);font-weight:500;letter-spacing:.12em}h3{font-size:1.4rem;font-weight:400}p{line-height:1.9}[hidden]{display:none!important}
.ambient{position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 0,rgba(78,111,157,.14),transparent 55%),radial-gradient(ellipse at 20% 90%,rgba(60,68,108,.08),transparent 50%)}.invitation{position:relative;height:100%;height:100svh;max-width:1080px;margin:auto;background:var(--night);box-shadow:0 0 100px #0006;isolation:isolate;overflow:hidden}.page{position:absolute;inset:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b196622e transparent;padding:70px 32px 90px;opacity:0;transition:opacity .65s ease;outline:none;-webkit-overflow-scrolling:touch}.page.is-active{opacity:1;z-index:2}.page.is-leaving{opacity:0;pointer-events:none}.page.is-entering{pointer-events:none}.reveal{opacity:0;transform:translateY(14px);transition:opacity var(--fade) ease,transform 1.2s cubic-bezier(.22,1,.36,1);transition-delay:var(--delay,0ms)}.is-active .reveal{opacity:var(--reveal-opacity,1);transform:translateY(0)}.is-leaving .reveal{opacity:0;transform:translateY(-7px);transition-delay:0ms;transition-duration:.55s}.ornament{color:var(--gold);font-size:36px;line-height:1.2}.eyebrow{font-family:var(--sans);font-size:.65rem;letter-spacing:.25em;color:var(--gold)}.english{font-family:var(--serif);color:#b5b3bc;font-size:.82rem;line-height:1.65}.chinese{font-size:1.16rem;line-height:2.15;font-weight:400;letter-spacing:.035em}.chinese em{font-style:normal;color:#bad4e7}
.cover{padding:0;display:flex;flex-direction:column;align-items:center}.cover-art{width:min(100%,570px);height:53%;min-height:270px;position:relative;flex-shrink:0;overflow:hidden}.cover-moon{position:absolute;top:-2%;left:3%;width:94%;height:auto;object-fit:contain}.cover-landscape{position:absolute;width:100%;height:auto;bottom:-1px;left:0;mask-image:linear-gradient(transparent,#000 23%,#000 86%,transparent);-webkit-mask-image:linear-gradient(transparent,#000 23%,#000 86%,transparent)}.cover-title{position:absolute;top:12%;left:24%;width:52%;filter:drop-shadow(0 2px 10px #153d67);margin:0}.cover-message{position:relative;display:flex;flex:1;flex-direction:column;align-items:center;width:min(100%,570px);padding:3px 0 65px;gap:12px}.tree{position:absolute;width:31%;max-height:100%;object-fit:contain;top:0;opacity:0;pointer-events:none;z-index:-1}.tree-left{left:0}.tree-right{right:0}.names{display:flex;align-items:center;justify-content:center;gap:22px;width:75%;margin-top:0}.names>img{width:30%;max-width:106px}.names .name-knot{width:32px}.name-decoration{width:55%;--reveal-opacity:.8}.cover-invite{text-align:center;font-size:clamp(1.32rem,5.7vw,1.85rem);line-height:1.5;letter-spacing:.1em}.begin-button{margin-top:3px;border-radius:50%;width:78px;height:78px;flex-shrink:0;display:flex;align-items:center;justify-content:center;flex-direction:column;border:1px solid #f6d598;background:linear-gradient(135deg,#c58b38,#ffe0ad);box-shadow:0 0 24px #e0b76640;color:#6e4829;font-size:1rem;gap:5px}.begin-en{font-family:var(--serif);font-size:6px;letter-spacing:.03em}.begin-button:hover{box-shadow:0 0 40px #e0b76660}
.prologue{display:flex;align-items:center;justify-content:center;text-align:center}.prologue-moon{position:absolute;left:-3%;width:85%;max-width:600px;height:90%;top:4%;object-fit:fill;--reveal-opacity:.65;z-index:-1}.prologue-copy{width:100%;margin-top:-5%}.prologue-copy .ornament{margin-bottom:28px}.prologue-copy .chinese{font-size:clamp(1.15rem,4.5vw,1.55rem);line-height:2}.prologue-copy .english{margin-top:24px}
.story{display:flex;align-items:center;justify-content:center}.split-layout{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:center;width:100%;max-width:900px}.story-copy{position:relative;z-index:1}.story-copy .english{margin-top:22px}.story-photo{width:100%;max-height:73svh;object-fit:contain;filter:drop-shadow(0 6px 18px #d5a5480b)}.story-centered{flex-direction:column;gap:22px;text-align:center}.center-photo{width:auto;max-width:82%;max-height:50svh;object-fit:contain}.center-copy{width:100%;max-width:760px}.center-copy .english{margin-top:15px}.long-story{gap:16px}.long-story .center-photo{max-height:39svh}.long-story .chinese{font-size:1.04rem;line-height:1.85}.long-story .english{font-size:.78rem;line-height:1.5}.invitation-chapter .center-photo{max-height:49svh}.invitation-chapter .chinese{font-size:1.07rem;line-height:2}.invitation-chapter .english{margin-top:12px}
.details{display:flex;align-items:center;justify-content:center;text-align:center;background:radial-gradient(ellipse at 50% 20%,#34446326,transparent 58%)}.detail-content{width:100%;max-width:620px}.detail-content .ornament{font-size:64px;margin-bottom:25px}.detail-content .eyebrow{margin-bottom:14px}.fine-line{width:46px;height:1px;background:var(--gold);margin:28px auto}.wedding-date{font-size:clamp(2rem,7vw,3.5rem);letter-spacing:.08em;line-height:1.5}.wedding-date span{color:var(--gold)}.venue{font-size:1.08rem;margin-top:26px;line-height:2}.venue strong{font-weight:400}.arrival-note{font-size:.9rem;color:var(--muted);margin-top:20px}.text-button{border:0;border-bottom:1px solid #c4a36975;background:none;font-family:var(--sans);font-size:.82rem;color:var(--gold);padding:12px 5px;letter-spacing:.08em;min-height:44px}.detail-content .text-button{margin-top:25px}
.rsvp{padding-top:76px;padding-bottom:80px}.rsvp-content{width:100%;max-width:600px;margin:auto}.form-heading{text-align:center;margin:0 0 26px}.form-heading .eyebrow{margin-bottom:16px}.form-heading h2{font-size:clamp(1.35rem,4.8vw,1.9rem);letter-spacing:.06em}.form-intro{font-family:var(--sans);font-size:.8rem;color:var(--muted);margin-top:12px}.rsvp-form{padding:26px;background:#101622;border:1px solid #c5ac771f;border-radius:3px;font-family:var(--sans);font-size:.875rem;box-shadow:0 8px 45px #0002}.rsvp-form label,.rsvp-form legend{display:block;line-height:1.6;margin-bottom:9px}.rsvp-form label>span[lang],.rsvp-form legend>span{font-size:.76rem;color:#b0afba}.rsvp-form input[type=text],.rsvp-form input[type=date],.rsvp-form select,.rsvp-form textarea{width:100%;min-width:0;border:1px solid #ffffff24;border-radius:6px;background:#0c111d;color:#f0ece5;padding:12px 13px;font-size:16px;min-height:46px;margin:0 0 21px;transition:border-color .2s}.rsvp-form input::placeholder,.rsvp-form textarea::placeholder{color:#858896;font-size:.84rem}.rsvp-form select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23b7b4b0' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:32px}.rsvp-form input[type=date]{appearance:none;display:block}.rsvp-form textarea{resize:vertical;min-height:95px;margin-bottom:12px}.rsvp-form fieldset{border:0;padding:0;margin:0 0 24px;min-width:0}.attendance-options{display:flex;flex-direction:column;gap:10px}.rsvp-form .choice{display:flex;gap:10px;align-items:center;cursor:pointer;margin:0;min-height:30px}.choice input{accent-color:#dbc18c;width:16px;height:16px;margin:0;flex-shrink:0}.choice small{font-size:.75rem;margin-left:6px;color:#b0afba}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-row>div{min-width:0}.form-row label{font-size:.82rem}.field-help{font-size:.75rem;color:#959aaa;margin:-12px 0 20px}.privacy-note{font-size:.73rem;line-height:1.7;color:#a8a7b3;margin-bottom:16px}.submit-button{background:#d8c99f;border:1px solid #ecdcba;border-radius:4px;color:#31291f;width:100%;min-height:49px;font-family:var(--sans);font-size:.9rem}.submit-button span{font-size:.75rem}.submit-button:hover{background:#eadbb8}.submit-button:disabled{opacity:.55}.form-status{font-size:.82rem;line-height:1.7;margin-top:12px;color:#f0b7a5}.form-status:empty{display:none}.honey{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}.after-form{display:block;margin:18px auto 0}.rsvp-success{text-align:center;padding:45px 20px;border:1px solid #d6b77e3b;background:#101622}.rsvp-success h3{margin:24px 0 18px}.rsvp-success p{font-size:.94rem;margin-top:14px}.rsvp-success .receipt{font-size:.75rem;color:#aba8b4;font-family:var(--sans);word-break:break-all}
.closing{display:flex;align-items:center;justify-content:center;text-align:center}.closing-content{width:100%;max-width:650px}.closing h2{margin:22px 0 28px}.notes{font-size:1rem;line-height:2;color:#cecbd0}.notes p+p{margin-top:16px}.closing-title{width:70%;max-width:360px;margin:65px auto 22px}.closing-date{font-size:.75rem;letter-spacing:.18em;color:var(--gold);font-family:var(--serif)}.closing-actions{display:flex;justify-content:center;gap:25px;margin-top:25px}
.page-navigation{position:absolute;bottom:0;left:0;right:0;z-index:5;height:62px;display:flex;justify-content:center;align-items:center;background:linear-gradient(transparent,var(--night) 55%);padding-bottom:env(safe-area-inset-bottom,0);pointer-events:none}.page-navigation button{pointer-events:auto;background:none;border:0;color:#ac9e80;font-family:var(--sans);font-size:.72rem;min-height:44px;transition:opacity .5s}.page-navigation #previous{position:absolute;left:25px;bottom:10px;color:#8c8b98}.page-navigation #next{display:flex;align-items:center;gap:10px;letter-spacing:.08em}.page-navigation #next:disabled{opacity:0}.nav-glimmer{font-size:20px;animation:glimmer 2.6s ease-in-out infinite}.progress-track{position:absolute;bottom:0;left:0;right:0;height:2px;z-index:10;background:#c5a46415}#progress{height:100%;width:9.09%;background:linear-gradient(90deg,#6d859d,#e2bd7e);transition:width .9s ease}.music-button{position:fixed;right:max(16px,calc((100vw - 1020px)/2));top:max(17px,env(safe-area-inset-top));z-index:20;border:1px solid #ccbd9738;border-radius:30px;display:flex;align-items:center;gap:7px;height:37px;padding:0 12px;background:#090b18ab;backdrop-filter:blur(10px);font-family:var(--sans);font-size:.65rem;color:#d8ccaf}.music-bars{display:flex;align-items:center;gap:2px;height:15px}.music-bars i{display:block;width:2px;height:5px;background:#cdb47d}.music-bars i:nth-child(2){height:11px}.music-bars i:nth-child(3){height:15px}.music-bars i:nth-child(4){height:8px}.music-button.is-playing i{animation:equalizer 1s ease-in-out infinite alternate}.music-button.is-playing i:nth-child(2){animation-delay:-.4s}.music-button.is-playing i:nth-child(3){animation-delay:-.7s}.music-button.is-playing i:nth-child(4){animation-delay:-.2s}.toast{position:fixed;bottom:85px;left:50%;transform:translate(-50%,12px);opacity:0;background:#202536f2;color:#e7e0d2;z-index:30;padding:12px 18px;border:1px solid #c9ae7433;border-radius:5px;max-width:85vw;width:max-content;font: .8rem/1.7 var(--sans);pointer-events:none;transition:.3s}.toast.show{opacity:1;transform:translate(-50%,0)}.noscript{position:fixed;inset:0;z-index:99;background:var(--night);padding:100px 30px;font-size:1.2rem;line-height:2}
@keyframes glimmer{50%{opacity:.4}}@keyframes equalizer{to{height:3px}}
@media(min-width:760px){.page{padding:75px 70px 85px}.cover{padding:0}.cover-art{height:58%;width:610px}.cover-message{gap:10px;padding-bottom:50px}.cover-invite{font-size:1.5rem}.begin-button{width:70px;height:70px}.names>img{max-width:86px}.names .name-knot{width:27px}.name-decoration{width:40%}.split-layout{gap:45px}.story-copy .chinese{font-size:1.28rem}.story-copy .english{font-size:.87rem}.story-centered:not(.invitation-chapter){flex-direction:row;gap:40px;text-align:left}.story-centered:not(.invitation-chapter) .center-photo{max-width:45%;max-height:76svh}.story-centered:not(.invitation-chapter) .center-copy{width:55%}.story-centered .chinese{font-size:1.16rem}.long-story .chinese{font-size:1.13rem}.invitation-chapter .center-photo{max-height:49svh}.prologue-moon{width:65%;left:13%}.prologue-copy{margin-top:0}.closing-title{margin-top:45px}}
@media(max-width:600px){.page{padding:65px 22px 80px}.cover{padding:0}.split-layout{gap:6px;grid-template-columns:1.05fr 1fr}.story-copy .chinese{font-size:clamp(.95rem,3.9vw,1.13rem);line-height:2.05;letter-spacing:0}.story-copy .english{font-size:.75rem;line-height:1.6;margin-top:18px}.story-photo{width:118%;max-width:118%;margin-left:-5%;max-height:63svh}.reverse .story-photo{margin-left:-12%}.reverse .split-layout{grid-template-columns:1fr 1.1fr;gap:14px}.reverse .story-copy .chinese{font-size:.95rem}.center-photo{max-height:48svh;max-width:86%}.center-copy .chinese{font-size:1rem;line-height:1.95;letter-spacing:0}.long-story .center-photo{max-height:35svh}.long-story .chinese{font-size:.93rem;line-height:1.9}.long-story .english{font-size:.75rem;line-height:1.5}.long-story .center-copy .english{margin-top:12px}.invitation-chapter .chinese{font-size:.99rem}.rsvp{padding:75px 18px 65px}.rsvp-form{padding:20px 17px}.form-row{gap:12px}.closing-title{width:80%;margin-top:50px}.page-navigation #previous{left:15px;font-size:.65rem}.page-navigation #next{font-size:.65rem}.notes{font-size:.92rem}.cover-message{gap:11px}.cover-title{top:13%}}
@media(max-height:740px) and (max-width:759px){.cover-art{height:50%;min-height:230px}.cover-message{gap:8px;padding-bottom:50px}.names>img{max-width:83px}.names .name-knot{width:27px}.name-decoration{width:45%}.cover-invite{font-size:1.35rem}.begin-button{width:64px;height:64px;font-size:.85rem}.begin-en{font-size:5px}.story-centered{gap:14px;justify-content:flex-start;padding-top:55px}.center-photo{max-height:42svh}.long-story .center-photo{max-height:28svh}.long-story .chinese{font-size:.9rem;line-height:1.85}.long-story .english{font-size:.75rem}.invitation-chapter .center-photo{max-height:40svh}.detail-content .ornament{font-size:44px;margin-bottom:12px}.fine-line{margin:18px auto}.venue{margin-top:16px}.closing{align-items:flex-start}.closing h2{margin:15px 0 20px}.closing-title{margin-top:30px}.closing-actions{margin-top:10px}}
@media(max-height:540px){.page{align-items:flex-start}.cover{overflow-y:auto}.cover-art{height:360px;flex-shrink:0}.cover-message{min-height:330px;flex-shrink:0}.split-layout{min-height:420px}.prologue-copy{padding:50px 0;min-height:480px}.story-centered{display:block}.center-photo{height:280px;max-height:none!important;margin:0 auto 24px}.center-copy{width:100%!important}.detail-content{padding-bottom:40px}.closing-content{padding-bottom:40px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important}.reveal,.is-leaving .reveal{transform:none;transition-duration:.1s;transition-delay:0ms}.page{transition-duration:.1s}}



h2,h3,.form-heading h2{font-family:var(--heading);font-weight:400}
.chinese,.english,.notes{font-family:"WeddingZhongSong","WeddingSong",serif;color:#fff;font-weight:400}
.chinese{letter-spacing:normal}
.chinese em{color:#659fbe}
.prologue-copy p,.center-copy p{margin-inline:auto}
.prologue-copy .chinese{width:min(100%,370px)}
.prologue-copy .english{width:min(87%,310px);margin-top:25px}
.story-copy{min-width:0}
.story-copy .english{margin-top:20px}
.long-story .center-copy{text-align:center}
#together .center-copy,.invitation-chapter .center-copy{text-align:left}
.center-copy .chinese{width:min(100%,620px)}
.center-copy .english{width:min(100%,650px);margin-top:18px}
.long-story .center-copy .english{margin-top:18px}
.detail-artwork{width:min(100%,620px);margin:35px auto 18px}
.closing .notes{max-width:620px;margin-inline:auto;line-height:2.25}
.story-split,.closing{align-items:safe center}
.story-centered{justify-content:safe center}
.cover-invite{width:39%;max-width:200px;height:auto;margin:4px auto}
.begin-button{width:96px;height:96px;padding:0;background:none;border:0;box-shadow:none;border-radius:50%}
.begin-button img{width:100%;height:100%;object-fit:contain;pointer-events:none}
.begin-button:hover{box-shadow:none;filter:drop-shadow(0 0 10px #e0b76650)}
.rsvp-form label,.rsvp-form legend{font-size:1rem}
.form-heading .eyebrow{letter-spacing:.17em}
.music-button.needs-gesture{border-color:#d6b77e85}

@font-face{
  font-family:"InvitationTitle";
  src:url("assets/fonts/fonts.ttf") format("truetype");
  font-weight:400;
  font-display:swap
}
.detail-content h2,.form-heading h2{font-family:"InvitationTitle",var(--heading)}
.detail-content .ornament img{width:1em;height:1em;object-fit:contain;margin:auto}
.wedding-info{display:grid;gap:.85rem;margin:0 auto;font-size:clamp(.75rem,3.75vw,1.15rem)}
.wedding-info p:first-child{font-size:1.12em;color:#ebd8b5}
.wedding-info p:last-child{color:#c7c3ca}
.text-button{
  border:1px solid #ecdcba;
  border-radius:999px;
  padding:10px 23px;
  background:#e4cfaa;
  color:#382c20
}
.text-button:hover{background:#f1dfbb}

/* Both layers use a 2200 × 2000 reference canvas, never independent viewport heights.
   Banner: (0,729), size 2200×1271. Moon: (158,-66), size 1885×1432.
   The two lunar circles therefore share centre (1100,~418) and radius ~857. */
.cover-art{width:min(100%,61.6svh,570px);height:auto;min-height:0;aspect-ratio:11/10;flex-shrink:0}
.cover-moon{width:85.681818%;left:7.181818%;top:-3.3%;height:auto;object-fit:contain}
.cover-landscape{
  left:0;bottom:0;width:100%;height:auto;
  /* Map the shared lunar disc into the 2200 × 1271 landscape layer. */
  --lunar-cutout:radial-gradient(ellipse 38.95% 67.43% at 50% -24.47%,transparent 98%,#000 103%);
  --landscape-fade:linear-gradient(transparent,#000 8%,#000 88%,transparent);
  -webkit-mask-image:var(--lunar-cutout),var(--landscape-fade);
  -webkit-mask-composite:source-in;
  mask-image:var(--lunar-cutout),var(--landscape-fade);
  mask-composite:intersect
}
.cover-moon.reveal,.cover-landscape.reveal{transform:none}
.cover-title{top:13%;left:23%;width:54%}
.cover-message{padding-top:12px}
@media(min-width:760px){.prologue-copy .chinese{width:450px}.prologue-copy .english{width:360px}.story-copy .chinese{max-width:385px}.story-copy .english{max-width:400px}.cover-invite{max-width:175px}.begin-button{width:85px;height:85px}}
@media(max-width:600px){.cover-invite{width:43%}.prologue-copy .chinese{width:92%}.prologue-copy .english{width:78%}.center-copy .english{margin-top:16px}}
@media(max-height:740px) and (max-width:759px){.cover-message{gap:5px;padding-top:0}.cover-invite{width:40%;max-width:155px}.begin-button{width:78px;height:78px}.long-story .center-photo{max-height:34svh}.long-story .center-copy .chinese{width:94%}}
@media(max-height:540px){.cover-art{width:min(100%,460px);height:auto}.cover-message{min-height:300px}}

/* Reserve a strip above navigation so a resting star never meets scrolling copy. */
.story{bottom:116px;padding-bottom:8px}
.details{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(min-content,1fr) auto;justify-items:center;align-items:center;gap:14px;padding:54px 20px 72px;scrollbar-width:none}
.details::-webkit-scrollbar{display:none}
.details .detail-content{padding:0}
@media(max-height:650px){
  .details{padding-top:22px;padding-bottom:64px;gap:10px}
  .details .ornament{font-size:40px;margin-bottom:8px}
  .details .eyebrow{margin-bottom:6px}
  .details .fine-line{margin:12px auto}
  .details .wedding-info{gap:.35rem}
}
.star-button{justify-self:center}
.star-button.is-landing{visibility:hidden}
.meteor-field{position:absolute;inset:0;z-index:4;overflow:hidden;pointer-events:none}
.travelling-star,.gold-dust{position:absolute;left:0;top:0;pointer-events:none}
.travelling-star{transform:translate(-50%,-50%);font:36px/1 var(--serif);color:var(--gold);text-shadow:0 0 10px #eabd7170}
.gold-dust{width:var(--grain);height:var(--grain);border-radius:50%;background:#f6dba1;box-shadow:0 0 4px #d69f58}
.cover.is-active .begin-button img{animation:cover-breath 5s ease-in-out infinite}
@keyframes cover-breath{
  0%,100%{filter:drop-shadow(0 0 3px #e9bd7538)}
  44%{filter:drop-shadow(0 0 12px #f0c883b3)}
}

