:root {
  color-scheme: light;
  --bg: #ffffff;
  --band: #f7f7f5;
  --text: #222222;
  --muted: #6b6b6b;
  --line: #dcdcdc;
  --ink: #2b2b2b;
  --accent: #c93939;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.25; font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 48px auto; max-width: 720px; }

.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  max-width: 1040px; margin: 0 auto; padding: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 19px; text-decoration: none; }
.brand img { width: 48px; height: auto; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; }
.site-header nav a { text-decoration: none; color: var(--muted); }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--ink); }

main { max-width: 1040px; margin: 0 auto; padding: 0 16px 64px; }
footer {
  border-top: 1px solid var(--line); background: var(--band); color: var(--muted);
  font-size: 14px; text-align: center; padding: 24px 16px;
}
footer a { color: var(--muted); }

.hero { text-align: center; padding: 56px 0 8px; }
.hero h1 { font-size: clamp(32px, 6vw, 44px); margin: 4px 0 8px; }
.lede { font-size: clamp(19px, 3vw, 24px); margin: 0; }
.byline { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.center { text-align: center; }
.narrow { max-width: 680px; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }

.btn {
  display: inline-block; padding: 9px 20px; border: 1px solid var(--ink); border-radius: 2px;
  background: var(--ink); color: #fff; text-decoration: none; font-size: 15px;
}
.btn:hover { background: #000; border-color: #000; }
.btn-outline { background: transparent; color: var(--ink); border-color: rgba(0,0,0,.35); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.pill { border-radius: 999px; }

.feature .series-logo { display: block; margin: 8px auto; }
.cover-row { display: flex; justify-content: center; gap: 24px; margin: 24px 0; }
.cover-row img { width: 160px; box-shadow: 0 2px 6px rgba(0,0,0,.12), 0 10px 24px rgba(0,0,0,.10); }

.split { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: center; max-width: 820px; margin: 0 auto; }
.cover-img { box-shadow: 0 2px 6px rgba(0,0,0,.12), 0 10px 24px rgba(0,0,0,.10); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 820px; margin: 0 auto; }

.book-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 44px 28px;
  max-width: 920px; margin: 24px auto 0;
}
.book { display: flex; flex-direction: column; align-items: center; text-align: center; }
.book .cover {
  position: relative; display: block; width: 100%; border-radius: 2px; overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.12), 0 10px 24px rgba(0,0,0,.10); transition: transform .18s ease;
}
.book .cover:hover { transform: translateY(-4px); }
.book .cover img { display: block; width: 100%; aspect-ratio: 311 / 480; object-fit: cover; }
.badge {
  position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 2px;
}
.book h3 { font-size: 17px; font-weight: 400; font-style: italic; margin: 16px 0 2px; }
.town { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.buys { margin-top: auto; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.buys .btn { font-size: 13px; padding: 8px 14px; }

.post { max-width: 680px; margin: 0 auto; scroll-margin-top: 16px; }
.post time { color: var(--muted); font-size: 14px; }
.post h2 { margin: 4px 0 16px; }

@media (max-width: 640px) {
  .split, .two-col { grid-template-columns: 1fr; }
  .split .cover-img { max-width: 220px; margin: 0 auto; }
  .book-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .cover-row { gap: 12px; }
  .cover-row img { width: 30%; }
}
@media (prefers-reduced-motion: reduce) { .book .cover { transition: none; } }
