/* Bookman design tokens + base typography.
 *
 * The whole look lives in these custom properties: warm paper surfaces, ink
 * text, an oxblood-leather accent, and a serif voice. Dark mode swaps the
 * palette to lamplit browns via prefers-color-scheme — no toggle, no JS.
 * Component styles live in layout.css / books.css / forms.css / components.css
 * (Propshaft bundles every file in this directory via stylesheet_link_tag :app).
 */

:root {
  --paper: #f5efe3;
  --surface: #fdfaf2;
  --ink: #2c241b;
  --muted: #7d7060;
  --accent: #7b2d26;        /* oxblood leather */
  --accent-ink: #fdfaf2;    /* text on accent */
  --gold: #a8853e;
  --border: #ddd2bd;
  --shadow: 0 1px 3px rgba(60, 42, 20, 0.18);
  --shadow-lift: 0 6px 18px rgba(60, 42, 20, 0.22);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #211a12;
    --surface: #2b2318;
    --ink: #eae0cd;
    --muted: #a5947a;
    --accent: #c96b52;
    --accent-ink: #211a12;
    --gold: #c9a25a;
    --border: #463a28;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-lift: 0 6px 18px rgba(0, 0, 0, 0.55);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.55;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
h1 { font-size: 2rem; margin: 0.5em 0; }
h2 { font-size: 1.3rem; margin: 1.2em 0 0.5em; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

sup { color: var(--muted); font-size: 0.75em; }
.muted { color: var(--muted); font-size: 0.9em; }

img { max-width: 100%; }
