/* A daily letter: editorial paper, a single green flame, restrained motion. */
@font-face{font-family:'Ma Shan Zheng';src:url('/static/fonts/ma-shan-zheng-home.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
body.is-public>header{height:84px;border-bottom:0}
body.is-public>header nav{margin-left:auto;gap:12px}
body.is-public>header button{font-size:13px;min-height:44px}
body.is-public main{padding:8px 24px 16px;gap:16px}
.home{display:flex;flex-direction:column;flex:1;min-height:0;gap:24px}
.home-hero{position:relative;isolation:isolate;display:grid;grid-template-columns:1.16fr .96fr;gap:48px;align-items:center;flex:1;min-height:440px}
.home-copy{position:relative;z-index:2;min-width:0;padding:32px 0 32px 10px}
.flame-mark{display:inline-block;flex-shrink:0;background:currentColor;mask:url('/static/brand/spark-flame-20261003.png') center/contain no-repeat;-webkit-mask:url('/static/brand/spark-flame-20261003.png') center/contain no-repeat}
.home-copy h1{font-size:clamp(48px,5.4vw,76px);font-weight:600;line-height:1.22;letter-spacing:-.045em;color:#193f32}
.title-line{display:block}
.home-copy .title-green{position:relative;width:max-content;font-family:'Ma Shan Zheng','Kaiti SC',KaiTi,serif;font-weight:400;font-size:1.15em;line-height:1.35;margin-top:8px;letter-spacing:-.03em;color:#315d45}
.title-char{--i:0;display:inline-block;width:1em;text-align:center;transform-origin:50% 80%}
.title-line:first-child>.title-char:last-child{width:.55em;margin-left:-.08em}
.title-green>.title-char:nth-child(6){width:.5em;margin-left:-.12em;font-size:.86em;vertical-align:baseline}
.title-char:nth-child(2){--i:1}.title-char:nth-child(3){--i:2}.title-char:nth-child(4){--i:3}.title-char:nth-child(5){--i:4}.title-char:nth-child(6){--i:5}
.home-ready .title-char{animation:letter-unfold .52s cubic-bezier(.16,1,.3,1) both;animation-delay:calc(var(--i)*32ms)}
.home-ready .title-green .title-char{animation-delay:calc((var(--i) + 4)*32ms)}
.title-stroke{position:absolute;left:4px;bottom:0;width:89%;height:12px;overflow:visible;pointer-events:none;transform-origin:left}
.title-stroke path{stroke:#8caa70;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-dasharray:380;stroke-dashoffset:0}
.home-ready .title-stroke{animation:ink-arrive .6s .28s cubic-bezier(.16,1,.3,1) both}
.home-lead{font-size:16px;line-height:1.9;margin-top:28px;color:#52675d;text-wrap:pretty}
.home-actions{display:flex;align-items:center;gap:26px;flex-wrap:wrap;margin-top:32px}
.home-actions>.primary{display:flex;align-items:center;justify-content:space-between;gap:27px;font-size:14px;min-height:54px;padding:13px 22px;border-radius:8px;background:#244f39;color:#f6f7ee;font-weight:550;border:1px solid #244f39;box-shadow:0 3px 0 #183c2f12}
.home-actions>.primary:hover{background:#193f32;border-color:#193f32;filter:none;box-shadow:0 5px 12px #183c2f18}
.home-actions>.primary>span{font-size:23px;font-weight:400;transition:transform .25s}
.story-link{display:flex;align-items:center;gap:11px;padding:10px 0;background:transparent;border-radius:0;font-size:13px;min-height:44px;color:#315d45}
.story-link>span{transition:transform .2s}
.story-link:hover{color:#193f32;filter:none}.story-link:hover>span{transform:translateX(4px)}
.home-reassurance{font-size:13px;margin-top:17px;color:#5c7063;line-height:1.7}
.spark-scene{position:relative;isolation:isolate;margin:0;align-self:center;height:100%;min-width:0;min-height:420px;max-height:550px;display:flex;flex-direction:column;justify-content:space-between;color:#dfedda;transform:rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));transition:transform .5s cubic-bezier(.22,1,.36,1);perspective:1200px;contain:layout style}
.spark-scene::before,.spark-scene::after{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:50% 50% 22px 22px / 41% 41% 22px 22px}
.spark-scene::before{background:#193f32}
.spark-scene::after{inset:11px;border:1px solid #dce9bd20;border-radius:inherit;border-radius:50% 50% 14px 14px / 40% 40% 14px 14px}
.scene-top{display:flex;justify-content:center;gap:8px;align-items:center;padding:31px 24px 0;position:relative;z-index:1;font-size:13px;letter-spacing:.04em;color:#d3dfc3}
.scene-top .flame-mark{width:12px;height:16px}
.spark-art{position:absolute;width:112%;height:calc(100% - 200px);left:-6%;top:40px;pointer-events:none;transform:translate(var(--art-x,0px),var(--art-y,0px));transition:transform .6s cubic-bezier(.22,1,.36,1)}
#home-logo-mask{mask-type:alpha}
.flame-echo{transform-box:fill-box;transform-origin:center;opacity:0}
.central-spark{transform-box:fill-box;transform-origin:center;animation:spark-breathe 12s ease-in-out infinite}
.halo-breath{transform-origin:300px 222px;animation:halo-warmth 12s ease-in-out infinite}
.orbit-lines{transform-origin:300px 228px;animation:orbit-sway 28s ease-in-out infinite}
.scene-dots circle{transform-box:fill-box;transform-origin:center;animation:ember-drift 8s ease-in-out infinite}
.scene-dots circle:nth-child(2){animation-delay:-2s}.scene-dots circle:nth-child(3){animation-delay:-4s}.scene-dots circle:nth-child(4){animation-delay:-6s}
.spark-scene.is-tracking{transition-duration:.18s}.is-tracking .spark-art{transition-duration:.25s}
.spark-touch{position:absolute;z-index:2;left:50%;top:39%;transform:translate(-50%,-50%);width:62%;height:56%;background:transparent;border-radius:46%;padding:0;touch-action:pan-y;cursor:pointer;-webkit-tap-highlight-color:transparent}
.spark-touch:hover{background:transparent;filter:none}
.spark-touch:focus-visible{outline:2px solid #e3edcb;outline-offset:-8px}
.heart-note{position:relative;z-index:3;align-self:center;width:84%;padding:18px 22px 16px;margin:0 0 28px;background:#f5f5e6;border:1px solid #e8ebd6;border-radius:4px 18px 4px 4px;color:#254a37;transform:rotate(-3deg);box-shadow:0 8px 24px #08271b24}
.note-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;line-height:1.6;color:#5c6e51}
#wish-count{font-size:11px;letter-spacing:.08em;font-variant-numeric:tabular-nums}
#spark-whisper{font-size:19px;font-weight:550;line-height:1.6;min-height:31px;margin:10px 0 12px;color:#254a37;text-wrap:balance}
.scene-invitation{display:flex;align-items:center;gap:7px;color:#54694e;font-size:12px}
.touch-ring{width:12px;height:12px;border:1px solid currentColor;border-radius:50%;position:relative}
.touch-ring:after{content:'';position:absolute;inset:3px;background:currentColor;border-radius:50%}
.note-seal{width:17px;height:22px;margin-left:auto;color:#6e8d58}
.spark-particles{position:absolute;inset:0;pointer-events:none;z-index:4;overflow:hidden;border-radius:inherit}
.spark-particle{position:absolute;left:50%;top:39%;width:5px;height:5px;margin:-2.5px;background:#e2efc2;border-radius:50%;opacity:0}
#welcome-register{transform:translate(var(--magnet-x,0px),var(--magnet-y,0px));transition:transform .35s cubic-bezier(.22,1,.36,1),background-color .2s,box-shadow .2s}
#welcome-register:active{translate:0 2px}
.home-bottom{display:grid;grid-template-columns:190px 1fr;align-items:center;gap:26px;padding:20px 10px 0;border-top:1px solid #d6e0d3}
.home-bottom-title{display:grid;gap:6px}.home-bottom-title>strong{font-size:20px;font-weight:550;letter-spacing:-.02em}
.home-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;list-style:none;margin:0;padding:0}
.home-steps li{display:flex;align-items:center;gap:13px;position:relative;padding:6px 0}
.step-dot{display:grid;place-items:center;flex-shrink:0;font-size:14px;width:38px;height:38px;border:1px solid #c7d3bf;border-radius:50%;color:#315d45;background:#eff3e9;transition:background-color .2s,color .2s,transform .2s}
.home-steps strong{display:block;font-size:14px;font-weight:600;margin-bottom:4px}.home-steps p{font-size:13px;line-height:1.65}
body.story-open{overflow:hidden}
#auth-dialog[open]{animation:letter-arrive .24s cubic-bezier(.16,1,.3,1)}
@keyframes letter-unfold{from{opacity:0;transform:translateY(12px) rotate(2deg)}to{opacity:1;transform:translateY(0) rotate(0)}}
@keyframes ink-arrive{from{clip-path:inset(0 100% 0 0);opacity:0}to{clip-path:inset(0);opacity:1}}
@keyframes spark-breathe{0%,100%{transform:translateY(3px) rotate(-1.5deg) scale(.97)}50%{transform:translateY(-4px) rotate(1.5deg) scale(1.015)}}
@keyframes halo-warmth{0%,100%{opacity:.6;transform:scale(.92)}50%{opacity:1;transform:scale(1.06)}}
@keyframes orbit-sway{0%,100%{transform:rotate(-8deg)}50%{transform:rotate(10deg)}}
@keyframes ember-drift{0%,100%{transform:translateY(3px);opacity:.45}50%{transform:translateY(-7px);opacity:1}}
@keyframes letter-arrive{from{opacity:0;transform:translateY(10px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(hover:hover) and (pointer:fine){#welcome-register:hover>span{transform:translateX(3px)}}
@media(min-width:900px) and (max-height:760px){body.is-public>header{height:66px}body.is-public main{padding-top:4px;padding-bottom:12px}.home{gap:19px}.home-hero{min-height:380px;gap:32px}.home-copy{padding:22px 0 22px 10px}.home-copy h1{font-size:60px}.home-lead{margin-top:23px;font-size:15px}.home-actions{margin-top:25px}.home-reassurance{margin-top:14px}.spark-scene{min-height:380px}.spark-art{height:calc(100% - 174px);top:24px}.heart-note{margin-bottom:22px;padding:14px 20px}.home-bottom{grid-template-columns:180px 1fr;gap:20px;padding-top:15px}.home-steps{gap:20px}.home-steps li{padding:3px 0}.home-bottom-title>strong{font-size:18px}.scene-top{padding-top:25px}}
@media(min-width:900px) and (max-width:1100px){.home-hero{gap:26px}.home-copy h1{font-size:49px}.home-lead{font-size:14px}.home-actions{gap:16px}.home-actions>.primary{padding:11px 16px;gap:18px}.story-link{font-size:13px;gap:7px}.home-bottom{grid-template-columns:140px 1fr;gap:14px}.home-steps{gap:14px}.home-steps li{gap:9px}.home-steps strong{font-size:13px}.home-steps p{font-size:13px}.step-dot{width:32px;height:32px}.heart-note{width:85%;padding:15px 18px}#spark-whisper{font-size:18px}}
@media(max-width:899px){body.is-public>header{height:72px}body.is-public>header nav{gap:4px}body.is-public main{padding:8px 18px 22px;gap:20px}.home{gap:32px}.home-hero{display:flex;flex-direction:column;align-items:stretch;min-height:0;gap:28px}.home-copy{padding:22px 10px 0}.home-copy h1{font-size:clamp(38px,8vw,56px)}.home-copy .title-green{font-size:1.22em;margin-top:7px}.home-lead{font-size:15px;line-height:1.85;margin-top:24px}.home-actions{gap:19px;margin-top:25px}.home-actions>.primary{font-size:14px;min-height:50px;padding:12px 17px;gap:20px}.story-link{font-size:13px;gap:8px}.home-reassurance{font-size:13px;margin-top:15px}.spark-scene{align-self:stretch;height:410px;min-height:410px;max-height:none;transform:none;transition:none;margin-inline:4px}.spark-art{height:calc(100% - 190px);top:34px;width:112%;left:-6%;transform:none;transition:none}.scene-top{padding:23px 27px 0;font-size:13px}.heart-note{width:min(390px,84%);margin-bottom:24px;padding:16px 20px}#spark-whisper{font-size:19px}.spark-touch{top:38%;width:65%;height:53%}.home-bottom{display:block;padding:22px 10px 0}.home-bottom-title{margin-bottom:6px}.home-bottom-title>strong{font-size:21px}.home-steps{grid-template-columns:1fr;gap:0}.home-steps li{padding:17px 0;gap:16px;border-bottom:1px solid #e0e7da}.home-steps li:first-child{padding-top:8px}.home-steps li:last-child{border-bottom:0;padding-bottom:0}.home-steps strong{font-size:15px;margin-bottom:3px}.home-steps p{font-size:13px}.step-dot{width:36px;height:36px}.scene-invitation{font-size:12px}#story-dialog::backdrop{backdrop-filter:none}}
@media(min-width:600px) and (max-width:899px){.home-copy{padding:28px 34px 0}.home-copy h1{font-size:62px}.home-lead{font-size:16px}.spark-scene{height:460px;width:calc(100% - 68px);max-width:520px;align-self:center;margin-inline:0}.spark-art{height:calc(100% - 200px);top:34px}.heart-note{margin-bottom:28px}.home-steps{grid-template-columns:repeat(3,1fr);gap:18px}.home-steps li{align-items:flex-start;border-bottom:0}.home-steps p{font-size:13px}.home-bottom{padding-inline:6px}}
@media(max-width:380px){body.is-public main{padding-inline:16px}.home-copy{padding:18px 6px 0}.home-copy h1{font-size:36px}.home-actions{gap:12px}.home-actions>.primary{gap:16px;padding:12px 14px}.story-link{font-size:13px;gap:6px}.spark-scene{height:385px;min-height:385px;margin-inline:0}.heart-note{width:86%;padding:14px 17px}#spark-whisper{font-size:18px}.home-bottom{padding-inline:6px}}
@media(min-width:900px) and (max-height:639px){.home-hero{min-height:520px}.spark-scene{min-height:520px}.home{gap:24px}.home-copy h1{font-size:57px}}
.home-loop{animation-play-state:running}
.motion-paused .home-loop,.story-open .home-loop,.page-hidden .home-loop,body:not(.is-public) .home-loop,.scene-offscreen .home-loop,.dialog-open .home-loop{animation-play-state:paused}
.story-open .title-char,.dialog-open .title-char,.page-hidden .title-char,body:not(.is-public) .title-char{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.home-ready .title-char,.home-ready .title-stroke,.home-loop,#story-dialog[open]{animation:none!important}.title-char{opacity:1;transform:none}.title-stroke{transform:none;opacity:1}.spark-scene,.spark-art,#welcome-register,.step-dot,#welcome-register>span{transform:none!important;transition:none!important}}

/* Welcome letter uses the same cream and green surfaces. */
#story-dialog{border:0;padding:0;width:740px;max-width:calc(100% - 32px);max-height:92dvh;border-radius:16px;overflow:auto;background:#fff}#story-dialog::backdrop{background:#13332782;backdrop-filter:blur(5px)}#story-dialog[open]{animation:letter-arrive .32s cubic-bezier(.16,1,.3,1)}.story-layout{display:grid;grid-template-columns:190px minmax(0,1fr);min-height:510px}.story-close{position:absolute;top:12px;right:12px;z-index:1;width:36px;height:36px;padding:0;display:grid;place-items:center;background:#eff3ea;color:var(--ink);border-radius:50%;font-size:14px}.story-dedication{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;padding:30px 26px;background:#244b38;color:#e2edce;overflow:hidden;position:relative}.dedication-word{font-size:11px;line-height:1.6;color:#d6e3ca}.dedication-spark{width:118px;height:118px;flex-shrink:0;margin:20px auto 10px}.dedication-name{display:grid;gap:4px}.dedication-name span{font-size:11px;color:#d1e0c3}.dedication-name strong{font-size:38px;line-height:1.15;letter-spacing:.02em;font-weight:450}.story-dedication p{font-size:11px;line-height:1.8;color:#d1e0c3;margin-top:22px}.story-letter{padding:32px 38px 30px;min-width:0}.story-eyebrow{color:var(--accent);font-size:12px;margin:0 0 12px}.story-letter h2{font-size:29px;line-height:1.3;letter-spacing:-.02em;margin:0 0 22px;font-weight:650}.story-letter h2:focus{outline:none}#story-description{display:grid;gap:12px}#story-description p{font-size:13px;line-height:1.85;color:#4b6255;overflow-wrap:anywhere}#story-description strong{font-weight:600;color:#2b4937}.story-contact{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;margin-top:20px;border:1px solid #dbe5d7;border-radius:8px;background:#f5f8f1}.story-contact>div{display:grid;gap:3px;min-width:0}.story-contact span{font-size:10px;color:var(--muted)}.story-contact strong{font-size:21px;font-weight:600;letter-spacing:.03em;user-select:all;overflow-wrap:anywhere}.story-contact button{font-size:11px;min-height:38px;white-space:nowrap;background:#e6eedc;color:#294d36;padding:8px 12px}.story-enter{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:13px;width:100%;min-height:44px;padding:10px 18px;margin-top:4px}.story-enter span{font-size:19px;font-weight:400}#contact-copy-status{font-size:11px;color:#315d45;min-height:24px;padding-top:3px;line-height:1.5}
@media(max-width:600px){#story-dialog{max-width:calc(100% - 24px);border-radius:14px}.story-layout{grid-template-columns:1fr;min-height:0}.story-dedication{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;height:112px;padding:18px 24px;align-items:center;column-gap:18px}.dedication-word{grid-column:1;font-size:11px}.dedication-name{grid-column:1;display:flex;align-items:baseline;gap:9px;margin-top:6px}.dedication-name strong{font-size:30px}.dedication-spark{grid-column:2;grid-row:1/3;width:66px;height:66px;margin:0 36px 0 0}.story-dedication p{display:none}.story-close{background:#386047;color:#edf5e6;top:12px;right:12px}.story-letter{padding:22px 24px 24px}.story-eyebrow{font-size:11px;margin-bottom:8px}.story-letter h2{font-size:26px;margin-bottom:17px}#story-description{gap:11px}#story-description p{font-size:13px;line-height:1.8}.story-contact{padding:12px 13px;margin-top:18px}.story-contact strong{font-size:20px}.story-contact button{min-height:44px;padding:8px 10px}.story-enter{min-height:46px}}

.story-letter{background:#fafbf5}.story-contact span,.story-contact button,.story-dedication p{font-size:12px}.story-enter{font-size:14px}.story-letter h2{font-size:30px}

.site-registration{flex-shrink:0;text-align:center;font-size:12px;line-height:18px;padding:0 8px;color:var(--muted)}
.site-registration a{color:inherit;text-decoration:none;white-space:nowrap}
.site-registration a:hover{text-decoration:underline;text-underline-offset:3px}
.site-registration a:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:2px}

@media(max-width:899px){#story-dialog::backdrop{backdrop-filter:none}}
