@charset "UTF-8";

@font-face {
  font-family: "Starry Letter";
  src: url("./assets/fonts/starry-letter.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f2eee5;
  --muted: #b8bdbb;
  --accent: #dfc5b5;
  --line: rgba(239, 232, 214, .25);
  --serif: "Baskerville", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --display: "Bodoni 72", "Didot", "Baskerville", Georgia, serif;
  --song: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --gutter: clamp(25px, 5vw, 88px);
}

* { box-sizing: border-box; }
html { scrollbar-width: thin; scrollbar-color: #69726e #081016; }
body { margin: 0; color: var(--ink); background: #081016; font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { padding: 0; border: 0; color: inherit; background: none; font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 1px solid var(--accent); outline-offset: 7px; }
button:disabled { cursor: default; }
::selection { color: #14221e; background: #e4ccc2; }

/* The environment is rendered in WebGL; typography floats directly within it. */
.world-backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse at 50% 78%, #23362d75, transparent 58%), linear-gradient(#080e18, #101b22 65%, #1b2a24); }
.cosmic-haze, .flower-haze { display: none; }
.grain { position: absolute; inset: 0; opacity: .024; 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='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.7' filter='url(%23n)'/%3E%3C/svg%3E"); }
#universe { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
body::before { content: ""; position: fixed; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(#040c1824,transparent 15%,transparent 81%,#03090f9c); }
.no-webgl .world-backdrop { background: radial-gradient(ellipse at 75% 60%, #38534a, transparent 65%), #09111a; }

.site-header { position: fixed; top: 0; right: 0; left: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; padding: 24px var(--gutter); pointer-events: none; background: linear-gradient(#070e1740,transparent); }
.site-header > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: .65; }
.brand > span { font: 16px/1.3 var(--song); letter-spacing: .2em; }
.brand small { display: block; margin-top: 5px; font: 7px/1 var(--sans); letter-spacing: .25em; }
.header-note { display: none; }
.header-actions { display: flex; align-items: center; gap: 25px; font-size: 11px; letter-spacing: .09em; }
.header-actions button { min-height: 44px; }
.motion-toggle { display: flex; align-items: center; gap: 8px; }
.motion-bars { display: flex; align-items: center; gap: 3px; width: 11px; height: 14px; }
.motion-bars i { width: 1px; height: 11px; background: currentColor; transform-origin: center; animation: breathe-bar 2s ease-in-out infinite alternate; }
.motion-bars i:nth-child(2) { animation-delay: -.6s; }
.motion-bars i:nth-child(3) { animation-delay: -1.2s; }
.menu-mark { display: inline-block; margin-left: 9px; font-size: 21px; font-weight: 200; vertical-align: -2px; transition: transform .3s; }
#menu-toggle[aria-expanded="true"] .menu-mark { transform: rotate(45deg); }

main { position: relative; z-index: 3; transition: opacity 1s; }
.booting main { opacity: 0; }
.chapter { position: relative; min-height: 100svh; isolation: isolate; }
.chapter-stage { position: relative; display: flex; align-items: center; width: 100%; min-height: 100svh; padding: 145px 10vw 125px; }
.journey-enhanced .chapter { min-height: 140svh; }
.journey-enhanced .chapter:last-child { min-height: 100svh; }
.journey-enhanced .chapter-stage { position: sticky; top: 0; opacity: var(--chapter-presence, 1); pointer-events: none; }
.journey-enhanced .chapter.is-readable .chapter-stage, .chapter-stage:focus-within { pointer-events: auto; }
.chapter-stage:focus-within { opacity: 1; }
.chapter-stage > .home-layout, .chapter-stage > .gate-layout, .chapter-stage > .birthday-copy, .chapter-stage > .transition-copy { transform: translate3d(0, var(--chapter-drift, 0px), 0); text-shadow: 0 2px 30px #030a0e30; }
.eyebrow { margin: 0 0 30px; color: var(--muted); font: 9px/1.8 var(--sans); letter-spacing: .19em; }
.eyebrow .chapter-roman { display: inline-block; margin-right: 18px; color: var(--accent); font: italic 14px/1 var(--serif); letter-spacing: 0; }
.poem { margin: 23px 0 10px; font: 18px/1.9 var(--song); letter-spacing: .07em; }
.body-copy { margin: 0; color: var(--muted); font-size: 11px; line-height: 2; letter-spacing: .05em; }
em { font-weight: 400; }

/* A quiet extra chapter gives the coloured nebula the entire upper frame. */
.nebula-reverie .chapter-stage { align-items: flex-end; padding-bottom: 23svh; }
.nebula-copy { position: relative; max-width: 340px; text-shadow: 0 2px 24px #020617; }
.nebula-copy h2 { margin: 0; font: 400 clamp(48px,5.8vw,88px)/.94 var(--display); letter-spacing: -.05em; }
.nebula-copy h2 em { display: inline-block; margin-left: .26em; color: #e0d3ea; }
.nebula-copy .poem { font-size: 15px; margin-top: 25px; }
.nebula-note { position: absolute; right: 10vw; bottom: 27svh; font-size: 8px; letter-spacing: .24em; color: #cab8d3; }
.nebula-reverie .chapter-stage::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg,#04081754,transparent 43%); }

/* The opening is a threshold, not a title over a wallpaper. Two invitations
   sit on the same vertical axis as the journey: the stars above, flowers below. */
.home .chapter-stage { align-items: flex-start; padding: clamp(160px,23svh,260px) 10vw 170px; }
.home .chapter-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 75% 42%,#090d2947,transparent 47%),linear-gradient(90deg,#040b1b26,transparent 55%); }
.home-layout { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: 9%; width: 100%; text-align: left; }
.home-copy { position: relative; min-width: 0; }
.home-copy > .eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; font-size: 8px; letter-spacing: .23em; }
.opening-mark { color: var(--accent); font-size: 19px; }
.home-title-composition { position: relative; }
.home h1 { margin: 0; font: 400 clamp(86px,9.5vw,152px)/.84 var(--display); letter-spacing: -.065em; }
.home h1 > span { display: block; white-space: nowrap; }
.home h1 > .title-blooms { margin: .12em 0 0 .26em; }
.home h1 .home-amp { position: relative; display: inline-block; margin: 0 -.12em 0 -.3em; font: italic .41em/1 var(--serif); color: var(--accent); vertical-align: .16em; }
.home-subtitle { margin: 29px 0 0 4px; font: 15px/1.85 var(--song); letter-spacing: .16em; }
.journey-choices { position: relative; align-self: center; padding-top: 28px; }
.journey-choice { position: relative; display: flex; flex-direction: column; min-height: 146px; padding: 22px 0 24px 2px; border-bottom: 1px solid #f1ead335; transition: border-color .5s, transform .7s; }
.choice-kicker { color: #d9d5cb; font: 10px/1.4 var(--sans); letter-spacing: .14em; }
.choice-name { display: flex; align-items: baseline; gap: .21em; margin-top: 12px; font: 400 clamp(26px,2.7vw,43px)/1.2 var(--serif); letter-spacing: -.035em; white-space: nowrap; }
.choice-name em { font-weight: 400; }
.choice-arrow { margin-left: auto; padding-left: 15px; font: 22px/1 var(--sans); transition: transform .5s; }
.choice-detail { margin-top: 10px; font: 11px/1.6 var(--song); color: #d8dcd7; letter-spacing: .1em; text-shadow: 0 1px 12px #030917; }
.choice-emblem { position: absolute; right: 0; top: 20px; width: 22px; height: 22px; fill: none; stroke: #d6c9b9; stroke-width: .8; transition: transform 1.1s, filter .5s; }
.choice-instruction { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 0; color: #d3d5d0; font: 10px/1.6 var(--song); letter-spacing: .08em; text-shadow: 0 1px 10px #030917; }
.choice-instruction > span { font-size: 18px; }
.journey-choice:hover, .journey-choice:focus-visible { border-color: #f3dcc0; transform: translateX(5px); }
.choice-sky:hover .choice-arrow, .choice-sky:focus-visible .choice-arrow { transform: translate(3px,-5px); }
.choice-flower:hover .choice-arrow, .choice-flower:focus-visible .choice-arrow { transform: translate(3px,5px); }
.journey-choice:hover .choice-emblem, .journey-choice:focus-visible .choice-emblem { transform: rotate(90deg) scale(1.3); filter: drop-shadow(0 0 5px #ead5bc99); }
.home-bottom { position: absolute; left: 10vw; right: 10vw; bottom: 90px; display: flex; justify-content: space-between; align-items: center; padding-top: 22px; border-top: 1px solid #f0e0ce22; }
.home-signature { font: 18px/1.5 var(--serif); letter-spacing: -.01em; }
.home-signature em { color: #d8c1b4; }
.home-edition { font: 10px/1.7 var(--song); letter-spacing: .2em; }
.bloom-touch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-align: left; font: 12px/1.5 var(--song); letter-spacing: .09em; text-shadow: 0 1px 12px #030917; }
.bloom-touch > span:nth-child(2) { padding-bottom: 4px; border-bottom: 1px solid #e1c9ad65; transition: border-color .3s,color .3s; }
.bloom-touch:hover > span:nth-child(2), .bloom-touch:focus-visible > span:nth-child(2) { color: #ffe2bc; border-color: #ffe2bc; }
.letter-arrow { font: 15px/1 var(--sans); transition: transform .35s; }
.bloom-touch:hover .letter-arrow { transform: translate(2px,-3px); }
.touch-ring { display: grid; place-items: center; width: 33px; height: 33px; font-size: 22px; transition: transform .8s, filter .4s; }
.bloom-touch:hover .touch-ring { transform: rotate(90deg); filter: drop-shadow(0 0 8px #edc6b4); }

/* Inner passages trade sides, leaving each environment room to breathe. */
.gate-layout { width: min(460px, 46%); }
.gate-title { margin: 0; font: 400 clamp(75px, 8.5vw, 130px)/.86 var(--display); letter-spacing: -.06em; }
.star-gate .gate-title em { display: inline-block; margin-left: .22em; }
.gate-aside { max-width: 285px; margin-top: 33px; }
.gate-aside .poem { margin-top: 0; }
.gate-aside .body-copy { margin-top: 12px; }
.entry-button { display: flex; align-items: center; justify-content: space-between; gap: 22px; width: 100%; min-height: 44px; padding: 11px 0; margin-top: 24px; border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: .04em; text-align: left; transition: border-color .3s, color .3s; }
.entry-button:hover { color: #fff8ea; border-color: var(--accent); }
.entry-button > span { font-size: 20px; transition: transform .3s; }
.entry-button:hover > span { transform: translate(3px, -3px); }
.fine-print { display: block; margin-top: 11px; color: var(--muted); font-size: 8px; line-height: 1.7; letter-spacing: .08em; }
.flower-gate .gate-layout { margin-left: 0; width: min(580px, 54%); }
.flower-gate .gate-title { font-size: clamp(68px, 7.5vw, 118px); }
/* The flower reading shade belongs to the continuous landscape, not a
   scrolling rectangle: a stage-bound overlay exposes a hard horizontal seam. */
.flower-gate .gate-aside .body-copy { color: #d0d4cd; }
.of-word { font-size: .5em; vertical-align: .13em; font-style: italic; }
.closing-line { position: absolute; right: 10vw; bottom: 110px; margin: 0; color: var(--ink); font: italic 18px/1.5 var(--serif); }
.birthday-copy { position: relative; width: min(470px, 46%); }
.star-birthday .birthday-copy { margin-left: auto; }
.star-birthday .chapter-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 76% 54%,#04091770 0%,#04091729 32%,transparent 58%); }
.star-birthday .poem, .star-birthday .body-copy { text-shadow: 0 2px 16px #02050df0; }
.birthday h2 { position: relative; margin: 0 0 35px; font: 400 clamp(70px, 7.8vw, 119px)/.92 var(--display); letter-spacing: -.06em; }
.birthday h2 em { display: inline-block; margin-left: .12em; }
.birthday-spark { position: absolute; top: -14px; right: 12%; color: var(--accent); font-size: 21px; letter-spacing: 0; }
.birthday .poem { font-size: 18px; }
.wish-button { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 12px 0; margin-top: 20px; color: var(--ink); font: 10px/1.7 var(--song); letter-spacing: .08em; }
.wish-button > span:first-child { font-size: 17px; color: var(--accent); }
.wish-line { width: 29px; height: 1px; background: var(--line); transform-origin: left; transition: transform .4s, background .4s; }
.wish-button:hover .wish-line { transform: scaleX(1.4); background: var(--accent); }
.transition-copy { width: min(440px, 47%); }
.petal-transition .transition-copy { margin-left: 0; }
.serif-whisper { margin: 0; font: 400 clamp(53px, 5.5vw, 86px)/1.02 var(--serif); letter-spacing: -.045em; }
.serif-whisper em { color: var(--accent); }
.transition h2 { margin: 28px 0 12px; font: 400 18px/1.9 var(--song); letter-spacing: .1em; }
.tiny-line { display: block; width: 23px; height: 1px; margin: 22px 0; background: var(--line); }
.transition .body-copy { font-size: 10px; }
.transition-wish { position: absolute; bottom: 127px; left: 10vw; }

.travel-cue { position: absolute; left: 50%; display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 44px; min-height: 44px; padding: 8px 15px; transform: translateX(-50%); color: var(--muted); font: 9px/1.5 var(--song); letter-spacing: .13em; white-space: nowrap; transition: color .3s; }
.travel-cue:hover { color: var(--ink); }
.bottom-cue, .choice-instruction { color: #e5e5da; text-shadow: 0 1px 9px #030917,0 1px 22px #030917; }
.top-cue { top: 96px; }
.bottom-cue { bottom: 69px; }
.arrow { position: relative; display: block; width: 1px; height: 22px; background: currentColor; }
.arrow::after { content: ""; position: absolute; left: -2px; bottom: 0; width: 5px; height: 5px; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg); }
.arrow.up { transform: rotate(180deg); }
.vertical-note { display: none; }
.chapter-nav { position: fixed; top: 50%; right: calc(var(--gutter) - 10px); z-index: 16; display: flex; flex-direction: column; align-items: center; transform: translateY(-50%); }
.chapter-nav > span { margin: 10px 0; color: var(--accent); font: 14px/1 var(--serif); }
.chapter-nav a { position: relative; display: grid; place-items: center; width: 26px; height: 30px; }
.chapter-nav i { display: block; width: 2px; height: 2px; border-radius: 50%; background: var(--muted); transition: background .3s, box-shadow .3s, transform .3s; }
.chapter-nav a[aria-current] i { background: var(--ink); transform: scale(1.7); box-shadow: 0 0 0 3px #f1e9d41c; }
.chapter-nav a > span { position: absolute; right: 35px; color: var(--ink); font: 9px/1.4 var(--song); letter-spacing: .05em; white-space: nowrap; opacity: 0; pointer-events: none; transform: translateX(4px); transition: opacity .3s, transform .3s; }
.chapter-nav a:hover > span, .chapter-nav a:focus-visible > span { opacity: 1; transform: none; }
.chapter-nav a > span { text-shadow: 0 1px 8px #030913,0 0 16px #030913; }
.site-footer { position: fixed; right: var(--gutter); left: var(--gutter); bottom: 25px; z-index: 15; display: flex; align-items: center; justify-content: space-between; color: var(--muted); pointer-events: none; }
.chapter-label { display: flex; align-items: center; gap: 11px; font-size: 8px; letter-spacing: .06em; }
.chapter-label b { color: var(--ink); font: italic 15px/1 var(--serif); }
.footer-line { width: 28px; height: 1px; background: var(--line); }
.site-footer a { position: absolute; left: 50%; font-size: 9px; letter-spacing: .03em; white-space: nowrap; transform: translateX(-50%); pointer-events: auto; }
.site-footer a:hover { color: var(--ink); }
.footer-note { font-size: 7px; letter-spacing: .2em; }
.sky-credit { position: fixed; right: var(--gutter); bottom: 49px; z-index: 15; color: var(--muted); font: 8px/1.6 var(--sans); letter-spacing: .025em; visibility: hidden; }
body[data-chapter="0"] .sky-credit, body[data-chapter="1"] .sky-credit, body[data-chapter="2"] .sky-credit, body[data-chapter="3"] .sky-credit { visibility: visible; }
.sky-credit:hover { color: var(--ink); }

/* A miniature constellation / petal guide. The real meshes and their trails
   live in WebGL; this hairline reticle stays legible above the typography. */
.theme-pointer { position: fixed; left: 0; top: 0; z-index: 80; width: 0; height: 0; opacity: 0; pointer-events: none; color: #eae5e4; transition: opacity .25s; }
.theme-pointer.is-visible { opacity: 1; }
.pointer-dot { position: absolute; width: 2px; height: 2px; left: -1px; top: -1px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px #fbf4ed77; }
.pointer-orbit { position: absolute; width: 32px; height: 32px; left: -16px; top: -16px; border: 1px solid #eeedf238; border-radius: 50%; transform: scale(.75); transition: transform .4s, border-color .4s; }
.theme-pointer.is-hovering .pointer-orbit { transform: scale(1.18); border-color: #e5c4b599; }
.pointer-ripple { position: absolute; width: var(--ripple-size, 12px); height: var(--ripple-size, 12px); left: 0; top: 0; border: 1px solid #f0dedc99; border-radius: 50%; transform: translate(-50%,-50%); opacity: var(--ripple-opacity, 0); }
@media (pointer: fine) and (hover: hover) {
  .has-theme-pointer, .has-theme-pointer a, .has-theme-pointer button { cursor: none; }
}
@media (pointer: coarse) { .theme-pointer { display: none; } }

.wish-message { position: fixed; bottom: 100px; left: 50%; z-index: 30; width: max-content; max-width: 86vw; margin: 0; padding: 15px 22px; border: 1px solid var(--line); color: var(--ink); background: #0c171dea; font: 13px/1.8 var(--song); letter-spacing: .05em; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .4s, transform .4s; }
.wish-message.is-visible { opacity: 1; transform: translate(-50%, 0); }
dialog { width: min(530px, 90vw); max-height: 88svh; padding: 65px 50px 50px; overflow: auto; border: 1px solid var(--line); color: var(--ink); background: #101b22; text-align: center; box-shadow: 0 25px 100px #03070b55; }
dialog::backdrop { background: #050b12a6; backdrop-filter: blur(9px); }
.dialog-close { position: absolute; top: 12px; right: 14px; width: 44px; height: 44px; color: var(--muted); font-size: 26px; font-weight: 200; }
.dialog-close:hover { color: var(--ink); }
.dialog-star { display: block; margin-bottom: 24px; color: var(--accent); font-size: 43px; }
dialog .eyebrow { font-size: 7px; letter-spacing: .18em; }
dialog h2 { margin: 27px 0 17px; font: 400 27px/1.5 var(--song); }
dialog p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 2; }
dialog .entry-button { max-width: 228px; margin: 27px auto 0; }
#journey-menu { text-align: left; }
#journey-menu nav { display: flex; flex-direction: column; }
#journey-menu nav a { padding: 12px 0; border-bottom: 1px solid #eee3ce16; font: 24px/1.5 var(--serif), var(--song); transition: color .3s, padding .3s; }
#journey-menu nav a:hover { padding-left: 7px; color: var(--accent); }
#journey-menu nav small { display: inline-block; width: 38px; color: var(--muted); font: 8px/1 var(--sans); vertical-align: 3px; }

/* A reading desk: a quiet cover beside a scrollable, authored sheet of paper. */
#wish-dialog { --letter-hand: "Starry Letter", "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif; width: min(1040px,94vw); height: min(780px,88svh); padding: 0; text-align: left; border-color: #decbb939; background: #0c1520; overflow: hidden; }
#wish-dialog::backdrop { background: #040a13b8; backdrop-filter: blur(12px); }
#wish-dialog .dialog-close { z-index: 2; top: 12px; right: 18px; color: #665d53; background: #ece4d6ed; border-radius: 50%; font-size: 24px; }
#wish-dialog { overscroll-behavior: contain; }
.letter-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); height: 100%; min-height: 0; }
.letter-cover { display: flex; flex-direction: column; padding: 51px 31px 35px; background: radial-gradient(ellipse at 0 100%,#48505626,transparent 65%); }
#wish-dialog .eyebrow { font-size: 8px; color: #c1c5cc; letter-spacing: .17em; }
#wish-dialog h2 { margin: 69px 0 25px; font: 28px/1.8 var(--letter-hand); letter-spacing: .06em; }
#wish-dialog h2 > span { display: block; color: #e4c1ad; }
#wish-dialog #letter-status { margin: 0; color: #919da7; font: 11px/1.8 var(--song); letter-spacing: .1em; }
#wish-dialog .letter-return { max-width: none; margin: auto 0 0; font-size: 11px; }
.letter-paper { position: relative; min-height: 0; display: block; padding: 43px 62px 40px; background: linear-gradient(90deg,#8e775918,transparent 22px),radial-gradient(ellipse at 84% 10%,#f3dccd 0%,transparent 65%),#f0eadf; color: #4b4038; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #a99c85 #e9e1d3; color-scheme: light; }
.letter-paper:focus-visible { outline: 1px solid #b0987870; outline-offset: -8px; }
.paper-number { font: 7px/1.6 var(--sans); letter-spacing: .16em; opacity: .65; }
.paper-stamp { position: absolute; top: 67px; right: 57px; width: 65px; height: 85px; margin: 0; text-align: center; color: #927b73; transform: rotate(9deg); }
.paper-stamp svg { width: 64px; height: 64px; fill: none; stroke: currentColor; stroke-width: .65; }
.paper-stamp > span { display: block; font: 6px/1 var(--sans); letter-spacing: .22em; }
.paper-stamp .stamp-star { opacity: 0; }
.paper-stamp .stamp-flower { opacity: 1; }
.paper-stamp g { transition: opacity .5s; }
#wish-dialog[data-destination="star"] .stamp-star { opacity: 1; }
#wish-dialog[data-destination="star"] .stamp-flower { opacity: 0; }
#letter-body { margin-top: 70px; font: 19px/2.15 var(--letter-hand); letter-spacing: .025em; overflow-wrap: break-word; line-break: strict; }
#wish-dialog #letter-body p { margin: 0 0 1.15em; color: inherit; font: inherit; text-indent: 2em; }
#wish-dialog #letter-body .letter-salutation { margin-bottom: 1.7em; padding-right: 64px; color: #7f5548; font-size: 24px; text-indent: 0; }
#wish-dialog #letter-body .letter-opening { margin-bottom: 1.35em; }
#wish-dialog #letter-body .letter-signature { margin: 2.8em 0 0; text-align: right; text-indent: 0; font-size: 22px; }
#wish-dialog #letter-body .letter-date { margin: .25em 0 0; text-align: right; text-indent: 0; font: italic 17px/1.9 var(--serif); letter-spacing: .06em; }
.paper-edge-note { display: block; margin-top: 48px; color: #82786a; font: 7px/1.6 var(--sans); letter-spacing: .18em; }
#wish-dialog[data-destination="star"] .letter-paper { background: linear-gradient(90deg,#71819b18,transparent 22px),radial-gradient(ellipse at 84% 10%,#d9e1ed 0%,transparent 65%),#ecebf0; }
#wish-dialog[data-destination="star"] h2 > span { color: #b9d6f2; }
body:has(dialog[open]), body:has(dialog[open]) a, body:has(dialog[open]) button { cursor: auto; }
body:has(dialog[open]) button, body:has(dialog[open]) a { cursor: pointer; }
body:has(dialog[open]) .theme-pointer { display: none; }
body:has(#wish-dialog[open]) { overflow: hidden; }
@media (max-width: 850px) {
  .letter-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr); }
  .letter-cover { padding: 22px 30px; }
  #wish-dialog .letter-cover .eyebrow, #wish-dialog .letter-return, #wish-dialog #letter-status { display: none; }
  #wish-dialog h2 { margin: 0; font-size: 22px; }
  #wish-dialog h2 > span { display: inline; }
  .letter-paper { padding: 30px 35px; }
  .paper-stamp { right: 30px; }
  #letter-body { font-size: 18px; }
}
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.noscript-note { position: fixed; left: var(--gutter); bottom: 58px; z-index: 40; font-size: 10px; }
.preview-notice { position: fixed; z-index: 50; inset: auto 20px 22px; width: fit-content; max-width: calc(100% - 40px); margin: auto; padding: 15px 20px; border: 1px solid var(--line); background: #101b22f5; font-size: 12px; line-height: 1.8; }
.preview-notice a { margin-left: 16px; text-decoration: underline; text-underline-offset: 4px; }
.motion-paused * { animation-play-state: paused !important; }
@keyframes breathe-bar { from { transform: scaleY(.3); } to { transform: scaleY(1); } }

@media (min-width: 1600px) {
  .chapter-stage { padding-right: 14vw; padding-left: 14vw; }
}
@media (max-width: 1000px) {
  .header-note { display: none; }
  .chapter-stage { padding-right: 10vw; padding-left: 10vw; }
  .home h1 { font-size: clamp(78px, 10vw, 98px); }
  .home-layout { grid-template-columns: 1.15fr 1fr; gap: 6%; }
  .home .chapter-stage { padding-left: 8vw; padding-right: 8vw; }
  .choice-name { font-size: 26px; }
  .choice-kicker { font-size: 9px; }
  .choice-detail { font-size: 10px; }
  .gate-layout, .flower-gate .gate-layout, .birthday-copy, .transition-copy { width: 56%; }
  .gate-title, .flower-gate .gate-title, .birthday h2 { font-size: 70px; }
  .serif-whisper { font-size: 61px; }
  .vertical-note { left: 22px; }
  .footer-note { display: none; }
}
@media (max-width: 650px) {
  :root { --gutter: 23px; }
  .site-header { padding-top: max(17px, env(safe-area-inset-top)); padding-bottom: 12px; }
  .brand { gap: 8px; }
  .brand svg { width: 23px; height: 23px; }
  .brand > span { font-size: 14px; }
  .brand small { font-size: 6px; margin-top: 4px; }
  .header-actions { gap: 16px; font-size: 10px; }
  .motion-toggle { gap: 5px; }
  .motion-toggle #motion-label { font-size: 8px; letter-spacing: 0; }
  .menu-mark { margin-left: 5px; font-size: 19px; }
  .chapter, .journey-enhanced .chapter, .journey-enhanced .chapter:last-child { min-height: 100svh; }
  .chapter-stage, .journey-enhanced .chapter-stage { position: relative; min-height: 100svh; padding: 150px 12vw 150px 8vw; opacity: 1; pointer-events: auto; }
  .chapter-stage > .home-layout, .chapter-stage > .gate-layout, .chapter-stage > .birthday-copy, .chapter-stage > .transition-copy { transform: none; }
  .birthday .chapter-stage, .transition .chapter-stage { align-items: flex-start; padding-top: 155px; }
  .home .chapter-stage { padding: 118px 10vw 157px 8vw; min-height: max(100svh,780px); align-items: flex-start; }
  .home-layout { display: block; }
  .home-copy > .eyebrow { font-size: 6px; letter-spacing: .18em; margin-bottom: 21px; gap: 9px; }
  .opening-mark { font-size: 14px; }
  .home h1 { font-size: clamp(72px, 20vw, 111px); }
  .home h1 > .title-blooms { margin-left: .3em; }
  .home-subtitle { margin-top: 24px; font-size: 12px; line-height: 1.8; letter-spacing: .15em; }
  .home-subtitle br { display: none; }
  .journey-choices { padding-top: 24px; max-width: 340px; }
  .journey-choice { min-height: 97px; padding: 13px 0 15px; }
  .choice-kicker { font-size: 8px; letter-spacing: .1em; }
  .choice-name { font-size: 27px; margin-top: 6px; }
  .choice-detail { margin-top: 5px; font-size: 10px; }
  .choice-emblem { top: 12px; width: 18px; height: 18px; }
  .choice-instruction { margin-top: 16px; font-size: 9px; }
  .home-bottom { left: 8vw; right: 10vw; bottom: 79px; padding-top: 12px; }
  .home-signature { font-size: 15px; }
  .home-edition { display: none; }
  .bloom-touch { font-size: 9px; gap: 4px; }
  .touch-ring { width: 28px; height: 28px; }
  .eyebrow { font-size: 7px; letter-spacing: .15em; margin-bottom: 25px; }
  .eyebrow .chapter-roman { margin-right: 13px; font-size: 13px; }
  .gate-layout, .flower-gate .gate-layout, .birthday-copy, .transition-copy { width: 100%; max-width: 345px; }
  .star-birthday .birthday-copy, .petal-transition .transition-copy, .flower-gate .gate-layout { margin-left: 0; }
  .gate-title, .flower-gate .gate-title, .birthday h2 { font-size: clamp(60px, 16.6vw, 83px); }
  .gate-aside { margin-top: 26px; max-width: 282px; }
  .poem, .birthday .poem { font-size: 16px; }
  .body-copy { font-size: 10px; }
  .entry-button { font-size: 10px; margin-top: 17px; }
  .fine-print { font-size: 8px; }
  .birthday h2 { margin-bottom: 28px; }
  .birthday-spark { right: 8%; font-size: 19px; }
  .wish-button { margin-top: 16px; font-size: 10px; }
  .serif-whisper { font-size: clamp(49px, 13.3vw, 65px); }
  .transition h2 { font-size: 16px; line-height: 1.85; }
  .transition-wish { left: 8vw; right: auto; bottom: 137px; }
  .travel-cue { font-size: 8px; letter-spacing: .08em; gap: 7px; }
  .top-cue { top: 87px; }
  .bottom-cue { bottom: 66px; }
  .arrow { height: 17px; }
  .chapter-nav { right: 7px; }
  .chapter-nav a { width: 26px; height: 30px; }
  .chapter-nav a > span { display: none; }
  .chapter-nav > span { font-size: 12px; }
  .site-footer { bottom: max(21px, env(safe-area-inset-bottom)); }
  .chapter-label { gap: 7px; }
  .chapter-label > span:last-child { display: none; }
  .footer-line { width: 17px; }
  .site-footer a { left: auto; right: 0; transform: none; font-size: 8px; }
  .sky-credit { bottom: 44px; font-size: 7px; }
  .closing-line { left: 8vw; right: auto; bottom: 104px; font-size: 13px; }
  .wish-message { bottom: 95px; padding: 13px 18px; font-size: 12px; }
  dialog { padding: 57px 26px 36px; }
  dialog h2 { font-size: 23px; }
  #journey-menu nav a { font-size: 22px; }
}
@media (max-height: 680px) and (min-width: 651px) {
  .chapter-stage, .journey-enhanced .chapter-stage { min-height: 690px; position: relative; padding-top: 132px; }
  .journey-enhanced .chapter, .journey-enhanced .chapter:last-child { min-height: 730px; }
  .home .chapter-stage { padding-top: 170px; }
  .header-note { display: none; }
  .top-cue { top: 80px; }
  .gate-title, .flower-gate .gate-title, .birthday h2 { font-size: 68px; }
  .home h1 { font-size: 75px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .journey-enhanced .chapter-stage { opacity: 1; }
  .chapter-stage > .home-layout, .chapter-stage > .gate-layout, .chapter-stage > .birthday-copy, .chapter-stage > .transition-copy { transform: none; }
}
