:root { --bg: #1b1a18; --ink: #ece7dc; --muted: #a39b8d; --accent: #c8442a; --page: #fff;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Thai", Roboto, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: radial-gradient(ellipse at 50% 0%, #2b2925, var(--bg) 70%); color: var(--ink); font: 15px/1.4 var(--sans); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
.lbar { display: flex; align-items: baseline; gap: 14px; padding: 14px 20px; padding-top: max(14px, env(safe-area-inset-top)); }
.brand { font: 500 18px/1.2 var(--serif); display: flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; }
.mark { width: 16px; height: 16px; position: relative; flex: none; }
.mark::before, .mark::after { content: ""; position: absolute; width: 10px; height: 13px; border-radius: 2px; }
.mark::before { left: 0; top: 3px; background: var(--accent); } .mark::after { left: 5px; top: 0; background: var(--ink); }
.ltitle { font: 500 18px/1.2 var(--serif); color: var(--muted); }
.ltitle::before { content: "·"; margin-right: 14px; }
.lmeta { margin-left: auto; font-size: 13px; color: var(--muted); }
main { padding: 10px 20px 60px; max-width: 1180px; margin: 0 auto; }
.msg { color: var(--muted); text-align: center; padding: 40px 20px; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 28px 22px; }
.bk { display: grid; gap: 9px; color: inherit; text-decoration: none; }
.bk .cover { position: relative; width: 100%; aspect-ratio: var(--ar, 182 / 257); background: var(--page) center / cover no-repeat; border-radius: 3px 8px 8px 3px;
  box-shadow: 0 16px 36px rgba(0,0,0,.45), inset 4px 0 8px -4px rgba(0,0,0,.35); transition: transform .25s; }
.bk .cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(0,0,0,.18), transparent 6%, transparent 94%, rgba(255,255,255,.08)); }
.bk:hover .cover { transform: translateY(-4px); }
.bk h2 { font: 500 16px/1.25 var(--serif); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk .sub { font-size: 12.5px; color: var(--muted); display: grid; gap: 2px; }
.bk .sub b { color: var(--ink); font-weight: 500; }
