:root {
  --bg: #08111d;
  --bg-soft: #101b2b;
  --text: #f6f2e8;
  --muted: #b7bdc8;
  --gold: #d5b46a;
  --gold-light: #ead49c;
  --border: rgba(213, 180, 106, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.nav-wrapper {
  width: min(1180px, 92%);
  margin: 0 auto;
  padding: 24px 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  text-decoration: none;
  color: var(--gold-light);
  font-size: 1.35rem;
  font-weight: bold;
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
}

.main-nav a:hover {
  color: var(--gold-light);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
}

.books-hero {
  min-height: 520px;

  display: flex;
  align-items: center;

  background:
    radial-gradient(
      circle at 78% 32%,
      rgba(213, 180, 106, 0.18),
      transparent 22%
    ),
    radial-gradient(
      circle at 70% 55%,
      rgba(87, 73, 143, 0.35),
      transparent 38%
    ),
    linear-gradient(
      115deg,
      #050a12,
      #08111d 38%,
      #15142a
    );
}

.books-hero-content {
  width: min(1180px, 92%);
  margin: 0 auto;
  padding-top: 80px;
}

.books-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1;
  font-weight: normal;
}

.books-hero p:last-child {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 24px;
}

.category-nav {
  width: min(1180px, 92%);
  margin: 0 auto;
  padding: 70px 0 50px;
  text-align: center;
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.category-links a {
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;

  text-decoration: none;
  color: var(--gold-light);

  background: rgba(255, 255, 255, 0.03);

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.category-links a:hover {
  transform: translateY(-2px);
  background: rgba(213, 180, 106, 0.08);
  border-color: var(--gold-light);
}

.catalog-section {
  width: min(1180px, 92%);
  margin: 0 auto;
  padding: 90px 0;
  border-top: 1px solid rgba(213, 180, 106, 0.12);
}

.catalog-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.catalog-heading h2 {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: normal;
}

.catalog-heading p:last-child {
  color: var(--muted);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.catalog-card {
  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.015)
    );

  border: 1px solid var(--border);
  border-radius: 22px;

  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.catalog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(213, 180, 106, 0.55);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.4);
}

.catalog-cover {
  display: block;

  width: 100%;
  height: auto;

  background: #050a12;
}

.catalog-card-content {
  padding: 26px;
}

.catalog-card-content h3 {
  margin: 0 0 16px;

  color: var(--gold-light);

  font-size: 1.35rem;
  line-height: 1.3;
}

.catalog-card-content > p {
  margin: 0 0 24px;

  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.catalog-previews {
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  gap: 12px;

  margin-bottom: 26px;
}

.catalog-preview-image {
  display: block;

  width: 100%;
  height: auto;

  border-radius: 10px;
  border: 1px solid rgba(213, 180, 106, 0.25);

  background: #ffffff;

  cursor: pointer;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.catalog-preview-image:hover {
  transform: translateY(-5px) scale(1.025);

  border-color: var(--gold-light);

  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.catalog-button {
	display: block;
	width: fit-content;
	margin: 0 auto;

  padding: 12px 20px;

  border: 1px solid var(--gold);
  border-radius: 999px;

  background: var(--gold);
  color: #08111d;

  text-decoration: none;
  font-weight: bold;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.catalog-button:hover {
  transform: translateY(-2px);

  background: var(--gold-light);

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.preview-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 30px;

  background: rgba(3, 7, 12, 0.92);
  backdrop-filter: blur(4px);
}

.preview-lightbox.active {
  display: flex;
}

.lightbox-image {
  display: block;

  max-width: min(90vw, 1100px);
  max-height: 90vh;

  width: auto;
  height: auto;

  object-fit: contain;

  border-radius: 14px;
  border: 1px solid rgba(213, 180, 106, 0.45);

  background: #ffffff;

  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.65),
    0 0 30px rgba(213, 180, 106, 0.12);
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 30px;

  z-index: 10000;

  width: 48px;
  height: 48px;

  border: 1px solid rgba(213, 180, 106, 0.4);
  border-radius: 50%;

  background: rgba(8, 17, 29, 0.9);
  color: var(--gold-light);

  font-size: 2rem;
  line-height: 1;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.08);
  background: rgba(213, 180, 106, 0.12);
  border-color: var(--gold-light);
}

.catalog-button-disabled {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 900px) {
  .nav-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .books-hero {
    min-height: 460px;
  }
}
/* ========================================
   PUZZLES - COMING SOON BANNER
   ======================================== */

.coming-soon-banner {
  width: 100%;
  max-width: 1100px;
  margin: 2rem auto 3rem;
  padding: 0 1rem;
  text-align: center;
}

.coming-soon-banner img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}