:root{--ink:#24342e;--muted:#68756d;--paper:#f6f3eb;--card:#fffdf7;--green:#263a32;--green2:#3c5b4d;--gold:#c79c5b;--line:#e4dfd3;--rose:#efe1d6;--shadow:0 12px 34px rgba(36,52,46,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DejaVu Sans Mono','Liberation Mono',monospace;line-height:1.55}button,input,select{font:inherit}button{cursor:pointer}.topbar{height:72px;padding:0 clamp(18px,5vw,76px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(36,52,46,.1);background:var(--paper)}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);text-decoration:none;font-size:16px;font-weight:700;letter-spacing:-.4px}.brand em{font-family:'DejaVu Sans Mono','Liberation Mono',monospace;font-weight:500}.brand-mark{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:var(--green);color:#f8f0dc;font-family:'DejaVu Sans Mono','Liberation Mono',monospace;font-size:23px}.offline-pill{font-size:11px;text-transform:uppercase;letter-spacing:1px;color:var(--green2)}main{max-width:1250px;margin:auto;padding:0 clamp(18px,5vw,76px)}.hero{padding:38px 0 28px;max-width:760px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2.1px;color:var(--green2);margin:0 0 12px}.hero h1{font-family:'Playfair Display',Georgia,serif;font-size:clamp(48px,7.4vw,86px);line-height:.99;letter-spacing:-2.8px;font-weight:500;margin:0 0 22px}.hero h1 i{color:var(--green2);font-weight:500}.hero-copy{max-width:490px;color:var(--muted);font-size:16px;margin:0 0 26px}.search-wrap{display:flex;align-items:center;gap:12px;max-width:650px;background:var(--card);border:1px solid var(--line);border-radius:9px;padding:0 15px;height:56px;box-shadow:0 3px 10px #24342e05}.search-wrap>span{font-family:'DejaVu Sans Mono','Liberation Mono',monospace;font-size:29px;color:var(--green2);transform:rotate(-20deg)}.search-wrap input{border:0;outline:0;background:transparent;flex:1;min-width:0;color:var(--ink);font-size:14px}.clear-search{border:0;background:none;font-size:24px;color:var(--muted)}.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}.button{border-radius:6px;padding:12px 17px;font-weight:600;font-size:12px;border:1px solid transparent;transition:transform .15s,background .15s}.button:hover{transform:translateY(-1px)}.button-light{background:var(--green);color:#fff8e9}.button-outline{background:transparent;border-color:#c9cfc7;color:var(--green)}.stats-row{display:flex;gap:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:21px 0;margin-bottom:34px}.stats-row>div{display:flex;align-items:baseline;gap:9px;padding:0 30px;border-right:1px solid var(--line)}.stats-row>div:first-child{padding-left:0}.stats-row>div:last-child{border:0}.stats-row strong{font-family:'DejaVu Sans Mono','Liberation Mono',monospace;font-size:23px;font-weight:600}.stats-row span{font-size:11px;color:var(--muted)}.content-section{scroll-margin-top:20px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:20px}.section-heading h2{font-family:'DejaVu Sans Mono','Liberation Mono',monospace;font-size:clamp(31px,4vw,43px);font-weight:500;letter-spacing:-1px;margin:0}.sort-control{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:8px}.sort-control select{border:1px solid var(--line);border-radius:5px;padding:8px;background:var(--card);color:var(--ink)}.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:13px}.filter-chip{border:1px solid var(--line);background:transparent;color:var(--muted);border-radius:99px;padding:7px 12px;font-size:11px}.filter-chip.active,.filter-chip:hover{background:var(--green);border-color:var(--green);color:#fff8e9}.result-note{font-size:11px;color:var(--muted);margin:0 0 18px}.author-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.author-card{background:var(--card);border:1px solid var(--line);border-radius:7px;padding:13px 14px 12px;min-height:145px;display:flex;flex-direction:column;text-align:left;position:relative;overflow:hidden;transition:transform .18s,box-shadow .18s,border-color .18s;color:var(--ink)}.author-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:#b8c5b9}.card-number{font-size:10px;letter-spacing:1px;color:#a1a69b;margin-bottom:9px}.author-card h3{font-family:'DejaVu Sans Mono','Liberation Mono',monospace;font-size:19px;line-height:1.15;font-weight:500;margin:0 0 6px}.card-meta{font-size:10px;color:var(--muted);margin-bottom:15px}.card-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:auto;font-size:10px;color:var(--green2);font-weight:700}.card-arrow{font-size:18px}.empty-state{text-align:center;padding:60px 20px;color:var(--muted)}.empty-state>span{font-size:38px}.empty-state h3{font-family:'DejaVu Sans Mono','Liberation Mono',monospace;color:var(--ink);font-size:25px;margin:10px 0 4px}.about-strip{margin:46px 0 28px;padding:18px 22px;background:#eae8dc;border-radius:9px;display:flex;gap:18px;align-items:flex-start}.about-icon{width:36px;height:36px;border-radius:50%;background:#d7ddcf;color:var(--green);display:grid;place-items:center;flex-shrink:0;font-size:20px}.about-strip h3{font-family:'DejaVu Sans Mono','Liberation Mono',monospace;font-size:22px;font-weight:500;margin:0 0 5px}.about-strip p{margin:0;max-width:760px;font-size:12px;color:#5e6b61}.detail-view,.book-detail{padding:30px 0 15px;scroll-margin-top:20px}.back-button{border:0;background:transparent;color:var(--green2);padding:8px 0;font-size:12px;font-weight:700}.detail-head{display:grid;grid-template-columns:1fr minmax(220px,360px);gap:35px;padding:25px 0 35px;border-bottom:1px solid var(--line)}.detail-head h2{font-family:'DejaVu Sans Mono','Liberation Mono',monospace;font-size:clamp(38px,5vw,60px);line-height:1.03;letter-spacing:-1.4px;font-weight:500;margin:7px 0 12px}.detail-years{color:var(--muted);font-size:12px}.detail-bio{font-size:14px;max-width:600px;color:#526057}.detail-aside{background:#e9e6d9;border-radius:8px;padding:22px;align-self:start}.detail-aside span{font-size:10px;text-transform:uppercase;letter-spacing:1.5px;color:var(--muted)}.detail-aside strong{display:block;font-family:'DejaVu Sans Mono','Liberation Mono',monospace;font-size:23px;font-weight:500;margin:6px 0 12px}.detail-aside p{font-size:12px;color:var(--muted);margin:0}.book-list-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:22px 0 10px}.book-list-head h3{font-family:'DejaVu Sans Mono','Liberation Mono',monospace;font-weight:500;font-size:29px;margin:0}.book-list-head span{font-size:11px;color:var(--muted)}.book-list{display:flex;flex-direction:column}.book-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;align-items:start;padding:13px 0;border-bottom:1px solid var(--line)}.book-index{font-family:'DejaVu Sans Mono','Liberation Mono',monospace;font-size:24px;color:#a0a89d}.book-row h4{font-family:'DejaVu Sans Mono','Liberation Mono',monospace;font-size:19px;font-weight:500;margin:0 0 2px}.book-year{font-size:10px;letter-spacing:.5px;color:var(--muted)}.book-row p{font-size:13px;color:#56645a;margin:6px 0 0;max-width:820px;line-height:1.6}.book-open{border:1px solid var(--line);background:var(--card);border-radius:5px;padding:8px 10px;font-size:10px;color:var(--green2);white-space:nowrap}.book-detail-card{max-width:760px;margin:20px auto 60px;background:var(--card);border:1px solid var(--line);padding:clamp(24px,5vw,48px);border-radius:9px;box-shadow:var(--shadow)}.book-detail-card h2{font-family:'DejaVu Sans Mono','Liberation Mono',monospace;font-size:clamp(34px,5vw,55px);line-height:1.05;font-weight:500;margin:12px 0}.book-detail-card .summary{font-family:'DejaVu Sans Mono','Liberation Mono',monospace;font-size:21px;line-height:1.6;margin:28px 0}.book-detail-card .meta-line{color:var(--muted);font-size:12px}.book-label{font-size:10px;text-transform:uppercase;letter-spacing:1.6px;color:var(--green2);font-weight:700}.discovery-panel{background:var(--green);color:#fff8e9;border-radius:9px;padding:24px 28px;margin:-28px 0 50px;position:relative}.discovery-panel .eyebrow{color:#cbb58e}.discovery-panel h3{font-family:'DejaVu Sans Mono','Liberation Mono',monospace;font-size:30px;font-weight:500;margin:4px 0}.discovery-panel p{color:#e0e5dc;font-size:12px;max-width:780px}.discovery-panel .button{margin-top:6px}.discovery-panel .button-outline{color:#fff8e9;border-color:#708276}footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;padding:25px clamp(18px,5vw,76px);font-size:9px;letter-spacing:1.4px;color:var(--muted)}footer span:last-child{letter-spacing:0;font-size:11px}
@media(max-width:900px){.author-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.detail-head{grid-template-columns:1fr 240px;gap:20px}}
@media(max-width:650px){.topbar{height:58px}.hero{padding:31px 0 22px}.hero h1{letter-spacing:-1.8px}.hero-copy{font-size:14px}.stats-row{margin-bottom:42px}.stats-row>div{padding:0 13px;gap:5px;flex-direction:column}.stats-row strong{font-size:21px}.stats-row span{font-size:10px}.author-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.author-card{padding:12px;min-height:138px}.author-card h3{font-size:19px}.card-number{margin-bottom:11px}.section-heading{align-items:center}.section-heading h2{font-size:32px}.detail-head{grid-template-columns:1fr}.detail-aside{display:none}.book-row{grid-template-columns:28px minmax(0,1fr);gap:10px}.book-open{grid-column:2;justify-self:start}.book-index{font-size:20px}.book-row h4{font-size:19px}.about-strip{margin-top:48px;padding:20px}.brand{font-size:14px}.offline-pill{font-size:9px}footer{flex-direction:column;gap:6px}.discovery-panel{margin-top:-18px;padding:21px}.book-detail-card{margin-top:15px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Compact v2 reading layout */
.stats-row{padding:15px 0}.detail-head{padding:18px 0 25px}.book-year{display:inline-block;margin-top:3px}.content-section{margin-top:0}

/* v3: compact monospaced reading layout */
.topbar{height:58px}
main{padding-left:clamp(14px,3vw,42px);padding-right:clamp(14px,3vw,42px)}
.hero{padding:24px 0 18px}
.hero h1{font-size:clamp(38px,5.8vw,66px);letter-spacing:-1.8px;line-height:1.02;margin-bottom:13px}
.hero-copy{font-size:13px;margin-bottom:16px;line-height:1.45}
.search-wrap{height:45px}
.hero-actions{margin-top:10px}
.button{padding:9px 12px;font-size:11px}
.stats-row{padding:10px 0;margin-bottom:22px}
.stats-row strong{font-size:19px}
.section-heading{margin-bottom:12px}
.section-heading h2{font-size:clamp(24px,3vw,34px);letter-spacing:-.6px}
.filters{gap:6px;margin-bottom:8px}
.filter-chip{padding:5px 9px}
.result-note{margin-bottom:11px}
.author-grid{gap:7px}
.author-card{padding:10px 11px;min-height:112px}
.card-number{margin-bottom:5px}
.author-card h3{font-size:14px;line-height:1.25;overflow-wrap:anywhere}
.card-meta{font-size:9px;margin-bottom:8px}
.card-bottom{font-size:9px}
.card-arrow{font-size:14px}
.detail-view,.book-detail{padding:18px 0 8px}
.detail-head{gap:20px;padding:12px 0 18px}
.detail-head h2{font-size:clamp(28px,4vw,44px);letter-spacing:-.7px}
.detail-bio{font-size:12px;line-height:1.5;margin:9px 0}
.detail-aside{padding:14px}
.detail-aside strong{font-size:17px;margin:4px 0 7px}
.book-list-head{margin:14px 0 6px}
.book-list-head h3{font-size:22px}
.book-row{grid-template-columns:28px minmax(0,1fr);gap:8px;padding:9px 0}
.book-index{font-size:17px}
.book-row h4{font-size:13px;line-height:1.35}
.book-year{font-size:9px}
.book-row p{font-size:11px;line-height:1.45;margin-top:4px}
.book-highlight{background:#eae8dc;box-shadow:0 0 0 7px #eae8dc;border-radius:3px}
.about-strip{margin:26px 0 18px;padding:13px 16px;gap:12px}
.about-strip h3{font-size:17px}
.about-strip p{font-size:10px;line-height:1.5}
footer{padding-top:16px;padding-bottom:16px}
@media(max-width:650px){
  .hero{padding:21px 0 15px}
  .hero h1{font-size:clamp(34px,10vw,49px);letter-spacing:-1.3px}
  .stats-row{margin-bottom:24px}
  .stats-row>div{padding:0 10px}
  .author-grid{gap:6px}
  .author-card{padding:9px;min-height:105px}
  .author-card h3{font-size:12px}
  .card-meta{font-size:8px}
  .detail-head{padding:10px 0 14px}
  .book-row{grid-template-columns:22px minmax(0,1fr);gap:7px}
  .book-row p{font-size:10px}
  .about-strip{margin-top:24px;padding:12px}
}


.topbar-actions{display:flex;align-items:center;gap:18px}
.read-list-toggle{border:1px solid var(--line);background:var(--card);color:var(--green);border-radius:6px;padding:8px 12px;font-size:11px}
.read-list-toggle span{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:4px;border-radius:50%;background:var(--green);color:#fff8e9;font-size:10px}
.read-list-panel{border:1px solid var(--line);background:var(--card);border-radius:8px;padding:clamp(16px,3vw,30px);margin:0 0 34px;scroll-margin-top:18px}
.read-list-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}
.read-list-heading h2{font-size:clamp(24px,4vw,35px);font-weight:500;letter-spacing:-1px;margin:0}
.read-list-total{font-size:11px;color:var(--muted);letter-spacing:0;white-space:nowrap}
.read-list-empty{font-size:12px;color:var(--muted);max-width:680px}
.saved-book-list{border-top:1px solid var(--line)}
.saved-book{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}
.saved-book h3{font-size:14px;margin:0 0 3px;overflow-wrap:anywhere}
.saved-book p{font-size:10px;color:var(--muted);margin:0}
.saved-book-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.read-list-open,.read-list-remove,.read-list-add{border:1px solid #c9cfc7;border-radius:5px;padding:7px 9px;background:transparent;color:var(--green);font-size:10px}
.read-list-remove{color:#8a4d3b;border-color:#e3cfc4}
.read-list-add{margin-top:4px}
.read-list-add.is-saved{background:#e4eadf;border-color:#c5d4c3}
.book-copy{min-width:0}
@media(max-width:650px){
 .topbar{padding:0 14px;height:62px}
 .topbar-actions{gap:8px}
 .brand{font-size:12px;gap:7px}
 .brand-mark{width:29px;height:29px;font-size:19px}
 .offline-pill{font-size:8px;letter-spacing:.4px}
 .read-list-toggle{font-size:9px;padding:6px 7px}
 .saved-book{align-items:flex-start;flex-direction:column;gap:8px}
 .saved-book-actions{flex-wrap:wrap}
 .read-list-heading h2{font-size:24px}
}


/* v5.1: expandable novel notes */
.book-more{margin:8px 0 7px;font-size:10px;color:var(--green2)}
.book-more>summary{display:inline-block;cursor:pointer;list-style:none;border:1px solid #d7ddcf;border-radius:5px;padding:6px 9px;background:#f0efe6;font-weight:700}
.book-more>summary::-webkit-details-marker{display:none}
.book-more>summary::before{content:"＋";display:inline-block;margin-right:6px}
.book-more[open]>summary::before{content:"−"}
.book-notes{margin-top:9px;padding:13px 14px;background:#eeece2;border-left:3px solid var(--gold);border-radius:0 6px 6px 0;max-width:900px}
.book-notes section+section{margin-top:12px;padding-top:10px;border-top:1px solid #dcd8cc}
.book-notes h5{font-size:10px;letter-spacing:1.2px;text-transform:uppercase;color:var(--green2);margin:0 0 5px}
.book-notes p{font-size:11px;line-height:1.6;color:#4e5c52;margin:0;max-width:850px}
.reading-feel dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 18px;margin:8px 0 0}
.reading-feel dl div{min-width:0}
.reading-feel dt{font-size:9px;text-transform:uppercase;letter-spacing:.8px;color:#858a7c;margin-bottom:2px}
.reading-feel dd{font-size:10px;line-height:1.45;margin:0;color:var(--ink)}
.discovery-pitch{padding:10px 12px;border-left:2px solid var(--gold);background:#31483e;border-radius:0 4px 4px 0}
@media(max-width:650px){
  .book-notes{padding:10px}
  .book-notes p{font-size:10px}
  .reading-feel dl{grid-template-columns:1fr;gap:8px}
  .book-more>summary{font-size:9px}
}

.guide-note{font-size:9px!important;color:#858a7c!important;margin-top:10px!important;font-style:italic}

/* v5.2: source-linked publisher paraphrases and critical reception */
.source-links a{color:var(--green2);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}
.source-links a:hover{color:var(--gold)}
.source-links p{line-height:1.8}
