@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#39493d;background:#f5f2e9;font-synthesis:none}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #c48e5c;outline-offset:2px}[hidden]{display:none!important}
.shell{min-height:100vh}.topbar{height:80px;max-width:1400px;margin:auto;padding:0 5vw;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:11px;color:#314936;text-decoration:none;font-family:Fraunces,Georgia,serif;font-size:23px;font-weight:600;letter-spacing:-.8px}.brand-mark{display:grid;place-items:center;width:37px;height:37px;border-radius:11px;background:#44684e;color:#f7e2aa;font-family:Georgia,serif;font-size:26px}.header-actions{display:flex;align-items:center;gap:24px}.browser-note{color:#8d9a8e;font-size:12px}.profile-button{display:flex;align-items:center;gap:9px;padding:6px 11px 6px 6px;border:1px solid #e1e5da;border-radius:100px;background:#fffefa;color:#405b46;font-size:12px;font-weight:700}.avatar{width:31px;height:31px;border-radius:50%;background:#e5eddf;color:#527357;display:grid;place-items:center;font-weight:700}.profile-button>span:last-child{color:#9dad9d}
main{max-width:1400px;margin:auto;padding:0 5vw 80px}.hero{position:relative;min-height:370px;overflow:hidden;display:flex;align-items:center;border-radius:22px;background:#e5ebde;isolation:isolate}.hero-copy{position:relative;z-index:4;padding:55px 7%;max-width:650px}.eyebrow{margin:0;color:#7f9576;font-size:11px;font-weight:700;letter-spacing:2px}.hero h1{margin:16px 0 13px;font:500 clamp(48px,5.4vw,82px)/1.05 Fraunces,Georgia,serif;letter-spacing:-3px;color:#314d3a}.hero h1 span{color:#d09b66}.hero-copy>p:not(.eyebrow){max-width:430px;color:#6e826f;font-size:17px;line-height:1.6}.primary{border:0;border-radius:10px;background:#456c50;color:#fff;padding:13px 20px;font-weight:700;box-shadow:0 5px 12px #31533a22}.primary:hover{background:#365a40}.hero .primary{margin-top:14px}.hero .primary span{margin-left:18px}.hero-art{position:absolute;inset:0 0 0 auto;width:46%;min-width:400px}.moon{position:absolute;right:31%;top:55px;width:73px;height:73px;border-radius:50%;background:#f5dfae;box-shadow:0 0 0 17px #f5dfae44,0 0 0 40px #f5dfae17}.hero-star{position:absolute;color:#91a986}.star-one{top:70px;right:17%;font-size:22px}.star-two{top:130px;left:12%;font-size:18px}.hill{position:absolute;border-radius:50%}.hill-back{width:560px;height:330px;right:-100px;bottom:-225px;background:#d5e2cf}.hill-front{width:650px;height:320px;right:-200px;bottom:-245px;background:#c4d5bd}.book{position:absolute;right:27%;bottom:-26px;width:150px;height:200px;transform:rotate(8deg);border:10px solid #54745c;border-radius:11px 16px 6px 6px;background:#6e8b72;box-shadow:-23px 19px 0 -4px #bb8e67,-30px 22px 0 -2px #a97952,12px 15px 28px #51664b33}.book:before{content:'';position:absolute;left:12px;top:13px;bottom:13px;border-left:1px solid #b1c3ac}.book span{position:absolute;top:47px;left:34px;color:#f3e7c8;font:italic 24px/1.16 Fraunces,Georgia,serif}.spark{position:absolute;right:17%;bottom:75px;color:#f8e6b6;font-size:26px}
.library{padding-top:56px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px}.section-heading h2,.import-section h2{margin:7px 0;font:500 38px/1.2 Fraunces,Georgia,serif;letter-spacing:-1.2px;color:#314d3a}.section-heading p:last-child,.import-section p:last-child{margin:0;color:#8b9888;font-size:14px}.count{padding-bottom:4px;color:#9aa697;font-size:12px;white-space:nowrap}.filters{display:flex;gap:12px;margin:26px 0 20px}.search,.select-wrap{height:45px;display:flex;align-items:center;gap:10px;border:1px solid #e1e4d9;border-radius:10px;background:#fffefa;color:#799079}.search{flex:1;padding:0 15px}.search span{font-size:24px;line-height:1}.search input{width:100%;border:0;outline:none;background:transparent;color:#39493d;font-size:14px}.select-wrap{padding:0 12px;font-size:12px}.select-wrap span{color:#9aa697}.select-wrap select{border:0;background:transparent;color:#47644b;outline:none;font-size:12px;font-weight:700}.story-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.story-card{min-width:0;min-height:232px;text-align:left;display:flex;flex-direction:column;padding:19px;border:1px solid #e6e6dc;border-radius:15px;background:#fffefa;color:#39493d;box-shadow:0 3px 8px #6071550b;transition:transform .16s,box-shadow .16s,border-color .16s}.story-card:hover{transform:translateY(-3px);border-color:#c6d4c1;box-shadow:0 13px 30px #6071551a}.card-top{display:flex;align-items:start;justify-content:space-between}.card-art{width:51px;height:51px;display:grid;place-items:center;border-radius:13px;font-size:25px}.art-blue{background:#e4eced;color:#6d9095}.art-sun{background:#f7ebda;color:#bd8c59}.art-forest{background:#e4eddd;color:#6b8968}.age-tag{font-size:10px;font-weight:700;letter-spacing:1px;color:#9ca99b}.card-title{margin:16px 0 7px;font:500 20px/1.18 Fraunces,Georgia,serif;letter-spacing:-.3px;color:#344c3b}.card-summary{flex:1;color:#8c988a;font-size:12px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.card-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:18px;padding-top:12px;border-top:1px solid #edf0e8;color:#839784;font-size:11px}.card-foot>span:last-child{white-space:nowrap;color:#9fa99c}.play-dot{margin-left:5px;color:#557b5c}.empty-state{padding:45px;text-align:center;border:1px dashed #cdd9c8;border-radius:12px;color:#799079}.import-section{margin-top:58px;padding:26px 30px;display:flex;align-items:center;justify-content:space-between;gap:22px;border-radius:16px;background:#ebeee5}.import-section h2{font-size:27px}.import-button{display:inline-flex;align-items:center;justify-content:center;min-height:43px;padding:10px 17px;border:1px solid #aabfa9;border-radius:9px;background:#fffefa;color:#47684e;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap}.import-button:hover{background:#f6faf4}.import-button input{display:none}
dialog{border:0;padding:0;background:#fffefa;color:#39493d;box-shadow:0 25px 80px #20352747}dialog::backdrop{background:#20302699;backdrop-filter:blur(4px)}.reader-dialog{width:min(1180px,calc(100vw - 40px));height:min(90vh,900px);max-height:90vh;border-radius:18px;overflow:auto}.reader-layout{display:grid;grid-template-columns:minmax(0,1fr) 315px;min-height:100%}.reader-main{min-width:0;padding:35px 6%;}.text-button{border:0;background:none;color:#648168;font-weight:700}.back-button{padding:0;margin-bottom:36px;font-size:13px}.reader-title-row{display:flex;align-items:start;justify-content:space-between;gap:18px}.reader-title-row h2{margin:9px 0;font:500 clamp(29px,3vw,44px)/1.13 Fraunces,Georgia,serif;color:#314d3a;letter-spacing:-1px}.reader-title-row p:last-child{max-width:620px;margin:0 0 31px;color:#8b9a89;font-size:14px}.favorite-button{flex:none;width:40px;height:40px;border:1px solid #dce5d8;border-radius:50%;background:#f6f9f3;color:#7c987a;font-size:26px;line-height:1}.favorite-button[aria-pressed=true]{color:#c8965a}.chapter-head{display:flex;justify-content:space-between;padding-top:25px;border-top:1px solid #e6ebe3;color:#97aa96;font-size:11px;font-weight:700;letter-spacing:1.4px}.reader-main h3{margin:15px 0 22px;font:500 27px Fraunces,Georgia,serif;color:#3e5a44}.story-text{white-space:pre-wrap;font:18px/1.83 Fraunces,Georgia,serif;color:#4c584b;max-width:700px}.player-panel{position:sticky;top:0;align-self:start;min-height:100%;padding:40px 28px;background:#eef2e9;border-left:1px solid #e0e8db}.player-icon{width:48px;height:48px;display:grid;place-items:center;margin-bottom:25px;border-radius:14px;background:#dce9d7;color:#57775b;font-size:27px}.player-panel h3{margin:8px 0 5px;font:500 25px Fraunces,Georgia,serif;color:#37533e}.player-description{margin:0 0 25px;color:#819482;font-size:12px;line-height:1.5}.player-panel label{display:block;margin:15px 0 7px;color:#7c907d;font-size:11px;font-weight:700}.player-panel select{width:100%;height:40px;padding:0 10px;border:1px solid #d7e1d3;border-radius:8px;background:#fffefa;color:#47624b;font-size:12px}.player-actions{display:flex;gap:8px;margin-top:22px}.player-actions .primary{flex:1;padding:10px}.secondary{padding:10px;border:1px solid #cfddcb;border-radius:9px;background:#fffefa;color:#537258;font-size:12px;font-weight:700}.secondary:hover{background:#f6faf4}#player-status{min-height:30px;color:#829482;font-size:11px;line-height:1.4}.chapter-nav{display:flex;gap:8px;margin:17px 0 20px}.chapter-nav button{flex:1}.chapter-list{border-top:1px solid #dce6d9}.chapter-choice{width:100%;display:flex;align-items:center;gap:10px;padding:11px 2px;border:0;border-bottom:1px solid #dce6d9;background:transparent;color:#708671;text-align:left;font-size:12px}.chapter-choice.active{color:#345f3e;font-weight:700}.chapter-choice>span:nth-child(2){flex:1}.chapter-index{width:23px;height:23px;display:grid;place-items:center;border-radius:50%;background:#dce8d8;color:#638266;font-size:10px}
.profile-dialog{width:min(440px,calc(100vw - 30px));border-radius:17px;padding:27px}.dialog-head{display:flex;justify-content:space-between}.dialog-head h2{margin:6px 0 18px;font:500 29px Fraunces,Georgia,serif}.close-button{width:30px;height:30px;border:0;background:transparent;color:#95a493;font-size:25px}.profile-list{display:grid;gap:8px;margin-bottom:19px}.profile-choice{width:100%;display:flex;align-items:center;gap:11px;padding:9px;border:1px solid #e2e9df;border-radius:10px;background:#f9fbf7;text-align:left}.profile-choice.active{border-color:#91ad91;background:#edf4eb}.profile-choice>span:nth-child(2){flex:1}.profile-choice strong,.profile-choice small{display:block}.profile-choice strong{color:#465f4b;font-size:13px}.profile-choice small{margin-top:2px;color:#9aaa99;font-size:11px}.profile-check{color:#5c835f}.empty-profiles,.privacy-note{color:#95a594;font-size:12px;line-height:1.5}.profile-dialog form{padding-top:15px;border-top:1px solid #e5ebe2}.profile-dialog form>label{display:block;margin-bottom:9px;color:#627c66;font-size:12px;font-weight:700}.profile-fields{display:flex;gap:7px}.profile-fields input,.profile-fields select{min-width:0;height:41px;padding:0 10px;border:1px solid #dce5d9;border-radius:8px;background:#fffefa;color:#48604d;font-size:12px}.profile-fields input{flex:1}.profile-fields .primary{padding:0 13px}.privacy-note{margin:17px 0 0}.toast{position:fixed;z-index:20;left:50%;bottom:23px;transform:translate(-50%,15px);max-width:min(500px,calc(100vw - 30px));padding:12px 19px;border:1px solid #dce7d7;border-radius:9px;background:#fffefa;color:#456b4b;box-shadow:0 9px 26px #23472b2b;opacity:0;pointer-events:none;transition:.2s;font-size:13px}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1100px){.story-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero-art{opacity:.75}.reader-layout{grid-template-columns:minmax(0,1fr) 290px}}
@media(max-width:760px){.topbar{height:68px}.browser-note{display:none}.hero{min-height:305px}.hero-copy{padding:38px 6%}.hero-copy>p:not(.eyebrow){max-width:340px}.hero-art{right:-170px;opacity:.45}.library{padding-top:39px}.story-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filters{flex-wrap:wrap}.search{flex-basis:100%}.select-wrap{flex:1}.select-wrap select{flex:1}.reader-dialog{width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.reader-layout{display:flex;flex-direction:column}.reader-main{padding:25px 6%}.player-panel{position:static;order:-1;padding:22px 6%;border-left:0;border-bottom:1px solid #e0e8db;min-height:0}.player-panel .player-icon,.player-panel .eyebrow,.player-panel h3,.player-description{display:none}.player-panel label{display:inline-block;margin:0 0 6px}.player-panel select{margin-bottom:9px}.player-actions{margin-top:9px}.chapter-list{max-height:125px;overflow:auto}.back-button{margin-bottom:18px}}
@media(max-width:520px){.topbar,main{padding-left:17px;padding-right:17px}.brand{font-size:18px}.brand-mark{width:31px;height:31px;font-size:21px}.profile-button{max-width:145px}.profile-button #profile-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.hero{min-height:290px}.hero h1{font-size:46px;letter-spacing:-2px}.hero-copy>p:not(.eyebrow){font-size:14px;max-width:260px}.hero-art{right:-240px}.section-heading h2{font-size:31px}.section-heading p:last-child{font-size:12px}.story-grid{gap:9px}.story-card{min-height:210px;padding:12px;border-radius:11px}.card-art{width:39px;height:39px;font-size:19px}.age-tag{font-size:8px}.card-title{font-size:16px;margin-top:13px}.card-summary{font-size:11px}.card-foot{font-size:9px}.import-section{flex-direction:column;align-items:flex-start;padding:22px}.import-section h2{font-size:24px}.reader-main h3{font-size:24px}.story-text{font-size:17px}.profile-fields{flex-wrap:wrap}.profile-fields input{flex-basis:100%}.profile-fields select{flex:1}}
.remove-story{margin:-13px 0 20px;padding:0;border:0;background:transparent;color:#9e705b;font-size:12px;text-decoration:underline}.site-footer{display:flex;justify-content:space-between;gap:20px;padding:22px 2px;color:#9ba99b;font-size:11px}.site-footer a{color:#708f71}@media(max-width:520px){.site-footer{flex-direction:column;gap:5px}}
.player-panel input[type=range]{width:100%;margin:2px 0 16px;accent-color:#6b9268}.player-panel label output{float:right;color:#6b9268}.family-voice-button{width:100%;margin:3px 0 8px}.remove-voice-button{display:block;padding:0;margin:0 0 16px;border:0;background:transparent;color:#a66653;text-decoration:underline;cursor:pointer}.remove-voice-button[hidden]{display:none}.profile-dialog form#voice-form{display:grid;gap:10px}.profile-dialog form#voice-form input:not([type=checkbox]){width:100%;box-sizing:border-box}.consent-check{display:flex;align-items:center;gap:8px}.privacy-note{font-size:12px;color:#657365;line-height:1.5}
.record-status{font-size:12px;color:#657365;line-height:1.4;margin:0}.profile-dialog #record-voice{width:100%}
.record-passage{padding:14px 16px;border-radius:10px;background:#f0f5e9;color:#344c39;font-size:14px;line-height:1.5}.record-passage p{margin:7px 0 0;font-size:16px}
