/* ==========================================================================
   ספריית לח"י — סקיצת עיצוב מחודש
   FUP Erez · כחול עמוק + תכלת · רקעים לבנים
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "FUP Erez";
  src: url("fonts/FUPErez-Light.woff2") format("woff2"),
       url("fonts/FUPErez-Light.woff") format("woff");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "FUP Erez";
  src: url("fonts/FUPErez-Regular.woff2") format("woff2"),
       url("fonts/FUPErez-Regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "FUP Erez";
  src: url("fonts/FUPErez-Medium.woff2") format("woff2"),
       url("fonts/FUPErez-Medium.woff") format("woff");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "FUP Erez";
  src: url("fonts/FUPErez-SemiBold.woff2") format("woff2"),
       url("fonts/FUPErez-SemiBold.woff") format("woff");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "FUP Erez";
  src: url("fonts/FUPErez-Bold.woff2") format("woff2"),
       url("fonts/FUPErez-Bold.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "FUP Erez";
  src: url("fonts/FUPErez-ExtraBold.woff2") format("woff2"),
       url("fonts/FUPErez-ExtraBold.woff") format("woff");
  font-weight: 800; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy:        #0b2a4a;   /* דיו עמוק */
  --navy-soft:   #143b63;
  --blue:        #1660a8;   /* כחול מותג */
  --blue-bright: #2f86d4;
  --teal:        #1fb6c9;   /* תכלת */
  --teal-deep:   #0e93a6;
  --sky:         #e8f4f8;   /* תכלת בהיר לרקעים */
  --paper:       #ffffff;
  --mist:        #f5f9fc;
  --line:        #e2ebf3;
  --line-strong: #cfdded;
  --ink:         #0e2236;
  --muted:       #5d7081;
  --muted-soft:  #8499a8;
  --gold:        #c79a4b;   /* נגיעת מורשת חמה */

  --radius:   18px;
  --radius-s: 12px;
  --radius-l: 28px;
  --shadow-sm: 0 2px 10px rgba(11,42,74,.06);
  --shadow:    0 18px 50px -22px rgba(11,42,74,.35);
  --shadow-lg: 0 40px 90px -40px rgba(11,42,74,.45);
  --maxw: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "FUP Erez", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  direction: rtl;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--teal); color: #fff; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }

/* ---------- Decorative background texture ---------- */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 500px at 88% -8%, rgba(31,182,201,.10), transparent 60%),
    radial-gradient(800px 600px at -10% 5%, rgba(22,96,168,.08), transparent 55%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(11,42,74,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,42,74,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .82rem; font-weight: 700; letter-spacing: .02em;
  color: var(--teal-deep); text-transform: none;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
}
.section-head { margin-bottom: 38px; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.1;
  margin-top: 12px; color: var(--navy);
}
.section-head p { color: var(--muted); max-width: 56ch; margin-top: 10px; font-size: 1.02rem; }
.section-head.between { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: inherit; font-weight: 700; font-size: .98rem;
  padding: 13px 24px; border-radius: 100px; cursor: pointer;
  border: 1px solid transparent; transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--teal-deep));
  color: #fff; box-shadow: 0 14px 30px -12px rgba(22,96,168,.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -12px rgba(22,96,168,.7); }
.btn-ghost {
  background: #fff; color: var(--navy); border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep); transform: translateY(-2px); }
.btn-soft { background: var(--sky); color: var(--blue); }
.btn-soft:hover { background: #d9eef4; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
  background: rgba(255,255,255,.9);
}
.nav {
  display: flex; align-items: center; gap: 28px;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 13px; margin-inline-end: auto; }
.brand .mark {
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(150deg, var(--navy), var(--blue) 60%, var(--teal));
  display: grid; place-items: center; color: #fff; flex: none;
  box-shadow: 0 10px 22px -10px rgba(22,96,168,.7);
  position: relative; overflow: hidden;
}
.brand .mark span {
  font-weight: 800; font-size: 1.32rem; line-height: 1; letter-spacing: -.03em;
}
.brand .mark::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.4), transparent 55%);
}
.brand .txt b { display: block; font-weight: 800; font-size: 1.16rem; color: var(--navy); letter-spacing: -.02em; line-height: 1.1; }
.brand .txt small { font-size: .76rem; color: var(--muted); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-weight: 600; font-size: .98rem; color: var(--ink);
  padding: 9px 15px; border-radius: 100px; transition: all .2s;
  position: relative;
}
.nav-links a:hover { color: var(--blue); background: var(--mist); }
.nav-links a.active { color: var(--blue); }
.nav-links a.active::after {
  content: ""; position: absolute; bottom: 2px; right: 15px; left: 15px;
  height: 2px; border-radius: 2px; background: var(--teal);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; display: grid; place-items: center; cursor: pointer;
  color: var(--navy); transition: all .2s;
}
.icon-btn:hover { border-color: var(--teal); color: var(--teal-deep); }
.icon-btn svg { width: 20px; height: 20px; }
.burger { display: none; }

/* ---------- Announcement strip ---------- */
.ann {
  background: linear-gradient(90deg, var(--navy), var(--navy-soft));
  color: #dceaf5; font-size: .9rem; text-align: center;
  padding: 9px 20px; font-weight: 500;
}
.ann b { color: #fff; font-weight: 700; }
.ann .dot { color: var(--teal); margin-inline: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--sky); color: var(--teal-deep); font-weight: 700; font-size: .85rem;
  padding: 7px 15px; border-radius: 100px; margin-bottom: 22px;
}
.hero-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); display: block;
  box-shadow: 0 0 0 4px rgba(31,182,201,.2); }
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  font-weight: 800; line-height: 1.04; letter-spacing: -.03em; color: var(--navy);
}
.hero h1 .grad {
  background: linear-gradient(115deg, var(--blue), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  margin: 22px 0 30px; font-size: 1.16rem; color: var(--muted); max-width: 50ch; font-weight: 400;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

/* Hero search */
.hero-search {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 100px;
  padding: 7px 7px 7px 20px; max-width: 480px; box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, border-color .25s;
}
.hero-search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(31,182,201,.15); }
.hero-search svg { width: 21px; height: 21px; color: var(--muted-soft); flex: none; }
.hero-search input {
  border: 0; outline: 0; flex: 1; font-family: inherit; font-size: 1rem;
  background: transparent; color: var(--ink);
}
.hero-search input::placeholder { color: var(--muted-soft); }
.hero-search button { flex: none; padding: 11px 22px; }

.hero-stats { display: flex; gap: 30px; margin-top: 30px; }
.hero-stats .st b { display: block; font-size: 1.9rem; font-weight: 800; color: var(--navy); line-height: 1; letter-spacing: -.02em; }
.hero-stats .st span { font-size: .86rem; color: var(--muted); font-weight: 500; }
.hero-stats .sep { width: 1px; background: var(--line); }

/* Hero visual — fanned books */
.hero-visual { position: relative; height: 460px; }
.hero-visual .float-book {
  position: absolute; border-radius: 8px 4px 4px 8px;
  box-shadow: var(--shadow-lg);
}
.fb1 { width: 230px; height: 330px; left: 18%; top: 60px; transform: rotate(-6deg); z-index: 3; }
.fb2 { width: 200px; height: 290px; left: -2%; top: 110px; transform: rotate(5deg); z-index: 2; opacity: .96; }
.fb3 { width: 195px; height: 285px; right: -2%; top: 95px; transform: rotate(8deg); z-index: 1; opacity: .94; }
.hero-visual .badge-float {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 11px; font-size: .9rem; font-weight: 600; z-index: 5;
}
.badge-float .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none; }
.bf-read  { bottom: 36px; right: 0; }
.bf-read .ic  { background: linear-gradient(135deg, var(--blue), var(--blue-bright)); }
.bf-shop  { top: 18px; left: 4%; }
.bf-shop .ic  { background: linear-gradient(135deg, var(--teal-deep), var(--teal)); }
.badge-float small { display: block; color: var(--muted); font-weight: 500; font-size: .76rem; }

/* ---------- Generated book covers ---------- */
.cover {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  padding: 20px 18px; color: #fff; overflow: hidden;
  background: linear-gradient(160deg, var(--navy), var(--blue));
  isolation: isolate;
}
.cover::before { /* spine */
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 9px;
  background: rgba(0,0,0,.22);
  box-shadow: inset -3px 0 6px rgba(255,255,255,.12);
}
.cover::after { /* sheen */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 80% at 80% 0%, rgba(255,255,255,.16), transparent 55%);
}
.cover .c-top { display: flex; align-items: center; justify-content: space-between; }
.cover .c-emblem {
  width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid rgba(255,255,255,.55);
  display: grid; place-items: center; font-weight: 800; font-size: .8rem;
}
.cover .c-cat { font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  background: rgba(255,255,255,.18); padding: 4px 9px; border-radius: 100px; }
.cover .c-title { font-weight: 800; font-size: 1.32rem; line-height: 1.12; letter-spacing: -.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.cover .c-author { font-size: .82rem; opacity: .85; font-weight: 500; margin-top: 4px; }
.cover .c-rule { height: 2px; width: 34px; background: var(--teal); border-radius: 2px; margin: 10px 0 8px; }
/* photo cover — real book-cover image instead of generated one */
.cover.photo { padding: 0; background: #eef3f8; }
.cover.photo::before, .cover.photo::after { display: none; }
.cover.photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
/* color variants */
.cv-navy  { background: linear-gradient(160deg, #0b2a4a, #15568f); }
.cv-teal  { background: linear-gradient(160deg, #0e93a6, #1fb6c9); }
.cv-blue  { background: linear-gradient(160deg, #143b63, #2f86d4); }
.cv-deep  { background: linear-gradient(160deg, #07203a, #0e6f8a); }
.cv-slate { background: linear-gradient(160deg, #1a3a52, #3a7fa6); }
.cv-ink   { background: linear-gradient(160deg, #0b2540, #1660a8); }

/* ---------- Categories ---------- */
.cats { padding: 26px 0 8px; }
.cat-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); background: #fff; border-radius: 100px;
  padding: 10px 18px; font-weight: 600; font-size: .96rem; color: var(--navy);
  cursor: pointer; transition: all .22s var(--ease);
}
.cat-chip:hover { border-color: var(--teal); color: var(--teal-deep); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cat-chip.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.cat-chip .n { font-size: .78rem; opacity: .6; font-weight: 500; }

/* ---------- Section spacing ---------- */
section.block { padding: 64px 0; }

/* ---------- Book grid ---------- */
.book-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
}
.book-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  display: flex; flex-direction: column;
}
.book-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.book-card .cover { aspect-ratio: 3/4; border-radius: 0; }
.book-card .bc-body { padding: 16px 17px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.book-card .bc-cat { font-size: .76rem; font-weight: 700; color: var(--teal-deep); }
.book-card h3 { font-size: 1.12rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; line-height: 1.2; }
.book-card .bc-author { font-size: .9rem; color: var(--muted); }
.book-card .bc-actions { display: flex; gap: 8px; margin-top: 12px; }
.book-card .bc-actions .btn { flex: 1; justify-content: center; padding: 10px 12px; font-size: .9rem; }

/* ---------- 3D glass coverflow ---------- */
.carousel {
  position: relative; margin-top: 8px;
  padding: 16px 0 30px;
  overflow: hidden;
}
.cs-stage {
  position: relative; height: 640px;
  perspective: 1900px; transform-style: preserve-3d;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.cs-item {
  position: absolute; top: 50%; left: 50%;
  width: 360px;
  transform: translate(-50%, -50%);
  transition: transform .6s var(--ease), opacity .55s var(--ease), filter .55s var(--ease);
  will-change: transform, opacity;
  cursor: pointer;
}
.cs-item.is-active { cursor: default; }
.cs-item.is-side { opacity: .55; }
.cs-item.is-hidden { opacity: 0; pointer-events: none; }
.cs-item:not(.is-active) .glass-card { pointer-events: none; }

/* clean card on white */
.glass-card {
  background: transparent;
  border: 0; padding: 0;
  display: flex; flex-direction: column;
}
.glass-card .cover.photo {
  width: 100%; aspect-ratio: 3/4; border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.gc-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 8px 6px; }
.gc-cat { color: var(--teal-deep); font-weight: 700; font-size: .9rem; }
.gc-body h3 { font-size: 1.55rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; line-height: 1.15; }
.gc-author { color: #3a5167; font-size: 1rem; font-weight: 500; }
.gc-actions { display: flex; gap: 10px; margin-top: 16px; }
.gc-actions .btn { flex: 1; justify-content: center; padding: 12px 12px; font-size: .98rem; }

/* nav arrows */
.cs-nav {
  position: absolute; top: 44%; transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%; z-index: 20;
  background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.7); color: var(--navy);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); backdrop-filter: blur(6px);
  transition: all .25s var(--ease);
}
.cs-nav:hover { color: var(--teal-deep); transform: translateY(-50%) scale(1.08); }
.cs-nav:active { transform: translateY(-50%) scale(.95); }
.cs-nav svg { width: 22px; height: 22px; }
.cs-prev { right: 14px; } /* RTL: previous on the right */
.cs-next { left: 14px; }

/* dots */
.cs-dots { display: flex; gap: 9px; justify-content: center; margin-top: 20px; }
.cs-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--line-strong); transition: all .3s var(--ease);
}
.cs-dots button.on { background: var(--teal-deep); width: 26px; border-radius: 100px; }

@media (max-width: 640px) {
  .cs-stage { height: 540px; }
  .cs-item { width: 280px; }
  .cs-nav { width: 44px; height: 44px; }
  .cs-prev { right: 6px; } .cs-next { left: 6px; }
}

/* ---------- Spotlight (ספר נבחר) ---------- */
.spotlight {
  background: linear-gradient(150deg, var(--navy), var(--navy-soft) 70%, #0e4a6b);
  border-radius: var(--radius-l); padding: 54px; color: #fff; position: relative; overflow: hidden;
}
.spotlight::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 90% 110%, rgba(31,182,201,.3), transparent 60%);
}
.spotlight-grid { position: relative; display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: center; }
.spotlight .cover { aspect-ratio: 3/4; border-radius: 10px; box-shadow: var(--shadow-lg); }
.spotlight .sp-eyebrow { color: var(--teal); font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; gap: 8px; }
.spotlight .sp-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--teal); display: block; }
.spotlight h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; margin: 14px 0 6px; line-height: 1.08; }
.spotlight .sp-author { color: #a9c8de; font-weight: 600; margin-bottom: 16px; }
.spotlight p { color: #cfe1ef; max-width: 60ch; font-size: 1.05rem; }
.spotlight .sp-cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.spotlight .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.spotlight .btn-ghost:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); }

/* ---------- Mission / memorial ---------- */
.mission { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.mission .quote {
  font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; color: var(--navy);
  letter-spacing: -.02em; line-height: 1.3;
}
.mission .quote .hl { color: var(--teal-deep); }
.feature-list { display: grid; gap: 18px; }
.feature-list .fi { display: flex; gap: 15px; align-items: flex-start; }
.feature-list .fi .ic { width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--teal-deep)); box-shadow: 0 10px 20px -10px rgba(22,96,168,.6); }
.feature-list .fi .ic svg { width: 22px; height: 22px; }
.feature-list .fi b { display: block; font-size: 1.05rem; color: var(--navy); font-weight: 700; }
.feature-list .fi span { color: var(--muted); font-size: .96rem; }

/* ---------- Index (אינדקס א-ב) ---------- */
.alpha-row { display: flex; flex-wrap: wrap; gap: 8px; }
.alpha-row a {
  width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line);
  display: grid; place-items: center; font-weight: 700; color: var(--navy); background: #fff;
  transition: all .2s;
}
.alpha-row a:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-2px); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 80px 0; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--navy); letter-spacing: -.025em; }
.cta-band p { color: var(--muted); font-size: 1.1rem; margin: 14px auto 28px; max-width: 52ch; }
.cta-band .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c6d8e7; padding: 64px 0 28px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand .txt b { color: #fff; }
.site-footer .brand .txt small { color: #8fb0c8; }
.site-footer p.about { margin-top: 16px; font-size: .94rem; color: #9fbcd2; max-width: 38ch; }
.footer-col h4 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; font-size: .94rem; color: #b3cbdd; transition: color .2s; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: .88rem; color: #8fb0c8;
}
.footer-bottom a { color: var(--teal); font-weight: 600; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-delay="1"]{ transition-delay:.08s } [data-delay="2"]{ transition-delay:.16s }
[data-delay="3"]{ transition-delay:.24s } [data-delay="4"]{ transition-delay:.32s }
[data-delay="5"]{ transition-delay:.40s } [data-delay="6"]{ transition-delay:.48s }

/* ---------- Book detail page ---------- */
.book-hero { padding: 48px 0 36px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 26px; display: flex; gap: 8px; align-items: center; }
.crumbs a:hover { color: var(--blue); }
.crumbs .sep { color: var(--muted-soft); }
.detail-grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.detail-cover-col { position: sticky; top: 100px; }
.detail-cover-col .cover { aspect-ratio: 3/4; border-radius: 14px; box-shadow: var(--shadow-lg); }
.detail-actions { display: grid; gap: 10px; margin-top: 22px; }
.detail-actions .btn { width: 100%; justify-content: center; padding: 14px; }
.detail-meta-card { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px; background: #fff; }
.detail-meta-card .mrow { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.detail-meta-card .mrow:last-child { border-bottom: 0; }
.detail-meta-card .mrow span { color: var(--muted); }
.detail-meta-card .mrow b { color: var(--navy); font-weight: 700; }

.detail-body .d-cat { color: var(--teal-deep); font-weight: 700; font-size: .9rem; }
.detail-body h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; color: var(--navy); letter-spacing: -.03em; line-height: 1.05; margin: 10px 0 8px; }
.detail-body .d-author { font-size: 1.15rem; color: var(--muted); font-weight: 500; }
.detail-body .d-author b { color: var(--blue); font-weight: 700; }
.detail-divider { height: 1px; background: var(--line); margin: 28px 0; }
.detail-body h3 { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.detail-body p.syn { font-size: 1.08rem; color: #38516b; line-height: 1.85; max-width: 64ch; }
.detail-body p.syn + p.syn { margin-top: 16px; }
.tag-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.tag { background: var(--sky); color: var(--teal-deep); font-weight: 600; font-size: .88rem; padding: 7px 14px; border-radius: 100px; }

/* related */
.related { margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .book-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { height: 380px; order: -1; }
  .mission-grid, .spotlight-grid, .detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .detail-cover-col { position: static; max-width: 300px; }
  .nav-links { display: none; }
  .burger { display: grid; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 18px; }
  .book-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .spotlight, .cta-band { padding: 36px 22px; }
  .hero-stats { flex-wrap: wrap; gap: 18px; }
  .hero-search { max-width: 100%; }
  .book-card .bc-actions { flex-direction: column; }
}
@media (max-width: 430px) {
  .book-grid { grid-template-columns: 1fr; }
}
