:root {
  --yellow: #FFD100;
  --yellow-dim: #E6BC00;
  --yellow-glow: rgba(255, 209, 0, 0.18);
  --black: #0A0A0A;
  --black-soft: #141414;
  --black-card: #161616;
  --border: #2A2A2A;
  --text: #F5F5F5;
  --muted: #A8A8A8;
  --danger: #FF6B6B;
  --radius: 14px;
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

a { color: var(--yellow); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  font-size: 1.15rem;
}

.logo:hover { text-decoration: none; }

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--yellow);
  color: var(--black);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover { color: var(--yellow); }

.nav-cta {
  background: var(--yellow) !important;
  color: var(--black) !important;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 700 !important;
}


/* Hero */
.hero {
  position: relative;
  padding: 2.75rem 0 1.25rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 40% auto -10%;
  height: 420px;
  background: radial-gradient(circle, var(--yellow-glow), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  max-width: 42rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--black-card);
  border: 1px solid var(--border);
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--yellow);
}

.hero-lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--yellow);
  color: var(--black);
}

.btn-primary:hover { background: var(--yellow-dim); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.disclosure-chip {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 34rem;
}

.disclosure-chip a { font-weight: 600; }

/* How to use */
.howto-card {
  background: linear-gradient(160deg, #1a1a1a, #0f0f0f);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 0 0 1px rgba(255, 209, 0, 0.05), 0 24px 60px rgba(0,0,0,0.45);
}

.stat-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.stat-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem;
  background: var(--black-soft);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.stat-num {
  font-weight: 800;
  color: var(--yellow);
  font-size: 1.15rem;
  min-width: 2.2rem;
}

.stat-list small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

/* Sections */
section { padding: 1.25rem 0; }

.how-to { padding-top: 0.5rem; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.section-head p {
  color: var(--muted);
  max-width: 36rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  background: var(--black-card);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}

/* Bookshelves — always 3 columns of covers */
.book-shelves {
  display: grid;
  gap: 2.25rem;
}

.bookshelf {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1rem 1.25rem;
}

.bookshelf-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0 0.15rem;
}

.bookshelf-head h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--yellow);
}

.bookshelf-count {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem 0.6rem;
}

.shelf-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.shelf-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  padding: 0;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: inherit;
  background: #111;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  display: grid;
  place-items: center;
}

.shelf-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shelf-cover .fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0.4rem;
  text-align: center;
  background: linear-gradient(145deg, #222, #111);
  color: var(--yellow);
  font-weight: 800;
  font-size: 0.65rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.info-btn {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--yellow);
  border-radius: 999px;
  padding: 0.28rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  line-height: 1.2;
}

.info-btn:hover {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}

.tile-price {
  color: var(--yellow);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-align: center;
}

.modal-price {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0.35rem 0 0.6rem;
  flex-wrap: wrap;
}

.modal-price-value {
  color: var(--yellow);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.modal-price-note {
  color: var(--muted);
  font-size: 0.78rem;
}


.empty-shelf {
  color: var(--muted);
  text-align: center;
  padding: 2rem 1rem;
}

/* Shared rating / review / CTA (used in modal) */
.book-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
}

.book-author {
  color: var(--muted);
  font-size: 0.88rem;
}

.book-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  font-size: 0.9rem;
}

.book-rating .stars {
  color: var(--yellow);
  letter-spacing: 0.02em;
  font-weight: 700;
}

.book-rating .rating-num {
  font-weight: 800;
  color: var(--text);
}

.book-rating .rating-count {
  color: var(--muted);
  font-size: 0.82rem;
}

.book-blurb {
  color: #c9c9c9;
  font-size: 0.9rem;
  line-height: 1.5;
}

.book-blurb p {
  margin: 0 0 0.75rem;
}

.book-blurb p:last-child {
  margin-bottom: 0;
}

.book-blurb .blurb-more {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--yellow);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.book-blurb .blurb-more:hover {
  color: #fff;
}

.book-review {
  margin-top: 0.15rem;
  padding: 0.75rem 0.85rem;
  background: var(--black-soft);
  border-left: 3px solid var(--yellow);
  border-radius: 0 10px 10px 0;
  font-size: 0.86rem;
  color: #d4d4d4;
}

.book-review .review-stars {
  display: inline-block;
  margin: 0 0 0.35rem 0.5rem;
  color: #FFD100;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  vertical-align: middle;
}
.review-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.35rem;
}

.book-review blockquote {
  margin: 0;
  font-style: italic;
  line-height: 1.45;
}

.book-review cite {
  display: block;
  margin-top: 0.4rem;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
}

.book-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.book-cta {
  margin-top: 0.35rem;
  width: 100%;
  background: var(--yellow);
  color: var(--black);
  border: none;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-weight: 800;
  font-size: 0.92rem;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.book-cta:hover {
  background: var(--yellow-dim);
  text-decoration: none;
}

/* Book detail modal */
body.modal-open { overflow: hidden; }

.book-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.book-modal[hidden] { display: none !important; }

.book-modal-dialog {
  position: relative;
  width: min(100%, 640px);
  max-height: min(90vh, 820px);
  overflow: auto;
  background: var(--black-card);
  border: 1px solid rgba(255, 209, 0, 0.35);
  border-radius: 16px;
  padding: 1.25rem 1.15rem 1.35rem;
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
}

.modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--black-soft);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.modal-layout {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.15rem;
  align-items: start;
}

.modal-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

.modal-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-cover .fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0.5rem;
  text-align: center;
  background: linear-gradient(145deg, #222, #111);
  color: var(--yellow);
  font-weight: 800;
  font-size: 0.8rem;
}

.modal-copy {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-right: 1.5rem;
}

.modal-copy h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* Categories */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.cat-card {
  background: var(--black-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}

.cat-card:hover {
  border-color: var(--yellow);
  text-decoration: none;
}

.cat-card h3 {
  color: var(--yellow);
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.cat-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* About / disclosure */
.about-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
}

.panel {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.panel h2 {
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.panel p + p { margin-top: 0.75rem; }

.panel p { color: #cfcfcf; }

.disclosure-box {
  border-color: rgba(255, 209, 0, 0.35);
  background: linear-gradient(180deg, rgba(255, 209, 0, 0.08), var(--black-card));
}

.disclosure-box h2 { color: var(--yellow); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0 1.5rem;
  margin-top: 0;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-brand {
  color: var(--text);
  font-weight: 700;
}

/* Responsive */




@media (max-width: 860px) {
  .about-wrap { grid-template-columns: 1fr; }

  .nav-links {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 64px;
    flex-direction: column;
    background: var(--black-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    align-items: stretch;
  }

  .nav-links.open { display: flex; }

  .nav-cta { text-align: center; }
}

@media (max-width: 520px) {
  .hero { padding-top: 2rem; }
}

@media (max-width: 560px) {
  .modal-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .modal-cover {
    width: min(46vw, 160px);
  }

  .modal-copy {
    padding-right: 0;
    width: 100%;
  }

  .info-btn {
    font-size: 0.62rem;
    padding: 0.26rem 0.2rem;
  }

  .bookshelf {
    padding: 0.9rem 0.65rem 1rem;
  }

  .shelf-grid {
    gap: 0.55rem 0.4rem;
  }
}

