:root {
  --bg: #0a0a0a;
  --bg-soft: #121212;
  --text: #f5f1e8;
  --muted: #bfb6a5;
  --gold: #b99658;
  --gold-soft: rgba(185, 150, 88, 0.24);
  --line: rgba(245, 241, 232, 0.16);
  --hero-image: url("./assets/hero-bg-clean.png");
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(140% 120% at 12% 0%, #1a1209 0%, #0a0a0a 52%);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: screen;
  background-image:
    radial-gradient(circle at 15% 35%, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px),
    radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px);
  background-size: 2px 2px, 3px 3px;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 2vw + 0.8rem, 3rem);
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.72), rgba(10, 10, 10, 0));
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: clamp(1rem, 1vw + 0.65rem, 1.4rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu {
  display: flex;
  gap: clamp(0.8rem, 2.2vw, 2rem);
}

.menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 260ms ease;
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--gold);
}

main {
  position: relative;
  z-index: 2;
}

section {
  padding-inline: clamp(1.25rem, 5vw, 6rem);
}

.hero {
  min-height: 100svh;
  padding-top: clamp(6.5rem, 13vh, 10rem);
  padding-bottom: clamp(3rem, 7vh, 5rem);
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}

.hero-bg,
.hero-veil {
  position: absolute;
  inset: 0;
}

.hero-bg {
  z-index: -2;
  background-image: var(--hero-image);
  background-position: right center;
  background-size: cover;
  filter: brightness(1.28) contrast(1.03) saturate(1.08);
  transform: scale(1.04);
}

.hero-veil {
  z-index: -1;
  background:
    linear-gradient(92deg, rgba(2, 2, 2, 0.66) 0%, rgba(2, 2, 2, 0.54) 34%, rgba(2, 2, 2, 0.24) 56%, rgba(2, 2, 2, 0.52) 100%),
    linear-gradient(to top, rgba(8, 8, 8, 0.62) 2%, rgba(8, 8, 8, 0.1) 48%, rgba(8, 8, 8, 0.48) 100%);
}

.hero-content {
  max-width: 640px;
  padding: clamp(1rem, 1.6vw, 1.5rem) 0;
}

.hero-kicker {
  margin: 0 0 1.15rem;
  color: #d9aa4b;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-kicker::before {
  content: "";
  width: clamp(2.3rem, 3vw, 3rem);
  height: 1px;
  background: currentColor;
  opacity: 0.9;
}

.kicker {
  margin: 0 0 1.1rem;
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Bodoni Moda", Georgia, serif;
  font-weight: 600;
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(2.75rem, 8.6vw, 6.1rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  max-width: 9.2ch;
}

.hero-accent {
  color: #cc9a37;
  white-space: nowrap;
}

.hero-copy {
  margin: clamp(1.15rem, 2.1vw, 1.8rem) 0 0;
  width: min(45ch, 95%);
  color: #d2c8b8;
  font-size: clamp(1.03rem, 1.3vw, 1.9rem);
  line-height: 1.45;
}

.hero-actions {
  margin-top: clamp(1.5rem, 2.2vw, 2.35rem);
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 0.45rem;
  padding: 0.83rem 1.5rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.82rem;
  font-weight: 600;
  transition: transform 260ms ease, background-color 260ms ease, border-color 260ms ease, color 260ms ease;
}

.btn-solid {
  background: linear-gradient(150deg, #e1b85f, #bc8b30);
  color: #130f09;
  border: 1px solid transparent;
}

.btn-solid:hover,
.btn-solid:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(140deg, #d8b67a, #ba9250);
}

.btn-outline {
  color: #dfd5c4;
  border: 1px solid rgba(223, 213, 196, 0.34);
  background: rgba(10, 10, 10, 0.35);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  transform: translateY(-2px);
  border-color: var(--gold);
  color: var(--gold);
}

.manifesto,
.collection,
.premium-picks,
.experience {
  padding-top: clamp(5rem, 11vh, 8.5rem);
  padding-bottom: clamp(4rem, 10vh, 7.5rem);
}

.manifesto,
.experience {
  max-width: 1080px;
  margin-inline: auto;
  text-align: center;
}

.manifesto h2,
.collection h2,
.experience h2 {
  font-size: clamp(2rem, 5.8vw, 5.2rem);
  text-wrap: balance;
  max-width: 15ch;
}

.manifesto h2,
.experience h2,
.manifesto p:last-of-type,
.experience p:last-of-type,
.manifesto .kicker,
.experience .kicker {
  margin-inline: auto;
}

.manifesto p:last-of-type,
.experience p:last-of-type {
  margin-top: 1.1rem;
  max-width: 62ch;
  color: #d0c6b6;
  font-size: clamp(1.02rem, 1.2vw, 1.2rem);
}

.collection {
  position: relative;
}

.collection::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(100deg, rgba(185, 150, 88, 0.16), transparent 45%),
    linear-gradient(to top, rgba(17, 17, 17, 0.6), transparent 20%);
}

.collection-intro {
  position: relative;
  z-index: 1;
}

.collection-preview {
  position: relative;
  z-index: 1;
  margin-top: clamp(1.9rem, 4.4vh, 3rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 2rem);
}

.mini-book {
  border-top: 1px solid rgba(245, 241, 232, 0.14);
  padding-top: 1rem;
}

.mini-book-media {
  margin: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.38);
}

.mini-book-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 45%),
    linear-gradient(to right, rgba(0, 0, 0, 0.18), transparent 65%);
}

.mini-book-media img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mini-book:hover .mini-book-media img {
  transform: scale(1.04);
}

.mini-book-copy {
  margin-top: 0.95rem;
}

.mini-book-genre {
  margin: 0;
  color: var(--gold);
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.mini-book-copy h3 {
  margin-top: 0.4rem;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.mini-book-author {
  margin: 0.45rem 0 0;
  color: #e9dec8;
  font-size: 0.86rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.mini-book-text {
  margin: 0.55rem 0 0;
  color: #d6ccbc;
  font-size: 0.98rem;
}

.collection-action {
  position: relative;
  z-index: 1;
  margin-top: clamp(1.6rem, 3.8vh, 2.3rem);
  display: flex;
  justify-content: center;
}

.collection-btn {
  min-width: clamp(220px, 35vw, 340px);
}

.book-stage {
  position: relative;
  z-index: 1;
  margin-top: clamp(2rem, 5vh, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.3rem, 3.8vw, 4rem);
  align-items: center;
}

.book-media {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
}

.book-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.56), transparent 40%),
    linear-gradient(to right, rgba(0, 0, 0, 0.38), transparent 55%);
}

.book-media img {
  width: 100%;
  height: clamp(320px, 54vh, 640px);
  object-fit: cover;
  display: block;
  transition: transform 800ms ease, opacity 320ms ease;
}

.book-stage:hover .book-media img {
  transform: scale(1.04);
}

.book-copy {
  max-width: 600px;
}

.book-tag {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.book-copy h3 {
  font-size: clamp(2rem, 4.8vw, 4.6rem);
  max-width: 13ch;
}

.book-copy p {
  margin: 1rem 0 0;
  color: #d8cebd;
  font-size: clamp(1rem, 1.05vw, 1.16rem);
  max-width: 50ch;
}

.book-meta {
  margin-top: 1.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
}

.book-meta span {
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--gold-soft);
  color: #e9dbc2;
  font-size: 0.87rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-controls {
  margin-top: 1.8rem;
  display: flex;
  gap: 0.65rem;
}

.stage-controls button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: #efe5d4;
  font-family: inherit;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.72rem 1rem;
  cursor: pointer;
  transition: border-color 240ms ease, color 240ms ease, transform 240ms ease;
}

.stage-controls button:hover,
.stage-controls button:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.premium-picks {
  position: relative;
  max-width: 1240px;
  margin-inline: auto;
}

.premium-picks::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 60% at 18% 8%, rgba(185, 150, 88, 0.14), transparent 70%),
    radial-gradient(58% 45% at 84% 90%, rgba(185, 150, 88, 0.1), transparent 70%);
}

.premium-head {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 920px;
  margin-inline: auto;
}

.premium-head h2 {
  margin-inline: auto;
  max-width: 16ch;
  font-size: clamp(2.1rem, 6vw, 4.5rem);
  text-wrap: balance;
}

.premium-head p:last-of-type {
  margin: 1.15rem auto 0;
  max-width: 66ch;
  color: #d0c6b6;
  font-size: clamp(1rem, 1.2vw, 1.16rem);
}

.search-panel {
  position: relative;
  z-index: 1;
  margin: clamp(1.8rem, 4vh, 2.6rem) auto 0;
  max-width: 840px;
  display: grid;
  gap: 0.65rem;
}

.search-label {
  color: #e7dcc9;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.search-field-wrap {
  position: relative;
}

.book-search-input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(244, 231, 205, 0.22);
  background: rgba(16, 16, 16, 0.62);
  color: #f7f2e8;
  padding: 0.78rem 0.95rem;
  font-family: inherit;
  font-size: 0.98rem;
  line-height: 1.25;
  transition: border-color 240ms ease, box-shadow 240ms ease, background-color 240ms ease;
}

.book-search-input::placeholder {
  color: #a59a88;
}

.book-search-input:focus {
  outline: none;
  border-color: rgba(216, 170, 83, 0.75);
  box-shadow: 0 0 0 3px rgba(216, 170, 83, 0.16);
  background: rgba(18, 18, 18, 0.78);
}

.search-result-label {
  margin: 0;
  color: #bdae97;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

.premium-list {
  position: relative;
  z-index: 1;
  margin-top: clamp(2.4rem, 5.5vh, 4.6rem);
  display: grid;
  gap: clamp(2rem, 4.8vh, 3.5rem);
}

.genre-group {
  display: grid;
  gap: 0.85rem;
}

.genre-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.25rem;
}

.genre-label {
  margin: 0;
  color: #cfa461;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.genre-title {
  margin: 0;
  color: #f3e8d6;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  letter-spacing: 0.01em;
}

.genre-group.is-filter-hidden {
  display: none !important;
}

.pick-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: clamp(1.2rem, 3.2vw, 3rem);
  align-items: center;
  padding-block: clamp(1.6rem, 3vh, 2.5rem);
  border-top: 1px solid rgba(245, 241, 232, 0.14);
}

.pick-item.is-filter-hidden {
  display: none !important;
}

.pick-item:last-child {
  border-bottom: 1px solid rgba(245, 241, 232, 0.14);
}

.pick-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  opacity: 0.9;
  background: linear-gradient(90deg, rgba(201, 161, 90, 0.9), rgba(201, 161, 90, 0));
  transition: width 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pick-item:hover::after {
  width: min(100%, 860px);
}

.pick-cover {
  margin: 0;
  width: 100%;
  max-width: 220px;
  justify-self: start;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.45);
}

.pick-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.42), transparent 46%),
    linear-gradient(to right, rgba(0, 0, 0, 0.2), transparent 60%);
}

.pick-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  transform-origin: center;
  transition: transform 780ms cubic-bezier(0.22, 1, 0.36, 1), filter 540ms ease;
}

.pick-item:hover .pick-cover img {
  transform: scale(1.045);
  filter: saturate(1.08) brightness(1.05);
}

.pick-content {
  max-width: 740px;
}

.pick-genre {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.pick-content h3 {
  margin-top: 0.38rem;
  font-size: clamp(1.8rem, 3.6vw, 3.3rem);
}

.pick-author {
  margin: 0.42rem 0 0;
  color: #f0e5d1;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pick-label {
  margin: 1.15rem 0 0;
  color: #cf9d42;
  font-size: 0.69rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.pick-emotion,
.pick-reason {
  margin: 0.35rem 0 0;
  color: #d8cebd;
  max-width: 60ch;
  font-size: clamp(1rem, 1.05vw, 1.12rem);
  line-height: 1.58;
}

.pick-footer {
  margin-top: 1.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pick-rating {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #e8ddc9;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.stars {
  color: #d8aa53;
  letter-spacing: 0.11em;
  font-size: 0.88rem;
  filter: drop-shadow(0 0 8px rgba(216, 170, 83, 0.18));
  transition: transform 320ms ease, filter 320ms ease;
}

.pick-item:hover .stars {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 13px rgba(216, 170, 83, 0.3));
}

.amazon-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.55rem;
  border: 1px solid rgba(219, 178, 104, 0.72);
  background: linear-gradient(145deg, #e2be7f, #bb8f40);
  color: #1f1609;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
  transition: transform 320ms ease, box-shadow 320ms ease, filter 320ms ease;
}

.amazon-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 82%;
  height: 100%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0));
  transition: left 640ms cubic-bezier(0.22, 1, 0.36, 1);
}

.amazon-button:hover,
.amazon-button:focus-visible {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.4);
  filter: saturate(1.08);
}

.amazon-button:hover::before,
.amazon-button:focus-visible::before {
  left: 132%;
}

.search-empty {
  margin: 1.4rem 0 0;
  color: #d7c7ad;
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 760ms cubic-bezier(0.22, 1, 0.36, 1), transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .collection-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book-stage {
    grid-template-columns: 1fr;
  }

  .book-copy h3 {
    max-width: 100%;
  }

  .pick-item {
    grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  }

  .pick-cover {
    max-width: 180px;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .menu {
    display: none;
  }

  .hero {
    min-height: 92vh;
    padding-top: 6.7rem;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-kicker {
    font-size: 0.77rem;
    letter-spacing: 0.2em;
  }

  .hero h1 {
    max-width: 100%;
  }

  .collection-preview {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stage-controls {
    flex-wrap: wrap;
  }

  .premium-list {
    margin-top: 2.2rem;
    gap: 2rem;
  }

  .genre-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .pick-item {
    grid-template-columns: 1fr;
    gap: 1.05rem;
    padding-block: 1.5rem;
  }

  .pick-cover {
    max-width: min(68vw, 260px);
  }

  .pick-footer {
    align-items: flex-start;
  }
}

/* Recommendations experience refresh */
.editorial-recs {
  max-width: 1260px;
}

.editorial-recs .premium-head h2 {
  max-width: 14ch;
}

.genre-strip {
  position: relative;
  z-index: 1;
  margin-top: clamp(1.55rem, 3vh, 2.4rem);
}

.genre-strip-label {
  margin: 0;
  color: #e1d4bf;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.genre-filters {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.genre-filter {
  border: 1px solid rgba(214, 186, 132, 0.32);
  background: rgba(20, 20, 20, 0.46);
  color: #efe5d5;
  padding: 0.58rem 0.95rem;
  font: inherit;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 260ms ease, border-color 260ms ease, color 260ms ease, background-color 260ms ease;
}

.genre-filter:hover,
.genre-filter:focus-visible {
  transform: translateY(-1px);
  color: #f7dba8;
  border-color: rgba(220, 184, 112, 0.76);
}

.genre-filter.is-active {
  border-color: rgba(220, 184, 112, 0.92);
  background: rgba(157, 118, 52, 0.22);
  color: #f8e6c5;
}

.spotlight {
  position: relative;
  z-index: 1;
  margin-top: clamp(1.8rem, 4.2vh, 3rem);
}

.spotlight-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(1.3rem, 3.3vw, 3.2rem);
  align-items: stretch;
  padding: clamp(1.25rem, 2vw, 1.85rem);
  border: 1px solid rgba(245, 232, 207, 0.16);
  background:
    radial-gradient(80% 95% at 12% 8%, rgba(188, 142, 72, 0.12), transparent 66%),
    linear-gradient(140deg, rgba(12, 12, 12, 0.86), rgba(18, 16, 12, 0.84));
  overflow: hidden;
}

.spotlight-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 30%),
    linear-gradient(360deg, rgba(12, 12, 12, 0.5), rgba(12, 12, 12, 0));
}

.spotlight-shell.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.06) 47%, rgba(255, 255, 255, 0) 74%);
  animation: spotlightShimmer 1.7s ease infinite;
}

.spotlight-cover {
  margin: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.46);
}

.spotlight-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0) 40%),
    linear-gradient(to right, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0) 54%);
}

.spotlight-cover img {
  width: 100%;
  height: 100%;
  min-height: clamp(280px, 52vh, 560px);
  object-fit: cover;
  display: block;
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1), filter 460ms ease;
}

.spotlight-shell:hover .spotlight-cover img {
  transform: scale(1.028);
  filter: saturate(1.08) contrast(1.04);
}

.spotlight-content {
  position: relative;
  align-self: center;
}

.spotlight-kicker {
  margin: 0;
  color: #d5a557;
  font-size: 0.72rem;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

.spotlight-meta {
  margin: 0.85rem 0 0;
  color: #d8c8ae;
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

#spotlightTitle {
  margin-top: 0.55rem;
  font-size: clamp(2.05rem, 4vw, 4.2rem);
  line-height: 0.94;
  max-width: 15ch;
}

.spotlight-author {
  margin: 0.8rem 0 0;
  color: #ebdeca;
  letter-spacing: 0.08em;
  font-size: 0.88rem;
  text-transform: uppercase;
}

.spotlight-description {
  margin: 1rem 0 0;
  color: #d9cebc;
  font-size: clamp(1.02rem, 1.06vw, 1.15rem);
  line-height: 1.62;
  max-width: 58ch;
}

.spotlight-footer {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.spotlight-note {
  margin: 0.85rem 0 0;
  color: #b7a88f;
  font-size: 0.82rem;
}

.related-section {
  position: relative;
  z-index: 1;
  margin-top: clamp(2.3rem, 4.8vh, 3.5rem);
}

.related-head h3,
.rail-head h3 {
  margin-top: 0.34rem;
  font-size: clamp(1.5rem, 3.2vw, 2.55rem);
  line-height: 1.02;
}

.related-list {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.related-item {
  border: 1px solid rgba(231, 214, 184, 0.15);
  background: rgba(16, 16, 16, 0.58);
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  padding: 0.62rem;
  text-decoration: none;
  color: inherit;
  transition: transform 290ms ease, border-color 290ms ease, background-color 290ms ease;
}

.related-item:hover,
.related-item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(218, 179, 109, 0.5);
  background: rgba(24, 22, 17, 0.76);
}

.related-cover {
  margin: 0;
  overflow: hidden;
}

.related-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

.related-genre {
  margin: 0;
  color: #d2a460;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.related-title {
  margin: 0.35rem 0 0;
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: clamp(1.02rem, 1.7vw, 1.36rem);
  line-height: 1.05;
}

.related-author {
  margin: 0.38rem 0 0;
  color: #decfb9;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.catalog-section {
  position: relative;
  z-index: 1;
  margin-top: clamp(2.3rem, 4.8vh, 3.5rem);
}

.catalog-head h3 {
  margin-top: 0.34rem;
  font-size: clamp(1.5rem, 3.2vw, 2.55rem);
  line-height: 1.02;
}

.all-books-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: clamp(0.8rem, 2vw, 1.25rem);
}

.book-grid-card {
  border: 1px solid rgba(235, 214, 178, 0.18);
  background: rgba(13, 13, 13, 0.68);
  overflow: hidden;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.book-grid-card.is-active {
  border-color: rgba(226, 182, 102, 0.76);
  box-shadow: 0 0 0 1px rgba(226, 182, 102, 0.34);
}

.book-grid-card:hover {
  transform: translateY(-3px);
  border-color: rgba(226, 182, 102, 0.6);
}

.book-grid-open {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.book-grid-cover {
  margin: 0;
  position: relative;
  overflow: hidden;
}

.book-grid-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0) 42%),
    linear-gradient(to right, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0) 62%);
}

.book-grid-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  transition: transform 420ms ease;
}

.book-grid-card:hover .book-grid-cover img {
  transform: scale(1.04);
}

.book-grid-content {
  padding: 0.68rem 0.66rem 0.78rem;
}

.book-grid-genre {
  margin: 0;
  color: #c99746;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.book-grid-title {
  margin: 0.36rem 0 0;
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: clamp(1rem, 1.2vw, 1.22rem);
  line-height: 1.04;
}

.book-grid-author {
  margin: 0.38rem 0 0;
  color: #dfd1bc;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-grid-rating {
  margin: 0.5rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #e9dec8;
}

.book-grid-buy {
  width: 100%;
  margin-top: 0.62rem;
  min-height: 38px;
  font-size: 0.64rem;
  padding: 0.58rem 0.76rem;
}

.curated-rail {
  position: relative;
  z-index: 1;
  margin-top: clamp(2.3rem, 4.8vh, 3.5rem);
}

.rail-list {
  margin-top: 1.2rem;
  border-top: 1px solid rgba(240, 224, 196, 0.16);
}

.rail-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(240, 224, 196, 0.11);
  background: transparent;
  color: inherit;
  padding: 1rem 0.2rem;
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  transition: transform 260ms ease, color 260ms ease, background-color 260ms ease;
}

.rail-item:hover,
.rail-item:focus-visible {
  transform: translateX(6px);
  color: #f7e6c7;
  background: linear-gradient(90deg, rgba(181, 137, 67, 0.14), rgba(181, 137, 67, 0));
}

.rail-item.is-active {
  color: #f4dfb6;
}

.rail-index {
  color: #b89761;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rail-title {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  line-height: 1.02;
}

.rail-author {
  color: #ccba9d;
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.search-field-wrap {
  position: relative;
}

.search-suggestions {
  position: relative;
  z-index: 1;
  margin-top: 0.42rem;
  width: 100%;
  border: 1px solid rgba(227, 200, 151, 0.22);
  background: rgba(12, 12, 12, 0.94);
  backdrop-filter: blur(8px);
  max-height: min(56vh, 380px);
  overflow-y: auto;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.search-suggestions.is-visible {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.suggestion-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(232, 212, 180, 0.11);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0.72rem 0.8rem;
  display: grid;
  gap: 0.22rem;
}

.suggestion-item:last-child {
  border-bottom: 0;
}

.suggestion-item:hover,
.suggestion-item:focus-visible {
  background: rgba(181, 137, 67, 0.2);
}

.suggestion-title {
  font-size: 0.95rem;
  color: #f2e8d8;
}

.suggestion-meta {
  color: #cdbca0;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

@keyframes spotlightShimmer {
  from {
    transform: translateX(-70%);
  }
  to {
    transform: translateX(70%);
  }
}

@media (max-width: 960px) {
  .spotlight-shell {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .spotlight-cover {
    max-width: min(72vw, 330px);
  }

  .related-list {
    grid-template-columns: 1fr;
  }

  .all-books-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rail-item {
    grid-template-columns: auto 1fr;
    gap: 0.62rem;
  }

  .rail-author {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  .all-books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
  }

  .book-grid-content {
    padding: 0.62rem;
  }
}
