/* Leserseite: ruhig, gut lesbar, ohne externe Dienste */
:root { --accent: #8a4b2a; --text: #23201c; --muted: #6f675f; --bg: #fbf9f6; --line: #e7e1d8; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 18px/1.7 "EB Sans", "EB Sans Thai", "Noto Sans", "Noto Sans Thai", "Leelawadee UI", system-ui, sans-serif; }
a { color: var(--accent); }
.reader { max-width: 760px; margin: 0 auto; padding: 28px 20px 40px; }
.reader h1 { line-height: 1.25; margin: 0 0 .4em; }
.reader h2 { margin: 1.6em 0 .5em; line-height: 1.3; }
.reader h3 { margin: 1.3em 0 .4em; }
.reader img { max-width: 100%; height: auto; border-radius: 6px; }
.reader blockquote { margin: 1em 0; padding: .2em 0 .2em 1em; border-left: 3px solid var(--accent); color: #4a443e; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.ok { color: #2e7d4f; font-weight: 600; }
.err { color: #b3261e; font-weight: 600; }
.preview-note { margin: 0; padding: 6px 12px; text-align: center; background: #fff4dd; color: #8a5a00; font: 600 13px system-ui, sans-serif; }
.book-head { max-width: 760px; margin: 0 auto; padding: 14px 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .9rem; }
.book-head a { text-decoration: none; font-weight: 600; }
.langs { display: flex; gap: 6px; flex-wrap: wrap; }
.langs a { font: 600 13px system-ui, sans-serif; text-decoration: none; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.langs a.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.book-home { max-width: 980px; }
.book-home .langs { justify-content: flex-end; margin-bottom: 10px; }
.home-grid { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: 32px; align-items: start; }
.home-cover .cover { box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.subtitle { font-size: 1.15rem; color: var(--muted); margin: 0 0 .6em; }
.author { margin: 0 0 1em; }
.desc { white-space: pre-line; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 10px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.toc { padding-left: 0; list-style: none; margin: 0; }
.toc li { border-bottom: 1px solid var(--line); padding: 10px 0; display: flex; justify-content: space-between; gap: 10px; }
.toc a { text-decoration: none; color: var(--text); }
.toc a:hover { color: var(--accent); }
.toc .num { display: inline-block; min-width: 2em; color: var(--accent); font-weight: 700; }
.unlock { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 18px 0; }
.unlock p { margin: 0 0 8px; }
.unlock .row { display: flex; gap: 8px; flex-wrap: wrap; }
.unlock input { flex: 1; min-width: 160px; font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; }
.unlock button { font: inherit; font-weight: 600; padding: 8px 18px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; cursor: pointer; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font: 700 13px system-ui, sans-serif; color: var(--accent); margin: 10px 0 4px; }
.content { margin-top: 1em; }
.aff { text-decoration-style: dotted; }
.aff::after { font: 600 11px system-ui, sans-serif; color: var(--muted); vertical-align: super; }
.pager { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 16px; font-weight: 600; }
.pager a { text-decoration: none; }
.landing .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 20px; }
.landing .card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 4px; }
.card-title { font-weight: 700; }
.legal p { white-space: normal; }
.site-foot { max-width: 760px; margin: 0 auto; padding: 20px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); text-align: center; }
.site-foot p { margin: 4px 0; }
@media (max-width: 700px) {
  body { font-size: 17px; }
  .home-grid { grid-template-columns: 1fr; gap: 18px; }
  .home-cover { max-width: 260px; margin: 0 auto; }
}
