/*
 * Jakili — editorial bookstore stylesheet (forked from Himaso master-template).
 * All visual identity flows through CSS variables in :root — to rebrand for a
 * future domain, edit data/site.json (theme block) or override these vars.
 */

/* ---------------- THEME TOKENS (overridden at runtime by /script.js) ----------------- */
:root {
  --bg:               #05060A;
  --bg-elevated:      #08090F;
  --bg-elevated-2:    #0C0E16;
  --bg-elevated-3:    #11131D;
  --border:           rgba(255,255,255,0.07);
  --border-strong:    rgba(255,255,255,0.14);
  --text:             #F5F4FF;
  --text-secondary:   rgba(245,244,255,0.65);
  --text-tertiary:    rgba(245,244,255,0.45);
  --text-muted:       rgba(245,244,255,0.35);

  --violet:           #8A6BFF;
  --violet-deep:      #5B3FE4;
  --violet-mist:      #B6A3FF;
  --azure:            #5BB6FF;
  --azure-deep:       #2E7FE0;
  --gold:             #E8C9A0;
  --gold-deep:        #C9A26E;

  --font-sans:        'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display:     'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --container-max:    1280px;
  --gutter:           1.5rem;

  --radius-sm:        10px;
  --radius-md:        16px;
  --radius-lg:        24px;
  --radius-xl:        32px;
  --radius-full:      9999px;

  --shadow-card:      0 30px 60px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05) inset;
  --shadow-glow:      0 0 60px -10px rgba(138,107,255,0.40), 0 0 120px -30px rgba(91,182,255,0.22);
  --shadow-soft:      0 0 40px -10px rgba(138,107,255,0.30);

  --easing:           cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  letter-spacing: -0.011em;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}

/* Cinematic atmospheric base layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(138, 107, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 30%, rgba(91, 182, 255, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 50% at 0% 70%, rgba(199, 158, 92, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.025;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}
main, header, footer, section, article { position: relative; z-index: 2; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
input, select, textarea {
  font-family: inherit;
  color: inherit;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgb(8, 9, 15); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(138, 107, 255, 0.45), rgba(91, 182, 255, 0.30));
  border-radius: 8px;
  border: 2px solid rgb(8, 9, 15);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(138, 107, 255, 0.7), rgba(91, 182, 255, 0.5));
}
::selection { background: rgba(138, 107, 255, 0.35); color: white; }

/* ---------------- LAYOUT PRIMITIVES ----------------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 1024px) {
  .container { padding-inline: 3rem; }
}

.section { padding-block: 5rem; position: relative; }
@media (min-width: 768px) { .section { padding-block: 7rem; } }

.section--tight { padding-block: 3.5rem; }
@media (min-width: 768px) { .section--tight { padding-block: 5rem; } }

.section--bordered { border-top: 1px solid rgba(255,255,255,0.05); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: rgba(138, 107, 255, 0.6);
}

.h1, h1.display { font-size: clamp(2.5rem, 5vw + 1rem, 5rem); }
.h2, h2.display { font-size: clamp(1.75rem, 2.4vw + 1rem, 3rem); }
.h3 { font-size: clamp(1.25rem, 1vw + 1rem, 1.75rem); }
.display, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0;
}
.h2 { line-height: 1.1; }
.h3 { line-height: 1.2; }

.text-balance { text-wrap: balance; }
.text-pretty  { text-wrap: pretty; }

.lead {
  max-width: 36rem;
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.125rem);
  line-height: 1.65;
  color: var(--text-secondary);
}

.text-gradient {
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 60%, var(--violet-mist) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient--warm {
  background: linear-gradient(120deg, var(--gold) 0%, var(--violet-mist) 60%, var(--azure) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted { color: var(--text-secondary); }
.muted-2 { color: var(--text-tertiary); }
.muted-3 { color: var(--text-muted); }

/* ---------------- HEADER / NAV ----------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background-color 0.4s var(--easing), border-color 0.4s var(--easing);
  border-bottom: 1px solid transparent;
}
.site-header[data-scrolled="true"] {
  background: rgba(5,6,10,0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
@media (min-width: 640px) { .site-header__inner { height: 80px; } }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}
.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--violet), var(--violet-deep) 60%, var(--azure-deep));
  box-shadow: 0 0 24px -4px rgba(138,107,255,0.6), inset 0 0 0 1px rgba(255,255,255,0.15);
  display: inline-grid;
  place-items: center;
  position: relative;
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent);
  pointer-events: none;
}
.brand__mark svg {
  width: 58%;
  height: 58%;
  position: relative;
  z-index: 1;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #fff, var(--violet-mist));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 1024px) { .site-nav { display: inline-flex; } }
.site-nav a {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: color 0.25s var(--easing);
}
.site-nav a:hover { color: var(--text); }
.site-nav a.is-active { color: var(--text); }
.site-nav a.is-active::after {
  content: "";
  position: absolute;
  inset: auto 12px -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.icon-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text-secondary);
  transition: background 0.25s var(--easing), border-color 0.25s var(--easing), color 0.25s var(--easing);
}
@media (min-width: 640px) { .icon-btn { display: inline-flex; } }
.icon-btn:hover { color: var(--text); border-color: rgba(182,163,255,0.4); background: rgba(182,163,255,0.10); }

.btn-mini {
  display: none;
  align-items: center;
  gap: 0.375rem;
  height: 40px;
  padding-inline: 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: rgba(245,244,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.25s var(--easing), border-color 0.25s var(--easing), color 0.25s var(--easing);
}
@media (min-width: 1024px) { .btn-mini { display: inline-flex; } }
.btn-mini:hover { color: white; border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); }

.menu-toggle {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: rgba(245,244,255,0.85);
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(5,6,10,0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-block: 1rem;
}
.mobile-nav a {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: background 0.2s var(--easing), color 0.2s var(--easing);
}
.mobile-nav a:hover, .mobile-nav a.is-active { background: rgba(255,255,255,0.04); color: var(--text); }

/* ---------------- HERO ----------------- */
.hero {
  position: relative;
  padding-block: 9rem 6rem;
  overflow: hidden;
}
@media (min-width: 1024px) { .hero { padding-block: 13rem 9rem; } }

.hero__halo,
.section__halo {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
}
.hero__halo--violet {
  width: 520px; height: 520px;
  background: rgba(138,107,255,0.20);
  top: -120px; left: -120px;
}
.hero__halo--azure {
  width: 480px; height: 480px;
  background: rgba(91,182,255,0.15);
  top: 30%; right: -120px;
}
.hero__halo--gold {
  width: 360px; height: 360px;
  background: rgba(232,201,160,0.10);
  bottom: -120px; left: 30%;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 7fr 5fr; gap: 3rem; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: rgba(245,244,255,0.75);
  backdrop-filter: blur(8px);
}
.pill--accent { color: var(--violet-mist); }

.hero__title {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.75rem, 4.5vw + 1rem, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.hero__lead {
  margin-top: 1.75rem;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.hero__cta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.4s var(--easing), background 0.25s var(--easing), border-color 0.25s var(--easing), color 0.25s var(--easing);
}
.btn-primary {
  background: white;
  color: #06070C;
}
.btn-primary:hover { background: rgba(255,255,255,0.92); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: rgba(245,244,255,0.85);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.25); color: white; transform: translateY(-1px); }

.hero__stats {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2.5rem;
  font-size: 0.875rem;
  color: rgba(245,244,255,0.5);
}
.hero__stats .num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}
.hero__stats .num em { color: var(--violet-mist); font-style: normal; }
.hero__stats .label {
  margin-top: 0.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,244,255,0.4);
}
.hero__stats .divider { width: 1px; height: 32px; background: rgba(255,255,255,0.1); }

.hero__stack {
  position: relative;
  height: 640px;
  display: none;
}
@media (min-width: 1024px) { .hero__stack { display: block; } }

.hero__cover {
  position: absolute;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 40px 90px -25px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.08);
  transition: transform 0.6s var(--easing);
  background: var(--bg-elevated);
}
.hero__cover:hover { transform: translateY(-6px) rotate(0deg) !important; }
.hero__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__cover--1 { left: 12%; top: 6%; width: 300px; height: 440px; transform: rotate(-2deg); }
.hero__cover--2 { right: 2%; top: 18%; width: 250px; height: 360px; transform: rotate(6deg); }
.hero__cover--3 { left: 2%; bottom: 2%; width: 200px; height: 280px; transform: rotate(-8deg); }

.hero__pickcard {
  position: absolute;
  bottom: 6%;
  right: 8%;
  width: 240px;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(8,9,15,0.85);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
}
.hero__pickcard .eyebrow { color: var(--violet-mist); font-size: 10px; }
.hero__pickcard .eyebrow::before { background: var(--violet-mist); }
.hero__pickcard h4 {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
}
.hero__pickcard .author { color: var(--text-tertiary); font-size: 0.8rem; margin-top: 0.25rem; }
.hero__pickcard .blurb { color: var(--text-secondary); font-size: 0.78rem; margin-top: 0.75rem; line-height: 1.55; }

.hero__rail {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0 1.5rem 1rem;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  scroll-snap-type: x mandatory;
}
@media (min-width: 1024px) { .hero__rail { display: none; } }
.hero__rail::-webkit-scrollbar { display: none; }
.hero__rail-card {
  position: relative;
  flex: 0 0 auto;
  width: 160px;
  height: 224px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elevated);
  scroll-snap-align: start;
  border: 1px solid var(--border);
}
.hero__rail-card img { width: 100%; height: 100%; object-fit: cover; }
.hero__rail-card .label {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 0.75rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: linear-gradient(0deg, var(--bg) 10%, transparent);
}

/* ---------------- SECTION HEADER ----------------- */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
.section-header__copy { max-width: 36rem; }
.section-header__copy h2 { margin-top: 1rem; }
.section-header__copy .lead { margin-top: 1rem; }
.section-header .cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(245,244,255,0.85);
  transition: background 0.25s var(--easing), border-color 0.25s var(--easing), color 0.25s var(--easing);
}
.section-header .cta:hover { color: white; background: rgba(182,163,255,0.10); border-color: rgba(182,163,255,0.5); }

/* ---------------- BOOK CARD ----------------- */
.book-grid {
  display: grid;
  gap: 1.5rem;
}
.book-grid--cols-1 { grid-template-columns: 1fr; }
.book-grid--cols-2 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .book-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
  .book-grid--cols-3 { grid-template-columns: repeat(2, 1fr); }
  .book-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .book-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
  .book-grid--cols-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  .book-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.book-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255,255,255,0.03), transparent);
  backdrop-filter: blur(14px);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-card);
  transition: transform 0.5s var(--easing), border-color 0.4s var(--easing), box-shadow 0.5s var(--easing);
}
.book-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.book-card__cover {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-elevated);
}
.book-card--compact .book-card__cover { aspect-ratio: 3 / 4; }
.book-card__cover .accent {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--violet-deep), var(--azure-deep));
  opacity: 0.85;
  z-index: 0;
}
.book-card__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 1s var(--easing);
}
.book-card:hover .book-card__cover img { transform: scale(1.05); }
.book-card__cover .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5,6,10,0.85) 0%, rgba(5,6,10,0) 35%);
  z-index: 2;
}
.book-card__chip,
.book-card__rating {
  position: absolute;
  top: 1rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(5,6,10,0.65);
  backdrop-filter: blur(6px);
  color: rgba(245,244,255,0.9);
}
.book-card__chip { left: 1rem; }
.book-card__rating { right: 1rem; letter-spacing: 0; text-transform: none; }
.book-card__rating svg { width: 11px; height: 11px; color: var(--gold); fill: var(--gold); }

.book-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.book-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  text-wrap: balance;
}
.book-card__meta {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}
.book-card__blurb {
  margin-top: 1rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-card__foot {
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  display: inline-flex;
  gap: 0.5rem;
}

/* ---------------- CATEGORY RAIL ----------------- */
.category-rail {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .category-rail { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .category-rail { grid-template-columns: repeat(4, 1fr); } }
.category-card {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255,255,255,0.025), transparent);
  overflow: hidden;
  transition: transform 0.4s var(--easing), border-color 0.4s var(--easing), background 0.4s var(--easing);
  height: 100%;
  display: block;
}
.category-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--violet-mist), transparent 70%);
  opacity: 0.18;
  filter: blur(40px);
  transition: opacity 0.5s var(--easing);
}
.category-card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent); }
.category-card:hover::before { opacity: 0.35; }
.category-card .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.category-card .count {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.category-card .desc {
  margin-top: 1rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.category-card .arrow {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06);
  display: grid;
  place-items: center;
  transition: background 0.3s var(--easing), color 0.3s var(--easing);
  color: var(--text-secondary);
}
.category-card:hover .arrow { background: var(--violet-mist); color: #06070C; }

/* ---------------- HORIZONTAL RAIL ----------------- */
.h-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 75%;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0 1.5rem 1rem;
  margin: 0 -1.5rem;
  scroll-snap-type: x mandatory;
}
@media (min-width: 640px) { .h-rail { grid-auto-columns: 45%; } }
@media (min-width: 1024px) { .h-rail { grid-auto-columns: 24%; padding: 0; margin: 0; overflow: visible; }}
.h-rail > * { scroll-snap-align: start; }
.h-rail::-webkit-scrollbar { display: none; }

/* ---------------- PULL QUOTE ----------------- */
.pull-quote {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(91,63,228,0.15), rgba(8,9,15,0.6) 50%, rgba(46,127,224,0.10));
  padding: 3rem 2rem;
  overflow: hidden;
  backdrop-filter: blur(24px);
}
@media (min-width: 768px) { .pull-quote { padding: 5rem 3.5rem; } }
.pull-quote::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(138,107,255,0.30);
  filter: blur(120px);
  pointer-events: none;
}
.pull-quote::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -100px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(91,182,255,0.20);
  filter: blur(120px);
  pointer-events: none;
}
.pull-quote svg.qmark { width: 32px; height: 32px; color: var(--violet-mist); opacity: 0.8; }
.pull-quote p {
  margin: 1.5rem 0 0;
  max-width: 48rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.7vw + 1rem, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.pull-quote .source {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* ---------------- GENRE STRIPS ----------------- */
.genre-strip {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1024px) {
  .genre-strip { grid-template-columns: 4fr 8fr; gap: 3rem; }
  .genre-strip--reverse > .genre-strip__copy { order: 2; }
}

.genre-strip__copy h3 {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.genre-strip__copy a.shelf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--violet-mist);
  transition: color 0.25s var(--easing);
}
.genre-strip__copy a.shelf-link:hover { color: white; }

/* ---------------- AWARD/READER SPLIT ----------------- */
.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}
@media (min-width: 1024px) { .split-grid { grid-template-columns: repeat(2, 1fr); gap: 5rem; } }

/* ---------------- STAFF ----------------- */
.staff-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .staff-grid { grid-template-columns: 4fr 8fr; align-items: flex-start; } }

/* ---------------- AUTHORS ----------------- */
.author-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .author-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .author-grid { grid-template-columns: repeat(5, 1fr); } }
.author-tile {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  padding: 1rem 1.1rem;
  transition: border-color 0.3s var(--easing), background 0.3s var(--easing);
}
.author-tile:hover { border-color: var(--border-strong); background: rgba(255,255,255,0.04); }
.author-tile .name { font-weight: 500; }
.author-tile .count {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* ---------------- CTA BLOCK ----------------- */
.cta-block {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(8,9,15,0.85), rgba(8,9,15,0.45) 50%, rgba(91,63,228,0.10));
  overflow: hidden;
  backdrop-filter: blur(24px);
}
@media (min-width: 768px) { .cta-block { padding: 5rem 3.5rem; } }
.cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, white, transparent 80%);
  -webkit-mask-image: linear-gradient(180deg, white, transparent 80%);
  opacity: 0.18;
  pointer-events: none;
}
.cta-block__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .cta-block__inner { grid-template-columns: 7fr 5fr; align-items: center; }
}
.cta-block .actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 1024px) { .cta-block .actions { align-items: flex-end; } }

/* ---------------- FOOTER ----------------- */
.site-footer {
  margin-top: 6rem;
  border-top: 1px solid var(--border);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(138,107,255,0.4), transparent);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-block: 4rem;
}
@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: 5fr 7fr; }
}
.site-footer .desc {
  margin-top: 1.25rem;
  max-width: 28rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-tertiary);
}
.site-footer .email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: color 0.25s var(--easing), background 0.25s var(--easing), border-color 0.25s var(--easing);
}
.site-footer .email:hover { color: white; border-color: rgba(182,163,255,0.4); background: rgba(182,163,255,0.10); }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
.footer-cols h3 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0;
}
.footer-cols ul {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-cols a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.25s var(--easing);
}
.footer-cols a:hover { color: white; }

.site-footer__base {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-block: 2rem 2.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
@media (min-width: 640px) {
  .site-footer__base { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------------- BOOK DETAIL ----------------- */
.book-hero {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  padding-block: 3rem 2.5rem;
}
@media (min-width: 768px) { .book-hero { padding-block: 5rem 3rem; } }
@media (min-width: 1024px) { .book-hero { grid-template-columns: 5fr 7fr; gap: 4rem; } }

.book-hero__cover {
  position: relative;
  max-width: 24rem;
  margin-inline: auto;
}
@media (min-width: 1024px) { .book-hero__cover { margin-inline: 0; } }
.book-hero__cover .glow {
  position: absolute;
  inset: -1.5rem;
  border-radius: 40px;
  background: linear-gradient(135deg, var(--violet-deep), var(--azure-deep));
  opacity: 0.45;
  filter: blur(36px);
  z-index: -1;
}
.book-hero__cover .frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-elevated);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,0.7);
  border: 1px solid var(--border);
}
.book-hero__cover .frame img { width: 100%; height: 100%; object-fit: cover; }

.book-hero__crumbs {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  transition: color 0.25s var(--easing);
}
.book-hero__crumbs:hover { color: white; }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}
.meta-row .pill { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; }
.meta-row .rating-row {
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.meta-row .rating-row svg { width: 14px; height: 14px; color: var(--gold); fill: var(--gold); }
.meta-row .rating-row strong { color: var(--text); font-weight: 500; }

.book-hero__title {
  margin: 1.5rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 2.5vw + 1rem, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.book-hero__by {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--text-secondary);
}
.book-hero__by a { color: white; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.25); text-underline-offset: 4px; transition: text-decoration-color 0.25s var(--easing); }
.book-hero__by a:hover { text-decoration-color: var(--violet-mist); }

.theme-chips {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text-secondary);
  transition: background 0.25s var(--easing), border-color 0.25s var(--easing), color 0.25s var(--easing);
}
.chip:hover { color: white; border-color: rgba(182,163,255,0.4); background: rgba(182,163,255,0.10); }
.chip[data-active="true"] { color: white; border-color: rgba(182,163,255,0.6); background: rgba(182,163,255,0.18); }
.chip--ghost { background: transparent; }

.about-author {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-tertiary);
}
.about-author strong { color: rgba(245,244,255,0.8); font-weight: 500; }
.about-author a { color: var(--violet-mist); transition: color 0.25s var(--easing); }
.about-author a:hover { color: white; }

.meta-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .meta-grid { grid-template-columns: repeat(4, 1fr); } }
.meta-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
  padding: 1rem;
  display: flex;
  flex-direction: column;
}
.meta-card .label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.meta-card .label svg { width: 12px; height: 12px; }
.meta-card .value { margin-top: 0.5rem; font-weight: 600; font-size: 1rem; }

.cta-sticky {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 1024px) { .cta-sticky { position: sticky; top: 7rem; } }
.cta-sticky .actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.section-split {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .section-split { grid-template-columns: 4fr 8fr; gap: 4rem; }
}

.section-split h2 { margin-top: 1rem; }

.takeaways {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .takeaways { grid-template-columns: repeat(2, 1fr); } }
.takeaways li {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(245,244,255,0.8);
}
.takeaways .num {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--violet), var(--azure));
  color: white;
}

.info-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent);
}
.info-card .eyebrow { color: var(--violet-mist); font-size: 10px; }
.info-card .eyebrow::before { background: var(--violet-mist); }
.info-card h3 {
  margin: 0.75rem 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}
.info-card p { margin: 0; font-size: 0.875rem; line-height: 1.65; color: rgba(245,244,255,0.75); }

.book-mobile-cta {
  position: fixed;
  inset: auto 0 0;
  z-index: 50;
  background: rgba(5,6,10,0.92);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(18px);
  padding: 1rem;
}
@media (min-width: 1024px) { .book-mobile-cta { display: none; } }
.book-mobile-cta__inner {
  display: flex;
  gap: 0.75rem;
}
.book-mobile-cta .btn { flex: 1; padding: 0.85rem 1rem; font-size: 0.85rem; }

.external-links {
  margin-top: 2rem;
}
.external-links .label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.external-links .links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.external-links .small-print {
  margin-top: 0.75rem;
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------------- AUTHOR PAGE ----------------- */
.author-hero {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  padding-block: 3rem 2.5rem;
}
@media (min-width: 1024px) { .author-hero { grid-template-columns: 5fr 7fr; gap: 4rem; padding-block: 4rem 3rem; } }
.author-card {
  position: relative;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(91,63,228,0.25), rgba(8,9,15,0.85) 60%, rgba(46,127,224,0.18));
  overflow: hidden;
}
.author-card::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(138,107,255,0.25);
  filter: blur(90px);
  pointer-events: none;
}
.author-card h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 2vw + 1rem, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
}
.author-card .genres {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.author-card .bio {
  margin-top: 2rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(245,244,255,0.78);
  max-width: 36rem;
  text-wrap: pretty;
}
.author-card figure {
  margin: 2.5rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.author-card figure svg.qmark { width: 26px; height: 26px; color: var(--violet-mist); opacity: 0.8; }
.author-card figure blockquote {
  margin: 1rem 0 0;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1.4;
  color: rgba(245,244,255,0.92);
  font-weight: 500;
  text-wrap: pretty;
}
.author-card figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.author-list ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.author-list li a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.25s var(--easing);
}
.author-list li a:hover { color: white; }
.author-list .thumb {
  position: relative;
  width: 28px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-elevated);
}
.author-list .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- SEARCH ----------------- */
.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent);
  backdrop-filter: blur(20px);
}
@media (min-width: 640px) { .search-bar { padding: 1.25rem 1.75rem; } }
.search-bar input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 1rem;
  color: white;
}
@media (min-width: 640px) { .search-bar input { font-size: 1.125rem; } }
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar svg { color: var(--text-tertiary); }

.filter-row {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) { .filter-row { flex-direction: row; align-items: center; justify-content: space-between; } }

.sort {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.sort select {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: rgba(8,9,15,0.85);
  font-size: 0.85rem;
  color: rgba(245,244,255,0.85);
  outline: 0;
  letter-spacing: normal;
  text-transform: none;
}
.sort select:focus { border-color: rgba(182,163,255,0.5); }

.results-count {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ---------------- LEGAL / PROSE ----------------- */
.prose {
  margin: 0 auto;
  max-width: 48rem;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(245,244,255,0.78);
}
.prose h1, .prose h2, .prose h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; color: white; }
.prose h1 { font-size: clamp(2rem, 2vw + 1rem, 3rem); margin: 0 0 1.5rem; line-height: 1.05; }
.prose h2 { font-size: 1.5rem; margin: 3rem 0 1rem; }
.prose h3 { font-size: 1.15rem; margin: 2rem 0 0.75rem; }
.prose p { margin: 0 0 1.25rem; }
.prose ul, .prose ol { margin: 0 0 1.5rem 1.5rem; padding: 0; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--violet-mist); text-decoration: underline; text-underline-offset: 4px; }
.prose a:hover { color: white; }
.prose strong { color: white; font-weight: 600; }
.prose blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--violet-mist);
  background: rgba(255,255,255,0.025);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: rgba(245,244,255,0.85);
  font-style: italic;
}

/* ---------------- ANIMATIONS ----------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--easing), transform 0.7s var(--easing);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ---------------- UTILITY ----------------- */
.skip-link {
  position: absolute;
  inset: auto auto auto -10000px;
  background: var(--violet-deep);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
}
.skip-link:focus { inset: 1rem auto auto 1rem; z-index: 100; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.notice {
  border: 1px dashed var(--border-strong);
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  color: var(--text-secondary);
  text-align: center;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  min-height: 320px;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* ======================================================================
   Jakili — warm ivory / espresso / terracotta (runtime theme aligns)
   ====================================================================== */

body::before {
  background:
    radial-gradient(ellipse 90% 65% at 15% -8%, color-mix(in srgb, var(--violet) 22%, transparent), transparent 58%),
    radial-gradient(ellipse 70% 55% at 92% 22%, color-mix(in srgb, var(--azure) 18%, transparent), transparent 55%),
    radial-gradient(ellipse 55% 50% at 8% 72%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 55%);
  opacity: 1;
}
body::after {
  opacity: 0.035;
  mix-blend-mode: multiply;
}

.text-gradient {
  background: linear-gradient(185deg, var(--text) 0%, var(--text) 52%, var(--violet-mist) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient--warm {
  background: linear-gradient(125deg, var(--gold-deep) 0%, var(--violet-mist) 42%, var(--azure-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-header[data-scrolled="true"] {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom-color: var(--border);
}
.mobile-nav {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}
.mobile-nav a:hover, .mobile-nav a.is-active {
  background: color-mix(in srgb, var(--violet-mist) 12%, var(--bg));
}

.brand__mark {
  box-shadow:
    0 14px 38px -18px color-mix(in srgb, var(--violet-deep) 55%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--text) 10%, transparent);
}
.brand__name {
  background: linear-gradient(92deg, var(--text), var(--violet-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.icon-btn,
.menu-toggle,
.btn-mini {
  background: color-mix(in srgb, var(--bg-elevated) 85%, transparent);
  color: var(--text-secondary);
  border-color: var(--border);
}
.icon-btn:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--violet-mist) 55%, var(--border));
  background: color-mix(in srgb, var(--violet-mist) 10%, var(--bg));
}
.btn-mini:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: color-mix(in srgb, var(--gold) 12%, var(--bg));
}
.menu-toggle:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--gold) 10%, var(--bg));
}

.hero__halo--violet {
  background: color-mix(in srgb, var(--violet) 28%, transparent);
}
.hero__halo--azure {
  background: color-mix(in srgb, var(--azure) 22%, transparent);
}
.hero__halo--gold {
  background: color-mix(in srgb, var(--gold) 22%, transparent);
}

.pill {
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  color: var(--text-secondary);
  border-color: var(--border);
}
.pill--jakili .pill-k { color: var(--text); font-weight: 600; }
.pill--jakili .pill-slash { color: var(--text-muted); margin-inline: 0.15rem; }
.pill--jakili .pill-strong { color: var(--violet-deep); font-weight: 700; }
.pill--jakili .pill-rest { color: var(--text-secondary); font-weight: 400; }

.btn-primary {
  background: linear-gradient(135deg, var(--violet-deep), var(--violet));
  color: #fffaf6;
  border: 1px solid color-mix(in srgb, var(--violet-deep) 40%, transparent);
  box-shadow: 0 18px 42px -22px color-mix(in srgb, var(--violet-deep) 65%, transparent);
}
.btn-primary:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--violet-deep) 88%, black), var(--violet-deep));
  color: #fffaf6;
}
.btn-ghost {
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: color-mix(in srgb, var(--gold) 14%, var(--bg));
  border-color: color-mix(in srgb, var(--violet-mist) 45%, var(--border));
  color: var(--text);
}

.hero__stats { color: var(--text-tertiary); }
.hero__stats .divider { background: var(--border-strong); }
.hero__pickcard {
  background: color-mix(in srgb, var(--bg-elevated-2) 94%, var(--text));
  border-color: var(--border);
}
.hero__rail-card .label {
  background: linear-gradient(0deg, var(--bg) 12%, transparent);
  color: var(--text);
}

.section--compact { padding-block: 3.75rem; }
@media (min-width: 768px) { .section--compact { padding-block: 5rem; } }

.home-grid-gap { margin-top: 2.75rem; }
.genre-stack-gap {
  margin-top: 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 3.25rem;
}
.genre-strip__h {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 1.2vw + 1rem, 2rem);
  line-height: 1.15;
  margin: 0.75rem 0 0;
}

.collections-jakili {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin-top: 2.75rem;
}
.collection-panel {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, color-mix(in srgb, var(--bg-elevated) 96%, transparent), transparent);
  box-shadow: var(--shadow-card);
}
.collection-panel__head { max-width: 40rem; margin-bottom: 1.5rem; }
.collection-panel__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.5vw + 1rem, 2.25rem);
  margin: 0.75rem 0 0;
  letter-spacing: -0.03em;
}
.collection-panel__desc {
  margin: 0.75rem 0 0;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 1rem;
}

.author-grid--jakili {
  margin-top: 2.5rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.section-header .cta:hover {
  color: var(--violet-deep);
  background: color-mix(in srgb, var(--violet-mist) 12%, var(--bg));
  border-color: color-mix(in srgb, var(--violet-mist) 45%, var(--border));
}

.book-card {
  background: linear-gradient(145deg, color-mix(in srgb, var(--bg-elevated) 98%, transparent), transparent);
  box-shadow: 0 22px 50px -34px rgba(40, 28, 22, 0.35), 0 0 0 1px color-mix(in srgb, var(--border) 70%, transparent) inset;
}

.cta-block {
  border-color: var(--border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 18%, var(--bg)), color-mix(in srgb, var(--bg-elevated) 96%, transparent));
}

.pull-quote { border-color: var(--border); }

::-webkit-scrollbar-track { background: var(--bg-elevated-2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, color-mix(in srgb, var(--violet) 45%, transparent), color-mix(in srgb, var(--gold) 35%, transparent));
  border: 2px solid var(--bg-elevated-2);
}
::selection {
  background: color-mix(in srgb, var(--violet-mist) 35%, transparent);
  color: var(--text);
}

.notice {
  background: color-mix(in srgb, var(--bg-elevated) 95%, transparent);
}
.skeleton {
  background: color-mix(in srgb, var(--text) 5%, transparent);
}
.skeleton::after {
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text) 8%, transparent), transparent);
}

.brand__mark { color: #fffaf6; }
