:root {
  --color-bg: #0c0b10;
  --color-surface: #16151d;
  --color-border: #2a2838;
  --color-text: #d8d5e0;
  --color-muted: #8885a0;
  --color-accent: #c0392b;
  --color-accent-hover: #e74c3c;
  --color-accent-glow: rgba(192, 57, 43, 0.25);
  --color-gold: #d4a853;
  --color-white: #ffffff;
  --logo-filter: brightness(0) invert(1);
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1100px;
  --radius: 8px;
}

/* ---------------------------------------------------------------
 * Per-imprint accent + motif (hardcoded by slug — see
 * works/design/imprint-identities.md §4). Overrides the cosmos
 * theme variables for color-accent + introduces --imprint-motif.
 * ------------------------------------------------------------- */

/* works → Fitler Press — park-green, cobblestone grid */
.imprint-works {
  --imprint-accent: #3f6b4e;
  --color-accent: #3f6b4e;
  --imprint-motif: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'><g fill='none' stroke='%233f6b4e' stroke-width='1' opacity='0.45'><ellipse cx='8' cy='8' rx='6' ry='4'/><ellipse cx='24' cy='8' rx='6' ry='4'/><ellipse cx='40' cy='8' rx='6' ry='4'/><ellipse cx='16' cy='18' rx='6' ry='4'/><ellipse cx='32' cy='18' rx='6' ry='4'/></g></svg>");
}

/* others → Rowhouse Press — brick red, brick stripe */
.imprint-others {
  --imprint-accent: #9b3a2a;
  --color-accent: #9b3a2a;
  --imprint-motif: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='16' viewBox='0 0 40 16'><g fill='%239b3a2a' opacity='0.35'><rect x='0' y='0' width='18' height='6'/><rect x='20' y='0' width='18' height='6'/><rect x='10' y='8' width='18' height='6'/><rect x='-10' y='8' width='18' height='6'/><rect x='30' y='8' width='18' height='6'/></g></svg>");
}

/* classics → Old City Press — sepia, engraved rule */
.imprint-classics {
  --imprint-accent: #8a6a3b;
  --color-accent: #8a6a3b;
  --imprint-motif: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='16' viewBox='0 0 120 16'><g fill='none' stroke='%238a6a3b' stroke-width='1' opacity='0.55'><line x1='0' y1='8' x2='44' y2='8'/><line x1='76' y1='8' x2='120' y2='8'/><circle cx='60' cy='8' r='3'/><circle cx='52' cy='8' r='1'/><circle cx='68' cy='8' r='1'/></g></svg>");
}

/* claude → Jacquard Press — indigo on cream, punched-card holes */
.imprint-claude {
  --imprint-accent: #2f3a8a;
  --color-accent: #2f3a8a;
  --imprint-motif: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='16' viewBox='0 0 48 16'><g fill='%232f3a8a' opacity='0.55'><circle cx='4' cy='8' r='1.6'/><circle cx='12' cy='8' r='1.6'/><circle cx='20' cy='8' r='1.6'/><circle cx='28' cy='8' r='1.6'/><circle cx='36' cy='8' r='1.6'/><circle cx='44' cy='8' r='1.6'/></g></svg>");
}

.motif-band {
  height: 14px;
  background-image: var(--imprint-motif);
  background-repeat: repeat-x;
  background-position: center;
  margin-top: 1.25rem;
}

.motif-divider {
  height: 14px;
  background-image: var(--imprint-motif);
  background-repeat: repeat-x;
  background-position: center;
  margin: 0 auto 2rem;
  max-width: 260px;
  opacity: 0.85;
}

.site-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-muted);
  letter-spacing: 0.02em;
  margin-top: 0.25rem;
}

.about-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.about-prose p {
  margin-bottom: 1rem;
}

.about-prose {
  max-width: none;
  color: var(--color-muted);
}

.footer-imprint-of {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-imprint-of a {
  color: var(--color-accent);
  text-decoration: underline;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.site-header {
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.header-logo-link {
  display: inline-block;
  text-decoration: none;
  border: none;
}

.site-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.site-description {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto;
}

main {
  padding: 3rem 0;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.book-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.book-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.book-cover-link {
  display: block;
}

.book-cover {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  background: var(--color-bg);
}

.book-info {
  padding: 1.25rem;
}

.book-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.book-title a {
  color: var(--color-text);
  text-decoration: none;
}

.book-title a:hover {
  color: var(--color-accent);
}

.book-author {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.book-description {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.buy-button {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.buy-button:hover {
  opacity: 0.9;
}

.coming-soon-badge {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-muted);
  margin-top: 0.5rem;
}

.coming-soon-section {
  margin-top: 2rem;
}

.authors-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.author-bio {
  margin-bottom: 2rem;
}

.author-bio h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.author-bio p {
  color: var(--color-muted);
  line-height: 1.7;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--color-muted);
}

@media (max-width: 768px) {
  .site-header {
    padding: 2.5rem 0 2rem;
  }
  .site-title {
    font-size: 2rem;
  }
  .book-grid {
    grid-template-columns: 1fr;
  }
}
