/* A restrained motion system shared by discovery, navigation, and dialogs. */
:root{--ease-out:cubic-bezier(.22,1,.36,1);--ease-slide:cubic-bezier(.65,0,.35,1)}
html{scroll-padding-top:100px}body{overflow-x:clip}button,a,input,select{-webkit-tap-highlight-color:transparent}a,button,select{touch-action:manipulation}a:focus-visible,button:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:4px}.search:focus-within,.chapter-search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 15%,transparent)}.search{transition:border-color .18s,box-shadow .18s;background:var(--panel)}.search input::-webkit-search-cancel-button{display:none}.clear-search{flex:none;width:26px;height:26px;border:0;background:var(--panel2);color:var(--muted);border-radius:50%;font-size:19px;padding:0}.clear-search[hidden]{display:none}.button,.icon,.carousel-control,.filter{transition:background .2s,border-color .2s,transform .16s var(--ease-out),box-shadow .2s,color .2s}.button:active,.icon:active,.carousel-control:active,.filter:active{transform:scale(.96)}.button.primary{box-shadow:0 4px 14px #9a70d51a}.button.primary:hover{box-shadow:0 7px 22px #9a70d533}.card{position:relative}.card .cover{transition:transform .35s var(--ease-out),box-shadow .35s,border-color .35s}.card:hover .cover{transform:translateY(-5px);box-shadow:0 13px 25px #0003,inset 0 0 0 1px #ffffff25}.card:active .cover{transform:translateY(-1px) scale(.985)}.card h3{transition:color .2s;min-height:39px}.card:hover h3{color:var(--accent)}.cover .cover-title{font-size:clamp(12px,1.12vw,17px);display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;max-width:100%;overflow-wrap:normal;letter-spacing:.15px}.cover:after{inset:8px 8px 8px 11px;border-left-color:#ffffff42}.cover:before{background:radial-gradient(ellipse at 50% 10%,#ffffff22,transparent 70%)}.cover .sigil{top:14%;font-size:52px;opacity:.55}.card-saved{position:absolute;top:12px;left:12px;background:#111217cc;color:#e6c8ff;border:1px solid #ffffff20;border-radius:50%;width:25px;height:25px;display:grid;place-items:center;font-size:11px}.filter{display:flex;align-items:center;gap:8px;min-height:38px}.filter-count{font-size:11px;color:var(--muted)}.filter.active .filter-count{color:inherit}.filters .filter:focus-visible{outline-offset:1px}.update,.pick{transition:background .2s,color .2s,transform .2s}.update:hover,.pick:hover{background:color-mix(in srgb,var(--accent) 5%,transparent);color:var(--accent)}.update:active,.pick:active{transform:translateX(2px)}.mobile-nav a{position:relative;transition:color .2s,background .2s,transform .15s}.mobile-nav a:active{transform:scale(.92)}.mobile-nav a.active:before{content:'';position:absolute;top:0;width:24px;height:2px;background:var(--accent);border-radius:0 0 3px 3px}.mobile-nav a:hover{background:color-mix(in srgb,var(--accent) 5%,transparent)}header nav a{position:relative;transition:color .2s}header nav a:after{content:'';position:absolute;bottom:-27px;left:0;right:0;height:2px;background:var(--accent);transform:scaleX(0);transform-origin:center;transition:transform .25s var(--ease-out)}header nav a.active:after{transform:scaleX(1)}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.feature-carousel{background:var(--panel);border:1px solid #4b3b58;border-radius:16px;overflow:hidden;position:relative;box-shadow:0 14px 45px #0002}.feature-window{overflow:hidden;touch-action:pan-y}.feature-track{display:flex;transition:transform .65s var(--ease-slide);will-change:transform}.feature-slide.hero{flex:0 0 100%;min-width:0;min-height:340px;border:0;border-radius:0;padding:32px 34px;display:grid;grid-template-columns:minmax(0,1fr) 148px;gap:28px;background:radial-gradient(ellipse at 95% 20%,color-mix(in srgb,var(--feature-glow) 13%,transparent),transparent 65%),linear-gradient(130deg,#252031,#1a1b26)}.feature-slide.hero:after{content:'';width:310px;height:310px;border:1px solid #ffffff08;border-radius:50%;right:-90px;bottom:-100px;box-shadow:0 0 0 45px #ffffff03,0 0 0 90px #ffffff02}.feature-copy{position:relative;z-index:1}.feature-adult{font-size:9px;letter-spacing:0;border:1px solid #ffffff20;color:#c7b9d8;padding:3px 5px;border-radius:4px;margin-left:5px}.feature-slide.hero h1{font-size:clamp(24px,2.1vw,32px);line-height:1.38;margin:15px 0 12px;max-width:540px;letter-spacing:-.5px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.feature-slide.hero .feature-meta{font-size:11px;color:#c4afda;margin:0 0 14px;line-height:1.6}.feature-meta span{margin:0 6px;opacity:.6}.feature-slide.hero .feature-description{font-size:12px;line-height:1.8;color:#b2aabc;max-width:460px;margin:0 0 24px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.feature-slide .buttons{align-items:center;gap:18px}.feature-details{color:#c9c0d5;font-size:12px;border-bottom:1px solid #ffffff35;padding:5px 0;transition:border-color .2s,color .2s}.feature-details:hover{color:#fff;border-color:#fff}.feature-cover{display:block;position:relative;z-index:1;transition:transform .35s var(--ease-out)}.feature-cover:hover{transform:translateY(-5px) rotate(-2deg)}.feature-slide.hero .cover{width:148px;height:218px;transform:rotate(5deg);box-shadow:0 20px 40px #0006;padding:17px 12px}.feature-slide .cover .cover-title{font-size:14px}.feature-slide .cover .sigil{font-size:50px}.feature-controls{display:flex;align-items:center;padding:10px 18px;border-top:1px solid #ffffff0c;gap:8px;background:#15141fc9;color:#d6c6e9;min-height:56px}.feature-dots{display:flex;gap:2px;margin-right:auto}.feature-dot{width:29px;height:32px;background:none;border:0;padding:5px;display:grid;place-items:center;border-radius:5px}.feature-dot span{display:block;background:#655571;width:6px;height:6px;border-radius:6px;transition:width .3s,background .3s}.feature-dot[aria-pressed=true] span{width:19px;background:#cfb1f3}.feature-count{font-size:10px;color:#a89bb6;margin-right:8px;font-variant-numeric:tabular-nums}.carousel-control{border:1px solid #ffffff17;border-radius:7px;background:#ffffff04;width:33px;height:33px;font-size:15px;color:#d6c6e9}.carousel-control:hover{background:#ffffff12;border-color:#ffffff35}.carousel-control#feature-pause{font-size:11px}.resume-card{margin-top:19px;padding:19px 20px;display:flex;align-items:center;gap:16px;position:relative;background:var(--panel);border:1px solid var(--line);border-radius:11px;overflow:hidden;transition:background .25s,border-color .25s,transform .2s}.resume-card:hover{border-color:var(--accent);background:var(--panel2)}.resume-icon{width:37px;height:37px;border-radius:10px;background:var(--soft);display:grid;place-items:center;font-size:23px;color:var(--accent);flex:none}.resume-label{font-size:8px;letter-spacing:1.5px;color:var(--accent)}.resume-card h3{font-size:13px;line-height:1.5;margin:4px 0;font-weight:500}.resume-card p{font-size:10px;color:var(--muted);margin:0}.resume-card p span{padding:0 5px}.resume-arrow{margin-left:auto;color:var(--accent);font-size:21px;transition:transform .2s}.resume-card:hover .resume-arrow{transform:translateX(4px)}.resume-progress{position:absolute;left:0;bottom:0;height:2px;background:var(--accent);opacity:.5}
.library-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:7px 0 20px;color:var(--muted);font-size:12px}.library-toolbar p{margin:0;line-height:1.6}.library-toolbar label{display:flex;align-items:center;gap:8px;white-space:nowrap}.library-toolbar select{background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:7px;padding:9px 10px;font-size:11px}.empty{grid-column:1/-1;width:100%;padding:45px 24px;font-size:12px}.empty h3{color:var(--text);font:500 21px var(--serif);margin:12px 0}.empty p{line-height:1.8;margin:10px 0 20px}.empty-icon{font-size:35px;color:var(--accent)}.empty .button{margin-top:3px}.chapter-tools{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:17px 0}.chapter-search{display:flex;align-items:center;gap:12px;max-width:430px;width:100%;background:var(--panel);border:1px solid var(--line);border-radius:9px;padding:11px 14px;transition:border-color .2s,box-shadow .2s}.chapter-search span{color:var(--muted);font-size:22px;line-height:1}.chapter-search input{font-size:12px}.search input:focus-visible,.chapter-search input:focus-visible{outline:0}#chapter-results{font-size:11px;color:var(--muted);white-space:nowrap}.chapter-row{align-items:center;border-radius:5px;transition:color .2s,background .2s,transform .2s;padding:15px 8px}.chapter-row:hover{background:var(--panel);transform:translateX(3px)}.chapter-row .chapter-number{flex:none;min-width:33px;font-variant-numeric:tabular-nums}.chapter-row .chapter-name{color:var(--text);font-size:12px;line-height:1.6;flex:1}.chapter-row:hover .chapter-name{color:var(--accent)}.chapter-arrow{margin-left:auto;transition:transform .2s}.chapter-row:hover .chapter-arrow{transform:translateX(3px)}.last-read-tag{font-size:9px!important;white-space:nowrap;color:var(--accent)!important;background:var(--soft);padding:4px 6px;border-radius:4px}.reader-tools{backdrop-filter:blur(12px);background:color-mix(in srgb,var(--panel) 94%,transparent)}.reader-top>a{line-height:1.6}.reading-page .demo-label{display:none}.reading-page main{margin-top:27px}.reader-tools button:focus-visible{outline-offset:2px}.reader-footer .button{justify-content:center;white-space:nowrap}.reader-promo a{padding:7px}dialog[open]{animation:dialog-in .24s var(--ease-out)}dialog::backdrop{animation:backdrop-in .2s}#account-form input:not([type=checkbox]):focus{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 10%,transparent);outline:none}#toast{transition:opacity .2s,transform .25s var(--ease-out);transform:translate(-50%,10px);max-width:min(520px,90vw);text-align:center;line-height:1.6}#toast.show{transform:translate(-50%,0)}.click-ripple{position:fixed;z-index:100;pointer-events:none;border:1px solid var(--accent);border-radius:50%;width:18px;height:18px;transform:translate(-50%,-50%);animation:ripple .45s var(--ease-out) forwards}.view-enter{animation:view-in .3s var(--ease-out)}.items-enter .card{animation:card-in .3s var(--ease-out) both}.items-enter .card:nth-child(2){animation-delay:.025s}.items-enter .card:nth-child(3){animation-delay:.05s}.items-enter .card:nth-child(4){animation-delay:.075s}.items-enter .card:nth-child(n+5){animation-delay:.1s}
@keyframes ripple{from{opacity:.5;transform:translate(-50%,-50%) scale(.6)}to{opacity:0;transform:translate(-50%,-50%) scale(3.2)}}@keyframes view-in{from{opacity:.5;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes card-in{from{opacity:.65;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes dialog-in{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}@keyframes backdrop-in{from{opacity:0}to{opacity:1}}
@media(hover:none){.card:hover .cover{transform:none}.card:active .cover{transform:scale(.985)}.chapter-row:hover{transform:none}}
@media(max-width:1000px){.feature-slide.hero{grid-template-columns:minmax(0,1fr) 155px;min-height:320px}.feature-slide.hero h1{font-size:29px}.feature-slide.hero .cover{width:155px;height:225px}.cover .cover-title{font-size:15px}}
@media(max-width:700px){html{scroll-padding-top:90px}main{margin-bottom:38px}.feature-carousel{border-radius:13px}.feature-slide.hero{min-height:315px;padding:24px 19px;grid-template-columns:minmax(0,1fr) 84px;gap:14px;align-items:center}.feature-slide.hero h1{font-size:21px;letter-spacing:-.4px;line-height:1.4;-webkit-line-clamp:4;margin:14px 0 11px}.feature-slide.hero .feature-description{font-size:10px;line-height:1.7;-webkit-line-clamp:2;margin-bottom:19px}.feature-slide.hero .feature-meta{font-size:10px;margin-bottom:11px}.feature-slide.hero .cover{width:84px;height:139px;padding:10px 6px;transform:rotate(4deg)}.feature-slide .cover .cover-title{font-size:9px;line-height:1.4;-webkit-line-clamp:5}.feature-slide .cover .sigil{font-size:35px;top:13%}.feature-slide .cover .cover-author{font-size:5px;letter-spacing:1px;margin-top:8px}.feature-slide .buttons{gap:10px}.feature-slide .button{font-size:10px;padding:11px}.feature-details{font-size:10px;white-space:nowrap}.feature-slide .eyebrow{font-size:7px;letter-spacing:1.2px;gap:5px}.feature-slide .eyebrow:before{width:12px}.feature-adult{font-size:7px;padding:2px 3px;margin-left:1px}.feature-controls{padding:8px 13px;gap:7px;min-height:54px}.feature-dot{width:27px;height:34px}.feature-count{margin-right:1px;font-size:9px}.carousel-control{width:32px;height:34px}.resume-card{padding:17px 14px;gap:11px}.resume-card h3{font-size:12px}.resume-label{font-size:7px}.resume-icon{width:31px;height:34px}.resume-arrow{font-size:19px}.resume-card p{font-size:9px}.filter{min-height:38px;padding:8px 11px;gap:6px}.filter-count{font-size:8px}.library-toolbar{font-size:11px;align-items:flex-start}.library-toolbar p{max-width:45%;padding-top:9px}.library-toolbar select{font-size:10px;max-width:136px;padding:9px 7px}.cover .cover-title{font-size:13px}.cover .sigil{font-size:44px}.library-grid .cover{height:226px}.card h3{min-height:36px}.card-saved{width:23px;height:23px;left:10px;top:10px}.chapter-tools{gap:9px}.chapter-search{padding:11px 10px;gap:6px}.chapter-search input{font-size:11px}.chapter-row{gap:9px;padding:14px 3px}.chapter-row .chapter-name{font-size:11px}.chapter-row .chapter-number{font-size:10px;min-width:30px}.last-read-tag{font-size:8px!important}.reading-page header .search{display:none}.reading-page main{margin-top:24px}.reading-page .reader-tools{top:74px}.reading-page .reader h1{font-size:24px}.reading-page .reader-top{margin-bottom:20px}.reader-tools{padding:8px;gap:6px}.reader-tools>span:first-child{display:none}.reader-footer{gap:7px}.reader-footer .button{font-size:10px;padding:11px 10px}.focus-reading main{margin-top:20px}.focus-reading .reader-tools{top:8px}.mobile-nav{height:calc(65px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom)}footer{margin-bottom:calc(72px + env(safe-area-inset-bottom))}#toast{bottom:calc(80px + env(safe-area-inset-bottom));font-size:11px;padding:11px 15px}}
@media(max-width:360px){.feature-slide.hero{grid-template-columns:minmax(0,1fr) 70px;padding:21px 15px;gap:10px;min-height:321px}.feature-slide.hero .cover{width:70px;height:118px}.feature-slide.hero h1{font-size:19px}.feature-slide .cover .cover-title{font-size:8px}.feature-slide .buttons{gap:8px}.feature-details{font-size:9px}.feature-slide .button{font-size:9px;padding:10px 9px}.feature-dot{width:23px}.feature-count{display:none}.library-grid .cover{height:201px}.library-toolbar label{gap:5px}.library-toolbar select{max-width:120px}.last-read-tag{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.feature-track{will-change:auto}.click-ripple{display:none}}
.boot-loading{min-height:250px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:var(--muted);gap:12px;font-size:12px}.loading-orbit{width:26px;height:26px;border-radius:50%;border:2px solid var(--line);border-top-color:var(--accent);animation:loading-turn 1s linear infinite}@keyframes loading-turn{to{transform:rotate(360deg)}}#exit-focus{color:var(--accent);border-color:var(--accent)}.chapter-loading .reader{min-height:300px}.chapter-loading-lines{display:grid;gap:14px;margin:30px auto;max-width:640px}.chapter-loading-lines span{height:10px;background:var(--panel2);border-radius:4px}.chapter-loading-lines span:nth-child(3n){width:75%}.chapter-loading-lines span:nth-child(4n){width:90%}@media(prefers-reduced-motion:reduce){.loading-orbit{animation:none}}
.pick .cover .cover-title,.update .cover .cover-title{display:none}.pick .cover .sigil{font-size:25px}.update .cover .sigil{font-size:24px}.reading-page .view-enter{animation:reader-view-in .22s ease-out}@keyframes reader-view-in{from{opacity:.5}to{opacity:1}}.carousel-control:disabled{opacity:.4;cursor:default;transform:none}@media(max-width:700px){.carousel-control{width:44px;height:44px;flex:none}.feature-dot{height:44px}.feature-controls{min-height:60px;gap:5px}.feature-count{font-size:9px;margin-right:0}.feature-controls{padding:7px 12px}}
.mobile-label{display:none}.reader-tools #open-settings,.reader-tools #add-bookmark{display:inline-flex;align-items:center;justify-content:center;gap:6px}@media(max-width:700px){.reader-tools .desktop-label{display:none}.reader-tools .mobile-label{display:inline}.reader-tools{gap:5px}.reader-tools #open-settings,.reader-tools #add-bookmark{padding-left:8px;padding-right:8px;font-size:10px}.reader-tools [data-size]{padding-left:8px;padding-right:8px;min-width:36px}#size-value{font-size:10px}}
/* Clip the sliding track without allowing focus/scrollIntoView to shift it. */
.feature-carousel,.feature-window{overflow:clip}html{scrollbar-gutter:stable}body:has(dialog[open]){overflow:hidden}dialog{overscroll-behavior:contain}
/* Keep the reading actions stationary while the featured artwork slides. */
.feature-slide .buttons{display:none}.feature-copy{padding-bottom:50px}.feature-actions{position:absolute;bottom:85px;left:34px;z-index:2;display:flex;align-items:center;gap:18px}.feature-actions .primary{background:#b99ae9;color:#21152f}.feature-actions .feature-details{color:#c9c0d5}@media(max-width:700px){.feature-copy{padding-bottom:48px}.feature-actions{left:19px;bottom:83px;gap:12px}.feature-actions .button{font-size:10px;padding:11px}.feature-actions .feature-details{font-size:10px}.feature-slide.hero{align-items:start}.feature-cover{align-self:center}.feature-slide.hero .feature-description{margin-bottom:0}}@media(max-width:360px){.feature-actions{left:15px;gap:10px}.feature-actions .button{font-size:9px;padding:10px}.feature-actions .feature-details{font-size:9px}}
@media(max-width:700px){header{height:132px;align-items:flex-start;padding-top:17px}.search{top:75px}main{margin-top:20px}.demo-label{margin-top:11px}.reading-page header{height:66px;align-items:center;padding-top:0}.reading-page main{margin-top:24px}.focus-reading main{margin-top:20px}html{scroll-padding-top:150px}html:has(.reading-page){scroll-padding-top:95px}}

/* Detail page: keep synopsis and actions beside the cover on wide screens. */
.detail>.cover{grid-row:1/span 3;align-self:start}.detail>.summary,.detail>.detail-actions{grid-column:2}.detail>.summary{margin:0}.detail>.detail-actions{margin-top:4px}
.feature-controls[hidden]{display:none}
@media(max-width:700px){.detail>.cover{grid-row:auto}.detail>.summary,.detail>.detail-actions{grid-column:1/-1}header,.mobile-nav,.reading-page .reader-tools{transition:transform .25s var(--ease-out,ease),top .25s var(--ease-out,ease)}.reading-page.chrome-hidden header{transform:translateY(-100%)}.reading-page.chrome-hidden .mobile-nav{transform:translateY(100%)}.reading-page.chrome-hidden .reader-tools{top:8px}}
@media(prefers-reduced-motion:reduce){header,.mobile-nav,.reading-page .reader-tools{transition:none}}

/* Content area fills the first screen, so the footer stays below the fold while pages load. */
main#app{min-height:calc(100vh - 110px)}
