/* ==========================================================================
   نشر میان‌سطر — نسخه‌ی نمایشی
   تم تیره‌ی تحریریه‌ای: قفسه‌ی عطف‌های سه‌بعدی، ناوبری پیشرفت، هیروی
   تایپوگرافیک با نوار عنوان‌ها، انتخاب ما، باشگاه، رویدادها، کتابفروشی
   و تجربه‌ی تمام‌صفحه‌ی جزئیات کتاب با کتاب سه‌بعدیِ واقعیِ شش‌وجهی.
   چیدمان راست‌به‌چپ؛ قلم متن: وزیرمتن — قلم نمایش: مارکزی.
   ========================================================================== */

:root {
  --bg: #1e1b17;
  --bg-soft: #26221d;
  --ink: #f4efe5;
  --ink-dim: rgba(244, 239, 229, 0.58);
  --ink-faint: rgba(244, 239, 229, 0.26);
  --paper: #f4efe5;          /* بخش روشن کتابفروشی و فوتر */
  --paper-ink: #21221d;
  --accent: #a84533;         /* قرمز اُخری — رنگ برند */
  --accent-deep: #8b2f2c;
  --green: #58675a;
  --serif: "Markazi Text", "Vazirmatn", Georgia, serif;  /* نمایش */
  --sans: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;   /* متن */
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --container: 1100px;
  --gutter: clamp(20px, 4vw, 48px);
  --display: var(--serif);
}

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

html { scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.detail-open { overflow: hidden; }

h1, h2, h3, p, ul, form, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.ltr { direction: ltr; unicode-bidi: isolate; }

.skip-link {
  position: fixed; top: 10px; inset-inline-start: 10px; z-index: 100;
  padding: 10px 16px; background: var(--paper); color: var(--paper-ink);
  font-size: 0.85rem; transform: translateY(-300%);
}
.skip-link:focus { transform: none; }

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* برچسب‌های کوچک — بدون letter-spacing (اتصال حروف فارسی) و بدون uppercase */
.eyebrow {
  font-size: 0.8rem; font-weight: 600;
  opacity: 0.62;
}

.link-arrow {
  display: inline-block;
  font-size: 0.9rem; font-weight: 500;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink-faint);
  transition: border-color 0.25s ease;
}
.link-arrow:hover { border-color: var(--ink); }

/* ==========================================================================
   Header — وردمارک، گوشه‌ی بالا-راست (شروع خط در RTL)
   ========================================================================== */
.site-header {
  position: fixed; top: 0; inset-inline-start: 0; z-index: 40;
  padding: clamp(18px, 2.6vw, 34px);
  color: #fff;
  mix-blend-mode: difference;
}
.brand { display: flex; gap: 14px; align-items: flex-start; }
.brand__mark { width: 38px; height: 38px; color: inherit; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.35; }
.brand__name { font-family: var(--display); font-size: 1.5rem; font-weight: 600; line-height: 1; padding-top: 2px; }
.brand__tag  { font-size: 0.78rem; opacity: 0.62; }
body.detail-open .site-header { opacity: 0; pointer-events: none; }

/* ==========================================================================
   ناوبری — پیوندها + سبد خرید، گوشه‌ی بالا-چپ (انتهای خط در RTL)
   ========================================================================== */
.mainnav {
  position: fixed; top: clamp(20px, 3vw, 36px); inset-inline-end: clamp(18px, 2.6vw, 34px); z-index: 40;
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 30px);
  color: #fff;
  mix-blend-mode: difference;
}
.mainnav__links { display: flex; gap: clamp(14px, 2vw, 26px); }
.mainnav__links a {
  font-size: 0.88rem; font-weight: 500; opacity: 0.72;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.mainnav__links a:hover { opacity: 1; border-color: currentColor; }
.mainnav__cart {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.88rem; font-weight: 600; opacity: 0.9;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.mainnav__cart:hover { opacity: 1; background: rgba(255, 255, 255, 0.92); color: #14110e; }
.cart-badge {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding-inline: 6px;
  background: currentColor; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700;
}
.mainnav__cart .cart-badge { background: #f4efe5; color: #14110e; }
.mainnav__cart:hover .cart-badge { background: #14110e; color: #f4efe5; }
body.detail-open .mainnav { opacity: 0; pointer-events: none; }
@media (max-width: 899.98px) { .mainnav__links { display: none; } }

/* ==========================================================================
   Progress rail — ستون خط‌ها، لبه‌ی چپ
   ========================================================================== */
.rail {
  position: fixed; inset-inline-end: clamp(14px, 2vw, 28px); top: 50%; z-index: 40;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 7px;
  mix-blend-mode: difference;
}
.rail__dash {
  width: 15px; height: 2px;
  background: rgba(255, 255, 255, 0.32);
  padding: 0;
  transition: background-color 0.25s ease, width 0.25s ease;
}
.rail__dash:hover { background: rgba(255, 255, 255, 0.62); }
.rail__dash.is-active { width: 24px; height: 3px; background: #fff; }
body.detail-open .rail { z-index: 70; }
@media (max-width: 899.98px) { .rail { display: none; } }

/* ==========================================================================
   هیرو — معرفی برند
   ========================================================================== */
.intro {
  min-height: 92svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: clamp(120px, 18vh, 220px);
}
.intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  align-items: end;
  gap: clamp(36px, 6vw, 96px);
  padding-bottom: clamp(48px, 9vh, 110px);
}
.intro__text {
  display: grid; justify-items: start; gap: clamp(18px, 3vh, 30px);
}

/* قفسه‌ی یک‌طبقه‌ی هیرو — هشت کتاب ایستاده روی یک تخته */
.hero-shelf { justify-self: stretch; min-width: 0; }
.minishelf {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 5px;
  padding: 0 clamp(6px, 1.4vw, 18px);
}
.minibook {
  position: relative;
  width: var(--w, 36px);
  height: var(--h, 156px);
  flex: none;
  background: var(--b, #444);
  color: var(--c, #eee);
  border-radius: 3px 3px 1px 1px;
  display: flex; justify-content: center;
  box-shadow:
    inset -4px 0 7px -4px rgba(0, 0, 0, 0.55),
    inset 2px 0 3px -2px rgba(255, 255, 255, 0.30),
    inset 0 3px 2px -2px rgba(255, 255, 255, 0.16),
    0 8px 16px -10px rgba(0, 0, 0, 0.65);
}
.minibook::before {
  content: "";
  position: absolute; inset-inline: 3px; top: 6px; height: 1px;
  background: currentColor; opacity: 0.35;
}
.minibook__t {
  writing-mode: vertical-rl;
  font-family: var(--display);
  font-size: 0.78rem; line-height: 1;
  padding-block: 12px 8px;
  opacity: 0.94;
  max-height: 100%;
  overflow: hidden;
  white-space: nowrap;
}
.minibook.is-lean {
  transform: rotate(7deg);
  transform-origin: bottom left;
  margin-inline-start: -10px;
  z-index: 1;
}
.minishelf-plank {
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(180deg, #4a3d30, #292119 75%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 14px 30px -14px rgba(0, 0, 0, 0.85);
}
.hero-shelf__cap {
  margin-top: 14px;
  font-size: 0.78rem;
  opacity: 0.45;
  text-align: center;
}
@media (max-width: 900px) {
  .intro__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-shelf { max-width: 400px; }
  .minibook__t { font-size: 0.68rem; }
}
.intro__title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 1.02;
}
.intro__copy {
  max-width: 54ch;
  font-size: 1.08rem; line-height: 2;
  color: var(--ink-dim);
}
.intro__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.intro__cta {
  padding: 12px 28px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper);
  font-size: 0.95rem; font-weight: 600;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.intro__cta:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-2px); }
.intro__cta--ghost { background: transparent; color: var(--ink); border-color: var(--ink-faint); }
.intro__cta--ghost:hover { background: rgba(244, 239, 229, 0.08); border-color: var(--ink); }

/* نوار عنوان‌ها — حرکت به سمت راست (جهت طبیعی خواندن فارسی) */
.ticker {
  border-block: 1px solid var(--ink-faint);
  overflow: hidden;
  padding-block: 16px;
}
.ticker__belt {
  display: flex; width: max-content;
  animation: ticker-belt 46s linear infinite;
}
.ticker:hover .ticker__belt { animation-play-state: paused; }
.ticker__list { display: flex; align-items: center; flex: none; }
.ticker__list li {
  font-family: var(--display); font-size: 1.5rem; font-weight: 500;
  white-space: nowrap; opacity: 0.85;
}
.ticker__list li + li::before {
  content: "·";
  padding-inline: clamp(18px, 2.6vw, 34px);
  opacity: 0.45;
}
@keyframes ticker-belt { to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker__belt { animation: none; }
}

/* ==========================================================================
   قفسه — میله‌های سه‌بعدی کتاب‌ها
   هر میله جعبه‌ای است که از کمی بالا دیده می‌شود: عطف روبه‌رو، طرح جلد
   روی وجه بالا و لبه‌ی کاغذی زیر آن.
   ========================================================================== */
.stack { padding-block: clamp(60px, 10vh, 120px) 12vh; }
.stack__intro {
  display: grid; justify-items: start; gap: 16px;
  margin-bottom: clamp(64px, 10vh, 120px);
  max-width: 760px;
}
.stack__heading {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.35;
}
.stack__hint { font-size: 0.85rem; opacity: 0.5; }
.stack__list {
  display: flex; flex-direction: column;
  align-items: center;
  gap: clamp(72px, 13vh, 150px);
}
.stack__noscript { color: var(--ink-dim); display: grid; gap: 12px; }

.book3d {
  display: block;
  width: min(880px, 88vw);
  perspective: 1300px;
  -webkit-tap-highlight-color: transparent;
}
.book3d__inner {
  position: relative;
  display: block;
  transform-style: preserve-3d;
  will-change: transform;
}

/* عطف — وجهِ روبه‌رو */
.book3d__spine {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: clamp(76px, 9.5vw, 106px);
  padding-inline: clamp(18px, 3vw, 36px);
  border-radius: clamp(7px, 0.8vw, 11px);
  background-color: var(--b);
  color: var(--c);
  box-shadow:
    0 34px 60px -26px rgba(0, 0, 0, 0.72),
    0 6px 16px -8px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
/* سایه‌ی لولای عطف دو طرف + براقی بالا */
.book3d__spine::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(0,0,0,0.36), rgba(0,0,0,0) 8%,
    rgba(0,0,0,0) 92%, rgba(0,0,0,0.32));
  pointer-events: none;
}
.book3d__spine::after {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: rgba(255, 255, 255, 0.22);
  pointer-events: none;
}
.book3d__author {
  font-size: clamp(0.68rem, 1.1vw, 0.82rem);
  font-weight: 600;
  opacity: 0.85;
  justify-self: start;
  max-width: 30%;
}
.book3d__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  line-height: 1.25;
  text-align: center;
  max-width: 100%;
}
.book3d__title.is-long  { font-size: clamp(1.15rem, 2.4vw, 1.7rem); }
.book3d__title.is-xlong { font-size: clamp(1rem, 2vw, 1.5rem); }
.f-vazir .book3d__title { font-family: var(--sans); font-weight: 800; }

/* نشان ناشر روی عطف — «م» میان‌سطر */
.book3d__mark {
  justify-self: end;
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 6px;
  opacity: 0.7;
}
.book3d__mark::after {
  content: "م";
  font-family: var(--display);
  font-size: 1.05rem; font-weight: 600; line-height: 1;
}

/* وجه بالا — جلد، با فورشورت، از بالا دیده می‌شود */
.book3d__top {
  position: absolute;
  left: 3px; right: 3px;
  bottom: calc(100% - 1px);
  height: clamp(66px, 8vw, 92px);
  transform-origin: bottom center;
  transform: rotateX(66deg);
  border-radius: clamp(7px, 0.8vw, 11px) clamp(7px, 0.8vw, 11px) 0 0;
  background-color: var(--art-bg, var(--b));
  background-image:
    radial-gradient(120% 90% at 30% 12%, rgba(255, 255, 255, 0.10), transparent 55%);
  box-shadow: inset 0 -14px 22px -14px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  will-change: transform;
}
.book3d__top::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.20), rgba(255,255,255,0) 26%),
    linear-gradient(0deg, rgba(0,0,0,0.28), rgba(0,0,0,0) 42%);
}

/* بلوک کاغذ — لبه‌ی صفحات زیر عطف */
.book3d__pages {
  position: absolute;
  left: 5px; right: 5px;
  top: calc(100% - 1px);
  height: var(--pg, 42px);
  transform-origin: top center;
  transform: rotateX(-72deg);
  border-radius: 0 0 9px 9px;  background-color: #e7e0cd;
  background-image:
    radial-gradient(120% 120% at 50% 0%, rgba(255,255,255,0.55), transparent 60%),
    repeating-linear-gradient(90deg,
      rgba(120, 106, 78, 0.20) 0 1px, transparent 1px 4px),
    linear-gradient(0deg, rgba(97, 84, 60, 0.35), rgba(97, 84, 60, 0) 55%);
  pointer-events: none;
  will-change: transform;
}

/* جلوه‌ی براقی در هاور */
.book3d__shine {
  position: absolute; inset: 0; z-index: 1;
  border-radius: inherit;
  pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.14) 46%, transparent 60%);
  transition: opacity 0.3s ease;
}
.book3d:hover .book3d__shine { opacity: 1; }

/* ==========================================================================
   طرح جلدها — فقط background-image تا روی هر وجهی بنشینند؛ هر کلاس
   می‌تواند رنگ چاپ جلد را با --art-bg جدا از رنگ پارچه‌ی عطف (--b) تعیین کند.
   ========================================================================== */

/* خیابان آخر تابستان — غروب، خورشید کم‌جان روی افق خیابان */
.pt-street {
  --art-bg: #822a1f;
  background-image:
    radial-gradient(16% 9% at 50% 60%, rgba(238, 190, 90, 0.95) 0 42%, rgba(238, 190, 90, 0.22) 58%, transparent 72%),
    linear-gradient(0deg, rgba(28, 14, 9, 0.55) 0 32%, transparent 32%),
    linear-gradient(0deg, transparent 31%, rgba(244, 239, 229, 0.28) 31% 32.4%, transparent 32.4%),
    linear-gradient(0deg, transparent 20%, rgba(244, 239, 229, 0.16) 20% 21%, transparent 21%),
    linear-gradient(0deg, transparent 11%, rgba(244, 239, 229, 0.10) 11% 11.8%, transparent 11.8%),
    linear-gradient(180deg, rgba(255, 196, 110, 0.20), transparent 46%);
}
/* اتاق‌های رو به حیاط — فضای منفی معماری: نقشه‌ی حیاط */
.pt-otagh {
  --art-bg: #f0e9d8;
  background-image:
    linear-gradient(0deg, transparent 16%, rgba(43, 44, 37, 0.85) 16% 17.6%, transparent 17.6% 82.4%, rgba(43, 44, 37, 0.85) 82.4% 84%, transparent 84%),
    linear-gradient(90deg, transparent 12%, rgba(43, 44, 37, 0.85) 12% 13.6%, transparent 13.6% 86.4%, rgba(43, 44, 37, 0.85) 86.4% 88%, transparent 88%),
    linear-gradient(0deg, transparent 38%, rgba(43, 44, 37, 0.35) 38% 39%, transparent 39% 61%, rgba(43, 44, 37, 0.35) 61% 62%, transparent 62%),
    linear-gradient(90deg, transparent 32%, rgba(43, 44, 37, 0.35) 32% 33%, transparent 33% 67%, rgba(43, 44, 37, 0.35) 67% 68%, transparent 68%),
    radial-gradient(4% 5.5% at 50% 50%, rgba(88, 103, 90, 0.95) 0 42%, transparent 70%);
}
/* نقشه‌ی چیزهای ناپیدا — خطوط تراز، مسیر نقطه‌چین، مقصد */
.pt-map {
  --art-bg: #4d5d48;
  background-image:
    radial-gradient(3% 4% at 30% 74%, rgba(240, 196, 90, 0.95) 0 46%, transparent 70%),
    radial-gradient(30% 24% at 68% 30%, transparent 0 50%, rgba(244, 239, 229, 0.5) 54% 57%, transparent 62%),
    radial-gradient(46% 38% at 68% 30%, transparent 0 50%, rgba(244, 239, 229, 0.34) 54% 57%, transparent 62%),
    radial-gradient(62% 52% at 68% 30%, transparent 0 50%, rgba(244, 239, 229, 0.2) 54% 57%, transparent 62%),
    repeating-linear-gradient(45deg, transparent 0 16px, rgba(244, 239, 229, 0.15) 16px 17.4px, transparent 17.4px 33px),
    linear-gradient(180deg, rgba(20, 30, 18, 0.32), transparent 44%);
}
/* سه شب در بندر کوچک — هندسه‌ی شبانه‌ی بندر: ماه و موج‌ها */
.pt-bandar {
  --art-bg: #19253c;
  background-image:
    radial-gradient(10% 6.5% at 30% 26%, rgba(240, 235, 220, 0.95) 0 46%, transparent 68%),
    linear-gradient(0deg, rgba(10, 16, 28, 0.65) 0 34%, transparent 34%),
    linear-gradient(0deg, transparent 33%, rgba(240, 235, 220, 0.30) 33% 34%, transparent 34%),
    linear-gradient(0deg, transparent 44%, rgba(240, 235, 220, 0.14) 44% 45%, transparent 45%),
    linear-gradient(0deg, transparent 54%, rgba(240, 235, 220, 0.10) 54% 55%, transparent 55%),
    linear-gradient(180deg, rgba(120, 150, 200, 0.16), transparent 40%);
}
/* کتاب کوچک مکث — فضای سفید، نشانه‌ی مکث */
.pt-makss {
  --art-bg: #f4efe5;
  background-image:
    radial-gradient(3.2% 2.4% at 32% 60%, rgba(43, 44, 37, 0.95) 0 48%, transparent 70%),
    radial-gradient(3.2% 2.4% at 25% 60%, rgba(43, 44, 37, 0.95) 0 48%, transparent 70%),
    linear-gradient(0deg, transparent 82%, rgba(43, 44, 37, 0.55) 82% 82.8%, transparent 82.8%);
}
/* ماه از پنجره‌ی آشپزخانه — قاب پنجره و ماه */
.pt-mah {
  --art-bg: #2c241d;
  background-image:
    radial-gradient(9% 6.5% at 66% 32%, rgba(244, 239, 229, 0.95) 0 44%, rgba(244, 239, 229, 0.16) 58%, transparent 70%),
    linear-gradient(90deg, transparent 49.4%, rgba(244, 239, 229, 0.55) 49.4% 50.6%, transparent 50.6%),
    linear-gradient(0deg, transparent 28%, rgba(244, 239, 229, 0.55) 28% 29.2%, transparent 29.2% 72%, rgba(244, 239, 229, 0.55) 72% 73.2%, transparent 73.2%),
    linear-gradient(90deg, transparent 22%, rgba(244, 239, 229, 0.55) 22% 23.2%, transparent 23.2% 76%, rgba(244, 239, 229, 0.55) 76% 77.2%, transparent 77.2%),
    linear-gradient(180deg, rgba(255, 220, 160, 0.14), transparent 50%);
}
/* شهر، بعد از خاموشی — شبکه‌ی شهر و چند پنجره‌ی روشن */
.pt-shahr {
  --art-bg: #131417;
  background-image:
    radial-gradient(2.6% 2% at 28% 62%, rgba(240, 190, 100, 0.95) 0 46%, transparent 68%),
    radial-gradient(2.2% 1.8% at 44% 48%, rgba(240, 190, 100, 0.7) 0 46%, transparent 68%),
    radial-gradient(2.6% 2% at 60% 66%, rgba(240, 190, 100, 0.85) 0 46%, transparent 68%),
    radial-gradient(2% 1.6% at 72% 44%, rgba(240, 190, 100, 0.6) 0 46%, transparent 68%),
    radial-gradient(2.2% 1.7% at 36% 76%, rgba(240, 190, 100, 0.65) 0 46%, transparent 68%),
    repeating-linear-gradient(90deg, rgba(244, 239, 229, 0.05) 0 1px, transparent 1px 12.5%),
    repeating-linear-gradient(0deg, rgba(244, 239, 229, 0.05) 0 1px, transparent 1px 25%);
}
/* اشیایی که جا گذاشتیم — طبیعت بی‌جان: طاقه و اشیای کوچک */
.pt-ashya {
  --art-bg: #6e7b5c;
  background-image:
    linear-gradient(0deg, transparent 76%, rgba(36, 42, 29, 0.9) 76% 77.4%, transparent 77.4%),
    linear-gradient(90deg, transparent 30%, rgba(36, 42, 29, 0.9) 30% 31%, transparent 31% 50%, rgba(233, 226, 205, 0.9) 50% 51%, transparent 51% 66%, rgba(36, 42, 29, 0.9) 66% 67%, transparent 67%),
    radial-gradient(7% 9% at 40% 60%, transparent 0 44%, rgba(36, 42, 29, 0.9) 48% 54%, transparent 60%),
    radial-gradient(5% 6% at 58% 55%, rgba(180, 90, 60, 0.85) 0 44%, transparent 66%),
    radial-gradient(3% 4% at 56% 40%, rgba(36, 42, 29, 0.75) 0 46%, transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 40%);
}

/* ==========================================================================
   انتخاب ما — سه کارت با جلد، نقل‌قول ویراستار
   ========================================================================== */
.picks { padding-block: clamp(80px, 14vh, 180px); }
.picks__head {
  display: grid; justify-items: start; gap: 16px;
  margin-bottom: clamp(48px, 8vh, 80px);
}
.picks__heading {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.25;
}
.picks__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 56px);
}
.pick {
  display: grid; grid-template-columns: minmax(120px, 150px) 1fr;
  gap: 22px; align-items: start;
  cursor: pointer;
}
.pick:focus-visible { outline-offset: 6px; }
.pick__cover {
  aspect-ratio: 2 / 3;
  border-radius: 2px 8px 8px 2px;
  background-color: var(--art-bg, #333);
  background-image:
    radial-gradient(120% 90% at 30% 12%, rgba(255, 255, 255, 0.10), transparent 55%);
  box-shadow: 0 30px 60px -26px rgba(0, 0, 0, 0.8);
  display: flex; flex-direction: column;
  padding: 14px;
  overflow: hidden;
  position: relative;
  color: #f4efe5;
  transform: rotateY(6deg);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.pick:hover .pick__cover { transform: rotateY(0deg) translateY(-6px); box-shadow: 0 44px 80px -30px rgba(0, 0, 0, 0.9); }
.pick__cover::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0) 9%);
}
.pick__cover.pt-makss, .pick__cover.pt-otagh { color: #2b2c25; }
.pick__imprint { font-size: 0.56rem; font-weight: 600; opacity: 0.75; }
.pick__ctitle {
  margin-block: auto;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.3;
}
.f-vazir .pick__ctitle { font-family: var(--sans); font-weight: 800; font-size: clamp(1rem, 1.5vw, 1.3rem); }
.pick__cauthor {
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  font-size: 0.6rem; font-weight: 600;
  line-height: 1.8;
  opacity: 0.85;
}
.pick__body { display: grid; gap: 12px; align-content: start; padding-top: 6px; }
.pick__title {
  font-family: var(--display); font-weight: 600;
  font-size: 1.45rem; line-height: 1.3;
}
.pick__quote {
  font-family: var(--display);
  font-size: 1.12rem; line-height: 1.9;
  color: var(--ink-dim);
}
.pick__who { font-size: 0.8rem; opacity: 0.55; }
@media (max-width: 900px) {
  .picks__grid { grid-template-columns: 1fr; gap: 44px; }
}

/* ==========================================================================
   باشگاه میان‌سطر
   ========================================================================== */
.club {
  padding-block: clamp(90px, 15vh, 200px);
  overflow: hidden;
}
.club__grid {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 560px);
  justify-content: space-between;
  align-items: center;
  gap: clamp(44px, 7vw, 110px);
}
.club__ring { position: relative; width: min(100%, 340px); margin-inline: auto; }
.club__ring svg { width: 100%; height: auto; display: block; }
.club__ring-outer,
.club__ring-inner { transform-box: fill-box; transform-origin: center; }
.club__ring-outer { animation: club-rot 70s linear infinite; }
.club__ring-inner { animation: club-rot 46s linear infinite reverse; }
@keyframes club-rot { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .club__ring-outer, .club__ring-inner { animation: none; }
}
.club__center {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 2px;
}
.club__time { font-family: var(--display); font-size: 2.6rem; font-weight: 600; line-height: 1; }
.club__timelabel { font-size: 0.8rem; opacity: 0.6; }
.club__body { display: grid; justify-items: start; gap: 18px; }
.club__heading {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.3;
}
.club__copy { color: var(--ink-dim); max-width: 48ch; }
.club__month {
  font-family: var(--display); font-size: 1.35rem; line-height: 1.7;
  border-inline-start: 2px solid var(--accent);
  padding-inline-start: 16px;
}
.club__form { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.club__btn {
  padding: 12px 28px;
  background: var(--accent); color: var(--paper);
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 0.95rem; font-weight: 600;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.club__btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-2px); }
.club__btn[disabled] { cursor: default; transform: none; background: var(--green); border-color: var(--green); }
.club__note { font-size: 0.85rem; opacity: 0.55; }

.club__cal { margin-top: clamp(64px, 10vh, 120px); }
.club__cal-head,
.club__cal-row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 20px;
  align-items: baseline;
}
.club__cal-head {
  font-size: 0.78rem; font-weight: 600; opacity: 0.5;
  padding-bottom: 10px;
}
.club__cal-row { padding-block: 15px; border-top: 1px solid var(--ink-faint); }
.club__cal-date { font-weight: 600; color: color-mix(in srgb, var(--accent) 55%, var(--ink)); }
.club__cal-book { font-family: var(--display); font-size: 1.3rem; }
.club__cal-note { margin-top: 18px; font-size: 0.85rem; opacity: 0.5; }
@media (max-width: 900px) {
  .club__grid { grid-template-columns: 1fr; }
  .club__ring { width: min(72vw, 300px); margin-inline: 0; }
}

/* ==========================================================================
   رویدادها
   ========================================================================== */
.events { padding-block: clamp(80px, 13vh, 170px); }
.events__heading {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.3;
  margin-top: 14px;
}
.events__list { margin-top: clamp(40px, 7vh, 70px); display: grid; }
.event {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: clamp(18px, 3vw, 40px);
  padding-block: clamp(22px, 3.4vh, 34px);
  border-top: 1px solid var(--ink-faint);
}
.event:last-child { border-bottom: 1px solid var(--ink-faint); }
.event__date { display: grid; gap: 4px; align-content: start; }
.event__day { font-family: var(--display); font-size: 1.6rem; font-weight: 600; line-height: 1.2; }
.event__body { display: grid; gap: 6px; }
.event__title { font-family: var(--display); font-weight: 600; font-size: 1.45rem; }
.event__desc { color: var(--ink-dim); max-width: 60ch; }
.event__meta { font-size: 0.8rem; opacity: 0.5; }
.event__date .event__meta { font-size: 0.8rem; opacity: 0.55; }
@media (max-width: 640px) {
  .event { grid-template-columns: 1fr; gap: 8px; }
}

/* ==========================================================================
   کتابفروشی — بخش روشن
   ========================================================================== */
.visit {
  background: var(--paper);
  color: var(--paper-ink);
  padding-block: clamp(80px, 12vh, 150px);
}
.visit__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.visit__body { display: grid; justify-items: start; gap: 16px; }
.visit .eyebrow { opacity: 0.55; }
.visit__heading {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.2;
}
.visit__copy { max-width: 44ch; font-size: 1.05rem; line-height: 2; opacity: 0.8; }
.visit__hours { display: grid; gap: 0; align-self: center; width: 100%; }
.visit__hours-row {
  display: flex; justify-content: space-between; gap: 18px;
  padding-block: 14px;
  border-bottom: 1px dashed rgba(33, 34, 29, 0.3);
  font-size: 0.95rem;
}
.visit__hours-row span:first-child { font-weight: 600; }
@media (max-width: 800px) {
  .visit__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   فوتر
   ========================================================================== */
.site-foot {
  background: var(--paper);
  color: var(--paper-ink);
  padding-block: 0 34px;
}
.site-foot__tag {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.2;
  padding-block: clamp(30px, 6vh, 70px) clamp(30px, 5vh, 60px);
  border-top: 1px solid rgba(33, 34, 29, 0.2);
}
.site-foot__links {
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  padding-block: 18px;
  border-top: 1px solid rgba(33, 34, 29, 0.2);
  font-size: 0.92rem; font-weight: 500;
}
.site-foot__links a { opacity: 0.7; transition: opacity 0.2s ease; }
.site-foot__links a:hover { opacity: 1; }
.site-foot__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 16px;
  font-size: 0.8rem; opacity: 0.65;
}

/* ==========================================================================
   رول‌آپ جزئیات — «اسلب‌های» تمام‌صفحه (هیرو / پدیدآورنده / یادداشت‌ها / بعدی)
   ========================================================================== */
.detail {
  position: fixed; inset: 0; z-index: 60;
  color: var(--detail-ink, var(--ink));
}
.detail[hidden] { display: none; }

.detail__bg {
  position: absolute; inset: 0;
  background: var(--detail-bg, #26231f);
  opacity: 0;
}

.detail__chrome {
  position: fixed; top: 0; left: 0; right: 0; z-index: 6;
  display: flex; justify-content: space-between; align-items: center;
  padding: clamp(18px, 2.6vw, 34px);
  color: var(--detail-ink, var(--ink));
  pointer-events: none;
}
.detail__chrome > * { pointer-events: auto; }
.detail__back {
  font-family: var(--display);
  font-size: 1.2rem;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.detail__back:hover { opacity: 1; }
.detail__count { font-size: 0.85rem; opacity: 0.6; }

.detail__scroll {
  position: absolute; inset: 0; z-index: 2;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.detail__scroll::-webkit-scrollbar { display: none; }

.slab { position: relative; }

/* ---------- اسلب هیرو: کتاب ایستاده + جزئیات ---------- */
.slab--hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding-block: clamp(80px, 10vh, 120px) clamp(56px, 8vh, 96px);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(280px, 500px) minmax(0, 560px);
  justify-content: center;
  align-items: center;
  gap: clamp(44px, 7vw, 110px);
  width: min(1180px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.hero__bookcol {
  display: flex; justify-content: center; align-items: center;
  min-height: 420px;
}

.hero__body {
  display: grid; gap: 16px; justify-items: start;
  max-width: 56ch;
}
.hero__eyebrow {
  font-size: 0.8rem; font-weight: 600;
  opacity: 0.66;
}
.hero__title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  line-height: 1.12;
}
.hero__author {
  font-family: var(--display);
  font-size: 1.4rem; line-height: 1.5;
  opacity: 0.85;
}
.hero__meta { font-size: 0.85rem; opacity: 0.6; }
.pill {
  padding: 10px 22px;
  border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
  border-radius: 999px;
  font-size: 0.85rem; font-weight: 500;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.pill:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
.pill[aria-pressed="true"] {
  background: var(--detail-ink, var(--ink));
  color: var(--detail-bg, #26231f);
  border-color: var(--detail-ink, var(--ink));
}
.hero__blurb { font-size: 1.02rem; line-height: 2; opacity: 0.9; margin-top: 4px; }

.hero__note {
  border-inline-start: 2px solid color-mix(in srgb, currentColor 45%, transparent);
  padding-inline-start: 16px;
  display: grid; gap: 4px;
}
.hero__note-text { font-family: var(--display); font-size: 1.2rem; line-height: 1.8; }
.hero__note-who { font-size: 0.8rem; opacity: 0.6; }

.hero__buy {
  margin-top: 10px;
  display: grid;
  width: 100%;
  border: 1px solid color-mix(in srgb, currentColor 38%, transparent);
}
.buy-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 15px 20px;
  font-size: 0.95rem; font-weight: 500;
  text-align: start;
  border-bottom: 1px solid color-mix(in srgb, currentColor 38%, transparent);
  transition: background-color 0.2s ease;
}
.buy-row:last-child { border-bottom: 0; }
button.buy-row:hover, a.buy-row:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.buy-row__label { min-width: 0; }
.buy-row__price { font-size: 0.85rem; opacity: 0.75; white-space: nowrap; }

/* راهنمای اسکرول پایین اسلب هیرو */
.slab--hero .scroll-cue {
  position: absolute;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  font-size: 0.72rem;
  opacity: 0.55;
  display: grid; justify-items: center; gap: 6px;
  pointer-events: none;
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 26px;
  background: currentColor;
  animation: cue-drop 1.8s ease-in-out infinite;
  transform-origin: top center;
}
@keyframes cue-drop {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(10px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue::after { animation: none; }
}

/* ---------- کتاب ایستاده‌ی سه‌بعدی ---------- */
/* کتاب فارسی: عطف سمت راست، لبه‌ی صفحات سمت چپ */
.sbook {
  --bw: clamp(230px, 24vw, 310px);
  --bh: calc(var(--bw) * 1.48);
  --bd: 44px;
  position: relative;
  width: var(--bw);
  height: var(--bh);
  perspective: 1500px;
  will-change: transform;
}
.sbook__float, .sbook__spin, .sbook__book {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
}
.sbook__float { will-change: transform; }
.sbook__spin  { will-change: transform; }
/* حالت سکون — جلد کمی به چپ چرخیده تا عطفِ سمت راست پیدا شود */
.sbook__book { transform: rotateX(9deg) rotateY(-22deg) rotateZ(3deg); }

.sbook__face {
  position: absolute; left: 50%; top: 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* جلد — قاعده‌ی پایه الگ‌محور است تا کلاس‌های طرحِ هر کتاب کنترل را نگه دارند */
.sbook__front {
  width: var(--bw); height: var(--bh);
  display: flex; flex-direction: column;
  padding: clamp(16px, 1.8vw, 24px);
  border-radius: 10px 2px 2px 10px;
  color: var(--cover-ink, var(--c));
  background-color: var(--art-bg, var(--b));
  transform: translate(-50%, -50%) translateZ(var(--bd2, 22px));
  overflow: hidden;
}
.sbook__front::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 90% at 30% 12%, rgba(255, 255, 255, 0.10), transparent 55%);
  pointer-events: none;
}
/* سایه‌ی لولای عطف (راست) + نور لبه‌ی صفحات (چپ) */
.sbook__front::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(270deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0) 9%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 5%);
  pointer-events: none;
}
.sbook__imprint {
  font-size: 0.68rem; font-weight: 600;
  opacity: 0.75;
}
.sbook__ctitle {
  margin-block: auto;
  font-family: var(--display);
  font-weight: 500;
  font-size: calc(var(--bw) * 0.135);
  line-height: 1.3;
  max-width: 92%;
}
.f-vazir .sbook__ctitle { font-family: var(--sans); font-weight: 800; font-size: calc(var(--bw) * 0.105); line-height: 1.5; }
.sbook__cauthor {
  padding-top: 10px;
  align-self: stretch;
  border-top: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  font-size: calc(var(--bw) * 0.042);
  font-weight: 600;
  line-height: 1.9;
  opacity: 0.85;
}

/* جلد عقب */
.sbook__back {
  width: var(--bw); height: var(--bh);
  border-radius: 2px 10px 10px 2px;
  background-color: color-mix(in srgb, var(--art-bg, var(--b)), #000 14%);
  transform: translate(-50%, -50%) rotateY(180deg) translateZ(var(--bd2, 22px));
  display: grid; place-items: center;
}
.sbook__back::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 8%);
}
.sbook__backmark {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1.6px solid color-mix(in srgb, var(--cover-ink, var(--c)) 65%, transparent);
  border-radius: 10px;
  position: relative;
  opacity: 0.65;
}
.sbook__backmark::after {
  content: "م";
  font-family: var(--display);
  font-size: 1.7rem; line-height: 1;
  color: color-mix(in srgb, var(--cover-ink, var(--c)) 90%, transparent);
}
.sbook__backtitle {
  position: absolute; bottom: 26px;
  font-size: 0.68rem; font-weight: 600;
  color: color-mix(in srgb, var(--cover-ink, var(--c)) 60%, transparent);
}

/* عطف — سمت راست */
.sbook__spine {
  width: var(--bd); height: calc(var(--bh) - 3px);
  border-radius: 0 6px 6px 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 18%),
    linear-gradient(90deg, color-mix(in srgb, var(--b), #000 24%), color-mix(in srgb, var(--b), #000 12%) 30%, color-mix(in srgb, var(--b), #000 30%));
  transform: translate(-50%, -50%) rotateY(90deg) translateZ(calc(var(--bw) / 2 - 1px));
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 14px 0;
  overflow: hidden;
}
.sbook__spine-text {
  writing-mode: vertical-rl;
  font-family: var(--display);
  font-size: calc(var(--bd) * 0.34);
  color: var(--cover-ink, var(--c));
  opacity: 0.9;
  max-height: 88%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sbook__spine-dot {
  width: calc(var(--bd) * 0.4); height: calc(var(--bd) * 0.32);
  display: grid; place-items: center;
  border: 1.4px solid color-mix(in srgb, var(--cover-ink, var(--c)) 60%, transparent);
  border-radius: 5px;
}
.sbook__spine-dot::after { content: "م"; font-family: var(--display); font-size: calc(var(--bd) * 0.2); line-height: 1; }

/* لبه‌های صفحات — چپ */
.sbook__edge {
  background-color: #e7e0cd;
  background-image:
    repeating-linear-gradient(90deg,
      rgba(120, 106, 78, 0.22) 0 1px, transparent 1px 3px);
}
.sbook__edge--left {
  width: var(--bd); height: calc(var(--bh) - 6px);
  border-radius: 4px 0 0 4px;
  transform: translate(-50%, -50%) rotateY(-90deg) translateZ(calc(var(--bw) / 2 - 2px));
}
.sbook__edge--top {
  width: calc(var(--bw) - 5px); height: var(--bd);
  border-radius: 2px 4px 4px 2px;
  transform: translate(-50%, -50%) rotateX(90deg) translateZ(calc(var(--bh) / 2 - 3px));
  background-image:
    repeating-linear-gradient(0deg,
      rgba(120, 106, 78, 0.22) 0 1px, transparent 1px 3px);
}
.sbook__edge--bottom {
  width: calc(var(--bw) - 5px); height: var(--bd);
  border-radius: 4px 2px 2px 4px;
  transform: translate(-50%, -50%) rotateX(-90deg) translateZ(calc(var(--bh) / 2 - 3px));
  background-image:
    repeating-linear-gradient(0deg,
      rgba(120, 106, 78, 0.22) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, rgba(97, 84, 60, 0.30), rgba(97, 84, 60, 0.08));
}

/* سایه‌ی نرم زیر کتاب */
.sbook__shadow {
  position: absolute;
  left: -6%; right: -14%; bottom: -9%;
  height: 12%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.55), transparent 68%);
  filter: blur(12px);
  pointer-events: none;
}

/* ---------- اسلب پدیدآورنده ---------- */
.slab--author {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding-block: clamp(80px, 12vh, 140px);
}
.slab__rulelabel {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--display);
  font-size: 1.25rem;
  opacity: 0.85;
}
.slab__rulelabel::before {
  content: "";
  width: 44px; height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.slab--author .slab__inner {
  width: min(1180px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(280px, 500px) minmax(0, 560px);
  justify-content: center;
  gap: clamp(44px, 7vw, 110px);
}
.slab--author .slab__content { grid-column: 2; display: grid; gap: 22px; justify-items: start; }
.author-card { display: grid; gap: 20px; }
.author-avatar {
  width: 104px; height: 104px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 14%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  font-family: var(--display); font-size: 2.6rem; font-weight: 600;
}
.author-bio { font-size: 0.98rem; line-height: 2.1; opacity: 0.92; max-width: 54ch; }

/* ---------- اسلب یادداشت‌های دفتر ---------- */
.slab--praise { padding-block: clamp(90px, 14vh, 170px) clamp(90px, 12vh, 150px); }
.slab--praise .slab__inner {
  width: min(1180px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  display: grid; gap: clamp(40px, 6vh, 64px);
}
.praise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(36px, 5vh, 60px) clamp(32px, 3.6vw, 52px);
}
.praise {
  display: grid; gap: 14px;
  align-content: start;
}
.praise__mark {
  font-family: var(--display);
  font-size: 2.8rem; line-height: 0.6;
  opacity: 0.9;
}
.praise__text { font-family: var(--display); font-size: 1.25rem; line-height: 1.85; }
.praise__who { display: grid; gap: 2px; padding-top: 8px; }
.praise__who::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: 0.5;
  margin-bottom: 6px;
}
.praise__name { font-size: 0.85rem; font-weight: 600; }
.praise__role { font-size: 0.8rem; opacity: 0.7; }
.praise-note {
  font-size: 0.75rem;
  opacity: 0.4;
}

/* ---------- اسلب کتاب بعدی ---------- */
.slab--next {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: center;
  background: var(--next-bg, #26231f);
  color: var(--next-ink, var(--ink));
  cursor: pointer;
}
.slab--next .next__inner {
  width: min(1180px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 520px);
  justify-content: center;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.next__cover {
  width: min(260px, 56vw);
  aspect-ratio: 2 / 3;
  border-radius: 9px 3px 3px 9px;
  background-color: var(--art-bg, #333);
  background-image:
    radial-gradient(120% 90% at 30% 12%, rgba(255, 255, 255, 0.10), transparent 55%);
  box-shadow: 0 44px 80px -34px rgba(0, 0, 0, 0.75);
  display: flex; flex-direction: column;
  padding: 18px;
  overflow: hidden;
  position: relative;
  transform: rotateY(10deg);
}
.next__cover::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0) 8%);
}
.next__cover .sbook__imprint { font-size: 0.62rem; }
.next__cover-title {
  margin-block: auto;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.3;
}
.next__cover-author {
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  font-size: 0.62rem; font-weight: 600;
  line-height: 1.9;
  opacity: 0.85;
}
.next__meta { display: grid; gap: 16px; justify-items: start; }
.next__eyebrow {
  font-size: 0.8rem; font-weight: 600;
  opacity: 0.66;
}
.next__title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.2;
}
.next__author { font-family: var(--display); font-size: 1.3rem; opacity: 0.8; }
.next__hint {
  font-size: 0.78rem;
  opacity: 0.6;
  display: flex; align-items: center; gap: 12px;
}
.next__hint::after {
  content: "↓";
  font-size: 0.9rem;
  animation: next-nudge 1.6s ease-in-out infinite;
}
@keyframes next-nudge {
  0%, 100% { transform: translateY(-2px); opacity: 0.5; }
  50% { transform: translateY(3px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .next__hint::after { animation: none; }
}

/* ---------- پیام کوتاه ---------- */
.toast {
  position: fixed;
  bottom: 26px; left: 50%;
  transform: translate(-50%, 12px);
  z-index: 90;
  max-width: min(92vw, 480px);
  padding: 12px 24px;
  background: #14110e;
  color: var(--ink);
  border: 1px solid rgba(244, 239, 229, 0.25);
  border-radius: 999px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- ریسپانسیو جزئیات ---------- */
@media (max-width: 900px) {
  .hero__grid,
  .slab--author .slab__inner { grid-template-columns: 1fr; justify-items: center; }
  .hero__bookcol { min-height: 0; padding-block: 12px; }
  .hero__body, .slab--author .slab__content { grid-column: 1; justify-items: start; }
  .slab--author .slab__content { justify-items: center; text-align: center; }
  .author-card { justify-items: center; }
  .hero__note { text-align: start; }
  .slab--next .next__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .next__meta { justify-items: center; }
  .sbook { --bw: clamp(200px, 52vw, 260px); }
}

/* ==========================================================================
   پنهان‌سازی اولیه (فقط چیزی که GSAP روی لود انیمیت می‌کند)
   ========================================================================== */
.js .site-header, .js .rail, .js .mainnav { opacity: 0; }
