:root {
  --bg: #fbfaf7; --fg: #1d1d1b; --muted: #6b6a66; --line: #e4e1d8;
  --accent: #d35400; --quote: #f3f0e8; color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #17171a; --fg: #ebe9e4; --muted: #9d9b95; --line: #2d2d31;
    --accent: #ff8a3d; --quote: #222226; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg);
  font: 18px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Verdana, sans-serif;
  letter-spacing: 0.01em; word-spacing: 0.04em; }
a { color: var(--accent); text-underline-offset: 3px; }
header { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline;
  max-width: 760px; margin: 0 auto; padding: 20px 16px; border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; font-size: 20px; text-decoration: none; color: var(--fg); }
nav { display: flex; gap: 18px; }
nav a { color: var(--muted); text-decoration: none; }
nav a[aria-current] { color: var(--fg); font-weight: 600; border-bottom: 2px solid var(--accent); }
main { max-width: 760px; margin: 0 auto; padding: 8px 16px 48px; }
h1 { font-size: 28px; line-height: 1.3; margin: 24px 0 8px; }
h2 { font-size: 20px; margin: 32px 0 8px; }
.intro, .meta, .facts, footer, .empty { color: var(--muted); }
.meta { font-size: 15px; }
.author { font-weight: 400; color: var(--muted); }
.books { padding-left: 0; list-style: none; counter-reset: rank; }
ol.books li { counter-increment: rank; }
ol.books li::before { content: counter(rank) "."; display: inline-block; min-width: 2.4em; color: var(--muted); }
ol.books .meta { padding-left: 2.4em; }
.books li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.books .title { font-weight: 600; }
#filter { width: 100%; font: inherit; padding: 10px 14px; margin: 8px 0 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--quote); color: var(--fg); }
[hidden] { display: none !important; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; font-size: 15px; }
.chips .label { color: var(--muted); min-width: 6.5em; }
.chips button, .chips input { font: inherit; padding: 5px 14px; color: var(--fg);
  border: 1px solid var(--line); border-radius: 999px; background: var(--quote); }
.chips button { cursor: pointer; }
.chips button[aria-pressed=true] { background: var(--fg); border-color: var(--fg); color: var(--bg); font-weight: 600; }
.chips .count { color: var(--muted); }
.chips [aria-pressed=true] .count { color: inherit; }
.chips label { display: flex; align-items: center; gap: 8px; margin-right: 8px; }
.summary { font-weight: 600; margin: 18px 0 0; }
.book-head { display: flex; gap: 20px; align-items: flex-start; }
.cover { width: 110px; border-radius: 4px; box-shadow: 0 2px 8px rgb(0 0 0 / 0.15); }
.mentions { list-style: none; padding: 0; }
.mentions li { margin: 0 0 20px; }
blockquote { margin: 6px 0 0; padding: 10px 14px; background: var(--quote);
  border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; }
footer { max-width: 760px; margin: 0 auto; padding: 20px 16px 40px; font-size: 15px;
  border-top: 1px solid var(--line); }
