*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f8f5ef;color:#272820;font-family:Tahoma,Arial,sans-serif;line-height:1.9}a{color:inherit;text-decoration:none}header{background:#162923;color:#f4ebd9;position:sticky;top:0;z-index:5}nav{max-width:1160px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:14px 24px;gap:20px;flex-wrap:wrap}nav strong{font-size:21px}nav div{display:flex;gap:22px;flex-wrap:wrap;font-size:14px}.hero{background:radial-gradient(ellipse at 25% 25%,#3a5144,#152a25 65%);color:#f7eddc;padding:90px 24px;overflow:hidden}.wrap{max-width:1120px;margin:auto}.hero .wrap{display:grid;grid-template-columns:1.4fr 1fr;align-items:center;gap:60px}.eyebrow{color:#b38d52;font-size:13px;letter-spacing:2px;font-weight:bold}h1,h2,h3{line-height:1.4;margin:12px 0;font-family:Georgia,Tahoma,serif}h1{font-size:clamp(38px,6vw,72px)}h2{font-size:36px}p{margin:10px 0 20px}.btn,button{display:inline-block;background:#a47b43;color:white;border:0;padding:12px 22px;border-radius:5px;font:inherit;cursor:pointer}.secondary{background:transparent;border:1px solid #a47b43;color:inherit}.cover{aspect-ratio:2/3;background:radial-gradient(ellipse at 50% 50%,#c39b5a44,transparent 55%),linear-gradient(150deg,#273b34,#101b1a);color:#f3d7a1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px;box-shadow:9px 12px 28px #0005;border:1px solid #a47b43;border-radius:3px;max-width:270px;margin:auto}.cover b{font-size:32px;line-height:1.5}.cover span{font-size:18px}.cover i{display:block;font-size:82px;font-style:normal;line-height:1.5}.cover small{margin-top:30px}.bookimg{width:100%;max-width:270px;aspect-ratio:2/3;object-fit:cover;box-shadow:9px 12px 28px #0004;border-radius:3px}.section{padding:66px 24px}.muted{color:#77796c}.books{display:grid;gap:25px}.book{display:grid;grid-template-columns:200px 1fr;gap:35px;background:#fffdf8;padding:30px;border:1px solid #e6dfd2;border-radius:12px}.book .cover b{font-size:24px}.book .cover i{font-size:50px}.book .cover small{margin-top:12px}.actions{display:flex;flex-wrap:wrap;gap:10px}.alt{background:#eee9de}.portrait{width:180px;height:180px;object-fit:cover;border-radius:50%}.portrait.placeholder{display:grid;place-items:center;border:1px solid #bba57d;background:#e4dccd;font-size:54px}.about{display:flex;gap:32px;align-items:center}.posts{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}.post{background:white;padding:25px;border-radius:8px}.reader{max-width:900px;margin:auto;padding:24px}.paper{min-height:380px;padding:45px;background:#fffdf4;border:1px solid #d9c9aa;box-shadow:0 12px 35px #33220d22;font-family:Georgia,Tahoma,serif;font-size:22px;white-space:pre-line;line-height:2.25;border-radius:5px}.reader-controls{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:18px 0}footer{background:#162923;color:#e0d5c1;padding:30px 24px;text-align:center}input,textarea,select{display:block;width:100%;padding:12px;border:1px solid #cfc4af;border-radius:6px;margin:6px 0 16px;font:inherit;background:white}label{font-weight:bold}.notice{padding:16px;background:#e8e2d5;border-radius:6px}.admin{max-width:950px;margin:35px auto;padding:20px}.admin details{padding:15px;background:#fff;border:1px solid #ddd;margin:12px 0}.admin summary{cursor:pointer;font-weight:bold}@media(max-width:650px){.hero{padding:52px 24px}.hero .wrap,.book{grid-template-columns:1fr;gap:24px}.hero .wrap .cover{max-width:200px}.about{flex-direction:column;align-items:start}.paper{padding:24px;font-size:18px}nav div{gap:12px}.section{padding:42px 18px}h2{font-size:29px}}
.paper{position:relative;border-right:12px solid #e4d6b8;background:linear-gradient(90deg,#fffdf4 96%,#f0e5cf);box-shadow:0 10px 30px #33220d22,3px 5px 0 #e4d7b9,6px 8px 0 #d9c8a6}.paper:before{content:"";position:absolute;top:0;bottom:0;right:8px;width:1px;background:#decfa9}.reader-controls button:disabled{opacity:.4;cursor:not-allowed}.reader-controls button:focus-visible,a:focus-visible{outline:3px solid #b68b40;outline-offset:3px}.paper.turn{animation:turn .24s ease}@keyframes turn{from{opacity:.45;transform:perspective(900px) rotateY(-4deg)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.paper.turn{animation:none}}
body{background:#f8f4eb}.subhero{padding:45px 24px}.subhero .wrap{display:block}.socials{display:flex;flex-wrap:wrap;gap:10px}.socials a{display:flex;gap:8px;align-items:center;border:1px solid #b9a688;padding:7px 12px;border-radius:30px;font-size:12px}.socials span{font-size:19px;font-weight:bold;color:#9d7338}.reading-room{max-width:1180px;margin:auto;padding:28px 18px}.reading-top{display:flex;align-items:center;justify-content:space-between;text-align:center;gap:12px}.reading-top h2{margin:0}.spread{display:grid;grid-template-columns:1fr 1fr;direction:rtl;perspective:1000px;box-shadow:0 14px 40px #3a2a1938;border:8px solid #614b32;border-radius:8px;overflow:hidden}.leaf{position:relative;min-height:490px;padding:30px 35px 60px;background:#fffaf0;color:#3d3123;font-family:Georgia,Tahoma,serif;line-height:2.1;font-size:20px;white-space:pre-line}.right{background:linear-gradient(90deg,#dfcfae,#fffaf0 8%);border-left:1px solid #bca27b}.left{background:linear-gradient(270deg,#e1d0b1,#fffaf0 8%)}.running{font-size:12px;color:#a38a63;text-align:center;border-bottom:1px solid #e1d6c2;margin-bottom:22px;padding-bottom:10px}.page-number{position:absolute;bottom:20px;left:0;right:0;text-align:center;font-size:14px;color:#907a58}.reading-tools{display:flex;gap:8px;flex-wrap:wrap}.large .leaf{font-size:26px}.reading-dark{background:#1e2622;color:#f2e8d4}.reading-dark .leaf{background:#272a26;color:#eee3ce}.reader-controls button:disabled{opacity:.4}audio{max-width:100%;width:100%}@media(max-width:650px){.reading-room{padding:15px 8px}.leaf{font-size:13px;min-height:390px;padding:12px 12px 35px;line-height:2}.large .leaf{font-size:17px}.spread{border-width:4px}.reading-top button{font-size:12px;padding:8px}.reading-top h2{font-size:23px}}
.studio-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start;margin-bottom:30px}.studio-preview{background:#e5dfd2;border-radius:12px;padding:18px;text-align:center}.studio-preview canvas{width:100%;max-width:310px;height:auto;box-shadow:0 15px 40px #0004}.studio .post{margin-bottom:18px}.studio input[type=file]{font-size:13px}.studio button:disabled{opacity:.5}@media(max-width:700px){.studio-grid{grid-template-columns:1fr}}
/* Retain the current books' front/back interaction on the restored palette. */
.book-show{width:min(100%,290px);margin:auto;text-align:center;direction:ltr}.hero .book-show{width:min(100%,340px)}
.book-stage{width:100%;aspect-ratio:.66;perspective:1200px;padding:4px 12px 10px}
.book-rotor{width:100%;height:100%;position:relative;transform-style:preserve-3d;transform:rotateY(-7deg);transition:transform 1.15s cubic-bezier(.25,.7,.25,1)}
.flipped .book-rotor{transform:rotateY(180deg)}
.book-face{position:absolute;inset:0;backface-visibility:hidden;border-radius:4px;box-shadow:0 12px 25px #0005;overflow:hidden;border:1px solid #b29a6d55}
.book-front{transform:translateZ(9px)}.book-back{transform:rotateY(180deg) translateZ(9px);direction:rtl}
.book-face img{width:100%;height:100%;object-fit:contain;background:#162923;display:block}
.wrapface{width:100%;height:100%;background-size:auto 100%;background-repeat:no-repeat}.front-crop{background-position:right center}.back-crop{background-position:left center}
.book-spine,.book-edge{position:absolute;display:flex;align-items:center;justify-content:center;width:18px;height:100%;top:0;left:calc(50% - 9px);background:#162923;border:1px solid #9a7e4c66;backface-visibility:hidden}
.book-spine{transform:rotateY(-90deg) translateZ(var(--book-half,120px));writing-mode:vertical-rl;font-size:12px;color:#e3c184}.book-edge{transform:rotateY(90deg) translateZ(var(--book-half,120px));background:repeating-linear-gradient(#d5c6a9 0px,#eee2c9 2px,#d8caab 3px)}
.cover-fallback{height:100%;background:radial-gradient(circle,#526b54,#162923);display:flex;flex-direction:column;justify-content:center;align-items:center;color:#f3d7a1;padding:12%;direction:rtl}.cover-fallback b{font-size:25px}.cover-fallback span{font-size:72px}.back-text p{font-size:13px;line-height:1.75;color:#fff4db;overflow:auto;max-height:68%}
.flip-control{margin:12px auto 0;background:transparent;color:#785629;border:1px solid #b9925970;font-size:12px;padding:7px 13px}.hero .flip-control{color:#f3d7a1}
.author-profile{display:grid;grid-template-columns:minmax(240px,1fr) 1.4fr;gap:40px;align-items:center;margin-bottom:50px}.author-gallery{position:relative}.author-main-photo,.author-placeholder{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:12px}.author-second-photo{position:absolute;bottom:-15px;left:0;width:32%;border:3px solid #f8f4eb;border-radius:8px}.author-facts{display:flex;gap:10px;flex-wrap:wrap}.author-facts span{padding:8px 14px;border:1px solid #d9c9aa;border-radius:6px}
@media(max-width:700px){.author-profile,.book{grid-template-columns:1fr}.book-show{max-width:270px}.hero .book-show{max-width:260px}}@media(prefers-reduced-motion:reduce){.book-rotor{transition:none}}

/* The library wall: original forest green, parchment and warm walnut. */
.library-hero{padding:38px 24px 28px;background:radial-gradient(ellipse at 50% 0,#40574a,#162923 75%);overflow:hidden}
.library-hero .library-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;max-width:1400px;margin-bottom:25px}
.library-heading h1{font-size:clamp(32px,4.6vw,56px);margin:3px 0 5px;line-height:1.5}
.library-heading p{font-size:clamp(14px,1.5vw,18px);margin:0;color:#e0d9c7}
.library-heading .actions{flex-shrink:0}.library-heading .secondary{border-color:#c5ad80}
.library-room{max-width:1400px;margin:auto;border:1px solid #a38a5a80;border-radius:12px;background:linear-gradient(180deg,#263d31,#192b25);box-shadow:0 20px 45px #0003;overflow:hidden}
.shelf-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 25px 0}
.shelf-kicker{font-size:12px;color:#d6ba87}.shelf-header h2{font-size:24px;margin:0;color:#f8f1df}
.shelf-navigation{display:flex;gap:9px;align-items:center}.shelf-total{font-size:12px;color:#e2d5b9;margin-inline-end:8px}
.shelf-navigation button{display:grid;place-items:center;width:42px;height:42px;padding:0;background:#dec599;color:#20372a;border-radius:50%;font-size:24px;line-height:1;border:1px solid #dec599}
.shelf-navigation button:disabled{opacity:.35;cursor:default;background:transparent;color:#dec599}
.shelf-track{--book-w:242px;--stage-h:367px;display:flex;gap:28px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding:24px;padding:26px 24px 18px;scrollbar-color:#b99b69 #263e32;scrollbar-width:thin;overscroll-behavior-inline:contain;align-items:stretch;background:linear-gradient(to bottom,transparent 0,transparent calc(var(--stage-h) + 15px),#aa8457 calc(var(--stage-h) + 15px),#c1a177 calc(var(--stage-h) + 18px),#715236 calc(var(--stage-h) + 30px),#453826 calc(var(--stage-h) + 32px),transparent calc(var(--stage-h) + 36px))}
.shelf-item{flex:0 0 var(--book-w);min-width:0;text-align:center;scroll-snap-align:start;position:relative}
.library-hero .shelf-item .book-show{width:100%;max-width:none;margin:0}
.library-hero .shelf-item .book-stage{height:var(--stage-h);aspect-ratio:auto;padding:4px 9px 10px}
.library-hero .shelf-item .book-face{box-shadow:5px 12px 23px #0008;border-color:#c8a86a66}
.library-hero .shelf-item .book-rotor{transform:rotateY(-4deg)}
.library-hero .shelf-item .flipped .book-rotor{transform:rotateY(180deg)}
.library-hero .shelf-item .book-show:not(.flipped):hover .book-rotor{transform:rotateY(-9deg)}
.library-hero .shelf-item .flip-control{margin:19px 0 5px;color:#e1c89d;border-color:#a38a5a88;font-size:11px;padding:5px 10px}
.shelf-book-title{display:block;font-size:19px;font-weight:bold;line-height:1.65;color:#fcf3df;margin:5px 0 6px}
.shelf-read{display:inline-block;font-size:13px;color:#eed8b1;border-bottom:1px solid #b99b69;padding:2px 1px}
.shelf-read:hover,.shelf-book-title:hover{color:white}.shelf-hint{font-size:12px;color:#cdbfa6;text-align:center;margin:12px 15px 14px}
@media(max-width:700px){.library-hero{padding:24px 12px 22px}.library-hero .library-heading{display:block;padding-inline:7px;margin-bottom:18px}.library-heading .actions{margin-top:15px}.library-heading .actions .btn{font-size:12px;padding:9px 13px}.shelf-header{padding:12px 14px 0}.shelf-header h2{font-size:19px}.shelf-navigation{gap:6px}.shelf-total{display:none}.shelf-navigation button{width:38px;height:38px}.shelf-track{--book-w:220px;--stage-h:333px;gap:18px;padding-inline:17px;scroll-padding:17px}.shelf-book-title{font-size:17px}.shelf-hint{font-size:11px}}
@media(prefers-reduced-motion:reduce){.shelf-track{scroll-behavior:auto}.library-hero .book-rotor{transition:none}}

/* Matched book spines and the pull-out reading preview. */
.library-hero .shelf-track{--book-w:145px;--stage-h:420px;gap:24px;padding:23px 25px 18px;background:linear-gradient(to bottom,transparent 0,transparent calc(var(--stage-h) + 19px),#b39063 calc(var(--stage-h) + 19px),#d1b284 calc(var(--stage-h) + 23px),#84613e calc(var(--stage-h) + 34px),#483824 calc(var(--stage-h) + 38px),transparent calc(var(--stage-h) + 42px));align-items:start}
.library-hero .shelf-item{flex:0 0 var(--book-w)}
.library-hero .spine-select{border:0;display:block;width:100%;height:var(--stage-h);padding:0;background:none;position:relative;cursor:pointer;transition:transform .32s ease,filter .32s ease;transform-origin:bottom center;filter:drop-shadow(5px 6px 6px #0008)}
.spine-select img{display:block;width:100%;height:100%;object-fit:fill;border-radius:5px}
.spine-fallback{display:grid;place-items:center;height:100%;padding:10px;border:1px solid #c8a86a;border-radius:5px;background:#4b5945;color:#f3d7a1;writing-mode:vertical-rl}
.spine-select:hover,.spine-select:focus-visible{transform:translateY(-10px);filter:drop-shadow(8px 13px 9px #0009) brightness(1.08)}
.spine-select:focus-visible{outline:2px solid #dec599;outline-offset:4px}
.spine-select.is-pulled{opacity:.25;transform:translateY(-10px)}
.library-hero .shelf-book-title{font-size:14px;line-height:1.6;margin:20px 0 4px;min-height:45px}
.shelf-dialog{width:min(820px,calc(100% - 30px));max-height:calc(100dvh - 30px);padding:0;border:1px solid #c3a571;border-radius:18px;background:#f8f4eb;color:#20372a;box-shadow:0 24px 90px #0009;overflow:auto}
.shelf-dialog::backdrop{background:#0b1812c9;backdrop-filter:blur(5px)}
.shelf-dialog-inner{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:30px;align-items:center;padding:34px}
.shelf-preview{perspective:1200px;min-width:0}
#shelf-preview-book{margin:auto;max-width:280px;aspect-ratio:2/3;position:relative;transform-style:preserve-3d}
#shelf-preview-image{width:100%;height:100%;object-fit:contain;display:block;border-radius:4px;box-shadow:10px 16px 30px #15251d45;background:#263d31}
.shelf-dialog h2{font-size:clamp(26px,4vw,38px);line-height:1.5;margin:10px 0}
.shelf-dialog-info p{color:#687361}.shelf-dialog-info .eyebrow{color:#927043}
.shelf-dialog-info .actions{display:flex;flex-wrap:wrap;gap:10px}.shelf-dialog-info .secondary{color:#3a5144;border-color:#a38a5a}
.shelf-close{position:absolute;z-index:3;top:10px;left:10px;border:1px solid #bfae8d;background:#fffdf8;color:#263d31;border-radius:50%;width:40px;height:40px;font-size:26px;padding:0;line-height:1}
.shelf-return{margin-top:16px;background:transparent;color:#45604e;border:0;padding:6px 0;text-decoration:underline}
.shelf-dialog .fly-spine{position:fixed;pointer-events:none;z-index:8;object-fit:fill;border-radius:5px;transform-origin:center center}
@media(min-width:1100px){.library-hero .shelf-track{justify-content:safe center}}
@media(max-width:700px){.library-hero .shelf-track{--book-w:104px;--stage-h:322px;gap:13px;padding-inline:17px}.library-hero .shelf-book-title{font-size:12px}.shelf-dialog-inner{grid-template-columns:1fr;gap:18px;padding:24px 18px}.shelf-preview{padding-top:12px}#shelf-preview-book{max-width:min(218px,64vw,33vh)}.shelf-dialog-info{text-align:center}.shelf-dialog-info .actions{justify-content:center}.shelf-dialog h2{font-size:25px;margin:5px 0}.shelf-dialog-info p{margin:6px 0 14px}}
@media(prefers-reduced-motion:reduce){.library-hero .spine-select{transition:none}}
