html{color-scheme:light;scrollbar-gutter:auto}
body{--lp-accent:#a93218;--lp-on-accent:#fffaf2;--lp-title:Georgia,'Times New Roman',serif;--lp-olive:#294a37;min-height:100vh}
body:not(.paper):not(.amoled):not(.sepia):not(.sage):not(.ink):not(.violet):not(.blue){
 --ink:#27241f;--muted:#62594d;--canvas:#f7f3e9;--panel:#fffdf7;--line:#ddd2bf;color-scheme:light
}
body.paper{--ink:#f8efdf;--muted:#d0ba9e;--canvas:#201d1a;--panel:#2b2621;--line:#56493a;--lp-accent:#ff9a76;--lp-on-accent:#2a110a;color-scheme:dark}
body.amoled,body.ink,body.violet,body.blue{--ink:#f3eadc;--muted:#cfc6b9;--lp-accent:#ffad8b;--lp-on-accent:#28150f;color-scheme:dark}
:focus-visible{outline:2px solid var(--lp-accent);outline-offset:4px}
.btn{min-height:44px;font-size:.875rem;border-radius:99px}
.btn.primary{background:var(--lp-accent);color:var(--lp-on-accent);border-color:transparent}
.field{font-size:1rem}
.lp-header{position:relative;z-index:12;border-bottom:1px solid var(--line);background:var(--canvas)}
.lp-header-inner{max-width:1120px;margin:auto;min-height:72px;display:flex;align-items:center;justify-content:space-between;padding:.7rem clamp(1rem,4vw,2.7rem)}
.lp-brand{display:flex;align-items:center;gap:.7rem;text-align:left;font:700 1.45rem/.92 var(--lp-title);min-height:44px}
.lp-brand-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--lp-accent);color:var(--lp-on-accent)}
.lp-brand-icon svg{width:19px;height:19px}
.lp-brand small{display:block;margin-top:.39rem;font:700 .56rem/1 system-ui,sans-serif;letter-spacing:.23em;color:var(--muted)}
.lp-theme{display:grid;place-items:center;border:1px solid var(--line);background:var(--panel);border-radius:50%;width:44px;height:44px;font-size:1.3rem}
.lp-theme:hover{border-color:var(--lp-accent)}
.lp-dock{position:fixed;z-index:20;left:50%;bottom:calc(.65rem + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(31rem,calc(100% - 1.55rem));display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.15rem;background:#a93218;border:1px solid #872811;border-radius:1.5rem;padding:.32rem;box-shadow:0 .55rem 1.8rem #32170736;color:#fffaf2}
.lp-dock button{min-height:51px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.2rem;border-radius:1.16rem;font-weight:650;font-size:.78rem;background:transparent;color:inherit}
.lp-dock button svg{width:19px;height:19px}
.lp-dock button.lp-nav-active,.lp-dock button:hover{background:#fffaf2;color:#78200f}
.lp-dock button:focus-visible{outline-color:#ffe3bb;outline-offset:-1px}
.lp-dock-hidden{display:none}
main{width:100%;padding-bottom:calc(6rem + env(safe-area-inset-bottom))!important}
.lp-hero{position:relative;isolation:isolate;overflow:hidden;margin-bottom:1rem;display:grid;grid-template-columns:minmax(0,1fr) minmax(6rem,34%);align-items:center;gap:clamp(.7rem,2vw,1.75rem);padding:clamp(1rem,4.3vw,3.4rem);min-height:clamp(235px,32vw,390px);border-radius:1.6rem;background:#efe2ca;color:#2c2419;border:1px solid #deceb1}
.lp-hero:before{content:"";position:absolute;inset:0;z-index:-1;background:repeating-linear-gradient(113deg,transparent 0 22px,#72512a0c 22px 23px),radial-gradient(ellipse at 90% 55%,#d9ba8b,transparent 62%)}
.lp-eyebrow{font-size:.74rem;line-height:1.4;text-transform:uppercase;letter-spacing:.15em;font-weight:760;color:var(--muted)}
.lp-hero .lp-eyebrow{color:#75412c}
.lp-eyebrow span:not(:empty){color:var(--lp-accent)}
.lp-hero h1,.lp-page-title,.lp-section-head h2,.lp-detail h1{font-family:var(--lp-title);font-weight:700;letter-spacing:-.045em;line-height:1.03;overflow-wrap:anywhere}
.lp-hero h1{font-size:clamp(2.28rem,6.7vw,5.2rem);margin:.45rem 0 .65rem}
.lp-hero h1 span{color:#a93218}
.lp-hero-copy>p:not(.lp-eyebrow){max-width:34ch;font-size:clamp(.92rem,1.9vw,1.12rem);color:#534439;line-height:1.45}
.lp-actions{display:flex;flex-wrap:wrap;gap:.42rem;margin-top:1rem}
.lp-hero .btn{border-color:#aa9578;color:#382c23;background:#fff7e5}
.lp-hero .btn.primary{color:#fffaf2;background:#a93218;border-color:#a93218}
.lp-feature{display:grid;justify-items:center;gap:1rem;transform:rotate(7deg);transition:transform .2s}
.lp-feature:hover{transform:rotate(3deg) translateY(-3px)}
.lp-feature .lp-cover{width:min(100%,157px)}
.lp-feature-caption{font-size:.62rem;color:#563626;font-weight:750;letter-spacing:.14em;text-align:center}
.lp-section-head{display:flex;gap:.75rem;justify-content:space-between;align-items:flex-end;margin:1.55rem 0 .9rem}
.lp-section-head h2{font-size:clamp(1.75rem,3.6vw,2.6rem);margin-top:.2rem}
.lp-page-title{font-size:clamp(2.1rem,5vw,3.75rem);margin:.25rem 0 .6rem}
.lp-pill{display:inline-flex;align-items:center;min-height:30px;padding:.2rem .7rem;background:var(--panel);border:1px solid var(--line);border-radius:99px;color:var(--muted);white-space:nowrap;font-size:.78rem;font-weight:650}
.lp-empty{display:flex;flex-wrap:wrap;align-items:center;gap:.8rem;border:1px dashed var(--line);border-radius:1.1rem;background:var(--panel);padding:1rem;color:var(--muted)}
.lp-empty>span{display:grid;place-items:center;color:var(--lp-accent);border:1px solid var(--line);height:46px;width:46px;border-radius:50%;font-size:1.3rem}
.lp-empty strong{color:var(--ink);font-family:var(--lp-title);font-size:1.2rem}
.lp-empty p{font-size:.9rem}
.lp-empty .btn{margin-left:auto}
.lp-shelf{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(.85rem,2.3vw,1.8rem);align-items:start}
.lp-book-link{display:flex;flex-direction:column;text-align:left;align-items:stretch;min-width:0;width:100%;border-radius:.35rem}
.lp-book-link:focus-visible{outline-offset:5px}
.lp-book-link:hover .lp-cover{transform:translateY(-3px)}
.lp-cover{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:.36em;text-align:center;aspect-ratio:2/2.85;width:100%;overflow:hidden;min-width:0;border-radius:.14rem .6rem .6rem .14rem;border:1px solid #0002;border-left:5px solid #0004;box-shadow:0 .66rem .86rem -.51rem #261e1980;background:#325642;color:#fff1cf;padding:11% 10%;font-family:var(--lp-title);container-type:inline-size;transition:transform .16s}
.lp-cover:before{content:"";position:absolute;inset:6.5%;border:1px solid currentColor;opacity:.47;box-shadow:inset 0 0 0 3px #ffffff21;pointer-events:none;z-index:-1}
.lp-cover:after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(57deg,transparent 0 5px,#fff1 5px 6px);opacity:.35;pointer-events:none;z-index:-1}
.lp-cover strong{font-size:clamp(.9rem,17cqi,2.2rem);line-height:.98;overflow-wrap:anywhere;text-wrap:balance}
.lp-cover-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden}
.lp-cover-ornament{font-size:clamp(.86rem,22cqi,2rem);line-height:1;color:#fad88d}
.lp-cover-imprint,.lp-cover-author{font:700 clamp(.52rem,7cqi,.74rem)/1.15 system-ui,sans-serif;letter-spacing:.07em;text-transform:uppercase;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%}
.lp-cover-author{margin-top:.45em}
.lp-cover.lp-red,[data-cover="0"] .lp-cover{background:#ad3d24;color:#fff0d4}
[data-cover="1"] .lp-cover{background:#315444}
[data-cover="2"] .lp-cover{background:#d6a94d;color:#302718}
[data-cover="2"] .lp-cover-ornament{color:#684022}
[data-cover="3"] .lp-cover{background:#314b64;color:#fbefd3}
.lp-book-title{font:700 clamp(1rem,2.3vw,1.35rem)/1.14 var(--lp-title);margin-top:.6rem;overflow-wrap:anywhere}
.lp-book-meta,.lp-book-options{color:var(--muted);font-size:.81rem;line-height:1.35;margin-top:.28rem}
.lp-book-options summary{cursor:pointer;min-height:40px;padding-top:.5rem;text-decoration:underline;text-underline-offset:3px}
.lp-book-options>div{display:flex;flex-wrap:wrap;gap:.4rem;padding:.3rem 0 .6rem}
.lp-search{margin:1rem 0 .75rem;display:flex;align-items:center;gap:.55rem;padding:.3rem .35rem .3rem .65rem;background:var(--panel);border:1px solid var(--line);border-radius:1rem}
.lp-search svg{flex:none;color:var(--muted)}
.lp-search .field{flex:1;min-width:0;border:0;background:transparent;padding:.58rem .2rem}
.lp-search button{white-space:nowrap}
.lp-discover-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.72rem}
.lp-discover-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.32rem;min-height:125px;background:var(--panel);border:1px solid var(--line);border-radius:1rem;padding:.6rem}
.lp-discover-tile:hover{border-color:var(--lp-accent)}
.lp-discover-tile>span{font-size:1.65rem;line-height:1;color:var(--lp-accent)}
.lp-discover-tile strong{font:700 1.14rem/1.1 var(--lp-title)}
.lp-discover-tile small{font-size:.77rem;color:var(--muted);text-align:center}
.lp-detail{display:grid;grid-template-columns:minmax(76px,26%) minmax(0,1fr);gap:clamp(.7rem,3vw,2rem);align-items:center;padding:clamp(.9rem,4vw,2.6rem);background:var(--panel);border:1px solid var(--line);border-radius:1.4rem}
.lp-detail .lp-cover{max-width:156px;margin:auto}
.lp-detail h1{font-size:clamp(1.7rem,5vw,3.1rem)}
.lp-detail-copy .btn{min-height:42px}
.booktext mark{background:#f3ca72;color:#231a10}
.booktext::selection,.booktext ::selection{background:#f5c879;color:#291b13}
.reader-screen .booktext{border-radius:.48rem;margin-top:.6rem}
body.immersive main{padding-bottom:1rem!important}
@media(min-width:650px){.lp-shelf,.lp-discover-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.lp-discover-tile{min-height:145px}}
@media(max-width:370px){.lp-hero{grid-template-columns:minmax(0,1fr) 30%}.lp-hero h1{font-size:2rem}.lp-feature-caption{letter-spacing:.06em}.lp-detail{grid-template-columns:minmax(59px,24%) minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.lp-feature,.lp-cover{transition:none}}

.lp-source-pick{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem;font-weight:650;font-size:.9rem}.lp-source-pick .field{width:auto;max-width:100%;min-height:44px}

.lp-nv-sources { margin-top:2.1rem; }
.lp-source-lead { color:var(--muted); margin:.55rem 0 1rem; font-size:.9rem; }
.lp-source-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,14.6rem),1fr)); gap:.65rem; }
.lp-source-card { display:flex; flex-direction:column; gap:.55rem; border:1px solid var(--line); background:var(--panel); border-radius:1rem; padding:.8rem; }
.lp-source-head { display:flex; flex-wrap:wrap; gap:.3rem .5rem; align-items:center; justify-content:space-between; }
.lp-source-card p { font-size:.9rem; flex:1; }
.lp-source-card .btn { align-self:flex-start; font-size:.875rem; }
.lp-source-badge { padding:.19rem .5rem; border:1px solid var(--line); border-radius:2rem; font-size:.8rem; font-weight:650; white-space:nowrap; }
.lp-source-badge[data-mode="reader"] { background:#dce8db; color:#243f2e; border-color:#c3d5c3; }
.lp-source-badge[data-mode="search"] { background:#f3e4cb; color:#553919; border-color:#dcc5a2; }
.lp-source-result-list { display:grid; gap:.45rem; }
.lp-source-result { display:flex; flex-wrap:wrap; align-items:center; gap:.35rem 1rem; justify-content:space-between; padding:.65rem 1rem; border:1px solid var(--line); border-radius:.85rem; background:var(--panel); }
.lp-source-result span { color:var(--muted); font-size:.875rem; }
