/* ==========================================================================
   Little Muslim Stories — Quiet Editorial Warmth
   Static site stylesheet. No build step. Mobile-first.
   ========================================================================== */

:root {
  --cream: #fbf6ed;
  --cream-soft: #fdf9f1;
  --paper: #f6f0e6;
  --ink: #213123;
  --ink-soft: #4d5d52;
  --ink-muted: #6b7769;
  --line: #e7ddd0;
  --line-soft: #ece4d6;
  --sage-50: #eaf0e3;
  --sage-200: #c6d4bf;
  --sage-500: #587157;
  --sage-600: #466148;
  --sage-700: #29432f;
  --gold: #c8a96a;
  --gold-soft: #efe1c5;
  --shadow-card: 0 24px 64px -42px rgba(57, 67, 47, 0.3);
  --shadow-cover: 0 28px 60px -36px rgba(48, 60, 40, 0.42);
  --shadow-cover-hover: 0 30px 70px -46px rgba(41, 54, 37, 0.46);
  --shadow-button: 0 18px 32px -24px rgba(52, 70, 53, 0.8);
  --radius-sm: 0.75rem;
  --radius-md: 1.2rem;
  --radius-lg: 1.7rem;
  --radius-xl: 2.15rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.82), transparent 26%),
    radial-gradient(circle at top right, rgba(231, 239, 225, 0.44), transparent 22%),
    linear-gradient(180deg, rgba(253, 248, 240, 0.96) 0%, rgba(248, 241, 230, 0.92) 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  margin: 0;
}

p {
  margin: 0;
}

::selection {
  background: rgba(86, 113, 84, 0.18);
  color: var(--ink);
}

/* Layout ---------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .container { padding-inline: 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding-inline: 2rem; }
}

.section {
  padding-block: 2rem;
}

@media (min-width: 1024px) {
  .section { padding-block: 2.5rem; }
}

/* Header --------------------------------------------------------------- */

.site-header {
  position: relative;
  background: rgba(251, 246, 237, 0.92);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.45rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 0 1 auto;
}

.brand__mark {
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(60, 40, 16, 0.18));
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.05); }

.brand__wordmark {
  font-family: "DM Serif Display", "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.05;
  color: var(--ink-900);
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.brand__wordmark small { display: none; }

/* Arabic dua next to the wordmark — small, gold, sits to the right */
.brand__dua {
  font-family: "Amiri", "Scheherazade New", Georgia, serif;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--gold-700, #9c6e22);
  margin-left: 0.85rem;
  padding-left: 0.85rem;
  border-left: 1px solid rgba(196, 162, 92, 0.35);
  white-space: nowrap;
  display: none;
}
@media (min-width: 768px) { .brand__dua { display: inline-block; } }
@media (min-width: 1024px) { .brand__dua { font-size: 1.05rem; } }

@media (min-width: 640px) {
  .brand__mark { width: 3rem; height: 3rem; }
  .brand__wordmark { font-size: 1.45rem; }
}

@media (min-width: 1024px) {
  .brand__mark { width: 3.4rem; height: 3.4rem; }
  .brand__wordmark { font-size: 1.6rem; }
}

.brand__eyebrow {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #72806e;
}

.brand__tagline {
  display: none;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.3;
  color: #6f7d70;
  font-style: italic;
  max-width: 11rem;
}

@media (min-width: 768px) {
  .brand__tagline { display: block; }
}

@media (min-width: 1024px) {
  .brand__tagline { font-size: 0.9rem; max-width: 13rem; }
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.4rem;
}

@media (min-width: 1024px) {
  .site-nav { display: flex; }
}

.site-nav a {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #627261;
  transition: color 180ms ease;
}

.site-nav a:hover { color: var(--sage-700); }

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid rgba(216, 202, 176, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--sage-700);
  flex-shrink: 0;
  cursor: pointer;
}

.menu-toggle span {
  width: 1.05rem;
  height: 2px;
  margin: 2px 0;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav {
  width: min(100% - 1.8rem, 36rem);
  margin: 0 auto 0.7rem;
  padding: 0.55rem;
  border: 1px solid var(--line-soft);
  border-radius: 1rem;
  background: rgba(255, 250, 241, 0.97);
  box-shadow: 0 16px 40px rgba(42, 53, 44, 0.08);
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  border-radius: 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #526153;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible { background: rgba(232, 218, 190, 0.48); }

@media (min-width: 1024px) {
  .menu-toggle,
  .mobile-nav { display: none; }
}

/* Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding-inline: 1.4rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 220ms ease;
  border: 1px solid transparent;
  text-align: center;
}

.btn--primary {
  background: linear-gradient(180deg, #587157 0%, #456148 100%);
  color: var(--cream);
  box-shadow: var(--shadow-button);
}

.btn--primary:hover {
  background: linear-gradient(180deg, #4d684f 0%, #39543d 100%);
  transform: translateY(-1px);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.78);
  color: var(--sage-700);
  border-color: #d8cab0;
}

.btn--outline:hover {
  background: #fff;
}

.btn--ghost-header {
  height: 2.4rem;
  font-size: 0.78rem;
  padding-inline: 1rem;
  flex-shrink: 0;
}

.btn--ghost-header .btn__label {
  display: none;
}

@media (min-width: 480px) {
  .btn--ghost-header { padding-inline: 1.2rem; }
  .btn--ghost-header .btn__label { display: inline; }
}

.btn .icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Hero ----------------------------------------------------------------- */

.hero {
  padding-block: 1.5rem 1.25rem;
}

@media (min-width: 1024px) {
  .hero { padding-block: 2rem; }
}

.hero__shell {
  position: relative;
  overflow: hidden;
  border-radius: 2.3rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  padding: 1.75rem 1.4rem;
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 232, 178, 0.55) 0%, rgba(255, 232, 178, 0) 45%),
    radial-gradient(circle at 12% 90%, rgba(196, 224, 200, 0.45) 0%, rgba(196, 224, 200, 0) 50%),
    linear-gradient(160deg, #fff8ea 0%, #f6ecd6 45%, #f0e3c4 100%);
  box-shadow: 0 40px 105px -58px rgba(58, 69, 47, 0.42);
}

@media (min-width: 640px) {
  .hero__shell { padding: 2.25rem 2rem; }
}

@media (min-width: 1024px) {
  .hero__shell { padding: 2.75rem 2.6rem; }
}

.hero__bg-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(60px);
  pointer-events: none;
}

.hero__bg-blob--a {
  top: -2.5rem;
  right: -3rem;
  width: 16rem;
  height: 16rem;
  background: rgba(223, 233, 217, 0.55);
}

.hero__bg-blob--b {
  bottom: -3rem;
  left: 30%;
  width: 14rem;
  height: 14rem;
  background: rgba(239, 225, 197, 0.5);
  display: none;
}

@media (min-width: 1024px) {
  .hero__bg-blob--b { display: block; }
}

/* Hero animated sky --------------------------------------------------- */

.hero-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}

.hero-sky__moon {
  position: absolute;
  top: 8%;
  right: 10%;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 9999px;
  background: radial-gradient(circle at 35% 35%, #fff4d6 0%, #f3dc97 50%, #d6b25a 100%);
  box-shadow:
    0 0 60px 12px rgba(243, 220, 151, 0.55),
    inset -8px -10px 18px rgba(168, 130, 60, 0.35);
  opacity: 0.85;
  animation: hero-moon-glow 6s ease-in-out infinite;
}

@media (max-width: 640px) { .hero-sky__moon { width: 3.6rem; height: 3.6rem; top: 6%; right: 6%; } }

@keyframes hero-moon-glow {
  0%, 100% { box-shadow: 0 0 50px 8px rgba(243, 220, 151, 0.45), inset -8px -10px 18px rgba(168, 130, 60, 0.35); }
  50%      { box-shadow: 0 0 80px 16px rgba(243, 220, 151, 0.7),  inset -8px -10px 18px rgba(168, 130, 60, 0.35); }
}

/* Drifting clouds -------------------- */
.hero-sky__cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 9999px;
  filter: blur(1px);
  box-shadow:
    inset -8px -10px 18px rgba(218, 200, 165, 0.18),
    0 4px 12px rgba(120, 110, 80, 0.06);
}
.hero-sky__cloud::before,
.hero-sky__cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 9999px;
}
.hero-sky__cloud--1 {
  width: 9rem; height: 2.2rem;
  top: 18%; left: -10%;
  animation: hero-cloud-drift 38s linear infinite;
  opacity: 0.85;
}
.hero-sky__cloud--1::before { width: 4rem; height: 4rem; left: 1.5rem; top: -1.7rem; }
.hero-sky__cloud--1::after  { width: 3rem; height: 3rem; left: 5rem;   top: -1.2rem; }

.hero-sky__cloud--2 {
  width: 7rem; height: 1.8rem;
  top: 38%; left: -25%;
  animation: hero-cloud-drift 52s linear infinite;
  animation-delay: -18s;
  opacity: 0.7;
}
.hero-sky__cloud--2::before { width: 3rem; height: 3rem; left: 1rem;   top: -1.2rem; }
.hero-sky__cloud--2::after  { width: 2.4rem; height: 2.4rem; left: 4rem; top: -0.8rem; }

.hero-sky__cloud--3 {
  width: 8rem; height: 2rem;
  top: 62%; left: -15%;
  animation: hero-cloud-drift 44s linear infinite;
  animation-delay: -8s;
  opacity: 0.75;
}
.hero-sky__cloud--3::before { width: 3.4rem; height: 3.4rem; left: 1.2rem; top: -1.4rem; }
.hero-sky__cloud--3::after  { width: 2.8rem; height: 2.8rem; left: 4.6rem; top: -1rem; }

@keyframes hero-cloud-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(140vw); }
}

/* Twinkling stars -------------------- */
.hero-sky__star {
  position: absolute;
  width: 0.9rem;
  height: 0.9rem;
  background: #e8c46b;
  clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
  filter: drop-shadow(0 0 4px rgba(232, 196, 107, 0.7));
  animation: hero-star-twinkle 3.4s ease-in-out infinite;
}
.hero-sky__star--1 { top: 14%; left: 14%; width: 0.85rem; height: 0.85rem; animation-delay: 0s; }
.hero-sky__star--2 { top: 8%;  left: 38%; width: 0.6rem;  height: 0.6rem;  animation-delay: 0.6s; }
.hero-sky__star--3 { top: 26%; left: 62%; width: 0.7rem;  height: 0.7rem;  animation-delay: 1.1s; }
.hero-sky__star--4 { top: 44%; left: 30%; width: 0.55rem; height: 0.55rem; animation-delay: 1.7s; opacity: 0.7; }
.hero-sky__star--5 { top: 70%; left: 78%; width: 0.7rem;  height: 0.7rem;  animation-delay: 2.2s; }
.hero-sky__star--6 { top: 86%; left: 22%; width: 0.6rem;  height: 0.6rem;  animation-delay: 2.8s; opacity: 0.65; }

@keyframes hero-star-twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1.08); }
}

/* Hanging lanterns -------------------- */
.hero-sky__lantern {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: top center;
  animation: hero-lantern-swing 4.5s ease-in-out infinite;
}
.hero-sky__lantern-rope {
  width: 1px;
  height: 1.3rem;
  background: linear-gradient(180deg, rgba(120, 90, 30, 0.5) 0%, rgba(120, 90, 30, 0.85) 100%);
}
.hero-sky__lantern-body {
  width: 1.5rem;
  height: 2rem;
  background:
    radial-gradient(ellipse at 50% 60%, #ffd97a 0%, #e8a73a 60%, #b07a1c 100%);
  border-radius: 35% 35% 45% 45% / 25% 25% 55% 55%;
  border: 1px solid rgba(120, 80, 20, 0.55);
  box-shadow:
    0 0 22px 4px rgba(255, 200, 100, 0.45),
    inset 0 -3px 6px rgba(120, 70, 20, 0.45),
    inset 0 2px 4px rgba(255, 240, 200, 0.6);
  position: relative;
}
.hero-sky__lantern-body::before {
  content: "";
  position: absolute;
  top: -0.25rem; left: 50%;
  transform: translateX(-50%);
  width: 0.6rem; height: 0.25rem;
  background: linear-gradient(180deg, #c89d3f 0%, #8a661d 100%);
  border-radius: 2px 2px 0 0;
}
.hero-sky__lantern-body::after {
  content: "";
  position: absolute;
  bottom: -0.35rem; left: 50%;
  transform: translateX(-50%);
  width: 0.5rem; height: 0.35rem;
  background: linear-gradient(180deg, #c89d3f 0%, #6c4f15 100%);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 0 8px 2px rgba(255, 200, 100, 0.35);
}

.hero-sky__lantern--1 { top: 0; left: 18%; animation-delay: 0s; }
.hero-sky__lantern--2 { top: 0; left: 48%; animation-delay: -1.2s; }
.hero-sky__lantern--3 { top: 0; left: 78%; animation-delay: -2.5s; }

@keyframes hero-lantern-swing {
  0%, 100% { transform: rotate(-4deg); }
  50%      { transform: rotate(4deg); }
}

@media (max-width: 640px) {
  .hero-sky__lantern--1 { left: 12%; }
  .hero-sky__lantern--2 { left: 50%; }
  .hero-sky__lantern--3 { left: 86%; }
  .hero-sky__lantern-body { width: 1.2rem; height: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-sky__cloud,
  .hero-sky__star,
  .hero-sky__lantern,
  .hero-sky__moon { animation: none !important; }
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 3rem;
  }
}

.hero__copy { max-width: 36rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid #dbcba8;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #5f765f;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.eyebrow .icon { width: 0.85rem; height: 0.85rem; }

.hero__title {
  margin-top: 1.25rem;
  font-size: clamp(2.6rem, 6vw + 1rem, 5rem);
  line-height: 0.92;
  color: #1d2c1f;
  letter-spacing: -0.01em;
}

.hero__subtitle {
  margin-top: 1rem;
  max-width: 32rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: #4d5d52;
}

.hero__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__covers,
.hero__visual {
  position: relative;
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
}

.hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.hero-stage__moon,
.hero-stage__star {
  display: none; /* superseded by .hero-sky animated layer */
}

.hero-stage__spotlight {
  position: relative;
  z-index: 3;
  display: block;
  width: 58%;
  transform: rotate(-2deg);
  transition: transform 360ms ease;
  animation: float-soft 7.5s ease-in-out infinite;
}

.hero-stage__spotlight:hover {
  transform: rotate(-2deg) translateY(-6px) scale(1.02);
}

.hero-stage__accent {
  position: absolute;
  z-index: 2;
  display: block;
  width: 38%;
  opacity: 0.95;
  transition: transform 360ms ease;
}

.hero-stage__accent--left {
  left: 0%;
  bottom: 8%;
  transform: rotate(-9deg);
  animation: float-soft 9s ease-in-out infinite;
  animation-delay: 0.8s;
}

.hero-stage__accent--left:hover {
  transform: rotate(-9deg) translateY(-6px);
}

.hero-stage__accent--right {
  right: 0%;
  top: 14%;
  transform: rotate(8deg);
  animation: float-soft 9s ease-in-out infinite;
  animation-delay: 1.6s;
}

.hero-stage__accent--right:hover {
  transform: rotate(8deg) translateY(-6px);
}

@media (max-width: 480px) {
  .hero__visual { max-width: 22rem; }
}

.hero-cover {
  position: relative;
  display: block;
  width: 78%;
  max-width: 22rem;
  margin-inline: auto;
  transform: rotate(-3deg);
  transition: transform 500ms cubic-bezier(.2,.8,.2,1);
  animation: hero-cover-float 8s ease-in-out infinite;
  z-index: 2;
}

.hero-cover:hover {
  transform: rotate(-2deg) translateY(-8px) scale(1.02);
}

.hero-cover__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.6rem;
  /* Realistic stacked drop-shadow (no card chrome around the cover) */
  filter:
    drop-shadow(0 30px 35px rgba(58, 47, 22, 0.28))
    drop-shadow(0 12px 18px rgba(58, 47, 22, 0.18))
    drop-shadow(0 3px 6px rgba(58, 47, 22, 0.14));
}

@keyframes hero-cover-float {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%      { transform: rotate(-3deg) translateY(-10px); }
}

/* Soft glow halo behind hero cover */
.hero-cover::before {
  content: "";
  position: absolute;
  inset: -22% -18%;
  background: radial-gradient(ellipse at 50% 45%,
    rgba(255, 240, 195, 0.55) 0%,
    rgba(255, 230, 170, 0.32) 30%,
    rgba(232, 184, 90, 0.12) 55%,
    transparent 75%);
  filter: blur(12px);
  z-index: -1;
  animation: hero-halo-pulse 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hero-halo-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cover::before { animation: none; }
}

/* Decorative section dividers ------------------------------------------- */

.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 3rem auto;
  max-width: 28rem;
  opacity: 0.7;
}
.divider-ornament__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-500, #c8923a), transparent);
}
.divider-ornament__star {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--gold-600, #b07f30);
  animation: divider-twinkle 4s ease-in-out infinite;
}
@keyframes divider-twinkle {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.85; }
  50%      { transform: rotate(180deg) scale(1.08); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .divider-ornament__star { animation: none; }
}

@media (max-width: 639px) {
  .divider-ornament { margin: 2rem auto; max-width: 18rem; }
}

/* Editorial intro panel ------------------------------------------------ */

.paper-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 252, 246, 0.93) 100%);
  border: 1px solid rgba(230, 222, 207, 0.88);
  border-radius: 1.95rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.6rem 1.4rem;
}

@media (min-width: 640px) {
  .paper-panel { padding: 2rem 1.9rem; }
}

.intro-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .intro-grid {
    grid-template-columns: 0.33fr 1fr;
    gap: 2rem;
    align-items: start;
  }
}

.intro-grid__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #6a7867;
}

.intro-grid__title {
  font-size: clamp(2rem, 3vw + 1rem, 2.45rem);
  line-height: 0.96;
  color: var(--ink);
}

.intro-grid__body {
  margin-top: 0.85rem;
  max-width: 50rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #56645a;
}

/* Section header strip ------------------------------------------------- */

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--paper);
  border: 1px solid #ebe1d1;
  border-radius: 1.85rem;
  padding: 1.3rem 1.4rem;
}

@media (min-width: 640px) {
  .section-header {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
    padding: 1.6rem 1.9rem;
  }
}

.section-header__title {
  font-size: clamp(2rem, 3vw + 1rem, 2.85rem);
  line-height: 0.95;
  color: var(--ink);
}

.section-header__copy {
  max-width: 32rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #59695d;
}

.section-header__link,
.reviews-proof a,
.amazon-proof {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--sage-700);
  font-weight: 800;
  border-bottom: 1px solid rgba(51, 97, 74, 0.28);
}

.section-header__link {
  margin-top: 0.6rem;
}

.amazon-proof {
  margin-top: 0.75rem;
  min-height: 2.25rem;
  padding: 0.62rem 1rem;
  border: 1px solid rgba(126, 86, 27, 0.24);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff8e7 0%, #f1dca5 100%);
  box-shadow: 0 12px 24px rgba(91, 62, 18, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: #5f3f12;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.amazon-proof::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.5rem;
  border-radius: 999px;
  background: #c8923a;
  box-shadow: 0 0 0 4px rgba(200, 146, 58, 0.16);
}

/* Books grid ----------------------------------------------------------- */

.books-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .books-grid { gap: 1.4rem; }
}

@media (min-width: 1024px) {
  .books-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
  .books-grid { grid-template-columns: repeat(4, 1fr); }
}

.book-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 252, 246, 0.95) 100%);
  border: 1px solid rgba(230, 222, 207, 0.88);
  box-shadow: var(--shadow-card);
  transition: transform 280ms ease, box-shadow 280ms ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.book-card:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow: var(--shadow-cover-hover);
}

@media (min-width: 640px) {
  .book-card { padding: 1.25rem; gap: 1.15rem; }
}

.book-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1.3rem;
  line-height: 1.05;
  color: var(--ink);
  min-height: 2.85rem;
}

.book-card__blurb {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.45rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #5b6a5e;
  min-height: 2.6rem;
}

.book-card__actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

@media (min-width: 640px) {
  .book-card__actions { grid-template-columns: 1fr 1fr; }
}

.book-card .btn {
  height: 2.5rem;
  font-size: 0.78rem;
  padding-inline: 1rem;
}

/* Cover frame — full-bleed product photo, no decorative chrome ----------- */

.cover-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #faf3e3;
  box-shadow: var(--shadow-cover);
  transition: transform 500ms ease, box-shadow 500ms ease;
  padding: 0.75rem;
}

.cover-frame__img {
  position: absolute;
  inset: 0.75rem;
  width: calc(100% - 1.5rem);
  height: calc(100% - 1.5rem);
  object-fit: contain;
  display: block;
  transition: transform 700ms ease;
}

.book-card:hover .cover-frame__img,
.cover-frame:hover .cover-frame__img {
  transform: scale(1.04);
}

.book-card:hover .cover-frame {
  box-shadow: var(--shadow-cover-hover);
}

/* --- Flat variant: ornate gilded frame around the flat cover artwork --- */

.cover-frame--flat {
  /* Soft cream "matte" behind the cover so contained images breathe.
     Layered: a starfield overlay + a base radial gradient (overridden
     per-cover by JS sampling the dominant cover colors). */
  position: relative;
  /* flex-center the cover image inside the matte */
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    /* twinkle stars (SVG data URI, gold dots) */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='%23c8923a' opacity='0.55'><circle cx='15' cy='25' r='1.2'/><circle cx='38' cy='14' r='0.9'/><circle cx='62' cy='32' r='1.4'/><circle cx='84' cy='10' r='0.8'/><circle cx='112' cy='22' r='1.1'/><circle cx='140' cy='8' r='1.3'/><circle cx='168' cy='28' r='0.9'/><circle cx='185' cy='18' r='1.1'/><circle cx='8' cy='65' r='1'/><circle cx='178' cy='72' r='1.2'/><circle cx='12' cy='112' r='1.4'/><circle cx='192' cy='118' r='0.8'/><circle cx='6' cy='160' r='1.1'/><circle cx='28' cy='178' r='0.9'/><circle cx='58' cy='190' r='1.3'/><circle cx='105' cy='185' r='0.8'/><circle cx='148' cy='188' r='1.1'/><circle cx='178' cy='172' r='1.2'/><circle cx='196' cy='155' r='0.9'/></g><g fill='%23e8b85a' opacity='0.7'><path d='M30 50 l1 -3 l1 3 l3 1 l-3 1 l-1 3 l-1 -3 l-3 -1 z'/><path d='M165 92 l1 -3 l1 3 l3 1 l-3 1 l-1 3 l-1 -3 l-3 -1 z'/><path d='M48 142 l1 -3 l1 3 l3 1 l-3 1 l-1 3 l-1 -3 l-3 -1 z'/></g></svg>"),
    radial-gradient(circle at 50% 40%, #fffaee 0%, #f6ecd1 75%, #efdfb8 100%);
  background-size: 100% 100%, 100% 100%;
  background-blend-mode: normal, normal;
  padding: 0.85rem;
  border: 1px solid rgba(196, 162, 92, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.9),
    inset 0 0 0 6px rgba(232, 200, 122, 0.18),
    inset 0 0 0 7px rgba(196, 162, 92, 0.45),
    0 18px 38px -22px rgba(58, 69, 47, 0.32),
    0 6px 14px -8px rgba(58, 69, 47, 0.18);
}

/* When JS sets a custom radial-gradient as background, the starfield needs to layer on top */
.cover-frame--flat[style*="background"]::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='%23c8923a' opacity='0.45'><circle cx='15' cy='25' r='1.2'/><circle cx='38' cy='14' r='0.9'/><circle cx='62' cy='32' r='1.4'/><circle cx='84' cy='10' r='0.8'/><circle cx='112' cy='22' r='1.1'/><circle cx='140' cy='8' r='1.3'/><circle cx='168' cy='28' r='0.9'/><circle cx='185' cy='18' r='1.1'/><circle cx='8' cy='65' r='1'/><circle cx='178' cy='72' r='1.2'/><circle cx='12' cy='112' r='1.4'/><circle cx='192' cy='118' r='0.8'/><circle cx='6' cy='160' r='1.1'/><circle cx='28' cy='178' r='0.9'/><circle cx='58' cy='190' r='1.3'/><circle cx='105' cy='185' r='0.8'/><circle cx='148' cy='188' r='1.1'/><circle cx='178' cy='172' r='1.2'/><circle cx='196' cy='155' r='0.9'/></g><g fill='%23e8b85a' opacity='0.65'><path d='M30 50 l1 -3 l1 3 l3 1 l-3 1 l-1 3 l-1 -3 l-3 -1 z'/><path d='M165 92 l1 -3 l1 3 l3 1 l-3 1 l-1 3 l-1 -3 l-3 -1 z'/><path d='M48 142 l1 -3 l1 3 l3 1 l-3 1 l-1 3 l-1 -3 l-3 -1 z'/></g></svg>") center/cover no-repeat;
  border-radius: inherit;
  z-index: 0;
}
.cover-frame--flat .cover-frame__img,
.cover-frame--flat .cover-frame__corner { position: relative; z-index: 1; }

.cover-frame--flat .cover-frame__img {
  /* Override base absolute positioning — use flex centering on the frame instead */
  position: relative;
  inset: auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  /* contain so the whole cover shows — never cropped */
  object-fit: contain;
  /* center the cover within the matte */
  object-position: center center;
  border-radius: 0.4rem;
  /* No bright white pad — let the cream matte show through */
  background: transparent;
  /* Subtle natural shadow under the cover, like resting on parchment */
  filter: drop-shadow(0 6px 10px rgba(58, 47, 22, 0.18))
          drop-shadow(0 1px 2px rgba(58, 47, 22, 0.12));
}

/* Tiny ornamental corners on the flat frame */
.cover-frame__corner {
  position: absolute;
  width: 1.35rem;
  height: 1.35rem;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(circle at 50% 50%, rgba(196, 162, 92, 0) 60%, rgba(196, 162, 92, 0.55) 62%, rgba(196, 162, 92, 0) 64%) no-repeat center / 0.55rem 0.55rem;
}
.cover-frame--flat .cover-frame__corner { display: block; }
.cover-frame:not(.cover-frame--flat) .cover-frame__corner { display: none; }

.cover-frame__corner::before,
.cover-frame__corner::after {
  content: "";
  position: absolute;
  background: linear-gradient(135deg, #d4af37 0%, #a4842a 100%);
  border-radius: 1px;
}

/* Two thin gilded lines per corner */
.cover-frame__corner::before { width: 0.9rem; height: 2px; }
.cover-frame__corner::after  { width: 2px; height: 0.9rem; }

.cover-frame__corner--tl { top: 0.18rem; left: 0.18rem; }
.cover-frame__corner--tl::before { top: 0; left: 0; }
.cover-frame__corner--tl::after  { top: 0; left: 0; }

.cover-frame__corner--tr { top: 0.18rem; right: 0.18rem; }
.cover-frame__corner--tr::before { top: 0; right: 0; }
.cover-frame__corner--tr::after  { top: 0; right: 0; }

.cover-frame__corner--bl { bottom: 0.18rem; left: 0.18rem; }
.cover-frame__corner--bl::before { bottom: 0; left: 0; }
.cover-frame__corner--bl::after  { bottom: 0; left: 0; }

.cover-frame__corner--br { bottom: 0.18rem; right: 0.18rem; }
.cover-frame__corner--br::before { bottom: 0; right: 0; }
.cover-frame__corner--br::after  { bottom: 0; right: 0; }

/* Free gift section ---------------------------------------------------- */

.gift {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .gift {
    grid-template-columns: 0.94fr 1.06fr;
    align-items: center;
    gap: 2.5rem;
  }
}

.gift__title {
  margin-top: 0.85rem;
  font-size: clamp(2rem, 3vw + 1rem, 2.35rem);
  line-height: 0.96;
  color: var(--ink);
}

.gift__body {
  margin-top: 0.85rem;
  max-width: 32rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #57665c;
}

.gift__chip {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid #dfd4c3;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5f715f;
}

.form-card {
  border-radius: 1.55rem;
  border: 1px solid #e7dccb;
  background: rgba(255, 255, 255, 0.85);
  padding: 1.2rem;
  box-shadow: 0 18px 38px -30px rgba(46, 57, 39, 0.35);
}

@media (min-width: 640px) {
  .form-card { padding: 1.5rem; }
}

/* Forms ---------------------------------------------------------------- */

.field {
  position: relative;
  display: block;
  margin-bottom: 0.6rem;
}

.field__icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: #75806f;
  pointer-events: none;
}

.field__input,
.field__textarea {
  width: 100%;
  height: 2.85rem;
  padding: 0 1rem 0 2.5rem;
  border-radius: 9999px;
  border: 1px solid #d9cfbc;
  background: #fff;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field__textarea {
  height: auto;
  min-height: 7rem;
  border-radius: 1.2rem;
  padding: 0.85rem 1rem 0.85rem 2.5rem;
  resize: vertical;
}

.field__input::placeholder,
.field__textarea::placeholder {
  color: #8a9385;
}

.field__input:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--sage-500);
  box-shadow: 0 0 0 3px rgba(88, 113, 87, 0.18);
}

.form__row {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

@media (min-width: 640px) {
  .form__row--2 { grid-template-columns: 1fr 1fr; }
}

.form__submit {
  width: 100%;
}

@media (min-width: 640px) {
  .form__submit { width: auto; min-width: 14rem; }
}

.form__status {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--sage-600);
  min-height: 1.35rem;
}

.form__status--error { color: #b14a3a; }

/* Contact section ------------------------------------------------------ */

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.contact-grid__title {
  font-size: clamp(2rem, 3vw + 1rem, 2.45rem);
  line-height: 0.96;
  color: var(--ink);
}

.contact-grid__body {
  margin-top: 0.85rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #57665c;
  max-width: 32rem;
}

/* CTA strip ------------------------------------------------------------ */

.cta-strip {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .cta-strip {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

.cta-strip__title {
  font-size: clamp(2rem, 3vw + 1rem, 2.45rem);
  line-height: 0.95;
  color: var(--ink);
  max-width: 36rem;
}

/* Footer --------------------------------------------------------------- */

.site-footer {
  position: relative;
  padding: 0 0 1.5rem;
  /* Layered parchment texture: warm gradient + subtle paper grain + gold star dots */
  background:
    /* gold star dots */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400'><g fill='%23c8923a' opacity='0.18'><circle cx='30' cy='60' r='1.4'/><circle cx='110' cy='30' r='1'/><circle cx='180' cy='80' r='1.6'/><circle cx='260' cy='40' r='1.1'/><circle cx='340' cy='90' r='1.3'/><circle cx='420' cy='25' r='0.9'/><circle cx='500' cy='70' r='1.2'/><circle cx='560' cy='40' r='1'/><circle cx='80' cy='160' r='1'/><circle cx='220' cy='190' r='1.3'/><circle cx='380' cy='170' r='1.1'/><circle cx='540' cy='200' r='1.4'/><circle cx='40' cy='280' r='1.2'/><circle cx='160' cy='320' r='1'/><circle cx='300' cy='290' r='1.3'/><circle cx='450' cy='340' r='1.1'/><circle cx='580' cy='300' r='1'/></g><g fill='%23e8b85a' opacity='0.32'><path d='M120 220 l1 -3 l1 3 l3 1 l-3 1 l-1 3 l-1 -3 l-3 -1 z'/><path d='M340 130 l1.2 -3.5 l1.2 3.5 l3.5 1.2 l-3.5 1.2 l-1.2 3.5 l-1.2 -3.5 l-3.5 -1.2 z'/><path d='M480 250 l1 -3 l1 3 l3 1 l-3 1 l-1 3 l-1 -3 l-3 -1 z'/></g></svg>"),
    /* paper grain (subtle noise) */
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 2px,
      rgba(196, 162, 92, 0.025) 2px,
      rgba(196, 162, 92, 0.025) 4px
    ),
    linear-gradient(180deg,
      transparent 0%,
      rgba(247, 240, 226, 0.55) 18%,
      rgba(241, 227, 196, 0.85) 65%,
      rgba(232, 211, 168, 0.9) 100%);
  background-size: 600px 400px, auto, auto;
  margin-top: 4rem;
}

.footer-ornament {
  display: block;
  width: 100%;
  margin-bottom: 1.35rem;
  opacity: 0.5;
}

.footer-ornament g,
.footer-ornament circle { display: none; }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 0.8fr 1fr 1.1fr;
    gap: 2.25rem;
  }
}

.site-footer__col--brand { max-width: 28rem; }

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.site-footer__mark {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(60, 40, 16, 0.18));
}

.site-footer__name {
  font-family: "DM Serif Display", "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: 0.005em;
}
.site-footer__name small { display: none; }

.site-footer__tagline {
  margin-top: 1rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #6b7769;
}

/* Bismillah block was removed — keep this empty placeholder so older selectors don't break */
.site-footer__bismillah { display: none; }

.site-footer__heading {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-900);
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(200, 146, 58, 0.25);
}

.site-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.site-footer__list a {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.92rem;
  color: var(--ink-muted);
  transition: color 180ms ease, padding-left 180ms ease;
  display: inline-flex;
  align-items: center;
  line-height: 1.4;
}
.site-footer__list a::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 1px;
  background: var(--gold-600);
  margin-right: 0;
  transition: width 220ms ease, margin-right 220ms ease;
}
.site-footer__list a:hover {
  color: var(--sage-700);
}
.site-footer__list a:hover::before {
  width: 14px;
  margin-right: 8px;
}

.site-footer__contact-line {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin: 0 0 0.75rem;
  line-height: 1.55;
}
.site-footer__contact-line a,
.site-footer__contact-line .js-email-link {
  color: var(--sage-700);
  font-weight: 600;
  border-bottom: 1px solid rgba(51, 97, 74, 0.25);
}
.site-footer__contact-line--muted { color: #8a948b; font-size: 0.85rem; }

.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  min-height: 38px;
}

.site-footer__bottom {
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(200, 146, 58, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.site-footer__legal {
  margin: 0;
  font-size: 0.78rem;
  color: #8a948b;
  letter-spacing: 0.04em;
}
.site-footer__legal--right { color: #a39b88; }

/* Book detail page ----------------------------------------------------- */

.detail {
  position: relative;
  padding-block: 2rem;
}

.detail__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.detail__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, var(--detail-from, #efe5d4) 0%, transparent 40%),
    radial-gradient(circle at bottom right, var(--detail-to, #d8e2da) 0%, transparent 36%);
}

.detail__topbar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.detail__topbar-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.detail__topbar img {
  width: 8.5rem;
  height: auto;
}

.detail__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .detail__grid {
    grid-template-columns: 0.88fr 1.12fr;
    gap: 2.25rem;
  }
}

.detail__cover-wrap {
  padding: 1.25rem;
  border-radius: 2.15rem;
}

.detail__cover-wrap .cover-frame {
  max-width: 26rem;
  margin-inline: auto;
}

.detail__article {
  padding: 1.5rem 1.4rem;
  border-radius: 2.15rem;
}

@media (min-width: 640px) {
  .detail__article { padding: 2rem 1.9rem; }
}

.detail__crumb {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #60745e;
}

.detail__title {
  margin-top: 0.85rem;
  font-size: clamp(2.4rem, 3vw + 1.5rem, 3.55rem);
  line-height: 0.92;
  color: #1f3022;
  max-width: 36rem;
  letter-spacing: -0.005em;
}

.detail__short {
  margin-top: 1rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: #56655b;
  max-width: 36rem;
}

.detail__paragraphs {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #3f4f43;
  max-width: 38rem;
}

.detail__benefits {
  margin-top: 1.75rem;
  padding: 1.25rem;
  border-radius: 1.6rem;
  border: 1px solid #e6dccb;
  background: rgba(255, 255, 255, 0.74);
}

@media (min-width: 640px) {
  .detail__benefits { padding: 1.5rem; }
}

.detail__benefits h2 {
  font-size: 1.6rem;
  color: var(--ink);
}

.detail__benefits ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.detail__benefits li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #516055;
}

.detail__benefits li::before {
  content: "";
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  border-radius: 9999px;
  background: var(--sage-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8l3 3 6-6'/%3E%3C/svg%3E") center/0.85rem no-repeat;
}

.detail__actions {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .detail__actions { flex-direction: row; }
}

/* Animations ----------------------------------------------------------- */

@keyframes fade-rise {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes float-soft {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -8px, 0); }
}

.fade-rise {
  opacity: 0;
  animation: fade-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.float-soft {
  animation: float-soft 7.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-rise, .float-soft { animation: none !important; opacity: 1 !important; }
}

/* Utility -------------------------------------------------------------- */

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


/* ====================================================================
   Book detail v2 — themed hero (per-book palette via CSS vars)
   ==================================================================== */

.bd {
  --bd-from: #0f4c4c;
  --bd-to: #d4af37;
  --bd-accent: #d4af37;
  --bd-text: #f5efdf;
}

.bd-hero {
  position: relative;
  background: linear-gradient(140deg, var(--bd-from) 0%, color-mix(in oklab, var(--bd-from) 80%, var(--bd-to)) 100%);
  color: var(--bd-text);
  overflow: hidden;
}

.bd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, color-mix(in oklab, var(--bd-accent) 28%, transparent) 0%, transparent 45%),
    radial-gradient(circle at 90% 100%, color-mix(in oklab, var(--bd-accent) 22%, transparent) 0%, transparent 50%);
  pointer-events: none;
}

.bd-hero__inner {
  position: relative;
  display: grid;
  gap: 2rem;
  padding-block: 3rem 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .bd-hero__inner {
    grid-template-columns: minmax(280px, 0.85fr) 1.15fr;
    gap: 3.5rem;
    padding-block: 5rem 4rem;
  }
}

.bd-hero__cover {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 1.5rem;
  overflow: hidden;
  max-width: 30rem;
  margin-inline: auto;
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.55), 0 18px 30px -12px rgba(0,0,0,0.35);
  transform: rotate(-1.5deg);
  transition: transform 600ms cubic-bezier(.2,.8,.2,1);
}

.bd-hero__cover:hover { transform: rotate(0deg) translateY(-4px); }

.bd-hero__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.35));
}

.bd-hero__copy {
  max-width: 36rem;
}

.bd-hero__crumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bd-text) 75%, transparent);
  margin-bottom: 1rem;
  text-decoration: none;
}

.bd-hero__crumb:hover { color: var(--bd-text); }
.bd-hero__crumb::before {
  content: "←";
  font-size: 1rem;
  letter-spacing: 0;
  display: inline-block;
}

.bd-hero__title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(2.5rem, 4.5vw + 1rem, 4.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  color: var(--bd-text);
  text-wrap: balance;
}

.bd-hero__blurb {
  font-size: clamp(1.05rem, 0.5vw + 1rem, 1.25rem);
  line-height: 1.55;
  color: color-mix(in oklab, var(--bd-text) 88%, transparent);
  margin: 0 0 1.75rem;
  text-wrap: pretty;
}

.bd-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 3.1rem;
  padding-inline: 1.6rem;
  border-radius: 9999px;
  background: var(--bd-accent);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 14px 30px -12px color-mix(in oklab, var(--bd-accent) 60%, #000);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.bd-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -14px color-mix(in oklab, var(--bd-accent) 70%, #000);
}

.bd-hero__cta::after {
  content: "→";
  font-size: 1.05rem;
}

/* Body ---------------------------------------------------------------- */

.bd-body {
  background: var(--paper);
  padding-block: 3.5rem 1rem;
}

.bd-body__inner {
  display: grid;
  gap: 2.5rem;
  max-width: 64rem;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .bd-body__inner {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.bd-section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bd-from);
  margin: 0 0 0.85rem;
  display: block;
}

.bd-body h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(1.7rem, 1.5vw + 1rem, 2.25rem);
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 1rem;
  letter-spacing: -0.005em;
}

.bd-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: #3f4f43;
  margin: 0 0 1rem;
}

.bd-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.bd-benefits li {
  display: flex;
  gap: 0.85rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #404f44;
  padding: 0.85rem 1rem;
  border-radius: 0.95rem;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line-soft);
}

.bd-benefits li::before {
  content: "";
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.1rem;
  border-radius: 9999px;
  background: var(--bd-from) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8l3 3 6-6'/%3E%3C/svg%3E") center/0.95rem no-repeat;
}

/* Spread (interior pages photo) -------------------------------------- */

.bd-spread {
  background: var(--paper);
  padding-block: 1.5rem 4rem;
}

.bd-spread__frame {
  position: relative;
  max-width: 60rem;
  margin-inline: auto;
  border-radius: 1.75rem;
  overflow: hidden;
  background: linear-gradient(180deg, color-mix(in oklab, var(--bd-from) 8%, #fff), color-mix(in oklab, var(--bd-from) 14%, #fff));
  padding: 1rem;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.25);
}

.bd-spread__frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

.bd-spread__caption {
  text-align: center;
  margin: 1.25rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #6e7d6f;
}

/* Bottom CTA ---------------------------------------------------------- */

.bd-cta {
  background: var(--paper);
  padding-block: 1rem 4rem;
}

.bd-cta__panel {
  max-width: 60rem;
  margin-inline: auto;
  background: linear-gradient(135deg, var(--bd-from), color-mix(in oklab, var(--bd-from) 70%, var(--bd-to)));
  color: var(--bd-text);
  padding: 2rem 1.75rem;
  border-radius: 1.75rem;
  display: grid;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 700px) {
  .bd-cta__panel {
    grid-template-columns: 1fr auto;
    text-align: left;
    padding: 2.5rem 2.5rem;
  }
}

.bd-cta__panel h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(1.55rem, 1.5vw + 1rem, 2.1rem);
  line-height: 1.1;
  margin: 0 0 0.5rem;
  color: var(--bd-text);
}

.bd-cta__panel p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: color-mix(in oklab, var(--bd-text) 85%, transparent);
}

.bd-related {
  background: var(--paper);
  padding-block: 2rem 4rem;
  border-top: 1px solid var(--line-soft);
}

.bd-related h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.65rem;
  margin: 0 0 1.5rem;
  color: var(--ink);
  text-align: center;
}

.bd-related__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  justify-items: center;
}

.bd-related a {
  display: block;
  width: min(100%, 15rem);
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.bd-related a .cover-frame {
  margin-bottom: 0.85rem;
}

.bd-related__title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--ink);
}

/* ============================================================
   Contact intro (replaces inline contact section) + modal
   ============================================================ */

/* Bottom-half richness: parchment texture for gift + contact + above-footer */
#gift, #contact {
  position: relative;
}
#gift::before, #contact::before {
  content: "";
  position: absolute;
  inset: -2rem -50vw;
  z-index: -1;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400'><g fill='%23c8923a' opacity='0.13'><circle cx='30' cy='60' r='1.4'/><circle cx='110' cy='30' r='1'/><circle cx='180' cy='80' r='1.6'/><circle cx='260' cy='40' r='1.1'/><circle cx='340' cy='90' r='1.3'/><circle cx='420' cy='25' r='0.9'/><circle cx='500' cy='70' r='1.2'/><circle cx='560' cy='40' r='1'/><circle cx='80' cy='160' r='1'/><circle cx='220' cy='190' r='1.3'/><circle cx='380' cy='170' r='1.1'/><circle cx='540' cy='200' r='1.4'/><circle cx='40' cy='280' r='1.2'/><circle cx='160' cy='320' r='1'/><circle cx='300' cy='290' r='1.3'/><circle cx='450' cy='340' r='1.1'/><circle cx='580' cy='300' r='1'/></g><g fill='%23e8b85a' opacity='0.22'><path d='M120 220 l1 -3 l1 3 l3 1 l-3 1 l-1 3 l-1 -3 l-3 -1 z'/><path d='M340 130 l1.2 -3.5 l1.2 3.5 l3.5 1.2 l-3.5 1.2 l-1.2 3.5 l-1.2 -3.5 l-3.5 -1.2 z'/><path d='M480 250 l1 -3 l1 3 l3 1 l-3 1 l-1 3 l-1 -3 l-3 -1 z'/></g></svg>"),
    linear-gradient(180deg,
      rgba(247, 240, 226, 0.4) 0%,
      rgba(244, 232, 207, 0.55) 100%);
  background-size: 800px 500px, auto;
  background-repeat: repeat, no-repeat;
  pointer-events: none;
}

.contact-intro {
  max-width: 36rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.contact-intro__title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(1.85rem, 2.4vw + 1rem, 2.6rem);
  line-height: 1.05;
  margin: 0.5rem 0 0.75rem;
  color: var(--ink);
}

.contact-intro__body {
  font-size: 1rem;
  line-height: 1.65;
  color: #56655b;
  margin: 0 0 1.5rem;
}

.contact-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .contact-intro__actions {
    gap: 1rem;
  }
}

/* Contact modal ------------------------------------------- */

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.contact-modal:not([hidden]) { pointer-events: auto; }
.contact-modal--visible { opacity: 1; }

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 30, 24, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.contact-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 34rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: var(--paper);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem 1.75rem;
  box-shadow: 0 50px 100px -30px rgba(0,0,0,0.45);
  transform: translateY(8px) scale(0.98);
  transition: transform 260ms cubic-bezier(.2,.8,.2,1);
}

.contact-modal--visible .contact-modal__dialog {
  transform: translateY(0) scale(1);
}

@media (min-width: 640px) {
  .contact-modal__dialog {
    padding: 2.5rem 2.25rem 2rem;
  }
}

.contact-modal__close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  color: #6e7d6f;
  cursor: pointer;
  border-radius: 999px;
  transition: background-color 150ms ease, color 150ms ease;
}
.contact-modal__close:hover {
  background: rgba(0,0,0,0.06);
  color: var(--ink);
}

.contact-modal__head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.contact-modal__title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(1.65rem, 2vw + 1rem, 2.2rem);
  line-height: 1.1;
  margin: 0.4rem 0 0.6rem;
  color: var(--ink);
}

.contact-modal__subtitle {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #56655b;
  margin: 0;
}

.contact-modal__subtitle a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

body.contact-modal-open { overflow: hidden; }

/* ============================================================
   Mobile UX polish
   ============================================================ */

/* Improve all touch targets */
@media (max-width: 639px) {
  .btn { min-height: 48px; padding-block: 0.85rem; }
  .field__input,
  .field__textarea { font-size: 16px; /* prevent iOS zoom */ }
  .form__submit { min-height: 52px; font-size: 1rem; }
  .site-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .site-footer__list a { min-height: 36px; padding-block: 0.2rem; }
}

/* Hero — better balance on small screens */
@media (max-width: 639px) {
  .hero { padding-block: 0.5rem 1rem; }
  .hero__shell { padding: 1.4rem 1.1rem; border-radius: 1.4rem; }
  .hero__title { font-size: clamp(2.05rem, 9vw, 2.65rem) !important; line-height: 1.02; }
  .hero__subtitle { font-size: 0.98rem; line-height: 1.55; margin-top: 0.85rem; }
  .hero__actions { gap: 0.6rem; flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; text-align: center; justify-content: center; }
  .hero__visual { margin-top: 1.5rem; max-width: 20rem; }
}

/* Books grid — single column with better spacing */
@media (max-width: 639px) {
  .books-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .book-card { padding: 1rem; }
  .book-card__title { font-size: 1.35rem; }
  .book-card__blurb { font-size: 0.94rem; line-height: 1.55; }
  .book-card__actions { grid-template-columns: 1fr; gap: 0.6rem; }
}

/* Section headings tighter */
@media (max-width: 639px) {
  .section { padding-block: 1.5rem; }
  .section-header { gap: 0.6rem; }
  .section-header__title { font-size: clamp(1.7rem, 6vw, 2rem) !important; line-height: 1.1; }
  .section-header__copy { font-size: 0.92rem; }
}

/* Free gift section stacked nicely */
@media (max-width: 639px) {
  .gift { gap: 1.4rem; }
  .gift__title { font-size: clamp(1.7rem, 6.5vw, 2.1rem) !important; line-height: 1.05; }
  .gift__body { font-size: 0.95rem; line-height: 1.6; }
  .form-card { padding: 1.1rem; border-radius: 1.1rem; }
}

/* Paper panel padding */
@media (max-width: 639px) {
  .paper-panel { padding: 1.4rem 1.1rem; border-radius: 1.4rem; }
}

/* Site header tightening */
@media (max-width: 639px) {
  .site-header__inner { padding-block: 0.45rem; }
  .brand__mark { width: 2.3rem; height: 2.3rem; }
  .brand__wordmark { font-size: 0.95rem; }
  .btn--ghost-header { padding-inline: 0.85rem; min-height: 38px; font-size: 0.78rem; }
}

/* Detail page — mobile */
@media (max-width: 639px) {
  .bd-hero { padding-block: 1.5rem 2rem; }
  .bd-hero__title { font-size: clamp(1.75rem, 7vw, 2.4rem) !important; line-height: 1.05; }
  .bd-hero__cover { transform: rotate(0deg); max-width: 14rem; margin-inline: auto; }
  .bd-hero__cta { width: 100%; justify-content: center; }
  .bd-spread { padding-block: 1rem 2.5rem; }
  .bd-spread__frame { padding: 0.5rem; border-radius: 1.25rem; }
  .bd-cta__panel { padding: 1.5rem 1.1rem; }
  .bd-cta__panel h3 { font-size: 1.5rem; }
  .bd-related { padding-block: 1.5rem 2.5rem; }
  .bd-related__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* Footer — mobile */
@media (max-width: 639px) {
  .site-footer { padding-bottom: 1.25rem; margin-top: 2.5rem; }
  .footer-ornament { margin-bottom: 1.75rem; }
  .site-footer__grid { gap: 1.75rem; }
}

/* Contact intro mobile */
@media (max-width: 639px) {
  .contact-intro__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .contact-intro__actions .btn { width: 100%; justify-content: center; }
}

/* Avoid horizontal scroll on small phones */
html, body { overflow-x: hidden; }


/* Lead-magnet visible download fallback link */
.form__download-fallback {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #56655b;
  text-align: center;
}
.form__download-fallback a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   Bismillah — quiet breathing space above the hero
   ============================================================ */

.bismillah {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  max-width: 38rem;
  margin: 1.5rem auto 0.75rem;
  padding-inline: 1.5rem;
  color: var(--gold-700, #97651e);
  opacity: 0.92;
}
.bismillah__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, currentColor, transparent);
  opacity: 0.55;
  max-width: 5rem;
}
.bismillah__arabic {
  font-family: "Amiri", "Scheherazade New", serif;
  font-size: clamp(1.45rem, 2.5vw + 0.6rem, 2rem);
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(255, 250, 238, 0.6);
}
@media (max-width: 639px) {
  .bismillah {
    margin: 1rem auto 0.25rem;
    gap: 0.75rem;
    padding-inline: 1rem;
  }
  .bismillah__rule { max-width: 2.5rem; }
  .bismillah__arabic {
    font-size: clamp(1.15rem, 6.5vw, 1.55rem);
  }
}

/* ============================================================
   Mobile fixes — late-loaded so they win cascade order
   ============================================================ */

/* Hide Cloudflare Turnstile widget when the sitekey is the placeholder
   (otherwise it renders a tall blank/error iframe that looks like a broken button). */
.cf-turnstile[data-sitekey="SITEKEY_HERE"] {
  display: none !important;
}

/* Disable hover transforms on touch devices — they leave elements stuck */
@media (hover: none) {
  .book-card:hover,
  .cover-frame:hover,
  .bd-hero__cover:hover,
  .hero-stage__spotlight:hover,
  .hero-stage__accent--left:hover,
  .hero-stage__accent--right:hover,
  .btn:hover {
    transform: none !important;
  }
  .book-card:hover .cover-frame__img,
  .cover-frame:hover .cover-frame__img {
    transform: none !important;
  }
}

@media (max-width: 639px) {
  /* Generous breathing room above bismillah (header → bismillah → hero rhythm) */
  .bismillah { margin-top: 1.5rem !important; margin-bottom: 0.75rem !important; }

  /* Hero — tighten the magical sky scene; hide side accent covers (they crowd the spotlight) */
  .hero__shell { padding: 1.6rem 1.15rem 1.8rem !important; border-radius: 1.4rem !important; }
  .hero-stage__accent { display: none !important; }
  .hero-stage { aspect-ratio: 4 / 3 !important; }
  .hero-stage__spotlight {
    transform: rotate(-3deg) !important;
    max-width: 11rem !important;
  }
  /* Smaller moon, fewer twinkles read better at mobile scale */
  .hero-sky__moon { width: 3rem !important; height: 3rem !important; right: 8% !important; top: 8% !important; }
  .hero-sky__star { transform: scale(0.75); }
  .hero-sky__lantern { display: none !important; }

  /* Section padding — consistent vertical rhythm between blocks */
  .section { padding-block: 1.75rem !important; }

  /* Smaller, more delicate divider on mobile */
  .divider-ornament {
    margin: 1.25rem auto !important;
    max-width: 12rem !important;
  }
  .divider-ornament__star {
    width: 14px !important;
    height: 14px !important;
  }

  /* Books grid — covers don't crop too tall, titles read first */
  .book-card { padding: 1rem !important; gap: 0.85rem !important; }
  .book-card .cover-frame--flat { padding: 0.75rem !important; }
  .book-card .cover-frame__img { max-height: 280px; object-fit: contain; }
  .book-card__title { font-size: 1.3rem !important; line-height: 1.15 !important; }
  .book-card__blurb { font-size: 0.92rem !important; line-height: 1.55 !important; }

  /* Section header — tighter and more legible */
  .section-header { gap: 0.5rem !important; }
  .section-header__title { font-size: clamp(1.65rem, 6.5vw, 2.05rem) !important; line-height: 1.08 !important; }
  .section-header__copy { font-size: 0.94rem !important; line-height: 1.55 !important; }
  .brand__eyebrow { font-size: 0.7rem !important; letter-spacing: 0.18em !important; }

  /* Paper panels — consistent corners + padding */
  .paper-panel { padding: 1.4rem 1.15rem !important; border-radius: 1.4rem !important; }

  /* Form card */
  .form-card { padding: 1.1rem !important; border-radius: 1.1rem !important; }

  /* Contact intro */
  .contact-intro__title { font-size: clamp(1.6rem, 6.5vw, 2rem) !important; line-height: 1.08 !important; }
  .contact-intro__body { font-size: 0.95rem !important; line-height: 1.6 !important; }

  /* Footer ornament — slim it down */
  .footer-ornament {
    margin-bottom: 1.25rem !important;
    opacity: 0.7;
  }
  .footer-ornament svg {
    height: 18px !important;
  }
  .site-footer { padding-block: 1.5rem 1rem !important; }
  .site-footer__grid { gap: 1.5rem !important; }
  .site-footer__heading { font-size: 0.95rem !important; margin-bottom: 0.5rem !important; }
  .site-footer__list { font-size: 0.92rem !important; }
  .site-footer__brand p,
  .site-footer__contact-line { font-size: 0.92rem !important; line-height: 1.5 !important; }
  .site-footer__bottom { font-size: 0.78rem !important; padding-top: 1.25rem !important; margin-top: 1.5rem !important; }

  /* Book detail hero — improve order, breathing room, no harsh edges */
  .bd-hero__inner { padding-block: 2rem 1.5rem !important; gap: 1.25rem !important; }
  .bd-hero__copy { text-align: center; }
  .bd-hero__crumb { justify-content: center; }
  .bd-hero__title { margin-top: 0.4rem !important; }
  .bd-hero__blurb { font-size: 1rem !important; line-height: 1.55 !important; }

  /* Book detail spread image — keep elegant, smaller frame */
  .bd-spread__caption { font-size: 0.88rem !important; }

  /* Book detail "You may also like" — smaller covers, larger titles */
  .bd-related h3 { font-size: 1.4rem !important; margin-bottom: 1rem !important; }
  .bd-related__grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
  .bd-related .cover-frame {
    max-height: 200px;
  }
  .bd-related .cover-frame--flat { padding: 0.7rem !important; }
  .bd-related .cover-frame__img {
    max-height: 175px;
    width: auto;
    margin-inline: auto;
  }
  .bd-related__title {
    font-size: 1rem !important;
    line-height: 1.25 !important;
    margin-top: 0.6rem;
  }

  /* CTA panel on book detail */
  .bd-cta__panel h3 { font-size: 1.35rem !important; line-height: 1.15 !important; }
  .bd-cta__panel p { font-size: 0.93rem !important; }
}

/* Extra-small phones (≤ 360px) — pull back even further */
@media (max-width: 360px) {
  .container { padding-inline: 0.85rem; }
  .hero__title { font-size: 1.95rem !important; }
  .bd-hero__title { font-size: 1.55rem !important; }
  .section-header__title { font-size: 1.55rem !important; }
  .gift__title { font-size: 1.6rem !important; }
  .brand__wordmark { font-size: 0.88rem !important; }
}


/* ============================================================
   "More coming soon" card — fills the orphan grid cell
   ============================================================ */

.book-card--soon {
  background: linear-gradient(155deg, #fbf4e3 0%, #f4e7c8 100%);
  border: 1.5px dashed #c8923a;
  box-shadow: inset 0 0 0 1px rgba(200, 146, 58, 0.18), 0 8px 22px -10px rgba(116, 78, 22, 0.18);
  position: relative;
  overflow: hidden;
}
.book-card--soon::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(200, 146, 58, 0.12), transparent 45%),
    radial-gradient(circle at 80% 82%, rgba(180, 130, 50, 0.10), transparent 50%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='%23c8923a' opacity='0.30'><circle cx='25' cy='30' r='1.2'/><circle cx='160' cy='40' r='1'/><circle cx='80' cy='100' r='1.4'/><circle cx='180' cy='150' r='1.1'/><circle cx='40' cy='170' r='1.3'/><circle cx='130' cy='130' r='0.9'/><circle cx='100' cy='25' r='0.8'/></g></svg>");
  background-size: cover, cover, 200px 200px;
  pointer-events: none;
  opacity: 0.85;
}
.book-card--soon:hover {
  transform: translateY(-4px);
  border-color: #b07f30;
  box-shadow: inset 0 0 0 1px rgba(200, 146, 58, 0.28), 0 14px 32px -12px rgba(116, 78, 22, 0.28);
}
.book-card__soon-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.4rem;
  gap: 0.65rem;
  height: 100%;
  justify-content: center;
}
.book-card__soon-mark {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 4px 8px rgba(157, 111, 37, 0.25));
  animation: soon-twinkle 4s ease-in-out infinite;
}
@keyframes soon-twinkle {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.85; }
  50%      { transform: rotate(180deg) scale(1.06); opacity: 1; }
}
.book-card__soon-eyebrow {
  font-family: "Manrope", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-700, #97651e);
  margin: 0.5rem 0 0;
}
.book-card__soon-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.65rem;
  line-height: 1.1;
  color: var(--ink, #2b2a2a);
  margin: 0;
  letter-spacing: -0.005em;
}
.book-card__soon-body {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #5d5546;
  margin: 0.25rem 0 0.5rem;
  max-width: 22ch;
}
.book-card__soon-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Manrope", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink, #2b2a2a);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  margin-top: 0.4rem;
  transition: color 200ms ease, transform 200ms ease;
}
.book-card__soon-cta:hover {
  color: var(--gold-700, #97651e);
  transform: translateX(2px);
}
.book-card__soon-arabic {
  font-family: "Amiri", serif;
  font-size: 1.15rem;
  color: var(--gold-700, #97651e);
  opacity: 0.7;
  margin-top: 0.85rem;
  letter-spacing: 0.01em;
}

@media (max-width: 639px) {
  .book-card__soon-inner { padding: 1.75rem 1.1rem; }
  .book-card__soon-title { font-size: 1.4rem; }
  .book-card__soon-mark { width: 44px; height: 44px; }
}


/* ============================================================
   FAQ section on book pages
   ============================================================ */

.bd-faq {
  padding-block: 4rem 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(245, 235, 215, 0.35) 100%);
}
.bd-faq__inner {
  max-width: 760px;
}
.bd-faq__title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.01em;
  margin: 0.5rem 0 1.5rem;
  color: var(--ink, #2b2a2a);
}
.bd-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.bd-faq__item {
  background: rgba(255, 252, 244, 0.9);
  border: 1px solid rgba(200, 146, 58, 0.22);
  border-radius: 1rem;
  padding: 0.95rem 1.15rem;
  transition: border-color 200ms ease, background 200ms ease;
}
.bd-faq__item[open] {
  background: rgba(255, 250, 238, 1);
  border-color: rgba(200, 146, 58, 0.4);
  box-shadow: 0 4px 14px -8px rgba(157, 111, 37, 0.18);
}
.bd-faq__q {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1.3;
  color: var(--ink, #2b2a2a);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}
.bd-faq__q::-webkit-details-marker { display: none; }
.bd-faq__q::after {
  content: "+";
  flex-shrink: 0;
  font-family: "Manrope", sans-serif;
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--gold-700, #97651e);
  transition: transform 220ms ease;
}
.bd-faq__item[open] .bd-faq__q::after {
  content: "−";
  transform: rotate(0deg);
}
.bd-faq__a {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(200, 146, 58, 0.28);
  font-family: "Manrope", sans-serif;
  font-size: 0.97rem;
  line-height: 1.65;
  color: #4a4438;
}

@media (max-width: 639px) {
  .bd-faq { padding-block: 2.5rem 0.5rem; }
  .bd-faq__title { font-size: 1.5rem; margin-bottom: 1rem; }
  .bd-faq__item { padding: 0.85rem 1rem; }
  .bd-faq__q { font-size: 1.05rem; }
  .bd-faq__a { font-size: 0.93rem; line-height: 1.6; }
}

/* Launch polish: mission, reviews, social proof ------------------------- */

.section--mission { padding-block: 1.25rem 2.25rem; }

.mission-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.35rem, 3vw, 2.5rem);
  border: 1px solid rgba(200, 169, 106, 0.3);
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 226, 158, 0.42), transparent 30%),
    radial-gradient(circle at 12% 90%, rgba(183, 216, 193, 0.45), transparent 34%),
    linear-gradient(135deg, rgba(255, 252, 244, 0.94), rgba(240, 232, 211, 0.88));
  box-shadow: 0 30px 80px -58px rgba(50, 70, 52, 0.42);
}

.mission-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.46) 45%, transparent 62%);
  transform: translateX(-120%);
  animation: mission-sheen 8s ease-in-out infinite;
}

.mission-panel__copy,
.mission-stats { position: relative; }

.mission-panel h2 {
  margin-top: 0.55rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 0.98;
  color: var(--ink);
  text-wrap: balance;
}

.mission-panel p:not(.brand__eyebrow) {
  margin-top: 1rem;
  color: var(--ink-soft);
  max-width: 56rem;
}

.mission-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.mission-stat {
  min-width: 0;
  padding: 1rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(200, 169, 106, 0.26);
}

.mission-stat strong {
  display: block;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.75rem, 5vw, 2.7rem);
  line-height: 0.95;
  color: var(--sage-700);
  letter-spacing: 0;
}

.mission-stat span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ink-muted);
}

@media (min-width: 900px) {
  .mission-panel {
    grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.7fr);
    align-items: end;
  }
  .mission-stats { grid-template-columns: 1fr; }
}

@keyframes mission-sheen {
  0%, 42% { transform: translateX(-120%); opacity: 0; }
  52% { opacity: 0.75; }
  68%, 100% { transform: translateX(120%); opacity: 0; }
}

.section--reviews { overflow: visible; }
.section-header--reviews { align-items: end; }

.reviews-marquee {
  position: relative;
  overflow-x: auto;
  margin-top: 1.25rem;
  padding: 0.2rem 0.2rem 0.7rem;
  border-radius: 1rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #c8923a rgba(232, 218, 190, 0.55);
}

.reviews-marquee::-webkit-scrollbar {
  height: 0.55rem;
}

.reviews-marquee::-webkit-scrollbar-track {
  background: rgba(232, 218, 190, 0.55);
  border-radius: 999px;
}

.reviews-marquee::-webkit-scrollbar-thumb {
  background: #c8923a;
  border-radius: 999px;
}

.reviews-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(18rem, 32%);
  gap: 1rem;
}

.review-card {
  min-height: 17rem;
  margin: 0;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(200, 169, 106, 0.28);
  background: linear-gradient(180deg, rgba(255,255,255,0.76), rgba(249,242,226,0.84));
  box-shadow: 0 22px 58px -46px rgba(44, 61, 45, 0.4);
  scroll-snap-align: start;
}

.review-card blockquote {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.25rem, 1.4vw, 1.55rem);
  line-height: 1.12;
  color: var(--ink);
}

.review-card figcaption {
  margin-top: 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-600);
}

.reviews-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.reviews-slider-button {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  border: 1px solid rgba(200, 169, 106, 0.45);
  background: #fffaf1;
  color: var(--sage-700);
  box-shadow: 0 10px 22px rgba(42, 53, 44, 0.08);
  font-weight: 900;
}

.reviews-slider-hint {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 5.2rem;
  justify-content: center;
}

.reviews-slider-hint span {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: rgba(200, 146, 58, 0.32);
}

.reviews-slider-hint span:first-child {
  width: 1.35rem;
  background: #c8923a;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.85rem 0 0.9rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.5rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(88, 113, 87, 0.2);
  background: rgba(255, 255, 255, 0.45);
  color: var(--sage-700);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(88, 113, 87, 0.36);
}

/* Richer book detail hero ---------------------------------------------- */

.bd-hero {
  background:
    radial-gradient(circle at 78% 14%, color-mix(in oklab, var(--bd-accent) 36%, white 10%) 0%, transparent 26%),
    radial-gradient(circle at 12% 88%, color-mix(in oklab, var(--bd-from) 60%, white 20%) 0%, transparent 32%),
    linear-gradient(135deg, color-mix(in oklab, var(--bd-from) 88%, #0b1820) 0%, color-mix(in oklab, var(--bd-to) 70%, var(--bd-from)) 100%);
}

.bd-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.8) 0 1px, transparent 1.6px),
    linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.16) 44%, transparent 60%);
  background-size: 44px 44px, 100% 100%;
  animation: bd-star-drift 18s linear infinite;
}

.bd-hero__inner { z-index: 1; }

.bd-hero__cover {
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,0.22), transparent 54%),
    rgba(255,255,255,0.07);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.bd-hero__copy { padding: clamp(0rem, 1vw, 0.6rem); }

.bd-hero__promise {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: -0.6rem 0 1.25rem;
}

.bd-hero__promise span {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: color-mix(in oklab, var(--bd-text) 92%, white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bd-hero__cta {
  color: #142118;
  background: linear-gradient(180deg, #fff4c8 0%, color-mix(in oklab, var(--bd-accent) 82%, white) 100%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  text-shadow: none;
}

.bd-hero__cta:hover { color: #111a12; }

@keyframes bd-star-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 44px 44px, 0 0; }
}

@media (max-width: 700px) {
  .mission-stats { grid-template-columns: 1fr; }
  .section--reviews { overflow: visible; }
  .section-header--reviews {
    align-items: start;
    text-align: center;
  }
  .reviews-proof {
    max-width: none;
    margin-inline: auto;
  }
  .reviews-proof span {
    display: block;
    color: #b8872f;
    letter-spacing: 0.08em;
    margin-bottom: 0.2rem;
  }
  .reviews-proof a {
    margin: 0.45rem auto 0;
  }
  .reviews-marquee {
    overflow-x: auto;
    padding-inline: 0.25rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .reviews-marquee::before,
  .reviews-marquee::after {
    display: none;
  }
  .reviews-track {
    grid-auto-columns: minmax(16rem, 82vw);
    animation: none;
    padding-inline: max(0.25rem, calc((100vw - min(82vw, 23rem)) / 2 - 1rem));
  }
  .review-card {
    min-height: 15.5rem;
    scroll-snap-align: center;
  }
  .social-links a { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .mission-panel::before,
  .reviews-track,
  .bd-hero::after {
    animation: none !important;
  }
}

/* Learning pathways: brand clarity + SEO-friendly topic clusters --------- */

.section--pathways {
  padding-block: 0.75rem 2rem;
}

.pathways-panel {
  padding: clamp(1.25rem, 3vw, 2.1rem);
  border-radius: 1.2rem;
  border: 1px solid rgba(200, 169, 106, 0.28);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(249,242,226,0.86));
  box-shadow: 0 22px 60px -48px rgba(44, 61, 45, 0.35);
}

.pathways-panel__head {
  max-width: 46rem;
}

.pathways-panel__head h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1;
  color: var(--ink);
}

.pathways-panel__head p {
  margin-top: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.pathways-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

@media (min-width: 760px) {
  .pathways-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pathway-card {
  display: block;
  min-height: 10rem;
  padding: 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(88, 113, 87, 0.16);
  background: rgba(255, 255, 255, 0.62);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.pathway-card:hover {
  transform: translateY(-3px);
  border-color: rgba(88, 113, 87, 0.34);
  background: rgba(255, 255, 255, 0.86);
}

.pathway-card span {
  display: inline-flex;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-600);
}

.pathway-card strong {
  display: block;
  margin-top: 0.45rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  line-height: 1.05;
  color: var(--ink);
}

.pathway-card p {
  margin-top: 0.55rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

@media (max-width: 639px) {
  .section--pathways {
    padding-block: 0.5rem 1.5rem !important;
  }

  .pathways-panel {
    padding: 1.05rem !important;
    border-radius: 1.2rem;
  }

  .pathways-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .pathway-card {
    min-height: 0;
    padding: 0.8rem;
  }

  .pathway-card strong {
    font-size: 1.12rem;
  }

  .pathway-card p {
    display: none;
  }
}

/* Final mobile homepage cover pass -------------------------------------- */

@media (max-width: 639px) {
  #books .book-card {
    display: grid !important;
    grid-template-columns: clamp(6.6rem, 29vw, 8.8rem) minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 0.85rem !important;
    border-radius: 1.25rem !important;
    padding: 0.78rem !important;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.94), rgba(253,249,240,0.96)) !important;
    box-shadow: 0 14px 38px -32px rgba(44, 61, 45, 0.32) !important;
  }

  #books .book-card__cover-link {
    display: block;
    grid-row: span 3;
    min-width: 0;
  }

  #books .book-card .cover-frame--flat {
    aspect-ratio: 3 / 4 !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0.42rem !important;
    border-radius: 0.85rem !important;
    background:
      radial-gradient(circle at 50% 42%, rgba(255, 252, 241, 0.96) 0%, rgba(235, 229, 208, 0.92) 70%, rgba(225, 215, 187, 0.9) 100%) !important;
    box-shadow:
      inset 0 0 0 1px rgba(255,255,255,0.85),
      0 16px 36px -28px rgba(42, 58, 43, 0.38) !important;
  }

  #books .book-card .cover-frame--flat::before,
  #books .book-card .cover-frame__corner {
    display: none !important;
  }

  #books .book-card .cover-frame--flat .cover-frame__img {
    width: auto !important;
    height: auto !important;
    max-width: 92% !important;
    max-height: 92% !important;
    object-fit: contain !important;
    border-radius: 0.55rem !important;
    filter:
      drop-shadow(0 12px 18px rgba(42, 48, 38, 0.22))
      drop-shadow(0 2px 4px rgba(42, 48, 38, 0.12)) !important;
  }

  #books .book-card__title {
    min-height: 0 !important;
    margin-top: 0.1rem !important;
    font-size: clamp(1.08rem, 4.8vw, 1.28rem) !important;
    line-height: 1.08 !important;
    -webkit-line-clamp: 2;
  }

  #books .book-card__blurb {
    min-height: 0 !important;
    margin-top: 0.35rem !important;
    font-size: 0.86rem !important;
    line-height: 1.45 !important;
    -webkit-line-clamp: 3;
  }

  #books .book-card__actions {
    grid-column: 2 !important;
    margin-top: 0.15rem !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.45rem !important;
  }

  #books .book-card .btn {
    min-height: 38px !important;
    height: auto !important;
    padding: 0.56rem 0.45rem !important;
    font-size: 0.72rem !important;
    border-radius: 0.8rem !important;
  }

  #books .book-card .btn--outline {
    background: rgba(255, 255, 255, 0.62) !important;
  }

  #books .book-card--soon {
    display: block !important;
  }
}

@media (max-width: 390px) {
  #books .book-card {
    grid-template-columns: 6.15rem minmax(0, 1fr) !important;
    gap: 0.75rem !important;
  }

  #books .book-card__title {
    font-size: 1.04rem !important;
  }

  #books .book-card__blurb {
    font-size: 0.82rem !important;
    -webkit-line-clamp: 3;
  }

  #books .book-card__actions {
    grid-template-columns: 1fr !important;
  }
}
