/* VSN Books — shared styles.
   Each author can override the theme tokens with a class on <body>, e.g. .theme-frank */
:root {
  --bg: #f4efe6;
  --paper: #fbf8f2;
  --card: #ffffff;
  --ink: #1d1b17;
  --muted: #6b645a;
  --line: #e2d9c9;
  --accent: #8b1e1a;
  --header: #1c1a17;
  --header-ink: #f4efe6;
  --serif: "Newsreader", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
.theme-frank {
  --bg: #f3ece1;
  --paper: #faf6ee;
  --accent: #8a5a1c;      /* cover gold, darkened for text contrast */
  --gold: #c99a4b;
  --header: #2a1a10;      /* cover espresso */
  --header-ink: #f1e4c8;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--serif); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.topbar { background: var(--header); color: var(--header-ink); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: 12px; }
.brand { font-style: italic; font-weight: 500; font-size: 17px; text-decoration: none; }
.topbar nav { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; display: flex; gap: 18px; align-items: center; }
.topbar nav a { text-decoration: none; opacity: .85; }
.topbar nav a:hover { opacity: 1; }

/* Buttons */
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-family: var(--serif); font-weight: 600; font-size: 18px;
  padding: 14px 26px; border: 0; cursor: pointer;
  box-shadow: 0 6px 18px -10px rgba(0,0,0,.5);
}
.btn:hover { filter: brightness(1.08); }
.btn-small { font-size: 15px; padding: 10px 18px; }
.btn-note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* Sections */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
h1 { font-size: clamp(34px, 5.5vw, 54px); line-height: 1.05; font-weight: 600; letter-spacing: -.015em; margin: 0 0 14px; }
h2 { font-size: clamp(26px, 3.6vw, 34px); line-height: 1.15; font-weight: 600; margin: 0 0 14px; letter-spacing: -.01em; }
h3 { font-size: 20px; margin: 0 0 6px; font-weight: 600; }
.lede { font-size: 19px; color: var(--muted); max-width: 52ch; margin: 0 0 24px; }

/* Book grid (catalog / author page) */
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; }
.book-card { text-decoration: none; display: block; }
.book-card .cover { aspect-ratio: 2/3; background: var(--paper); border: 1px solid var(--line); box-shadow: 6px 10px 24px -14px rgba(0,0,0,.55); overflow: hidden; margin-bottom: 14px; }
.book-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.book-card .cover.soon { display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); font-style: italic; }
.book-card h3 { font-size: 19px; margin: 0 0 2px; }
.book-card p { margin: 0; font-size: 14px; color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--line); }
footer .container { padding-top: 18px; padding-bottom: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
