:root {
  --text: #2b2b28; --muted: #7a7469; --accent: #8a3324; --bg: #faf7f0; --line: #ddd6c8;
  --serif: "Georgia", "Times New Roman", serif;
}
body { background: var(--bg); color: var(--text); font-family: var(--serif);
  max-width: 680px; margin: 0 auto; padding: 2rem 1.5rem 5rem; line-height: 1.7; }
.to-catalog { color: var(--muted); text-decoration: none; font-size: .85rem; }
.book-header { text-align: center; margin: 1.5rem 0 2.5rem; }
.author { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: .3rem; }
.author a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--muted); }
.author a:hover { color: var(--accent); border-color: var(--accent); }
.title { font-size: 1.7rem; font-weight: 400; margin: 0; }
.genre { color: var(--muted); font-style: italic; font-size: .95rem; margin: .3rem 0 0; }
body.poem .stanza { text-align: center; margin-bottom: 1.8rem; font-size: 1.05rem; }
body.prose p { text-indent: 1.5em; margin: 0 0 .9em; text-align: justify; hyphens: auto; }
.footnote-ref a { color: var(--accent); text-decoration: none; font-weight: 600; padding: 0 2px; }
.footnotes-block { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.footnotes-block h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text); }
.footnotes { padding-left: 1.3rem; }
.footnotes li { margin-bottom: .6rem; }
.footnote-back { color: var(--accent); text-decoration: none; margin-left: .3rem; }
:target, .search-highlight { background: #fff1c2; transition: background 2s ease; }

body.catalog { max-width: 720px; font-family: system-ui, sans-serif; }
.subtitle { color: var(--muted); font-size: .9rem; }
.author-list { list-style: none; padding: 0; }
.author-block { border-bottom: 1px solid var(--line); padding: .8rem 0; }
.author-toggle { display: inline-block; color: var(--text); text-decoration: none; font-weight: 600;
  font-size: 1rem; cursor: pointer; position: relative; padding-left: 1.1rem; }
.author-toggle::before { content: "▸"; position: absolute; left: 0; color: var(--accent); font-size: .75em;
  transition: transform .15s ease; }
.author-block.expanded > .author-toggle::before { content: "▾"; }
.author-toggle.no-toggle { cursor: default; color: var(--muted); font-weight: 400; padding-left: 0; }
.author-toggle.no-toggle::before { content: none; }
.author-works { list-style: none; padding: 0; margin: 0; max-height: 0; overflow: hidden; }
.author-block.expanded .author-works { max-height: none; margin-top: .6rem; }
.author-works li { padding: .35rem 0 .35rem 1.1rem; font-size: .92rem; }
.author-works a { color: var(--text); text-decoration: none; }
.author-works a:hover { color: var(--accent); }
.cat-author, .cat-genre { color: var(--muted); font-size: .9rem; }
