/* Alexander Kozlov · Midnight library. Existing reading themes are preserved. */
body:not([data-theme=light]):not([data-theme=warm]){--bg:#091219;--panel:#111e29;--text:#f1eadb;--muted:#aab7c3;--gold:#e4bc75;--border:#d2b7802b}
html{scroll-behavior:smooth;scroll-padding-top:24px}
.site-header{max-width:none;margin:0;background:#091219f2;border-bottom:1px solid #d2b78030;padding:23px max(28px,calc((100vw - 1134px)/2));position:relative;z-index:2}
.brand{gap:12px}.brand-icon{font-size:29px;color:#e4bc75}.brand>span:last-child{font-size:20px;letter-spacing:2.3px;text-transform:uppercase}.brand small{font-size:9px;letter-spacing:1.7px;color:#aab7c3;text-transform:none}
.site-header nav{gap:25px}.site-header nav a{padding:6px 0}.site-header #account-link{border:1px solid #d2b78066;border-radius:5px;padding:8px 15px;white-space:nowrap}
body[data-page=home]>.shell{max-width:none;padding:0}
body[data-page=home] #page-message{max-width:1134px;margin:20px auto}
.night-hero{position:relative;isolation:isolate;min-height:540px;display:flex;align-items:center;overflow:hidden;background:#08131d;border-bottom:1px solid #d2b78030}
.night-hero:before{content:"";position:absolute;inset:0;z-index:-2;background:url('assets/author-night-banner.webp') center/cover no-repeat}
.night-hero:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#071019ee 0%,#071019c2 30%,#0710194a 58%,#07101900 100%),linear-gradient(0deg,#091219b0,transparent 30%)}
.night-hero-content{width:min(100%,1190px);margin:0 auto;padding:64px 28px 68px}.night-hero .eyebrow{letter-spacing:2.5px;margin-bottom:22px}.night-hero h1{max-width:720px;font-size:clamp(39px,4.8vw,65px);line-height:1.12;font-weight:normal;letter-spacing:-1px;color:#f4ead4;text-wrap:balance;margin-bottom:23px}.night-hero .lead{max-width:470px;font-size:19px;color:#c7d0d6;margin:0 0 10px}.night-hero .hero-actions{margin-top:28px;gap:14px}.night-hero .muted{font-size:13px;color:#b4c0cc;max-width:450px;margin-top:22px}.night-hero #continue{display:block;width:fit-content;margin-top:18px}.night-hero .button{padding:13px 24px;box-shadow:0 6px 24px #0003}.night-hero .button.secondary{border-color:#d2b78066;background:#0a16267a}
.home-library{max-width:1190px;margin:auto;padding:52px 28px 42px}.library-intro{text-align:center;padding-bottom:12px}.library-intro h2{font-size:38px;margin-bottom:13px}.library-intro .eyebrow{margin-bottom:10px}.library-intro .muted{margin:0}.home-library .section-head h2{font-size:36px}.home-library .section-head{align-items:center}.home-library .section{padding-top:38px}.home-library .book-art{border:1px solid #d2b78045;border-radius:4px;box-shadow:0 10px 30px #0005}.home-library .book-info h3{color:#f0eadf}.home-library .book-grid{gap:32px 27px}.home-library .section>.lead{font-size:16px;line-height:1.8;max-width:860px;margin-bottom:30px}.home-library .book-info .eyebrow{font-size:10px;letter-spacing:1.5px}
.night-future{position:relative;isolation:isolate;background:#101d27;border-block:1px solid #d2b78030;overflow:hidden;padding:61px 28px;text-align:center}.night-future:before{content:"";position:absolute;inset:0;z-index:-2;background:url('assets/author-night-banner.webp') center 63%/cover no-repeat;opacity:.38}.night-future:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#091219e8,#091219b3 50%,#091219cc)}.night-future h2{font-size:clamp(30px,3.5vw,43px);color:#f0e2c5;margin-bottom:18px}.night-future .lead{max-width:610px;margin:0 auto 24px;color:#c3cbd1;font-size:17px}.night-future .eyebrow{letter-spacing:2.4px}.night-future .button.secondary{border-color:#d2b78066}
.footer{max-width:none;background:#081018;color:#aeb9c2;padding:28px max(28px,calc((100vw - 1134px)/2));border-color:#d2b78030;align-items:center}.footer-author{display:grid;gap:6px}.footer-author strong{font:16px/1.4 Georgia,serif;color:#e7cb95;letter-spacing:2px;text-transform:uppercase}.footer-author small{font-size:12px}.footer nav{display:flex;flex-wrap:wrap;gap:22px}.footer a{color:#c7cbd0;font-size:13px}
body[data-theme=light] .site-header,body[data-theme=warm] .site-header,body[data-theme=light] .footer,body[data-theme=warm] .footer{background:var(--panel);color:var(--text);border-color:var(--border)}body[data-theme=light] .footer a,body[data-theme=warm] .footer a{color:var(--text)}body[data-theme=light] .brand small,body[data-theme=warm] .brand small{color:var(--muted)}body[data-theme=light] .footer-author strong,body[data-theme=warm] .footer-author strong{color:var(--gold)}
@media(min-width:1600px){.night-hero{min-height:610px}}
@media(max-width:850px){.site-header{padding:20px 24px}.brand>span:last-child{font-size:17px;letter-spacing:1.3px}.site-header nav{gap:16px}.night-hero{min-height:520px}.night-hero-content{padding:60px 28px}.night-hero h1{max-width:550px;font-size:51px}.night-hero:before{background-position:62% center}.night-hero:after{background:linear-gradient(90deg,#071019ee,#071019b8 50%,#07101922)}.home-library .book-grid{gap:27px 21px}}
@media(max-width:600px){.site-header{padding:18px 20px;align-items:center;gap:16px;flex-wrap:wrap}.brand{gap:9px}.brand>span:last-child{font-size:16px;letter-spacing:1.6px}.brand small{font-size:8px;letter-spacing:.8px}.brand-icon{font-size:26px}.site-header nav{font-size:12px;max-width:none;flex:1 0 100%;justify-content:space-between;gap:12px}.site-header #account-link{padding:6px 12px}.night-hero{min-height:560px;align-items:flex-end}.night-hero:before{background-position:75% center}.night-hero:after{background:linear-gradient(0deg,#071019fa 0%,#071019c9 50%,#07101945 100%)}.night-hero-content{padding:65px 20px 38px}.night-hero .eyebrow{font-size:10px;letter-spacing:1.8px;margin-bottom:16px}.night-hero h1{font-size:39px;max-width:420px;letter-spacing:-.4px}.night-hero .lead{font-size:17px;max-width:340px}.night-hero .hero-actions{gap:10px;margin-top:24px}.night-hero .button{font-size:13px;padding:11px 16px}.night-hero .muted{font-size:12px}.home-library{padding:34px 20px 24px}.library-intro h2{font-size:30px}.library-intro .muted{font-size:14px}.home-library .section-head{align-items:flex-start}.home-library .section-head h2{font-size:31px}.home-library .book-grid{gap:24px 18px}.home-library .book-info h3{font-size:20px}.night-future{padding:43px 20px}.night-future .lead{font-size:16px}.footer{padding:25px 20px;gap:22px}.footer nav{gap:20px}.footer-author strong{font-size:15px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Separate illustrated footer: books, armillary sphere and cat by the window. */
.night-future{min-height:330px;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:62px 28px}
.night-future:before{background-image:url('assets/author-night-footer.webp');background-position:center center;opacity:1}
.night-future:after{background:linear-gradient(90deg,#09121912 0%,#09121920 20%,#091219c9 36%,#091219d9 60%,#09121935 80%,#09121912 100%)}
.night-future .lead{max-width:510px}.night-future h2{max-width:570px}
@media(max-width:600px){.night-future{min-height:360px;padding:44px 20px}.night-future:before{background-position:70% center}.night-future:after{background:#091219b8}.night-future .lead{max-width:330px}}
