/* Zola James Books — Storybook design system v2.0
   Self-hosted only; no remote fonts, scripts, trackers, or inline script/style required. */
:root{
  --cream:#fff8f1;--white:#fffdfb;--paper:#ffffff;--lilac:#f1e9f7;--lavender:#e8daf6;
  --plum:#382a57;--purple:#73579f;--rose:#e7a0ae;--coral:#f0ab9a;--peach:#ffe6d4;
  --mint:#def1e7;--sage:#87b7a5;--butter:#ffe39d;--ink:#392e50;--muted:#70667c;
  --line:#e9dee6;--line-dark:#cfc5d5;--shadow:0 26px 74px rgba(56,42,87,.13);
  --serif:'Iowan Old Style','Palatino Linotype',Palatino,'Book Antiqua',Georgia,serif;
  --sans:'Trebuchet MS','Avenir Next',Avenir,ui-rounded,system-ui,-apple-system,'Segoe UI',sans-serif;
}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:92px}body{margin:0;font-family:var(--sans);color:var(--ink);background:var(--cream);-webkit-font-smoothing:antialiased}
body.home-page{background:var(--white)}img{display:block;max-width:100%;height:auto}a{color:inherit}button{font:inherit;cursor:pointer}button:disabled{cursor:not-allowed}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #7958a7;outline-offset:4px}[hidden]{display:none!important}
::selection{background:#e4bce3;color:#271b3d}.skip-link{position:fixed;top:-70px;left:15px;z-index:300;background:#fff;color:#34244b;padding:12px 17px;border-radius:12px}.skip-link:focus{top:12px}
h1,h2,h3,p{overflow-wrap:break-word}.section-shell{width:min(1180px,calc(100% - 64px));margin-inline:auto}em{font-family:var(--serif);font-weight:600;font-style:italic;color:var(--purple)}
.eyebrow{display:inline-flex;align-items:center;gap:10px;text-transform:uppercase;letter-spacing:.16em;font-size:.72rem;font-weight:900;color:var(--purple);line-height:1.5}
.eyebrow>span{color:#e0a1ad;font-size:1.4rem;line-height:0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:54px;padding:16px 25px;border-radius:100px;text-decoration:none;border:1px solid transparent;font-weight:900;font-size:.92rem;line-height:1.2;transition:transform .2s,box-shadow .2s,background .2s;white-space:nowrap}
.btn:hover{transform:translateY(-3px)}.btn-primary{background:var(--plum);color:white;box-shadow:0 10px 28px #3c285632}.btn-primary:hover{background:#574174}.btn-secondary{background:white;color:var(--plum);border-color:#e6d8e5}.btn-secondary:hover{background:#f7f0f9}.btn-dark{background:var(--plum);color:#fff}.btn-mini{min-height:43px;padding:11px 19px;font-size:.81rem}
.hello-bar{background:#e7daf6;color:#665082;text-align:center;font-weight:900;letter-spacing:.14em;font-size:.64rem;padding:10px 12px;line-height:1.35}.hello-star{color:#e89eab;margin:0 13px;font-size:.84rem}
.site-header{position:sticky;top:0;z-index:80;min-height:82px;display:flex;gap:30px;align-items:center;justify-content:space-between;padding:13px max(32px,calc((100vw - 1180px)/2));background:rgba(255,253,251,.97);border-bottom:1px solid #f1e8ec;box-shadow:0 3px 22px #32244708;backdrop-filter:blur(16px)}
.brand{display:inline-flex;gap:11px;align-items:center;text-decoration:none;min-width:180px}.brand-mark{display:grid;place-items:center;width:49px;height:49px;background:#ebdef7;border-radius:16px;transform:rotate(-7deg)}.brand-mark svg{width:44px;height:44px}.brand-type{display:flex;flex-direction:column;line-height:1}.brand-type strong{font:700 2.13rem/.8 var(--serif);letter-spacing:-.095em}.brand-dot,.footer-brand>span,.reader-logo strong span{color:#e5a0b0}.brand-type small{font-size:.64rem;letter-spacing:.19em;font-weight:900;margin-top:10px}
.header-nav{display:flex;gap:30px;align-items:center}.header-nav a{font-size:.85rem;font-weight:900;text-decoration:none;color:#6f637a}.header-nav a:hover{color:var(--plum);text-decoration:underline;text-underline-offset:8px;text-decoration-color:#dbbac9}.header-cta{display:inline-flex;justify-content:center;gap:15px;align-items:center;min-height:44px;background:var(--plum);color:#fff;text-decoration:none;border-radius:100px;padding:11px 21px;font-weight:900;font-size:.84rem;white-space:nowrap}.header-cta:hover{background:#594177}
/* Home: first impression */
.hero{position:relative;overflow:hidden;background:radial-gradient(ellipse at 80% 40%,#f7e1e9 0,transparent 48%),radial-gradient(ellipse at 5% 86%,#f7eadc 0,transparent 33%),linear-gradient(145deg,#fffcf7,#fdf4f3 60%,#fcf6fa)}
.hero-shell{width:min(1260px,calc(100% - 64px));margin-inline:auto;padding:60px 25px 84px;min-height:650px;display:grid;grid-template-columns:1fr .94fr;align-items:center;gap:64px}
.hero-copy{max-width:625px;position:relative;z-index:2}.hero-eyebrow{border:1px solid #e5d9e7;background:#fff8fb;padding:11px 15px;border-radius:100px;color:#795a93;font-size:.69rem}.hero-copy h1{font:750 clamp(3.7rem,5.9vw,6rem)/1.03 var(--serif);letter-spacing:-.07em;margin:29px 0 26px;max-width:650px;color:#362748}.hero-copy h1>span{color:#cd809a;font-style:italic}.hero-copy h1 .period{color:#e2b071;font-style:normal}.hero-lead{font-size:1.08rem;line-height:1.88;max-width:490px;color:#675c70;margin:0}.hero-actions{display:flex;align-items:center;gap:12px;margin-top:31px;flex-wrap:wrap}.hero-actions .button-arrow{margin-left:4px;font-size:1.16rem}.hero-credentials{display:flex;align-items:center;gap:15px;flex-wrap:wrap;color:#81738a;font-weight:800;font-size:.79rem;margin-top:33px}.hero-credentials>span:first-child>span{color:#d98ea3;font-size:1.18rem;padding-right:5px}.dot-divider{width:5px;height:5px;background:#d7acb3;border-radius:50%}
.hero-gallery{position:relative;min-height:580px;display:flex;justify-content:center;align-items:center;isolation:isolate}.hero-backdrop{position:absolute;width:min(93%,505px);height:515px;left:50%;top:50%;transform:translate(-50%,-50%) rotate(9deg);border-radius:50% 47% 42% 48%;background:linear-gradient(120deg,#e9daf7,#fbd4c7);z-index:-2}.hero-book-shadow{position:absolute;width:340px;height:485px;top:61px;left:50%;transform:translateX(-50%) rotate(7deg);background:#e6c6d4;border:6px solid #fff8f2;border-radius:17px;box-shadow:0 18px 38px #322b5940}
.hero-book{position:relative;display:block;flex:0 0 auto;width:min(354px,73%);aspect-ratio:880/1260;overflow:hidden;border:7px solid #fff9ec;border-radius:14px;background:#1b1833;box-shadow:inset 6px 0 8px #fff3,0 25px 55px #3927446b;transform:rotate(-4deg);transition:transform .24s ease;isolation:isolate;text-decoration:none;color:#fff}
.hero-book:hover{transform:rotate(-1deg) translateY(-7px)}.hero-book:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#070d25a6 0,transparent 42%,transparent 70%,#090d20a8 100%);pointer-events:none;z-index:1}
.hero-book img{width:100%;height:100%;object-fit:cover;aspect-ratio:880/1260}.hero-book-titles{position:absolute;z-index:2;inset:32px 10px 18px;text-align:center;display:flex;align-items:center;flex-direction:column;justify-content:flex-start;text-shadow:0 2px 10px #111229}
.hero-book-titles>small{color:#ffe9d8;font-size:.59rem;letter-spacing:.18em;font-weight:900}.hero-book-titles>strong{font:750 2.4rem/.97 var(--serif);letter-spacing:-.055em;margin-top:15px;color:#fff9ed}.hero-book-titles>strong span{font-style:italic;color:#ffd993;font-weight:400}.hero-book-titles>em{position:absolute;bottom:7px;color:#ffe9d6;font:800 .64rem var(--sans);letter-spacing:.13em}
.story-sticker{position:absolute;right:2%;bottom:38px;z-index:4;transform:rotate(9deg);width:136px;height:136px;border-radius:50%;background:#ffdfa7;box-shadow:0 14px 26px #503c592a;border:5px solid #fff8ef;display:flex;flex-direction:column;gap:2px;align-items:center;justify-content:center;text-align:center;color:#654670}.story-sticker>span{font-size:1.25rem;color:#d07a88}.story-sticker strong{font:700 1.2rem/1.06 var(--serif)}.hero-sparkle{position:absolute;z-index:4;font-size:3rem;color:#e6a363;pointer-events:none}.sparkle-a{left:4%;top:86px;font-size:2.8rem}.sparkle-b{right:0;top:98px;color:#bc9cd0;font-size:3.8rem}.sparkle-c{left:9%;bottom:67px;color:#ab94cf;font-size:2rem}.hero-wave{position:absolute;width:100%;bottom:-2px;height:72px}.hero-wave svg{width:100%;height:100%}
/* World teaser */
.featured-story{display:grid;grid-template-columns:1.13fr 1fr;align-items:center;gap:50px;margin-top:55px;margin-bottom:120px;padding:30px;background:#f4eefa;border:1px solid #eee3f5;border-radius:30px}.featured-art{height:315px;border-radius:22px;overflow:hidden;position:relative;background:#232137}.featured-art>img{height:100%;width:100%;object-fit:cover;object-position:center}.art-chip{position:absolute;left:17px;bottom:18px;font-size:.64rem;font-weight:900;letter-spacing:.13em;color:#fff8eb;padding:10px 14px;background:#302746dd;border:1px solid #ffffff45;border-radius:100px}.featured-words{padding:10px 35px 10px 0}.featured-words h2{font:700 clamp(2.5rem,3.3vw,3.9rem)/1.08 var(--serif);letter-spacing:-.055em;margin:17px 0}.featured-words p{line-height:1.84;color:#72677c;margin:0 0 20px;font-size:.96rem}.underlined-link{font-weight:900;font-size:.88rem;text-decoration:none;border-bottom:2px solid #c89ab5;padding-bottom:7px;display:inline-flex;gap:14px}.underlined-link:hover{color:var(--purple)}
/* Bookshelf */
.library-section{padding-bottom:110px}.section-title-block{margin-bottom:32px}.section-heading-row{display:flex;justify-content:space-between;align-items:flex-end;gap:28px}.section-title-block h2,.chapter-intro h2,.author-copy h2{font:700 clamp(2.7rem,4.5vw,4.4rem)/1.13 var(--serif);letter-spacing:-.06em;margin:13px 0}.section-heading-row p{color:#776b7e;line-height:1.7;margin:0 0 19px;max-width:300px;font-size:.93rem}.library-grid{display:grid;grid-template-columns:1.36fr .82fr;gap:24px}.library-book{display:grid;grid-template-columns:.84fr 1fr;min-height:391px;border-radius:27px;overflow:hidden;border:1px solid #ece1ea;background:#fff;box-shadow:0 20px 46px #382c5018}.library-card-cover{position:relative;background:#231a36;min-height:383px;overflow:hidden}.library-card-cover>img{width:100%;height:100%;object-fit:cover;object-position:center}.status-pill{position:absolute;left:16px;top:17px;padding:10px 14px;border-radius:100px;background:#e1f3e8;color:#31624d;font-size:.62rem;font-weight:900;letter-spacing:.07em;box-shadow:0 8px 25px #18131d50}.library-card-content{padding:35px 28px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.book-overline{font-weight:900;letter-spacing:.15em;font-size:.68rem;color:#ae7c9b}.library-card-content h3{font:700 clamp(2rem,2.9vw,2.65rem)/1.1 var(--serif);letter-spacing:-.055em;margin:17px 0 13px}.library-card-content>p{font-size:.92rem;line-height:1.78;color:#72697b;margin:0}.book-stats{display:flex;flex-wrap:wrap;gap:14px;margin:25px 0;color:#8a7c8c;font-size:.75rem;font-weight:900}.book-stats span span{color:#d79fae}.btn-card{padding-inline:24px;min-height:48px}
.next-book{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;background:linear-gradient(135deg,#f8ebf6,#efebfa 70%,#fef0da);border:2px dashed #d4bfdf;border-radius:27px;text-align:center;padding:46px 26px}.next-book:after{content:"";position:absolute;width:190px;height:190px;border-radius:50%;right:-115px;bottom:-110px;background:#ffd8cc88}.next-book-icon{position:absolute;top:16px;left:25px;color:#cc97ba;font-size:3rem}.next-book-center{position:relative;max-width:290px;z-index:1}.next-illus{height:80px;display:flex;align-items:center;justify-content:center;gap:12px;color:#ad88c5}.next-big-star{font-size:3.7rem;transform:rotate(-20deg)}.next-moon{font-size:2.6rem;transform:translateY(-18px);color:#dfaf67}.next-heart{font-size:2rem;transform:translateY(18px);color:#df96aa}.next-book h3{font:700 1.8rem/1.21 var(--serif);letter-spacing:-.035em;margin:14px 0}.next-book p{font-size:.89rem;line-height:1.7;color:#81718a}.coming-soon{position:absolute;bottom:18px;font-weight:900;letter-spacing:.12em;font-size:.59rem;color:#997ead}.resume-banner{display:flex;align-items:center;gap:15px;margin-top:24px;padding:18px 22px;border-radius:18px;background:#eaf5ef;border:1px solid #cae4d9}.resume-icon{display:grid;place-items:center;flex:0 0 45px;height:45px;border-radius:50%;background:#d0e8dc;color:#45836c;font-size:1.5rem}.resume-banner>div{display:flex;flex-direction:column;gap:5px;flex:1}.resume-banner strong{font:700 1.05rem var(--serif)}.resume-banner>div>span{font-size:.83rem;color:#587a69}
/* Chapter gallery */
.portal-section{background:linear-gradient(180deg,#f3ebfa,#f8f1fa);padding:97px 0 116px;position:relative;overflow:hidden}.portal-section:before{content:"✳";position:absolute;top:21px;right:2%;font-size:140px;opacity:.11;color:#9e72c3;transform:rotate(-20deg)}.chapter-intro{display:flex;align-items:end;justify-content:space-between;gap:40px;margin-bottom:37px}.chapter-intro h2{margin:15px 0 16px}.chapter-intro p{color:#766b7c;line-height:1.72;font-size:.95rem;margin:0}.chapters-start{white-space:nowrap;font-size:.88rem;font-weight:900;align-self:end;margin-bottom:11px;text-decoration:none;border-bottom:2px solid #c5a3d7;padding-bottom:9px;display:flex;gap:10px}.chapters-start:hover{color:#8b61b5}.chapter-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.chapter-preview-card{display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #e7dcec;border-radius:22px;text-decoration:none;min-height:370px;box-shadow:0 14px 32px #48325a13;transition:transform .2s,box-shadow .2s}.chapter-preview-card:hover{transform:translateY(-5px);box-shadow:0 23px 42px #48325a26}.chapter-preview-card:first-child{grid-column:span 2;flex-direction:row}.chapter-preview-art{height:174px;overflow:hidden;background:#33273d;position:relative}.chapter-preview-card:first-child .chapter-preview-art{width:56%;height:auto;flex-shrink:0}.chapter-preview-art:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 50%,#0d133227)}.chapter-preview-art img{width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .4s}.chapter-preview-card:hover .chapter-preview-art img{transform:scale(1.045)}.chapter-preview-content{flex:1;padding:23px 25px;display:flex;flex-direction:column;align-items:flex-start}.chapter-preview-card:first-child .chapter-preview-content{padding:36px 33px;justify-content:center}.chapter-preview-num{width:43px;height:43px;border-radius:15px;display:grid;place-items:center;font:800 1.1rem var(--serif);color:#59437a;background:#ede3f8}.chapter-preview-card:nth-child(2) .chapter-preview-num{background:#ffe8d8;color:#ae765a}.chapter-preview-card:nth-child(3) .chapter-preview-num{background:#e0eef9;color:#517996}.chapter-preview-card:nth-child(4) .chapter-preview-num{background:#e5f1e8;color:#5b866d}.chapter-preview-card:nth-child(5) .chapter-preview-num{background:#fff1c8;color:#a98441}.chapter-preview-content h3{font:700 1.52rem/1.2 var(--serif);letter-spacing:-.035em;margin:16px 0 6px}.chapter-preview-card:first-child h3{font-size:1.85rem}.chapter-preview-content p{margin:0;color:#7c7183;font-size:.87rem;line-height:1.55}.chapter-go{margin-top:auto;padding-top:20px;font-size:.82rem;font-weight:900;color:var(--purple)}.loading-cards{background:#fff;border-radius:18px;padding:26px;color:#6d6376;grid-column:1/-1}
/* Characters */
.world-section{padding-block:111px 120px}.center-title{text-align:center;margin-bottom:46px}.center-title h2{margin:14px 0}.center-title>p{color:#7d6e83;margin-top:8px}.world-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.world-card{overflow:hidden;border-radius:23px;border:1px solid #e9e0e8;background:#fff;box-shadow:0 16px 35px #48375d16}.world-card-image{height:234px;background:#271a36;overflow:hidden}.world-card-image img{width:100%;height:100%;object-fit:cover;transition:transform .35s}.world-card:hover img{transform:scale(1.035)}.world-card-info{padding:25px 27px 30px}.tiny-tag{font-size:.66rem;font-weight:900;letter-spacing:.14em;color:#a379a5}.world-card h3{font:700 1.64rem/1.2 var(--serif);letter-spacing:-.035em;margin:9px 0 8px}.world-card p{font-size:.88rem;line-height:1.6;color:#786d7a;margin:0}
/* Author and footer */
.author-wrap{background:linear-gradient(110deg,#f6e6ee,#eee5fa);padding-block:72px}.author-section{position:relative;display:grid;grid-template-columns:200px 1fr 120px;gap:45px;align-items:center}.author-badge{position:relative;display:grid;place-items:center;width:183px;height:183px;border:9px solid white;border-radius:50%;background:#e4cdf2;box-shadow:0 18px 28px #74568820;transform:rotate(-8deg)}.author-badge>span{font:700 9rem/.8 var(--serif);color:#795b9c;letter-spacing:-.09em}.author-badge>i{position:absolute;top:5px;right:23px;font:normal 3.1rem var(--serif);color:#e5a478}.author-copy h2{margin:15px 0}.author-copy p{font-size:.96rem;line-height:1.85;max-width:720px;color:#716577;margin:0}.author-decor{font-size:5.6rem;color:#e4a6b4;position:relative}.author-decor span{position:absolute;left:50px;bottom:-10px;color:#a482be;font-size:3.8rem}.parent-note{display:flex;gap:18px;align-items:flex-start;padding-block:50px 60px}.note-icon{width:51px;height:51px;flex:0 0 51px;display:grid;place-items:center;font-size:1.8rem;color:#b86c8f;background:#f7e6ed;border-radius:18px}.parent-note h3{font:700 1.3rem var(--serif);margin:2px 0 6px}.parent-note p{font-size:.85rem;color:#847787;line-height:1.75;max-width:920px;margin:0}.site-footer{background:#352847;color:#fff8f4}.footer-inner{display:flex;justify-content:space-between;align-items:center;gap:30px;padding:57px 0 34px}.footer-brand{font:700 2.8rem/.9 var(--serif);letter-spacing:-.08em;text-decoration:none}.footer-brand small{display:block;font:900 .57rem var(--sans);letter-spacing:.22em;margin-top:10px}.footer-inner p{color:#c7bad2;font-size:.82rem;margin-top:18px}.footer-links{display:flex;gap:29px;flex-wrap:wrap}.footer-links a{font-size:.82rem;font-weight:900;text-decoration:none;color:#e6dded}.footer-links a:hover{text-decoration:underline}.footer-bottom{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #675573;padding:22px 0 26px;font-size:.74rem;color:#bfb1c7}.footer-bottom span>span{color:#f0a7b7}
/* Interactive reading room — illustrations first */
body.reader-page{--reader-bg:#f8f2ef;--reader-panel:#fffdfb;--reader-ink:#392e50;--reader-muted:#756b81;--reader-edge:#e6dce8;--reader-soft:#f3ecf8;--reader-raised:#ffffff;background:var(--reader-bg);color:var(--reader-ink);min-height:100vh;transition:background .2s,color .2s}
body.reader-page.night{--reader-bg:#171927;--reader-panel:#24243a;--reader-ink:#fff5ed;--reader-muted:#c4b9d1;--reader-edge:#46435c;--reader-soft:#36324e;--reader-raised:#25263d}
.reader-header{position:sticky;top:0;z-index:100;height:76px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px max(22px,calc((100vw - 1280px)/2));background:var(--reader-panel);border-bottom:1px solid var(--reader-edge);box-shadow:0 4px 22px #3427440c}
.reader-logo{display:flex;align-items:center;gap:5px;text-decoration:none;white-space:nowrap}.reader-logo-icon{width:37px;height:37px;background:#e7d8f5;color:#7954a3;display:grid;place-items:center;border-radius:13px;margin-right:5px;font-size:1.3rem}.reader-logo strong{font:700 2rem/.9 var(--serif);letter-spacing:-.08em}.reader-logo small{font-size:.74rem;font-weight:900;letter-spacing:.06em;margin-left:3px}
.reader-book-heading{display:flex;flex-direction:column;text-align:center;gap:2px;min-width:0}.reader-book-heading>span{font-size:.56rem;letter-spacing:.2em;font-weight:900;color:#aa86ad}.reader-book-heading>strong{font:700 1.18rem var(--serif);letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reader-header-actions{display:flex;align-items:center;gap:9px}.reader-icon-button{border:1px solid var(--reader-edge);border-radius:13px;background:var(--reader-raised);display:flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 12px;color:var(--reader-ink);font-size:.78rem;font-weight:900}.reader-icon-button:hover,.tool-btn:hover{background:var(--reader-soft)}.reader-icon-button>span:first-child{font-size:1.15rem}.reader-exit{border-radius:100px;padding:11px 17px;background:#403153;color:#fff;text-decoration:none;display:flex;gap:7px;align-items:center;font-size:.78rem;font-weight:900;white-space:nowrap}.reader-exit:hover{background:#62497a}.reader-progress{height:5px;position:sticky;top:76px;background:#e6d8e9;z-index:90}.reader-progress>div{height:100%;width:0%;background:linear-gradient(90deg,#ebaa9b,#b599d5,#7cb7ae);transition:width .2s}
.reader-layout{max-width:1190px;width:calc(100% - 52px);margin:0 auto;padding:42px 0 62px}.comic-reader{max-width:1110px;margin:0 auto}.reader-page-top{display:flex;justify-content:space-between;align-items:end;gap:24px;margin:0 auto;max-width:900px;padding:0 8px}.chapter-label>span{font-size:.68rem;font-weight:900;letter-spacing:.2em;color:#a57bac}.chapter-label h1{font:700 clamp(2rem,3.6vw,3rem)/1.13 var(--serif);letter-spacing:-.05em;margin:9px 0 0;color:var(--reader-ink)}.reader-toolbar{display:flex;align-items:center;gap:9px;flex-shrink:0}.tool-btn{display:flex;align-items:center;gap:7px;min-height:38px;padding:10px 15px;background:var(--reader-panel);border:1px solid var(--reader-edge);border-radius:11px;color:var(--reader-ink);font-size:.76rem;font-weight:900}.tool-btn>span:first-child{font-size:1.15rem}.page-scene{text-align:left;color:var(--reader-muted);font:italic 1.02rem var(--serif);max-width:900px;margin:9px auto 22px;padding-left:8px}
.comic-area{display:grid;grid-template-columns:58px minmax(0,790px) 58px;justify-content:center;align-items:center;gap:14px;margin:0 auto}.comic-paper{width:100%;max-width:790px;min-width:0;border:8px solid #fffcf8;border-radius:12px;background:#171524;overflow:hidden;box-shadow:0 24px 56px #352a4a26;position:relative;line-height:0}.comic-paper img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;transition:opacity .15s}.comic-paper img.is-changing{opacity:.4}.page-edge{border:1px solid var(--reader-edge);border-radius:50%;background:var(--reader-panel);box-shadow:0 8px 22px #30274413;color:var(--reader-ink);width:55px;height:55px;display:grid;place-items:center;font:400 2.8rem/1 var(--serif)}.page-edge:hover{background:var(--reader-soft);transform:translateY(-2px)}.page-image-loading{position:absolute;inset:0;background:#1a1925;color:white;display:grid;place-items:center;line-height:1.5}.page-image-loading[hidden]{display:none}.comic-area.is-zoomed{display:flex;justify-content:center}.comic-area.is-zoomed .page-edge{display:none}.comic-area.is-zoomed .comic-paper{width:min(1100px,100%);max-width:none;max-height:78vh;overflow:auto}.comic-area.is-zoomed .comic-paper img{width:125%;max-width:none;height:auto}.comic-area:fullscreen{background:#171927;display:flex;justify-content:center;align-items:center;padding:20px}.comic-area:fullscreen .comic-paper{width:auto;height:100%;max-height:95vh;overflow:auto}.comic-area:fullscreen .comic-paper img{width:auto;height:100%;max-height:none}.comic-area:fullscreen .page-edge{display:grid}
.page-navigation{position:sticky;bottom:14px;z-index:50;max-width:820px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:22px auto 0;padding:13px 17px;border-radius:18px;background:var(--reader-panel);border:1px solid var(--reader-edge);box-shadow:0 15px 37px #34283d2e;backdrop-filter:blur(12px)}.nav-button{display:flex;align-items:center;justify-content:center;gap:12px;min-width:160px;min-height:49px;border-radius:12px;border:1px solid var(--reader-edge);background:var(--reader-soft);padding:12px 20px;color:var(--reader-ink);font-weight:900;font-size:.86rem}.nav-next{background:#443257;border-color:#443257;color:#fff}.nav-next:hover{background:#664b7e}.nav-prev:hover{background:#e7dcef}.page-counter{text-align:center;display:flex;flex-direction:column;gap:4px}.page-counter strong{font:700 1.06rem var(--serif)}.page-counter span{font-size:.65rem;color:var(--reader-muted);letter-spacing:.05em;font-weight:900}
.reader-under{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:26px auto 45px}.reader-under button{border:0;background:none;color:var(--reader-muted);font-size:.8rem;font-weight:900;padding:12px 16px;border-radius:10px}.reader-under button:hover{background:var(--reader-soft);color:var(--reader-ink)}.chapter-next-btn span,.bookmark-button span:first-child{color:#be87a9}.page-toc,.story-transcript{max-width:830px;margin-left:auto;margin-right:auto}.page-toc{padding:26px 0 28px;border-top:1px solid var(--reader-edge)}.page-toc-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}.page-toc-title p{font:700 1.25rem var(--serif);margin:0}.page-thumbnails{display:flex;gap:12px;flex-wrap:wrap}.page-thumb{width:78px;height:108px;padding:3px;border:3px solid transparent;background:var(--reader-panel);border-radius:8px;overflow:hidden;cursor:pointer;opacity:.75;transition:opacity .2s,transform .2s}.page-thumb:hover{opacity:1;transform:translateY(-3px)}.page-thumb[aria-current="page"]{border-color:#c994bd;opacity:1}.page-thumb img{height:100%;width:100%;object-fit:cover;border-radius:4px}
.story-transcript{border:1px solid var(--reader-edge);border-radius:17px;background:var(--reader-panel);overflow:hidden;margin-top:12px}.story-transcript>summary{display:flex;align-items:center;gap:13px;padding:20px 24px;cursor:pointer;list-style:none;font-size:.87rem;font-weight:900}.story-transcript>summary::-webkit-details-marker{display:none}.transcript-icon{color:#ae88bc;font-size:1.25rem}.summary-chevron{margin-left:auto;font-size:1.2rem;color:var(--reader-muted)}.story-transcript[open] .summary-chevron{transform:rotate(180deg)}.transcript-content{border-top:1px solid var(--reader-edge);padding:17px 27px 27px}.transcript-content p{line-height:1.8;font-size:.92rem;color:var(--reader-muted);margin:8px 0}.reader-tip{text-align:center;color:var(--reader-muted);font-size:.75rem;margin:25px auto 34px}.reader-tip>span{color:#d396ab;font-size:1.2rem;padding-right:5px}.reading-end{text-align:center;background:linear-gradient(125deg,#f8e5ec,#ebe3f9);padding:31px 30px;border-radius:24px;max-width:830px;margin:30px auto}.reading-end .end-star{font-size:2.5rem;color:#e0a2ad}.reading-end h2{font:700 2.4rem var(--serif);color:#49345f;margin:8px 0}.reading-end p{color:#6f5c79}.reading-end>div{display:flex;gap:13px;justify-content:center;flex-wrap:wrap;margin-top:18px}
/* Chapter picker: off-canvas on all screen sizes, so the page art stays central. */
.chapter-rail{position:fixed;z-index:122;left:0;top:0;height:100dvh;width:min(392px,90vw);overflow:auto;background:var(--reader-panel);box-shadow:25px 0 65px #18132647;padding:30px 23px;transform:translateX(-110%);transition:transform .25s ease;border-right:1px solid var(--reader-edge)}.chapter-rail.is-open{transform:translateX(0)}.rail-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:#171326a3;z-index:121}.rail-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;padding-bottom:25px;border-bottom:1px solid var(--reader-edge)}.rail-heading h2{font:700 1.8rem var(--serif);letter-spacing:-.045em;margin:10px 0 0}.rail-close{width:39px;height:39px;display:grid;place-items:center;border-radius:12px;border:1px solid var(--reader-edge);background:var(--reader-soft);color:var(--reader-ink)}.chapter-list{padding-top:22px;display:grid;gap:9px}.chapter-option{border:1px solid transparent;background:transparent;color:var(--reader-ink);border-radius:14px;padding:13px 10px;display:flex;text-align:left;align-items:center;gap:13px;width:100%}.chapter-option:hover{background:var(--reader-soft)}.chapter-option[aria-current="true"]{background:var(--reader-soft);border-color:var(--reader-edge)}.chapter-option-number{flex:0 0 42px;width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#ede1f7;color:#71568b;font:800 1.1rem var(--serif)}.chapter-option[aria-current="true"] .chapter-option-number{background:#6f538d;color:white}.chapter-option>span:last-child{display:grid;gap:5px}.chapter-option-title{font:700 1.05rem var(--serif);letter-spacing:-.01em}.chapter-option-meta{font-size:.7rem;font-weight:800;color:var(--reader-muted)}.rail-bottom{margin-top:35px;padding-top:22px;border-top:1px dashed var(--reader-edge);color:var(--reader-muted);font:italic .93rem var(--serif);text-align:center}.rail-bottom span{color:#e4a3ad}
.reader-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:32px max(35px,calc((100vw - 1160px)/2));background:var(--reader-panel);border-top:1px solid var(--reader-edge);color:var(--reader-muted);font-size:.8rem}.reader-footer p{margin:0}.reader-footer strong{color:var(--reader-ink)}.reader-footer p>span{color:#d390ac}.reader-footer a{color:var(--reader-ink);font-weight:900;text-decoration:none}.reader-footer a:hover{text-decoration:underline}.no-script{padding:30px;text-align:center;background:#f7e9d0;color:#483452}
/* 1180: tablets, compact laptops */
@media(max-width:1180px){.site-header{padding-left:27px;padding-right:27px}.hero-shell{gap:25px}.hero-copy h1{font-size:clamp(3.6rem,5.6vw,5.1rem)}.library-grid{grid-template-columns:1.3fr .8fr}.library-card-content{padding:28px 24px}.library-book{grid-template-columns:.72fr 1fr}.featured-story{gap:32px}}
@media(max-width:900px){.section-shell{width:min(740px,calc(100% - 44px))}.site-header{min-height:73px}.header-nav{gap:17px}.header-nav a{font-size:.76rem}.header-cta{padding:10px 13px;font-size:.76rem}.hero-shell{width:min(800px,calc(100% - 40px));grid-template-columns:1fr 1fr;gap:15px;padding:45px 5px 70px;min-height:570px}.hero-copy h1{font-size:clamp(3.1rem,5.8vw,4.2rem)}.hero-lead{font-size:.94rem}.hero-credentials{gap:10px;font-size:.68rem}.hero-gallery{min-height:498px}.hero-book{width:min(300px,75%)}.hero-book-titles>strong{font-size:2rem}.hero-backdrop{height:400px}.hero-book-shadow{width:290px;height:410px;top:45px}.story-sticker{width:108px;height:108px;right:0;bottom:20px}.story-sticker strong{font-size:1rem}.featured-story{grid-template-columns:1fr;gap:26px;padding:24px}.featured-art{height:285px}.featured-words{padding:0 13px 15px}.library-grid{grid-template-columns:1fr;max-width:740px}.library-book{grid-template-columns:40% 60%}.next-book{min-height:270px}.chapter-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.chapter-preview-card:first-child{grid-column:span 2}.chapter-preview-card{min-height:330px}.world-cards{gap:13px}.world-card-image{height:155px}.world-card-info{padding:18px}.world-card h3{font-size:1.36rem}.world-card p{font-size:.79rem}.author-section{grid-template-columns:150px 1fr;gap:27px}.author-badge{width:144px;height:144px}.author-badge>span{font-size:7rem}.author-decor{display:none}}
@media(max-width:650px){.hello-bar{font-size:.55rem;padding:7px 10px}.hello-star{margin:0 7px}.site-header{padding:10px 17px;min-height:67px}.brand{min-width:0}.brand-mark{width:39px;height:39px;border-radius:13px}.brand-mark svg{width:35px;height:35px}.brand-type strong{font-size:1.77rem}.brand-type small{font-size:.51rem;margin-top:7px}.header-nav{display:none}.header-cta{font-size:.74rem;padding:10px 14px;min-height:39px}.section-shell{width:calc(100% - 36px)}.hero-shell{display:flex;flex-direction:column;text-align:center;align-items:center;gap:0;padding:53px 0 78px}.hero-copy{width:100%}.hero-eyebrow{font-size:.60rem}.hero-copy h1{font-size:clamp(3.25rem,12vw,4.7rem);margin:24px 0 18px}.hero-lead{font-size:.97rem;line-height:1.75;margin-inline:auto;max-width:480px}.hero-actions{justify-content:center;margin-top:24px}.hero-actions .btn{min-height:47px;padding:14px 17px;font-size:.81rem}.hero-credentials{justify-content:center;margin-top:23px;font-size:.71rem}.hero-gallery{margin-top:22px;width:min(465px,100%);min-height:510px}.hero-book{width:295px}.hero-backdrop{height:410px;width:390px;max-width:95%}.hero-book-shadow{top:51px;left:50%;width:285px;height:403px}.story-sticker{right:2%;bottom:19px}.sparkle-a{left:0;top:40px}.sparkle-b{right:3%;top:20px}.sparkle-c{bottom:60px}.hero-wave{height:42px}.featured-story{margin-top:45px;margin-bottom:85px;gap:20px;border-radius:23px}.featured-art{height:238px}.featured-words h2{font-size:2.6rem}.section-title-block h2,.chapter-intro h2,.author-copy h2{font-size:clamp(2.4rem,10vw,3.3rem)}.section-heading-row{display:block}.section-heading-row p{margin:12px 0 0}.library-section{padding-bottom:85px}.library-book{grid-template-columns:38% 62%;min-height:310px}.library-card-cover{min-height:310px}.library-card-content{padding:22px 18px}.library-card-content h3{font-size:1.6rem;margin:13px 0}.library-card-content>p{font-size:.79rem;line-height:1.6}.book-stats{font-size:.68rem;margin:15px 0;gap:6px}.btn-card{min-height:42px;padding:11px 14px;font-size:.76rem}.status-pill{font-size:.50rem;padding:7px 9px}.next-book{min-height:260px}.resume-banner{flex-wrap:wrap}.resume-banner>a{margin-left:59px}.portal-section{padding:70px 0 80px}.chapter-intro{display:block}.chapters-start{display:inline-flex;margin-top:22px}.chapter-cards{grid-template-columns:1fr;gap:14px}.chapter-preview-card,.chapter-preview-card:first-child{grid-column:auto;flex-direction:row;min-height:150px}.chapter-preview-art,.chapter-preview-card:first-child .chapter-preview-art{width:38%;height:auto;min-height:157px;flex:0 0 38%}.chapter-preview-content,.chapter-preview-card:first-child .chapter-preview-content{padding:17px 16px;justify-content:center}.chapter-preview-num{width:30px;height:30px;border-radius:10px;font-size:.9rem}.chapter-preview-content h3,.chapter-preview-card:first-child h3{font-size:1.22rem;margin:8px 0 5px}.chapter-preview-content p{font-size:.74rem}.chapter-go{padding-top:11px;font-size:.73rem}.world-section{padding-block:83px 88px}.world-cards{grid-template-columns:1fr;gap:15px}.world-card{display:grid;grid-template-columns:43% 57%;min-height:160px}.world-card-image{height:100%;min-height:156px}.world-card-info{padding:18px}.world-card h3{font-size:1.36rem}.author-wrap{padding:55px 0}.author-section{display:flex;flex-direction:column;gap:20px;text-align:center}.author-badge{width:113px;height:113px;border-width:6px}.author-badge>span{font-size:5.5rem}.author-badge>i{font-size:2.1rem}.author-copy h2{margin:13px 0}.author-copy p{font-size:.88rem}.parent-note{padding:35px 0 48px;gap:12px}.parent-note h3{font-size:1.18rem}.note-icon{width:40px;height:40px;flex-basis:40px}.footer-inner{display:block;padding-block:41px 25px}.footer-links{margin-top:26px;gap:20px}.footer-bottom{flex-direction:column;gap:8px;font-size:.68rem}.reader-header{height:65px;padding:8px 13px}.reader-logo-icon{height:29px;width:29px;margin-right:1px}.reader-logo strong{font-size:1.54rem}.reader-logo small{display:none}.reader-book-heading>span{display:none}.reader-book-heading>strong{font-size:.92rem;max-width:128px}.reader-icon-button{width:37px;height:37px;min-height:0;padding:0}.head-label{display:none}.reader-header-actions{gap:5px}.reader-exit{min-height:37px;padding:7px 10px}.exit-label{display:none}.reader-progress{top:65px}.reader-layout{width:calc(100% - 18px);padding:25px 0 40px}.reader-page-top{padding:0 7px;gap:7px;align-items:flex-start}.chapter-label>span{font-size:.58rem}.chapter-label h1{font-size:clamp(1.45rem,5.2vw,2rem);margin:7px 0 0}.reader-toolbar{gap:5px}.tool-btn{min-height:34px;padding:7px 8px}.tool-btn>span:not(:first-child){display:none}.page-scene{padding-left:7px;margin-top:7px;margin-bottom:15px;font-size:.87rem}.comic-area{display:block}.comic-paper{width:100%;max-width:650px;border-width:4px;margin:0 auto;border-radius:7px;box-shadow:0 13px 30px #28203925}.page-edge{display:none}.page-navigation{gap:7px;bottom:7px;margin:13px 3px 0;padding:9px;border-radius:14px}.nav-button{min-width:0;min-height:44px;padding:10px 13px;border-radius:10px;font-size:.78rem;gap:7px}.page-counter strong{font-size:.83rem}.page-counter span{font-size:.55rem}.reader-under{margin:15px auto 32px}.reader-under button{font-size:.73rem;padding:9px 7px}.page-toc{padding:17px 5px}.page-toc-title p{font-size:1.03rem}.page-thumb{width:62px;height:88px}.story-transcript{margin:0 4px}.story-transcript>summary{padding:16px 14px;font-size:.79rem}.transcript-content{padding:16px}.reader-tip{font-size:.7rem;line-height:1.6}.reader-footer{display:block;padding:26px 17px;font-size:.72rem;line-height:1.6}.reader-footer a{display:inline-block;margin-top:12px}}
@media(max-width:390px){.hero-copy h1{font-size:3.1rem}.hero-actions .btn{width:100%;max-width:300px}.hero-credentials .dot-divider{display:none}.hero-credentials{flex-direction:column;gap:5px}.hero-gallery{min-height:440px}.hero-book{width:255px}.hero-book-shadow{width:249px;height:350px;top:44px}.hero-book-titles>small{font-size:.46rem}.hero-book-titles>strong{font-size:1.75rem}.hero-backdrop{height:350px}.story-sticker{width:95px;height:95px;bottom:12px}.story-sticker strong{font-size:.9rem}.library-book{display:block}.library-card-cover{height:300px;min-height:300px}.library-card-cover>img{object-position:center 48%}.library-card-content{padding:24px}.book-stats{gap:12px}.reader-book-heading>strong{max-width:105px;font-size:.81rem}.page-counter strong{font-size:.72rem}.nav-button{font-size:.7rem;padding:9px 8px}.nav-button>span:first-child{font-size:.88rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Mobile-first story focus: show the illustrated book cover immediately. */
@media(max-width:650px){
  .hero-shell{flex-direction:column-reverse;padding-top:20px;gap:0}
  .hero-gallery{margin-top:0;min-height:445px;max-height:465px}
  .hero-book{width:260px}
  .hero-book-shadow{width:254px;height:368px;top:35px}
  .hero-backdrop{height:370px;width:350px}
  .story-sticker{width:98px;height:98px;bottom:23px;right:5%}
  .hero-copy{margin-top:18px}
  .hero-copy h1{font-size:clamp(2.95rem,11.3vw,4rem);margin:19px 0 15px}
  .hero-lead{font-size:.93rem;line-height:1.6}
}
@media(max-width:390px){
  .hero-gallery{min-height:410px;max-height:430px}
  .hero-book{width:245px}
  .hero-book-shadow{width:239px;height:347px;top:28px}
  .hero-backdrop{height:337px}
  .hero-copy h1{font-size:2.98rem}
}
/* The offline-friendly 404 page uses external styles only, as required by CSP. */
.notfound-main{max-width:680px;text-align:center;min-height:100vh;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:40px 0}
.notfound-art{font-size:5rem;color:#af8ace}
.notfound-main h1{font:700 clamp(2.5rem,9vw,4.5rem)/1.1 var(--serif);letter-spacing:-.05em}
.notfound-main p{font-size:1.1rem;color:#796a88;line-height:1.7}

/* Link to the simple, no-JavaScript story reader (supports offline file://). */
.simple-mode-link{font-size:.79rem;margin:18px 0 0;color:#755f84}.simple-mode-link a{color:inherit;text-decoration:none}.simple-mode-link strong{border-bottom:1px solid currentColor;padding-bottom:2px}.simple-mode-link a:hover{color:#6844ab}
