/* =====================================================
   DESIGN TOKENS
===================================================== */
:root{
  --navy-900:#0F1D33;
  --navy-800:#16294A;
  --navy-700:#1B2A4A;
  --navy-600:#233860;
  --blue-500:#4C7EA8;
  --blue-100:#E8EFF7;
  --gold-500:#B8862E;
  --gold-400:#C79A44;
  --gold-300:#D9A94A;
  --gold-100:#F6ECD8;
  --white:#FFFFFF;
  --cream:#F7F8FB;
  --ink:#1E2636;
  --muted:#5C6478;
  --muted-light:#8891A3;
  --rule:#E3E6ED;

  --font-display:'Fraunces', Georgia, serif;
  --font-body:'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm:10px;
  --radius-md:16px;
  --radius-lg:24px;

  --shadow-sm: 0 2px 10px rgba(15,29,51,0.06);
  --shadow-md: 0 12px 32px rgba(15,29,51,0.10);
  --shadow-lg: 0 24px 64px rgba(15,29,51,0.16);

  --container: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  line-height:1.55;
}

h1,h2,h3{
  font-family:var(--font-display);
  color:var(--navy-800);
  margin:0 0 0.5em;
  line-height:1.15;
  font-weight:600;
}

p{ margin:0 0 1em; color:var(--muted); }

a{ color:inherit; text-decoration:none; }

.wrap{
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}

.skip-link{
  position:absolute; left:-999px; top:0;
  background:var(--navy-800); color:var(--white); padding:12px 18px;
  z-index:999; border-radius:0 0 8px 0;
}
.skip-link:focus{ left:0; }

:focus-visible{
  outline:3px solid var(--gold-400);
  outline-offset:2px;
}

/* =====================================================
   BUTTONS
===================================================== */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-body);
  font-weight:700;
  font-size:0.95rem;
  padding:14px 26px;
  border-radius:999px;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); }
.btn:active{ transform:translateY(0); }

.btn-primary{
  background:linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color:var(--navy-900);
  box-shadow:0 10px 24px rgba(184,134,46,0.35);
}
.btn-primary:hover{ box-shadow:0 14px 30px rgba(184,134,46,0.45); }

.btn-ghost{
  background:transparent;
  border-color:rgba(27,42,74,0.18);
  color:var(--navy-800);
}
.btn-ghost:hover{ background:rgba(27,42,74,0.05); }

.btn-outline{
  background:transparent;
  border-color:var(--gold-500);
  color:var(--gold-500);
  margin-top:0.5rem;
}
.btn-outline:hover{ background:var(--gold-100); }

.btn-large{ padding:16px 32px; font-size:1rem; }
.btn-small{ padding:9px 18px; font-size:0.85rem; }

.icon-download{ flex-shrink:0; }

/* =====================================================
   HEADER
===================================================== */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,0.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--rule);
}
.header-inner{
  display:flex; align-items:center; gap:24px;
  height:76px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-family:var(--font-display);
  font-weight:600;
  color:var(--navy-800);
  margin-right:auto;
  font-size:1.02rem;
}
.brand-mark{
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:9px;
  background:var(--navy-800);
  color:var(--gold-300);
  font-family:var(--font-display);
  font-weight:700; font-size:1.1rem;
}
.brand-text em{
  display:block; font-style:normal; font-family:var(--font-body);
  font-weight:400; font-size:0.68rem; color:var(--muted-light);
  letter-spacing:0.03em; margin-top:1px;
}

.main-nav{ display:flex; gap:28px; }
.main-nav a{
  font-size:0.93rem; font-weight:600; color:var(--navy-700);
  position:relative; padding:6px 0;
}
.main-nav a::after{
  content:''; position:absolute; left:0; bottom:0; height:2px; width:0;
  background:var(--gold-500); transition:width .2s ease;
}
.main-nav a:hover::after{ width:100%; }

.header-cta{ flex-shrink:0; }

.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:40px; height:40px; background:none; border:none; cursor:pointer;
}
.nav-toggle span{
  display:block; height:2px; width:100%; background:var(--navy-800); border-radius:2px;
  transition:transform .2s ease, opacity .2s ease;
}

/* =====================================================
   HERO
===================================================== */
.hero{
  position:relative;
  padding:76px 0 60px;
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(199,154,68,0.14), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  overflow:hidden;
}
.hero-inner{
  display:grid;
  grid-template-columns:1.05fr 0.95fr;
  gap:56px;
  align-items:center;
}
.badge{
  display:inline-block;
  font-size:0.78rem; font-weight:700; letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--gold-500);
  background:var(--gold-100);
  padding:7px 14px;
  border-radius:999px;
  margin-bottom:22px;
}
.hero-title{
  font-size:clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight:600;
  letter-spacing:-0.01em;
}
.hero-title span{ color:var(--gold-500); font-style:italic; }
.hero-subtitle{
  font-family:var(--font-display);
  font-size:1.2rem; color:var(--navy-700); font-weight:500;
  margin-bottom:18px;
}
.hero-desc{
  font-size:1.05rem; max-width:520px; margin-bottom:32px;
}
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom:36px; }

.hero-meta{
  display:flex; gap:28px; flex-wrap:wrap;
  list-style:none; padding:0; margin:0;
  border-top:1px solid var(--rule); padding-top:22px;
}
.hero-meta li{ font-size:0.85rem; color:var(--muted); }
.hero-meta strong{ display:block; font-family:var(--font-display); font-size:1.5rem; color:var(--navy-800); }

/* --- 3D Book mockup --- */
.hero-visual{ display:flex; justify-content:center; perspective:1400px; }
.book-stage{
  position:relative;
  width:300px; height:450px;
  transform-style:preserve-3d;
  transform:rotateY(-18deg) rotateX(4deg);
  animation:float 6s ease-in-out infinite;
}
@keyframes float{
  0%,100%{ transform:rotateY(-18deg) rotateX(4deg) translateY(0); }
  50%{ transform:rotateY(-15deg) rotateX(3deg) translateY(-10px); }
}
.book-shadow{
  position:absolute; left:10%; right:5%; bottom:-30px; height:40px;
  background:radial-gradient(ellipse, rgba(15,29,51,0.35), transparent 70%);
  filter:blur(6px);
}
.page-stack{ position:absolute; inset:0; }
.page-stack span{
  position:absolute; inset:0;
  background:var(--white);
  border:1px solid var(--rule);
  border-radius:4px;
  box-shadow:var(--shadow-sm);
}
.page-stack span:nth-child(1){ transform:translateZ(-6px) translateX(4px); }
.page-stack span:nth-child(2){ transform:translateZ(-12px) translateX(8px); }
.page-stack span:nth-child(3){ transform:translateZ(-18px) translateX(12px); }

.book-cover{
  position:relative;
  width:100%; height:100%;
  background:linear-gradient(155deg, var(--navy-700), var(--navy-900));
  border-radius:4px;
  box-shadow:var(--shadow-lg), inset 3px 0 0 rgba(255,255,255,0.06);
  padding:38px 30px;
  display:flex; flex-direction:column; align-items:center; text-align:center;
}
.book-eyebrow{
  font-size:0.62rem; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--gold-300); font-weight:700; margin-bottom:26px;
}
.book-kicker{
  font-size:0.78rem; letter-spacing:0.06em; text-transform:uppercase;
  color:var(--white); font-weight:700; margin-bottom:10px;
}
.book-title{
  font-family:var(--font-display); font-size:1.75rem; font-weight:600;
  color:var(--white); line-height:1.15; margin-bottom:22px;
}
.book-rule{ width:70px; height:2px; background:var(--gold-300); margin-bottom:22px; }
.book-sub{
  font-family:var(--font-display); font-style:italic; font-size:0.92rem;
  color:var(--gold-300); line-height:1.5; margin-bottom:auto;
}
.book-foot{ font-size:0.72rem; color:rgba(255,255,255,0.55); margin-top:20px; }

.hero-fade{
  position:absolute; left:0; right:0; bottom:0; height:60px;
  background:linear-gradient(180deg, transparent, var(--white));
  pointer-events:none;
}

/* =====================================================
   SECTIONS (generic)
===================================================== */
.section{ padding:96px 0; }
.section-tint{ background:var(--cream); }
.section-dark{ background:var(--navy-900); }

.section-head{ max-width:640px; margin-bottom:52px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size:clamp(1.7rem, 3vw, 2.3rem); }
.section-head.light h2, h2.light{ color:var(--white); }
.section-lede{ font-size:1.05rem; }
.section-lede.light-muted{ color:rgba(255,255,255,0.65); }

.eyebrow{
  display:inline-block;
  font-size:0.78rem; font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--gold-500); margin-bottom:14px;
}
.eyebrow-light{ color:var(--gold-300); }

.center{ text-align:center; }

/* =====================================================
   ABOUT
===================================================== */
.about-grid{
  display:grid;
  grid-template-columns:0.8fr 1.2fr;
  gap:56px;
  align-items:start;
}
.about-body p{ font-size:1.05rem; }
.about-points{
  display:grid; grid-template-columns:1fr 1fr; gap:16px 24px; margin-top:28px;
}
.about-point{
  display:flex; align-items:flex-start; gap:10px;
  font-size:0.92rem; color:var(--navy-700); font-weight:600;
}
.about-point svg{ color:var(--gold-500); flex-shrink:0; margin-top:1px; }

/* =====================================================
   CATEGORY CARDS
===================================================== */
.category-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:22px;
}
.cat-card{
  background:var(--white);
  border:1px solid var(--rule);
  border-radius:var(--radius-md);
  padding:28px 24px;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.cat-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-md);
  border-color:transparent;
}
.cat-icon{
  width:52px; height:52px; border-radius:14px;
  background:var(--navy-800);
  color:var(--gold-300);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:18px;
}
.cat-card h3{ font-size:1.05rem; margin-bottom:8px; }
.cat-card p{ font-size:0.9rem; margin:0; }

/* =====================================================
   FEATURE GRID
===================================================== */
.feature-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:22px;
}
.feature-card{
  background:var(--white);
  border:1px solid var(--rule);
  border-radius:var(--radius-md);
  padding:30px 26px;
  position:relative;
}
.feature-card svg{ color:var(--gold-500); margin-bottom:16px; }
.feature-num{
  display:block;
  font-family:var(--font-display); font-size:2.2rem; font-weight:700;
  color:var(--gold-500); margin-bottom:10px; line-height:1;
}
.feature-card h3{ font-size:1.05rem; margin-bottom:8px; }
.feature-card p{ font-size:0.9rem; margin:0; }

/* =====================================================
   PREVIEW
===================================================== */
.preview-strip{
  display:grid;
  grid-template-columns:0.9fr 1fr 1fr;
  gap:26px;
  align-items:stretch;
}
.preview-cover{ display:flex; align-items:center; justify-content:center; }
.mini-book{
  width:100%; max-width:230px; aspect-ratio:3/4.1;
  background:linear-gradient(155deg, var(--navy-700), var(--navy-900));
  border-radius:8px;
  box-shadow:var(--shadow-lg);
  padding:26px 20px;
  display:flex; flex-direction:column; align-items:center; text-align:center;
}
.mini-kicker{ font-size:0.6rem; letter-spacing:0.08em; text-transform:uppercase; color:var(--white); font-weight:700; margin-bottom:8px; }
.mini-title{ font-family:var(--font-display); font-size:1.15rem; color:var(--white); font-weight:600; margin-bottom:14px; }
.mini-rule{ width:44px; height:2px; background:var(--gold-300); margin-bottom:14px; }
.mini-sub{ font-family:var(--font-display); font-style:italic; font-size:0.72rem; color:var(--gold-300); }

.preview-page{
  background:var(--white);
  border-radius:var(--radius-md);
  padding:28px 26px;
  box-shadow:var(--shadow-md);
  position:relative;
}
.mock-page-head{ width:60%; height:12px; background:var(--navy-800); border-radius:3px; margin-bottom:18px; }
.mock-chip{ width:34%; height:10px; background:var(--gold-400); border-radius:3px; margin-bottom:16px; }
.mock-line{ height:9px; border-radius:3px; background:var(--rule); margin-bottom:10px; }
.mock-line.tall{ height:16px; }
.w95{ width:95%; } .w90{ width:90%; } .w80{ width:80%; } .w70{ width:70%; } .w60{ width:60%; } .w50{ width:50%; } .w40{ width:40%; }
.mock-badges{ display:flex; gap:8px; margin:16px 0; }
.mock-badges span{ flex:1; height:34px; background:var(--blue-100); border-radius:6px; }
.mock-table{ display:flex; flex-direction:column; gap:6px; margin-top:16px; }
.mock-table span{ height:14px; background:var(--cream); border:1px solid var(--rule); border-radius:3px; }
.preview-label{
  position:absolute; bottom:16px; left:26px; right:26px;
  font-size:0.72rem; color:var(--muted-light); font-weight:600;
  border-top:1px dashed var(--rule); padding-top:10px;
}

/* =====================================================
   90-DAY PLAN
===================================================== */
.plan-grid{
  display:grid;
  grid-template-columns:0.85fr 1.15fr;
  gap:56px;
  align-items:center;
}
.plan-grid h2{ font-size:clamp(1.7rem, 3vw, 2.2rem); }
.plan-steps{ display:flex; flex-direction:column; gap:16px; }
.plan-step{
  background:var(--cream);
  border-left:3px solid var(--gold-500);
  border-radius:0 var(--radius-md) var(--radius-md) 0;
  padding:22px 26px;
}
.plan-days{
  display:inline-block; font-size:0.75rem; font-weight:700; letter-spacing:0.05em;
  color:var(--gold-500); text-transform:uppercase; margin-bottom:6px;
}
.plan-step h3{ font-size:1.05rem; margin-bottom:6px; }
.plan-step p{ font-size:0.9rem; margin:0; }

/* =====================================================
   AUDIENCE
===================================================== */
.audience-grid{
  display:grid; grid-template-columns:repeat(4, 1fr); gap:22px;
}
.audience-card{
  background:var(--white); border:1px solid var(--rule); border-radius:var(--radius-md);
  padding:26px 22px; text-align:left;
}
.audience-card svg{ color:var(--gold-500); margin-bottom:14px; }
.audience-card h3{ font-size:0.98rem; margin-bottom:6px; }
.audience-card p{ font-size:0.87rem; margin:0; }

/* =====================================================
   BOOK DETAILS
===================================================== */
.details-wrap{ display:flex; justify-content:center; }
.details-card{
  width:100%; max-width:720px;
  background:linear-gradient(155deg, var(--navy-700), var(--navy-900));
  border-radius:var(--radius-lg);
  padding:48px;
  box-shadow:var(--shadow-lg);
}
.details-head{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:28px; flex-wrap:wrap; gap:8px; }
.details-head h2{ color:var(--white); margin:0; }
.details-head .eyebrow{ margin:0; }
.details-list{
  display:grid; grid-template-columns:1fr 1fr; gap:22px 32px;
  margin:0 0 32px;
}
.details-list dt{ font-size:0.72rem; letter-spacing:0.06em; text-transform:uppercase; color:var(--gold-300); font-weight:700; margin-bottom:4px; }
.details-list dd{ margin:0; color:var(--white); font-weight:600; font-size:0.95rem; }

/* =====================================================
   DISCLAIMER
===================================================== */
.disclaimer{
  background:var(--blue-100);
  padding:22px 0;
  border-top:1px solid var(--rule);
  border-bottom:1px solid var(--rule);
}
.disclaimer p{
  margin:0; font-size:0.85rem; color:var(--navy-700); text-align:center;
  max-width:820px; margin:0 auto;
}
.disclaimer strong{ color:var(--navy-900); }

/* =====================================================
   FINAL CTA
===================================================== */
.final-cta{
  padding:100px 0;
  text-align:center;
  background:
    radial-gradient(ellipse 700px 400px at 50% 0%, rgba(199,154,68,0.18), transparent 60%),
    var(--navy-900);
}
.final-cta-inner{ max-width:560px; margin:0 auto; }
.final-cta h2{ color:var(--white); font-size:clamp(1.8rem, 3.4vw, 2.5rem); }
.final-cta p{ color:rgba(255,255,255,0.7); font-size:1.05rem; margin-bottom:32px; }
.final-cta-note{ display:block; margin-top:16px; font-size:0.82rem; color:rgba(255,255,255,0.45); }

/* =====================================================
   FOOTER
===================================================== */
.site-footer{ background:var(--navy-900); padding:44px 0; }
.footer-inner{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px;
}
.footer-brand{
  display:flex; align-items:center; gap:10px;
  color:var(--white); font-family:var(--font-display); font-weight:600; font-size:0.95rem;
}
.footer-brand .brand-mark{ background:var(--gold-400); color:var(--navy-900); }
.footer-nav{ display:flex; gap:22px; flex-wrap:wrap; }
.footer-nav a{ font-size:0.85rem; color:rgba(255,255,255,0.65); }
.footer-nav a:hover{ color:var(--gold-300); }
.footer-copy{ font-size:0.8rem; color:rgba(255,255,255,0.4); margin:0; width:100%; text-align:center; padding-top:20px; border-top:1px solid rgba(255,255,255,0.08); }

/* =====================================================
   REVEAL ANIMATION
===================================================== */
.reveal{
  opacity:0; transform:translateY(18px);
  transition:opacity .7s ease, transform .7s ease;
}
.reveal.is-visible{ opacity:1; transform:translateY(0); }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width:1024px){
  .category-grid{ grid-template-columns:repeat(2, 1fr); }
  .feature-grid{ grid-template-columns:repeat(2, 1fr); }
  .audience-grid{ grid-template-columns:repeat(2, 1fr); }
  .preview-strip{ grid-template-columns:1fr 1fr; }
  .preview-cover{ grid-column:1 / -1; }
  .about-grid{ grid-template-columns:1fr; }
  .plan-grid{ grid-template-columns:1fr; }
}

@media (max-width:860px){
  .hero-inner{ grid-template-columns:1fr; text-align:center; }
  .hero-desc{ margin-left:auto; margin-right:auto; }
  .hero-actions{ justify-content:center; }
  .hero-meta{ justify-content:center; }
  .hero-visual{ order:-1; margin-bottom:10px; }
  .book-stage{ width:240px; height:360px; }
  .book-title{ font-size:1.4rem; }

  .main-nav{
    position:fixed; top:76px; left:0; right:0;
    background:var(--white);
    border-bottom:1px solid var(--rule);
    flex-direction:column; gap:0;
    padding:8px 24px 18px;
    transform:translateY(-12px);
    opacity:0; visibility:hidden;
    transition:opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .main-nav.is-open{ opacity:1; visibility:visible; transform:translateY(0); }
  .main-nav a{ padding:12px 0; border-bottom:1px solid var(--rule); }
  .header-cta{ display:none; }
  .nav-toggle{ display:flex; }
}

@media (max-width:640px){
  .wrap{ padding:0 20px; }
  .section{ padding:64px 0; }
  .category-grid{ grid-template-columns:1fr; }
  .feature-grid{ grid-template-columns:1fr; }
  .audience-grid{ grid-template-columns:1fr; }
  .preview-strip{ grid-template-columns:1fr; }
  .details-list{ grid-template-columns:1fr; }
  .details-card{ padding:32px 24px; }
  .about-points{ grid-template-columns:1fr; }
  .btn-large{ width:100%; justify-content:center; }
  .hero-actions{ flex-direction:column; }
  .hero-actions .btn{ width:100%; justify-content:center; }
}

/* =====================================================
   LIBRARY HOMEPAGE — book grid
===================================================== */
.lib-hero{ padding:76px 0 70px; text-align:center; }
.lib-hero .hero-copy{ margin:0 auto; align-items:center; display:flex; flex-direction:column; }
.lib-hero .hero-actions{ justify-content:center; }
.lib-hero .badge{ margin-left:auto; margin-right:auto; }

.book-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:26px;
}

.book-tile{
  display:flex;
  flex-direction:column;
  background:var(--white);
  border:1px solid var(--rule);
  border-radius:var(--radius-md);
  overflow:hidden;
  transition:transform .22s ease, box-shadow .22s ease;
}
a.book-tile:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-md);
}

.book-tile-cover{
  background:linear-gradient(155deg, var(--navy-700), var(--navy-900));
  padding:34px 24px;
  display:flex; flex-direction:column; align-items:center; text-align:center;
  min-height:220px;
  justify-content:center;
}
.book-tile-cover .mini-kicker{ font-size:0.6rem; letter-spacing:0.08em; text-transform:uppercase; color:var(--white); font-weight:700; margin-bottom:8px; }
.book-tile-cover .mini-title{ font-family:var(--font-display); font-size:1.2rem; color:var(--white); font-weight:600; margin-bottom:14px; line-height:1.2; }
.book-tile-cover .mini-rule{ width:44px; height:2px; background:var(--gold-300); margin-bottom:14px; display:block; }
.book-tile-cover .mini-sub{ font-family:var(--font-display); font-style:italic; font-size:0.75rem; color:var(--gold-300); }

.book-tile-body{ padding:24px; display:flex; flex-direction:column; gap:10px; flex:1; }
.book-tile-body h3{ font-size:1.05rem; margin:0; }
.book-tile-body p{ font-size:0.88rem; margin:0; flex:1; }
.book-tile-meta{ display:flex; gap:8px; font-size:0.78rem; color:var(--muted-light); font-weight:600; }
.book-tile-cta{
  display:inline-flex; align-items:center; gap:6px;
  font-size:0.85rem; font-weight:700; color:var(--gold-500);
  margin-top:4px;
}

.book-tile-empty{
  border:1.5px dashed var(--rule);
  background:transparent;
  align-items:center; justify-content:center;
  min-height:100%;
}
.book-tile-empty-inner{
  padding:40px 28px; text-align:center;
}
.book-tile-empty-inner svg{ color:var(--muted-light); margin-bottom:14px; }
.book-tile-empty-inner h3{ font-size:1rem; color:var(--muted); margin-bottom:6px; }
.book-tile-empty-inner p{ font-size:0.85rem; margin:0; }

@media (max-width:1024px){
  .book-grid{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:640px){
  .book-grid{ grid-template-columns:1fr; }
}

/* =====================================================
   REAL COVER IMAGE (replaces CSS-drawn book mockups)
===================================================== */
.book-cover-img{
  position:relative;
  width:100%; height:auto;
  object-fit:cover;
  border-radius:4px;
  box-shadow:var(--shadow-lg);
  display:block;
}

.mini-book-img{
  width:100%; max-width:230px; height:auto;
  aspect-ratio:2/3;
  object-fit:cover;
  border-radius:8px;
  box-shadow:var(--shadow-lg);
  display:block;
}

.book-tile-cover-img{
  padding:0 !important;
  min-height:0 !important;
  display:block !important;
}
.book-tile-cover-img img{
  width:100%;
  height:auto;
  aspect-ratio:2/3;
  object-fit:cover;
  display:block;
}
