/* Chad Kovac bookstore. Dark literary theme.
   Built and maintained by Rook, Chad Kovac's persistent Muse assistant. */

:root {
  --bg: #12100d;
  --bg2: #1a1712;
  --card: #1e1a14;
  --ink: #f2ead9;
  --muted: #b9ab8d;
  --gold: #d9a441;
  --gold-deep: #b07f27;
  --line: #2e2820;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  line-height: 1.15;
  font-weight: 600;
}

h1 em, h2 em { color: var(--gold); font-style: italic; }

img { display: block; max-width: 100%; }

a { color: inherit; }

/* ---------- nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 16, 13, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { font-size: 1.35rem; text-decoration: none; letter-spacing: 0.02em; }
.brand:hover { color: var(--gold); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--ink); font-size: 1.25rem; border-radius: 8px;
  padding: 0.25rem 0.7rem; cursor: pointer;
}
.nav-links { display: flex; gap: 1.75rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta {
  color: var(--bg); background: var(--gold);
  padding: 0.5rem 1.1rem; border-radius: 999px; font-weight: 600;
}
.nav-links .nav-cta:hover { background: var(--ink); color: var(--bg); }

/* ---------- hero ---------- */
.hero {
  padding: 6.5rem 1.25rem 5rem;
  background:
    radial-gradient(900px 480px at 70% -10%, rgba(217, 164, 65, 0.14), transparent 60%),
    var(--bg);
  text-align: center;
}
.hero-inner { max-width: 780px; margin: 0 auto; }
.kicker {
  text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.75rem; color: var(--gold); font-weight: 600;
  margin-bottom: 1.25rem;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 1.4rem; }
.lede { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto 2.2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 0.85rem 1.9rem; border-radius: 999px; font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #191410; }
.btn-gold:hover { background: var(--ink); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 0.65rem 1.5rem; font-size: 0.92rem; }

/* ---------- featured ---------- */
.featured { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.featured-inner {
  max-width: 1120px; margin: 0 auto; padding: 4.5rem 1.25rem;
  display: grid; grid-template-columns: 300px 1fr; gap: 3.5rem; align-items: center;
}
.featured-cover img {
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--line);
  aspect-ratio: 2 / 3; object-fit: cover; width: 100%;
}
.featured-copy h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.4rem; }
.tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--gold); border: 1px solid var(--gold-deep);
  padding: 0.25rem 0.8rem; border-radius: 999px; margin: 0.6rem 0 1.1rem;
}
.featured-copy p { color: var(--muted); margin-bottom: 1rem; max-width: 56ch; }
.formats { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.6rem !important; }

/* ---------- books grid ---------- */
.books { max-width: 1120px; margin: 0 auto; padding: 5rem 1.25rem; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.group-title {
  font-size: 1.35rem; margin: 3rem 0 1.5rem;
  padding-bottom: 0.6rem; border-bottom: 1px solid var(--line);
}
.group-title:first-of-type { margin-top: 0; }
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--gold-deep); }
.cover { aspect-ratio: 2 / 3; overflow: hidden; background: #0d0b08; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #1a140d, #0d0b08); padding: 1.5rem; text-align: center;
}
.cover-fallback span { font-family: 'Fraunces', serif; font-size: 1.4rem; color: var(--gold); }
.cover-placeholder {
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
  background: linear-gradient(150deg, #241d12 0%, #14100a 70%);
}
.cover-placeholder span {
  font-family: 'Fraunces', Georgia, serif; font-size: 1.7rem;
  color: var(--gold); line-height: 1.3;
}
.card-body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.5rem; margin-bottom: 0.15rem; }
.subtitle { color: var(--muted); font-size: 0.92rem; font-style: italic; margin-bottom: 0.9rem; }
.card-body > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.9rem; }
.card-body .formats { margin-bottom: 1.3rem; }
.card-body > .btn { margin-top: auto; align-self: flex-start; }
.card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.btn-spotify { background: #1DB954; color: #fff; }
.btn-spotify:hover { background: #148a3e; }

/* ---------- about ---------- */
.about {
  background: var(--bg2); border-top: 1px solid var(--line);
  padding: 5rem 1.25rem; text-align: center;
}
.about-inner { max-width: 680px; margin: 0 auto; }
.about h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1.4rem; }
.about p { color: var(--muted); margin-bottom: 1.1rem; font-size: 1.05rem; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); padding: 2.2rem 1.25rem;
  text-align: center; color: var(--muted); font-size: 0.9rem;
}
.fine { font-size: 0.8rem; margin-top: 0.4rem; opacity: 0.75; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .featured-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .featured-cover { max-width: 240px; margin: 0 auto; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg2); flex-direction: column; align-items: stretch;
    padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--line); gap: 0.4rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { text-align: center; border: none; margin-top: 0.6rem; }
  .site-nav { position: sticky; }
  .nav-inner { position: relative; }
  .hero { padding: 4.5rem 1.25rem 3.5rem; }
}

/* Catalog filters: genre select + Spotify availability chip */
.filters {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  align-items: center; justify-content: center;
  margin: 1.4rem 0 0.2rem;
}
.filter-label {
  color: var(--muted); font-size: 0.9rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.filter-label select {
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 0.45rem 0.6rem; font: inherit; max-width: 16rem;
}
.chip {
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.45rem 1rem; font: inherit; cursor: pointer;
}
.chip[aria-pressed="true"] {
  background: #1DB954; border-color: #1DB954;
  color: #0b0e0c; font-weight: 600;
}
.filter-note { text-align: center; }
.length { font-size: 0.82rem; color: var(--muted); margin: 0.15rem 0 0.55rem; }
