/* The illustrated edition. Shared structure and accessible controls live in styles.css. */
@font-face{font-family:'Berkshire Swash';src:url('assets/berkshire-swash.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
:root{--night:#021923;--cream:#f3dfb5;--gold:#efb64d;--muted:#dcc99e;--paper:#f3dfb7;--ink:#34271a;--green:#435c40;--rule:#b8893977;--storybook:'Berkshire Swash',Georgia,serif}
body{isolation:isolate;background:#021923}
body::before{content:'';position:fixed;inset:0;z-index:-2;background:url('assets/moonlit-forest.jpg') center /100% 100% no-repeat;pointer-events:none}
.constellation{z-index:0;overflow:hidden}.site-header,main{position:relative;z-index:1}
.firefly{position:absolute;width:4px;height:4px;background:#fff3aa;border-radius:50%;box-shadow:0 0 6px 2px #f5c95877,0 0 20px 5px #e3a22d30;opacity:.55;pointer-events:none;animation:firefly-wander 4.5s var(--delay) ease-in-out both}.firefly:nth-child(3n){width:3px;height:3px;opacity:.35}
.site-header{background:transparent;border:0;height:112px;max-width:1370px;margin:auto;padding:24px 38px}.brand{color:var(--gold);font-family:var(--storybook);font-size:42px;letter-spacing:0;gap:19px;text-shadow:0 2px 8px #0008}.book-icon{width:47px;height:44px;stroke-width:1.15}.header-actions{gap:34px}.header-actions .text-button{color:var(--cream);font-size:23px;text-shadow:0 1px 6px #000}.header-actions .download{background:#02192338;border:1px solid #dba043;border-radius:9px 6px 11px 7px;box-shadow:inset 0 0 0 2px #dab76916;min-height:54px;font-size:22px}.header-actions .download:hover{background:#e4aa3c16}
.cover{min-height:calc(100svh - 112px)}.cover-layout{width:min(1248px,calc(100% - 180px));grid-template-columns:1.05fr 1fr;gap:44px;padding:12px 0 4px;align-items:center;margin:auto}.cover-copy{text-align:center;padding:0 0 20px;text-shadow:0 2px 8px #0006}.cover h1{font-size:clamp(64px,6.25vw,96px);line-height:1.03;letter-spacing:-1.8px;margin:0 0 26px;transform:rotate(-.6deg)}.cover h1 em{display:inline-block;font:400 clamp(83px,8.7vw,134px)/1.14 var(--storybook);letter-spacing:-3px;color:var(--gold);text-shadow:0 2px 0 #714723,0 3px 20px #bc7c3e15}.cover-intro{font:clamp(20px,1.8vw,27px)/1.45 var(--serif);color:var(--cream);margin:0 auto 28px;max-width:560px;letter-spacing:0}.cover-actions{align-items:center;gap:15px}.button.primary{background:#ddb365 url('assets/enchanted-pages.jpg') 25% 48% /550% 500%;background-blend-mode:multiply;color:#2a1a0b;border:2px solid #9b6828;border-radius:16px 10px 19px 9px;box-shadow:inset 0 0 0 3px #e6c27b,inset 0 0 0 4px #91601f,0 5px 13px #0004;position:relative}.button.primary:hover{background-color:#f0cb80;color:#24180b;transform:translateY(-2px) rotate(-.3deg)}.cover-actions .primary{min-height:75px;font-size:28px;padding:17px 31px;gap:26px}.chapter-link{color:var(--gold);font-size:25px;letter-spacing:.2px;text-decoration-thickness:1px}.creator{border:0;padding:17px 10px 0;margin:10px auto 0;font:21px/1.4 var(--serif);color:#d4b986;position:relative;max-width:520px}.creator::before,.creator::after{content:'❧';color:#b07a31;font-size:35px;display:inline-block;vertical-align:-5px;margin:0 9px}.creator::after{transform:rotate(180deg)}.resume{color:#dfc18c;margin-top:9px;font:14px/1.4 var(--serif);padding:2px 10px;min-height:32px}.cover-art{padding:0;border:0;border-radius:0;background:none;box-shadow:none;width:100%;height:min(76svh,775px);max-width:580px;justify-self:center;transform:none;filter:drop-shadow(0 24px 20px #0007);animation:book-arrives .85s ease-out both}.cover-art:hover{transform:translateY(-6px) rotate(.7deg)}.cover-art img{width:100%;height:100%;object-fit:contain;border-radius:0;clip-path:polygon(2% 13%,3% 10.8%,9% 8.6%,87% 5.1%,88.8% 7.4%,90.1% 12%,92.5% 13.2%,94.6% 28%,98.4% 56%,99.7% 86.8%,21% 91.3%,22.5% 92.9%,21.3% 94.4%,18.6% 92.5%,18.7% 94.2%,16.7% 94.4%,14% 91%,8% 90%,5.7% 87.5%,6% 79%,4% 68%,2.9% 51%,2% 26%)}.cover-footer{flex-direction:column;justify-content:center;gap:8px;color:var(--cream);text-align:center;width:min(900px,calc(100% - 70px));margin:0 auto;padding:8px 20px 28px;position:relative}.cover-footer::before{content:'✦';display:block;width:100%;font-size:27px;color:#b78035;background:linear-gradient(90deg,transparent,#b7803599 15%,#b7803599 45%,transparent 45%,transparent 55%,#b7803599 55%,#b7803599 85%,transparent) center/100% 1px no-repeat}.cover-footer span:first-child{font:14px/1.5 var(--serif);letter-spacing:4px}.cover-footer span:last-child{font-size:22px;letter-spacing:1px}
.reader{width:min(1400px,calc(100% - 100px));padding-top:0}.reader-meta{margin:0 35px 18px}.reader-meta .text-button{color:var(--cream);font-size:22px;text-shadow:0 1px 7px #000}.reader-meta>span{font-family:var(--serif);font-size:19px;color:var(--gold);letter-spacing:2px;text-shadow:0 1px 5px #000}.spreads{margin-bottom:16px;filter:drop-shadow(0 14px 14px #0008);perspective:1800px}.spreads::before{display:none}.spread{border:0;border-radius:0;background:transparent;min-height:690px;isolation:isolate;animation:paper-turn .42s cubic-bezier(.2,.65,.25,1) both;--turn-angle:-1.6deg}.spread[data-turn=back]{--turn-angle:1.6deg}.spread::before{content:'';position:absolute;inset:-4px -10px -18px;background:url('assets/enchanted-pages.jpg') center /100% 100% no-repeat;z-index:-1;clip-path:polygon(2% 14%,5% 6%,8% 3%,21% 2.7%,35% 2%,47% 2.1%,50% 5.5%,53% 2.7%,66% 3%,75% 4%,87% 3%,88% 2.8%,94% 4.6%,96% 7%,98% 12%,98.5% 97%,53% 98%,50% 99%,47% 98%,2% 97%,1.6% 92%)}.spread::after{background:linear-gradient(90deg,transparent,#ffe6a122,transparent);width:65px;opacity:.3;animation:seam-glint .6s ease-out}.paper-page{padding:62px 74px 62px 120px}.copy-page{padding-right:72px}.art-page{padding:70px 76px 65px 45px}.eyebrow{font-size:13px;letter-spacing:1.9px;color:#85581f}.chapter-title{font-family:var(--storybook);font-size:clamp(38px,3.7vw,57px);line-height:1.13;font-weight:400;letter-spacing:-.8px;margin-bottom:20px}.chapter-copy{font-size:23px;line-height:1.45;color:var(--green)}.chapter-note{border-color:#b2823680;font-size:23px;line-height:1.4;color:var(--green)}.chapter-listing{margin-top:23px;border-top-color:#b2823680}.chapter-listing li{font-size:20px;line-height:1.38;padding:15px 0;border-color:#b2823680;gap:16px}.chapter-listing .point-number{border-color:#a36d23;box-shadow:inset 1px 1px 0 #dab269;border-radius:47% 51% 48% 53%;font-size:21px}.point-rows li{border-color:#b2823680;font-size:17px;padding:10px 0}.point-rows strong{font-family:var(--storybook);font-size:22px}.artwork-button{padding:4px;background:#e9d4a6;border-color:#9a713f;border-radius:1px;transform:rotate(-1.1deg);box-shadow:0 5px 9px #4326132a;position:relative}.artwork-button::before,.artwork-button::after{content:'';position:absolute;width:22px;height:22px;border:3px double #8e611e;z-index:1;pointer-events:none}.artwork-button::before{left:-4px;top:-4px;border-right:0;border-bottom:0}.artwork-button::after{right:-4px;bottom:-4px;border-left:0;border-top:0}.artwork-button:hover{transform:rotate(0) translateY(-2px)}.art-caption{margin-top:13px}.enlarge-button{font-size:16px;color:#4c6548}.media-actions{margin-top:20px;gap:14px}.media-actions .button{font-size:21px;min-height:63px;padding:12px 15px;gap:12px;border-radius:13px 6px 15px 8px}.media-actions .button.outline{background:#eddbb84d;border:2px solid #a77735;color:var(--ink);box-shadow:inset 0 0 0 3px #f3e4bc,inset 0 0 0 4px #a7773560}.media-actions .button.outline:hover{background:#dbc08d}.art-note{font-size:21px;margin-top:24px}.paper-number{bottom:31px;left:125px;font-size:15px}.art-page .paper-number{right:76px;bottom:31px}.reader-controls{margin:0 40px;padding-top:10px}.page-control{color:var(--cream);text-shadow:0 1px 5px #000}.arrow-box{background:#cfa759 url('assets/enchanted-pages.jpg') 25% 48% /700% 800%;background-blend-mode:multiply;color:#392310;border:2px solid #936327;box-shadow:inset 0 0 0 2px #e4c784;border-radius:13px 6px 13px 8px}.page-control:hover .arrow-box{background-color:#eac988}.chapter-dot{color:var(--cream)}.chapter-dot[aria-current=page]{box-shadow:0 0 8px #edba5060}.page-count{font:18px/1.4 var(--serif);color:var(--cream)}.keyboard-hint{color:var(--cream);text-shadow:0 1px 5px #000}
dialog{background:#061e28 url('assets/moonlit-forest.jpg') center /cover;border:1px solid #b58b4d;box-shadow:0 30px 100px #000b,inset 0 0 0 5px #b5893420;border-radius:17px 9px 21px 8px}dialog::backdrop{background:#001017de;backdrop-filter:blur(5px)}.dialog-heading h2{font-family:var(--storybook);font-weight:400}.chapters-dialog{background:linear-gradient(#031923dd,#031923f0),url('assets/moonlit-forest.jpg') center/cover}.chapter-select{border-radius:6px}.chapter-select:hover{background:#e4aa3c0c}.chapter-select .menu-type{color:#d4bd8f}.dialog-label,.menu-credit{color:#d4bd8f}.icon-button{border-color:#ad813f;color:var(--cream);border-radius:8px 4px 9px 5px}.video-dialog,.art-dialog{background:#071c25}.art-dialog .dialog-heading h2{font-family:var(--serif)}
@keyframes firefly-wander{0%{opacity:0;transform:translate3d(0,10px,0)}35%{opacity:.85}75%{opacity:.45}100%{opacity:.55;transform:translate3d(var(--drift),-14px,0)}}
@keyframes book-arrives{from{opacity:0;transform:translateY(12px) rotate(-1deg)}to{opacity:1;transform:none}}
@keyframes paper-turn{from{opacity:.65;transform:translateY(8px) rotateY(var(--turn-angle))}to{opacity:1;transform:none}}
@keyframes seam-glint{0%{opacity:.8}100%{opacity:.25}}
@media(min-width:1101px) and (max-height:860px){.site-header{height:92px;padding-top:16px;padding-bottom:16px}.cover{min-height:calc(100svh - 92px)}.cover-layout{width:min(1190px,calc(100% - 180px));gap:45px;padding:4px 0;grid-template-columns:1.1fr 1fr}.cover h1{font-size:clamp(58px,5.4vw,78px);margin-bottom:20px}.cover h1 em{font-size:clamp(77px,7.2vw,103px)}.cover-intro{font-size:21px;line-height:1.42;margin-bottom:23px}.cover-actions .primary{min-height:63px;font-size:23px;padding:14px 26px}.cover-actions{gap:10px}.chapter-link{font-size:21px}.creator{font-size:18px;padding-top:8px;margin-top:5px}.creator::before,.creator::after{font-size:26px;margin:0 6px}.cover-art{max-width:460px;height:min(73svh,590px)}.resume{font-size:12px;margin-top:4px;min-height:26px}.cover-footer{gap:4px;padding:0 12px 16px}.cover-footer::before{font-size:20px}.cover-footer span:first-child{font-size:11px;letter-spacing:3px}.cover-footer span:last-child{font-size:18px}.spread{min-height:565px}.paper-page{padding-top:47px;padding-bottom:50px}.chapter-title{font-size:45px}.chapter-copy{font-size:20px}.chapter-listing li{font-size:18px;padding:12px 0}.chapter-listing .point-number{font-size:19px}.chapter-note{font-size:21px}.art-page{padding-top:45px;padding-bottom:50px}.art-note{font-size:18px;margin-top:18px}.media-actions .button{font-size:18px;min-height:56px}.reader-meta{margin-bottom:12px}.reader-meta .text-button{font-size:20px}.reader-meta>span{font-size:16px}.reader-controls{padding-top:6px}.keyboard-hint{margin-top:10px}.paper-number{bottom:25px}}
@media(max-width:1100px){.site-header{height:90px;padding:20px 34px}.brand{font-size:34px;gap:15px}.book-icon{width:37px;height:36px}.header-actions{gap:24px}.header-actions .text-button{font-size:20px}.header-actions .download{font-size:18px;min-height:49px}.cover{min-height:calc(100svh - 90px)}.cover-layout{width:calc(100% - 110px);gap:30px;padding:35px 0 15px}.cover h1{font-size:62px;letter-spacing:-1.7px}.cover h1 em{font-size:84px;letter-spacing:-2px}.cover-intro{font-size:21px;max-width:390px;margin-bottom:25px}.cover-actions .primary{font-size:21px;min-height:65px;padding:14px 21px;gap:18px}.chapter-link{font-size:21px}.creator{font-size:17px;padding:10px 0 0}.creator::before,.creator::after{font-size:24px;margin:0 5px}.resume{font-size:13px}.cover-art{height:610px;max-height:72svh;max-width:440px}.cover-footer{width:calc(100% - 100px);padding:4px 0 24px}.cover-footer span:first-child{font-size:11px;letter-spacing:2px}.cover-footer span:last-child{font-size:19px}.reader{width:calc(100% - 58px)}.reader-meta{margin:0 15px 14px}.reader-meta .text-button{font-size:18px}.reader-meta>span{font-size:13px}.spread{min-height:625px}.paper-page{padding:46px 33px 48px 65px}.art-page{padding:46px 51px 48px 26px}.chapter-title{font-size:38px}.chapter-copy{font-size:19px}.chapter-listing li{font-size:17px;gap:11px;padding:12px 0}.chapter-note{font-size:21px}.media-actions{flex-direction:column;gap:12px;margin-top:16px}.media-actions .button{font-size:18px;min-height:52px}.art-note{font-size:18px}.paper-number{left:66px;bottom:27px}.art-page .paper-number{right:53px;bottom:27px}.reader-controls{margin:0 12px}.point-rows li{font-size:16px}.point-rows strong{font-size:20px}}
@media(max-width:820px){.site-header{padding:17px 25px;height:82px}.brand{font-size:29px}.book-icon{width:33px;height:32px}.header-actions{gap:20px}.header-actions .text-button{font-size:18px}.header-actions .download{font-size:17px;padding:10px 14px}.cover{min-height:calc(100svh - 82px)}.cover-layout{width:calc(100% - 100px);grid-template-columns:1fr;gap:4px;padding:34px 0 0}.cover-copy{padding-bottom:0;max-width:560px;margin:0 auto;width:100%}.cover h1{font-size:70px;line-height:1.02}.cover h1 em{font-size:99px}.cover-intro{max-width:460px;font-size:23px}.cover-actions .primary{font-size:25px;padding:17px 28px;min-height:73px}.chapter-link{font-size:23px}.creator{font-size:20px}.cover-art{height:auto;aspect-ratio:2/3;max-height:none;width:min(100%,460px);justify-self:center;align-self:center}.cover-footer{padding-bottom:28px}.reader{width:calc(100% - 50px)}.spread{display:block;min-height:0}.spread::before{background-size:200% 100%;background-position:left center;inset:-6px -8px -13px;clip-path:polygon(4% 5%,12% 2.5%,45% 1.8%,95% 2%,98% 5.5%,98% 97%,6% 98%,3% 93%)}.spread::after{display:none}.paper-page{padding:44px 50px 24px 60px;display:block}.art-page{padding:18px 50px 53px 60px;border-top:0}.chapter-title{font-size:46px;line-height:1.14}.chapter-copy{font-size:22px;line-height:1.5}.chapter-listing li{font-size:20px}.chapter-note{font-size:23px}.media-actions{flex-direction:row;gap:14px;flex-wrap:wrap;margin-top:20px}.media-actions .button{min-height:62px;font-size:21px}.art-note{font-size:21px}.paper-number{display:none}.art-page .paper-number{display:block;right:55px;bottom:22px}.reader-controls{margin:8px 12px 0}.point-rows li{font-size:20px}.point-rows strong{font-size:24px}}
@media(max-width:720px){body::before{background-size:100% 100%;background-position:center;opacity:1}.site-header{padding:15px 18px;height:80px;gap:9px}.brand{font-size:25px;gap:9px}.book-icon{width:29px;height:29px}.header-actions{gap:13px}.header-actions .text-button{font:14px/1.4 var(--serif)}.header-actions .download{height:42px;width:42px;min-height:42px;padding:8px}.cover{min-height:calc(100svh - 80px)}.cover-layout{width:calc(100% - 60px);padding:38px 0 0;gap:3px}.cover h1{font-size:54px;line-height:1.07;letter-spacing:-1.4px;margin-bottom:20px;transform:rotate(-.5deg)}.cover h1 em{font-size:76px;letter-spacing:-1px;line-height:1.12}.cover-intro{font-size:19px;line-height:1.45;max-width:350px;margin-bottom:25px;text-wrap:pretty}.cover-actions .primary{font-size:20px;min-height:64px;gap:14px;padding:14px 19px;white-space:nowrap}.cover-actions .primary svg{width:24px;height:24px}.cover-actions{gap:13px}.chapter-link{font-size:21px;min-height:44px}.creator{font-size:16px;line-height:1.5;padding:8px 0 0;max-width:none}.creator::before,.creator::after{font-size:24px;margin:0 5px}.resume{font-size:13px;min-height:34px;line-height:1.5;max-width:290px}.cover-art{width:100%;max-width:400px;aspect-ratio:2/3;height:auto;margin-top:1px}.cover-footer{width:calc(100% - 45px);padding:0 0 23px;gap:6px;align-items:center}.cover-footer::before{font-size:24px}.cover-footer span:first-child{font-size:9px;letter-spacing:1.8px;max-width:300px;line-height:1.7}.cover-footer span:last-child{font-size:18px}.reader{width:calc(100% - 30px);padding-top:0}.reader-meta{margin:0 9px 14px;gap:10px}.reader-meta .text-button{font-size:16px}.reader-meta>span{font:11px/1.4 var(--serif);letter-spacing:1px;white-space:nowrap}.spreads{margin-bottom:10px}.spread::before{inset:-6px -6px -10px}.paper-page{padding:38px 30px 18px 35px}.art-page{padding:20px 28px 48px 34px}.eyebrow{font-size:10px;letter-spacing:1.4px;margin:0 0 17px}.chapter-title{font-size:36px;line-height:1.15;letter-spacing:-.5px;margin-bottom:20px}.chapter-copy{font-size:19px;line-height:1.5}.chapter-listing{margin-top:23px}.chapter-listing li{font-size:18px;padding:14px 0;gap:13px}.chapter-listing .point-number{font-size:18px}.chapter-note{font-size:21px;margin-top:22px;padding-top:19px}.artwork-button{padding:3px}.artwork-button::before,.artwork-button::after{width:15px;height:15px}.enlarge-button{font-size:14px}.media-actions{gap:12px;margin-top:15px;flex-direction:column}.media-actions .button{font-size:19px;min-height:58px}.art-note{font-size:18px;line-height:1.45;margin-top:20px}.art-page .paper-number{right:31px;bottom:20px;font-size:13px}.reader-controls{margin:0 -15px;padding:8px 18px max(8px,env(safe-area-inset-bottom));background:#041b24f2;border-top:1px solid #a27734;backdrop-filter:blur(8px)}.page-count{font-size:14px}.mobile-chapters{color:var(--cream);font-size:16px}.reader-controls .arrow-box{height:46px;width:49px}.point-rows li{font-size:18px}.point-rows strong{font-size:22px}.dialog-heading h2{font-size:27px}.video-dialog h2{font:23px/1.25 var(--serif)}}
@media(max-width:370px){.site-header{padding-inline:13px}.brand{font-size:21px;gap:7px}.book-icon{width:25px}.header-actions{gap:10px}.header-actions .text-button{font-size:13px}.header-actions .download{height:39px;width:39px;min-height:39px}.cover-layout{width:calc(100% - 54px);padding-top:30px}.cover h1{font-size:45px;letter-spacing:-1.4px}.cover h1 em{font-size:66px}.cover-intro{font-size:18px}.cover-actions .primary{font-size:17px;padding:13px 18px;gap:10px}.cover-actions .primary svg{width:22px}.creator{font-size:14px}.creator::before,.creator::after{margin:0 3px;font-size:19px}.chapter-title{font-size:31px}.paper-page{padding-inline:29px}.art-page{padding-inline:28px}.chapter-copy{font-size:18px}.chapter-listing li{font-size:17px}.cover-footer span:first-child{font-size:8px;letter-spacing:1.5px}}
@media(prefers-reduced-motion:reduce){.firefly,.cover-art,.spread,.spread::after{animation:none!important}.cover-art:hover,.button.primary:hover,.artwork-button:hover{transform:none}.firefly{opacity:.4}}
@media print{body::before,.constellation{display:none!important}.spread{background:var(--paper)!important;filter:none;animation:none!important}.spread::before,.spread::after{display:none}.paper-page{padding:30px}.chapter-title{font:28px/1.2 var(--serif)}.chapter-copy{font-size:16px}.artwork-button{transform:none;box-shadow:none}.site-header{display:none!important}}
/* Keep the native art coordinates aligned with its silhouette. */
.cover-art img{object-fit:fill}
@media(min-width:1101px){.site-header{max-width:none;padding-left:7vw;padding-right:16vw}}
@media(min-width:821px){.copy-page{padding-left:clamp(78px,10.5vw,162px)}.art-page{padding-right:clamp(62px,6.6vw,102px)}}
/* Dedicated portrait artwork avoids stretching the moon or paper decoration. */
body::before{background-size:cover;background-position:center}
@media(min-width:821px){.reader-meta>span{margin-right:9vw}}
@media(max-width:820px){
 body::before{background-image:url('assets/moonlit-forest-mobile.jpg');background-size:cover;background-position:65% center}
 .spread{background:#f3dfb7 url('assets/parchment-sheet.jpg') center/100% 100%;border:1px solid #ad8040;border-radius:16px 9px 13px 7px;box-shadow:inset 0 0 0 4px #aa76341a,3px 4px 0 #b3915b,6px 7px 0 #49321c}
 .spread::before{display:none}
 .reader-meta>span{margin-right:0}
 .paper-page{padding-top:50px}
 .art-page{padding-top:16px}
}
@media(max-width:720px){.cover h1{font-size:50px}.reader-meta>span{margin-right:42px}}
@media(max-width:370px){.cover h1{font-size:45px}.reader-meta>span{margin-right:20px}}
