/* ==========================================================================
   Remembering the Friends of God: Official Website
   Palette drawn from the book cover: forest green, ivory, turquoise dome,
   and the apricot / sky / navy of the geometric tilework.
   ========================================================================== */

:root {
  --forest: #1e3427;
  --forest-deep: #132219;
  --forest-mid: #29463a;
  --forest-soft: #38574a;
  --ivory: #f6f1e5;
  --parchment: #ece4d1;
  --cream: #ddd6c4;
  --turquoise: #2e9c97;
  --turquoise-bright: #4fb8aa;
  --turquoise-deep: #1f7a76;
  --sky: #82abbd;
  --sky-soft: #c9dce3;
  --navy: #234872;
  --apricot: #e9a46a;
  --gold: #d9c18a;
  --ink: #1d2721;
  --ink-soft: #4a5750;
  --line: rgba(30, 52, 39, .14);

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, "Amiri", serif;
  --font-body: "Source Serif 4", "Iowan Old Style", Georgia, "Amiri", serif;
  --font-ui: "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-arabic: "Amiri", "Scheherazade New", serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --shadow-lg: 0 30px 60px -20px rgba(10, 22, 15, .55), 0 18px 36px -18px rgba(10, 22, 15, .5);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(17px, 1.05vw + 12px, 19px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--turquoise-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest); }
::selection { background: var(--turquoise); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--apricot); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: .005em;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.3rem); }
h3 { font-size: clamp(1.45rem, 2vw, 1.9rem); }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
em { font-style: italic; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--apricot); color: var(--forest-deep); padding: 10px 16px;
}
.skip-link:focus { left: 16px; top: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Eyebrows, ornaments, small caps ---------- */
.eyebrow {
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--turquoise-deep);
  display: inline-flex; align-items: center; gap: .9em;
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: ""; width: 10px; height: 10px; flex: none;
  background: currentColor;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.on-dark .eyebrow, .eyebrow.light { color: var(--apricot); }
.caps { font-variant: small-caps; letter-spacing: .06em; }

.ornament {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  color: var(--turquoise); margin: 2.5rem auto;
}
.ornament::before, .ornament::after {
  content: ""; height: 1px; width: min(120px, 22vw);
  background: linear-gradient(90deg, transparent, currentColor);
}
.ornament::after { transform: scaleX(-1); }
.ornament svg { width: 22px; height: 22px; }

.lead { font-size: 1.22em; line-height: 1.6; color: var(--ink-soft); }
.on-dark .lead, .cta-band .lead, .newsletter .lead, .page-hero .lead { color: var(--cream); }
.gateway .text-link, .cta-band .text-link { color: var(--apricot); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--apricot); --fg: var(--forest-deep);
  display: inline-flex; align-items: center; gap: .7em;
  padding: 1em 1.8em;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-ui); font-size: .82rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--bg); border-radius: var(--radius);
  cursor: pointer;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .35s;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(0,0,0,.5); color: var(--fg); }
.btn:hover::after { transform: translateX(120%); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-ghost { --bg: transparent; --fg: var(--ivory); border-color: rgba(246,241,229,.45); }
.btn-ghost:hover { --bg: var(--ivory); --fg: var(--forest-deep); border-color: var(--ivory); }
.btn-forest { --bg: var(--forest); --fg: var(--ivory); }
.btn-forest:hover { --fg: var(--ivory); background: var(--forest-mid); }
.btn-turq { --bg: var(--turquoise); --fg: #fff; }
.btn-turq:hover { --fg: #fff; }
.btn-outline { --bg: transparent; --fg: var(--forest); border-color: var(--forest); }
.btn-outline:hover { --bg: var(--forest); --fg: var(--ivory); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.text-link {
  font-family: var(--font-ui); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; font-weight: 500; color: var(--turquoise-deep);
  display: inline-flex; gap: .6em; align-items: center;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.on-dark .text-link { color: var(--apricot); }
.text-link:hover .arrow { transform: translateX(4px); }
.text-link .arrow { transition: transform .3s var(--ease); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s, box-shadow .4s, padding .4s;
  padding: 22px 0;
  color: var(--ivory);
}
.site-header.scrolled, .site-header.solid {
  background: rgba(19, 34, 25, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(217, 193, 138, .18);
  padding: 12px 0;
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--ivory); text-decoration: none;
  font-family: var(--font-display); line-height: 1.05;
}
.brand:hover { color: var(--ivory); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-text strong { font-size: 1.12rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.brand-text span { font-size: .82rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: clamp(12px, 1.5vw, 26px); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-ui); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cream); text-decoration: none; padding: 6px 0; position: relative; white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--apricot); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links .nav-buy {
  background: var(--apricot); color: var(--forest-deep); padding: 10px 18px; border-radius: var(--radius); font-weight: 500;
}
.nav-links .nav-buy::after { display: none; }
.nav-links .nav-buy:hover { background: var(--ivory); color: var(--forest-deep); }

.nav-toggle {
  display: none; background: none; border: 0; color: var(--ivory); cursor: pointer;
  width: 44px; height: 44px; padding: 10px; position: relative; z-index: 120;
}
.nav-toggle span { display: block; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .35s var(--ease), opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mobile-buy { display: none; }

/* Mobile menu: a full-screen layer attached to <body>, not the header.
   The header's backdrop-filter would otherwise trap a fixed child inside it. */
.mobile-nav { display: none; }
@media (max-width: 1180px) {
  .nav-toggle { display: block; touch-action: manipulation; }
  .mobile-buy {
    display: inline-flex; margin-left: auto; padding: .75em 1.1em; font-size: .7rem; letter-spacing: .16em;
  }
  .nav-links { display: none; }
  .mobile-nav {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; height: 100vh; height: 100dvh;
    z-index: 110; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: 96px 24px calc(40px + env(safe-area-inset-bottom));
    background: var(--forest-deep) url("../img/pattern-line-gold.svg") center/120px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .3s, visibility 0s linear .3s;
  }
  .nav-open .mobile-nav { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s, visibility 0s; }
  .mobile-nav ul { list-style: none; margin: auto 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .mobile-nav li { opacity: 0; transform: translateY(10px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
  .nav-open .mobile-nav li { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 30ms + 40ms); }
  .mobile-nav a {
    display: block; padding: 8px 16px; color: var(--cream); text-decoration: none;
    font-family: var(--font-display); font-size: clamp(1.5rem, 6.5vw, 1.9rem); letter-spacing: .03em; line-height: 1.25;
    touch-action: manipulation;
  }
  .mobile-nav a:hover, .mobile-nav a[aria-current="page"] { color: #fff; }
  .mobile-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--apricot); text-underline-offset: 6px; text-decoration-thickness: 1px; }
  .mobile-nav .nav-buy {
    margin-top: 18px; padding: 14px 26px; border-radius: var(--radius);
    background: var(--apricot); color: var(--forest-deep);
    font-family: var(--font-ui); font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  }
  .nav-open .site-header { z-index: 120; background: var(--forest-deep); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  html.nav-open, body.nav-open { overflow: hidden; }
}
@media (max-width: 480px) {
  .brand-text strong { font-size: .92rem; letter-spacing: .1em; }
  .brand-text span { font-size: .7rem; letter-spacing: .22em; }
  .brand-mark { width: 32px; height: 32px; }
  .mobile-buy { display: none; }
}

.progress-bar {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 130; width: 0;
  background: linear-gradient(90deg, var(--turquoise), var(--apricot));
}

/* ---------- Dark sections & patterns ---------- */
.on-dark { background: var(--forest); color: var(--ivory); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--ivory); }
.pattern-gold { background-image: url("../img/pattern-line-gold.svg"); background-size: 120px; }
.pattern-forest { background-image: url("../img/pattern-line-forest.svg"); background-size: 120px; }
.tile-band {
  height: 72px;
  background: url("../img/pattern-tile.svg") center/96px;
  border-top: 3px solid var(--parchment); border-bottom: 3px solid var(--parchment);
  box-shadow: inset 0 0 0 1px var(--forest-deep);
}
.tile-band.thin { height: 28px; background-size: 56px; }

.frame {
  position: relative;
}
.frame::before {
  content: ""; position: absolute; inset: 14px; pointer-events: none;
  border: 1px solid rgba(217, 193, 138, .35);
}

section { position: relative; }
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-sm { padding: clamp(48px, 6vw, 80px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow { justify-content: center; }
.bg-parchment { background: var(--parchment); }
.bg-white { background: #fbf8f1; }

/* ---------- Hero (home) ---------- */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  background:
    radial-gradient(ellipse 60% 55% at 72% 45%, rgba(79, 184, 170, .28), transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 100%, rgba(233, 164, 106, .12), transparent 70%),
    var(--forest);
  color: var(--ivory);
  overflow: hidden;
  padding: 140px 0 90px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .7;
  background: url("../img/pattern-line-gold.svg") center/120px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, transparent 30%, #000 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, transparent 30%, #000 85%);
}
.hero::after {
  content: ""; position: absolute; inset: 18px; pointer-events: none;
  border: 1px solid rgba(221, 214, 196, .22);
  box-shadow: inset 0 0 0 6px var(--forest), inset 0 0 0 7px rgba(221, 214, 196, .14);
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 90px); align-items: center;
}
.hero h1 {
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  font-weight: 600; letter-spacing: .01em;
  margin-bottom: .35em;
}
.hero h1 em { color: var(--turquoise-bright); font-style: italic; font-weight: 500; }
.hero .lead { max-width: 560px; color: var(--cream); font-style: italic; }
.hero .byline {
  font-family: var(--font-ui); text-transform: uppercase; letter-spacing: .28em; font-size: .78rem;
  color: var(--gold); margin-top: 38px; display: flex; align-items: center; gap: 14px;
}
.hero .byline::before { content: ""; width: 40px; height: 1px; background: currentColor; }
.hero-title-lockup {
  font-family: var(--font-display); text-transform: uppercase; color: var(--cream);
  letter-spacing: .2em; font-size: .95rem; font-weight: 600; margin-bottom: 22px;
}

/* 3D book */
.book-stage { perspective: 1800px; display: flex; justify-content: center; position: relative; }
.book-stage::before {
  content: ""; position: absolute; width: 85%; aspect-ratio: 1; top: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,184,170,.45), transparent 65%);
  filter: blur(30px); animation: glow 7s ease-in-out infinite alternate;
}
@keyframes glow { from { opacity: .55; transform: scale(.92); } to { opacity: 1; transform: scale(1.05); } }
.book {
  --w: min(360px, 70vw);
  width: var(--w); aspect-ratio: 640 / 1024;
  position: relative; transform-style: preserve-3d;
  transform: rotateY(-22deg) rotateX(4deg);
  transition: transform .9s var(--ease);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.book-face {
  position: absolute; inset: 0; border-radius: 2px 6px 6px 2px; overflow: hidden;
  box-shadow: 3px 2px 0 -1px #f3ecdc, 6px 4px 0 -2px #ddd3bd, 9px 6px 0 -3px #efe6d2, 12px 8px 0 -4px #cfc4ac, var(--shadow-lg);
  transform: translateZ(14px);
  background: var(--forest-deep);
}
.book-face img { width: 100%; height: 100%; object-fit: cover; }
.book-face::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.35) 0, rgba(255,255,255,.15) 2.5%, transparent 6%, transparent 75%, rgba(255,255,255,.08) 100%);
  pointer-events: none;
}
.book-spine, .book-pages { display: none; }
.book-shadow {
  position: absolute; bottom: -40px; left: 10%; right: 0; height: 40px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.5), transparent 70%);
  filter: blur(6px);
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 34px; z-index: 3; translate: -50% 0;
  font-family: var(--font-ui); font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--cream);
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 38px; background: linear-gradient(var(--apricot), transparent);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .btn-row, .hero .byline { justify-content: center; }
  .hero .byline::before { display: none; }
  .book-stage { order: -1; }
  .book { --w: min(240px, 58vw); transform: rotateY(-14deg); }
  .scroll-cue { display: none; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(79,184,170,.22), transparent 70%),
    var(--forest);
  color: var(--ivory);
  padding: clamp(150px, 18vw, 210px) 0 clamp(70px, 9vw, 120px);
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .8;
  background: url("../img/pattern-line-gold.svg") center/120px;
  mask-image: linear-gradient(110deg, transparent 35%, #000 100%);
  -webkit-mask-image: linear-gradient(110deg, transparent 35%, #000 100%);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { max-width: 900px; }
.page-hero h1 em { color: var(--turquoise-bright); font-weight: 500; }
.page-hero .lead { max-width: 680px; }
.page-hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .page-hero-grid { grid-template-columns: 1fr; } }
.breadcrumb {
  font-family: var(--font-ui); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 28px;
}
.breadcrumb a { color: var(--sky); text-decoration: none; }
.breadcrumb a:hover { color: var(--ivory); }

/* Arched portrait (mirrors the dome) */
.arch {
  border-radius: 999px 999px 6px 6px;
  overflow: hidden; position: relative;
  box-shadow: var(--shadow-lg);
  outline: 1px solid rgba(217,193,138,.5); outline-offset: 10px;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-caption {
  font-family: var(--font-ui); text-transform: uppercase; letter-spacing: .24em; font-size: .72rem;
  color: var(--gold); text-align: center; margin-top: 28px;
}
.arch-caption strong { display: block; font-family: var(--font-display); text-transform: none; letter-spacing: .02em; font-size: 1.5rem; color: var(--ivory); font-weight: 600; margin-bottom: 4px; }

/* ---------- Editorial content ---------- */
.prose { max-width: 720px; }
.prose p:first-of-type.dropcap::first-letter, .dropcap::first-letter {
  font-family: var(--font-display); float: left; font-size: 4.6em; line-height: .82;
  padding: .06em .12em 0 0; color: var(--turquoise-deep); font-weight: 600;
}
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.6em; color: var(--forest); }
.prose blockquote, .pull {
  margin: 2em 0; padding: 0 0 0 1.4em; border-left: 2px solid var(--apricot);
  font-family: var(--font-display); font-size: 1.55em; line-height: 1.35; font-style: italic; color: var(--forest);
}
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--turquoise); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.split.wide-left { grid-template-columns: 1.2fr .8fr; }
@media (max-width: 860px) { .split, .split.wide-left { grid-template-columns: 1fr; } }

.chapter {
  display: grid; grid-template-columns: 200px 1fr; gap: clamp(24px, 4vw, 64px);
  padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line);
}
.chapter:first-child { border-top: 0; }
.chapter-num {
  font-family: var(--font-display); font-size: clamp(3.5rem, 6vw, 5.5rem); line-height: 1; color: var(--turquoise);
  font-weight: 500; position: sticky; top: 110px; align-self: start;
}
.chapter-num small {
  display: block; font-family: var(--font-ui); font-size: .7rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: 12px;
}
@media (max-width: 760px) {
  .chapter { grid-template-columns: 1fr; gap: 6px; }
  .chapter-num { position: static; font-size: 3rem; }
}

.note {
  font-family: var(--font-ui); font-size: .85rem; line-height: 1.6; color: var(--ink-soft);
  background: rgba(46, 156, 151, .08); border-left: 2px solid var(--turquoise);
  padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5em 0;
}
.on-dark .note { color: var(--cream); background: rgba(255,255,255,.05); }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 26px); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fbf8f1; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 3vw, 40px); position: relative;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(30,52,39,.4); border-color: rgba(46,156,151,.4); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-soft); font-size: .96em; }
.card-num {
  font-family: var(--font-ui); font-size: .72rem; letter-spacing: .26em; color: var(--turquoise-deep); text-transform: uppercase; margin-bottom: 1.6rem; display: block;
}
.card-link { position: absolute; inset: 0; z-index: 1; }
.on-dark .card { background: rgba(255,255,255,.04); border-color: rgba(217,193,138,.18); color: var(--ivory); }
.on-dark .card p { color: var(--cream); }
.on-dark .card:hover { border-color: rgba(233,164,106,.5); box-shadow: 0 30px 50px -30px rgba(0,0,0,.7); }

/* Feature trio (The Man / The Quest / The Tradition) */
.feature {
  position: relative; overflow: hidden; border-radius: var(--radius);
  min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--ivory); text-decoration: none; padding: 34px;
  background: var(--forest-mid);
  isolation: isolate;
}
.feature-bg { position: absolute; inset: 0; z-index: -2; transition: transform 1.2s var(--ease); }
.feature-bg img { width: 100%; height: 100%; object-fit: cover; }
.feature::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(19,34,25,0) 18%, rgba(19,34,25,.82) 52%, rgba(19,34,25,.97));
}
.feature:hover .feature-bg { transform: scale(1.06); }
.feature:hover { color: var(--ivory); }
.feature .card-num { color: var(--apricot); margin-bottom: .8rem; }
.feature h3 { color: var(--ivory); font-size: clamp(1.8rem, 2.6vw, 2.4rem); margin-bottom: .3em; }
.feature p { color: var(--cream); font-size: .95em; margin-bottom: 1.4em; }
.feature .text-link { color: var(--apricot); align-self: flex-start; }
.feature-pattern { background: url("../img/pattern-tile.svg") center/110px; }
.feature-pattern-dark { background: var(--forest) url("../img/pattern-line-gold.svg") center/90px; }
.feature-dome {
  background: radial-gradient(circle at 50% 30%, var(--turquoise-bright), var(--turquoise-deep) 55%, var(--forest-deep));
}
.feature-glyph {
  position: absolute; top: 34px; left: 50%; translate: -50% 0; z-index: -1;
  font-family: var(--font-arabic); font-size: 7rem; line-height: 1; color: rgba(246,241,229,.85);
  text-shadow: 0 6px 30px rgba(0,0,0,.25);
}

/* Gateways (Tasawwuf / Wilaya) */
.gateway {
  display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius); overflow: hidden;
  background: var(--forest); color: var(--ivory); min-height: 440px;
}
.gateway + .gateway { margin-top: 28px; }
.gateway.reverse .gateway-visual { order: 2; }
.gateway-visual {
  position: relative; display: grid; place-items: center; overflow: hidden;
  background: url("../img/pattern-tile.svg") center/120px;
}
.gateway-visual.dome { background: radial-gradient(circle at 50% 45%, #63c7b8, var(--turquoise) 40%, var(--turquoise-deep) 75%); }
.gateway-visual .medallion {
  width: min(260px, 70%); aspect-ratio: 1; border-radius: 50%;
  background: var(--forest); display: grid; place-items: center; text-align: center;
  box-shadow: 0 0 0 8px var(--parchment), 0 0 0 9px var(--forest), 0 30px 60px -20px rgba(0,0,0,.5);
  padding: 24px;
}
.medallion .ar { font-family: var(--font-arabic); font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--ivory); line-height: 1.3; direction: rtl; }
.medallion .tr { font-family: var(--font-ui); font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--apricot); }
.gateway-body { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.gateway-body h3 { font-size: clamp(2rem, 3vw, 2.8rem); }
.gateway-body blockquote {
  margin: .6em 0 1.4em; padding-left: 1.1em; border-left: 2px solid var(--apricot);
  font-family: var(--font-display); font-style: italic; font-size: 1.3em; line-height: 1.4; color: var(--parchment);
}
.gateway-body cite { display: block; font-family: var(--font-ui); font-style: normal; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sky); margin-top: .7em; }
@media (max-width: 820px) {
  .gateway { grid-template-columns: 1fr; }
  .gateway-visual { min-height: 300px; }
  .gateway.reverse .gateway-visual { order: 0; }
}

/* Questions list */
.questions { list-style: none; padding: 0; margin: 0; counter-reset: q; }
.questions li {
  counter-increment: q;
  display: grid; grid-template-columns: 60px 1fr; align-items: baseline;
  font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 1.85rem); line-height: 1.3;
  padding: 22px 0; border-bottom: 1px solid rgba(217,193,138,.2);
  transition: color .3s, padding-left .4s var(--ease);
}
.questions li:hover { color: var(--apricot); padding-left: 10px; }
.questions li::before {
  content: counter(q, decimal-leading-zero);
  font-family: var(--font-ui); font-size: .78rem; letter-spacing: .2em; color: var(--turquoise-bright);
}

/* Quote banner */
.quote-banner { text-align: center; }
.quote-banner blockquote {
  margin: 0 auto; max-width: 980px;
  font-family: var(--font-display); font-weight: 500; font-style: italic;
  font-size: clamp(1.8rem, 3.6vw, 3.2rem); line-height: 1.25;
}
.quote-banner cite {
  display: block; margin-top: 26px; font-style: normal;
  font-family: var(--font-ui); font-size: .76rem; letter-spacing: .26em; text-transform: uppercase; color: var(--turquoise-deep);
}
.on-dark .quote-banner cite, .quote-banner.on-dark cite { color: var(--apricot); }
.arabic {
  font-family: var(--font-arabic); direction: rtl; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.9;
  color: var(--turquoise-deep); margin-bottom: .6em;
}
.on-dark .arabic { color: var(--turquoise-bright); }

/* Book contents chips */
.contents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.contents > div { background: var(--ivory); padding: 36px 30px; transition: background .4s; }
.contents > div:hover { background: #fff; }
.contents .card-num { margin-bottom: 1rem; }
.contents h3 { font-size: 1.6rem; margin-bottom: .4em; }
.contents p { margin: 0; color: var(--ink-soft); font-size: .95em; }
@media (max-width: 860px) { .contents { grid-template-columns: 1fr; } }

/* ---------- Three dimensions (Hadith of Jibril) ---------- */
.dimensions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid rgba(217,193,138,.25); border-radius: var(--radius); overflow: hidden; }
.dimension { padding: clamp(28px, 3.5vw, 48px); border-right: 1px solid rgba(217,193,138,.2); position: relative; transition: background .5s; }
.dimension:last-child { border-right: 0; }
.dimension:hover { background: rgba(79,184,170,.08); }
.dimension .num { font-family: var(--font-ui); letter-spacing: .26em; font-size: .72rem; color: var(--apricot); }
.dimension .ar { font-family: var(--font-arabic); font-size: 3rem; color: var(--turquoise-bright); line-height: 1.6; margin: 10px 0 0; }
.dimension h3 { letter-spacing: .14em; text-transform: uppercase; font-size: 1.7rem; margin: 0; }
.dimension .sub { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--gold); margin-bottom: 1em; }
.dimension p { color: var(--cream); font-size: .95em; }
.dimension .science {
  margin-top: 1.4em; padding-top: 1.2em; border-top: 1px solid rgba(217,193,138,.2);
  font-family: var(--font-ui); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sky);
}
.dimension .science strong { display: block; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .02em; text-transform: none; color: var(--ivory); font-weight: 600; margin-top: 4px; }
@media (max-width: 860px) {
  .dimensions { grid-template-columns: 1fr; }
  .dimension { border-right: 0; border-bottom: 1px solid rgba(217,193,138,.2); }
  .dimension:last-child { border-bottom: 0; }
}

/* Hadith panel */
.hadith-panel {
  background: #fbf8f1; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 5vw, 64px); position: relative;
}
.hadith-panel::before, .hadith-panel::after {
  content: ""; position: absolute; width: 46px; height: 46px; border: 2px solid var(--turquoise);
}
.hadith-panel::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.hadith-panel::after { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.hadith-panel p { font-size: 1.04em; }
.hadith-panel .speaker { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--turquoise-deep); display: block; margin-bottom: 2px; }
.hadith-source { font-family: var(--font-ui); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

/* Accordion / glossary */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: var(--forest);
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .ar { font-family: var(--font-arabic); font-weight: 400; font-size: 1.4rem; color: var(--turquoise-deep); }
.accordion summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; translate: 0 -50%;
  font-family: var(--font-ui); font-weight: 300; font-size: 1.8rem; color: var(--turquoise);
  transition: transform .4s var(--ease);
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 0 26px; color: var(--ink-soft); max-width: 760px; }
.accordion .acc-body p:last-child { margin-bottom: 0; }

/* Practices */
.practice {
  text-align: center; padding: 36px 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fbf8f1;
  transition: transform .5s var(--ease), box-shadow .5s;
}
.practice:hover { transform: translateY(-6px); box-shadow: 0 26px 40px -28px rgba(30,52,39,.45); }
.practice .ar { font-family: var(--font-arabic); font-size: 2.4rem; color: var(--turquoise-deep); line-height: 1.5; }
.practice h4 { margin: .2em 0 .1em; font-size: 1.4rem; }
.practice .tr { font-family: var(--font-ui); font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--apricot); display: block; margin-bottom: .9em; filter: brightness(.85); }
.practice p { font-size: .92em; color: var(--ink-soft); margin: 0; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 1100px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .grid-5 { grid-template-columns: 1fr; } }

/* Figures (historical friends of God) */
.figure-card { display: grid; grid-template-columns: 120px 1fr; gap: 26px; align-items: start; }
.figure-card .seal {
  width: 120px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: var(--forest) url("../img/pattern-line-gold.svg") center/60px;
  border: 1px solid var(--gold); box-shadow: 0 0 0 5px var(--ivory), 0 0 0 6px rgba(30,52,39,.2);
  font-family: var(--font-arabic); color: var(--ivory); font-size: 1.6rem; text-align: center; line-height: 1.2; padding: 10px;
}
.figure-card .dates { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--turquoise-deep); }
@media (max-width: 560px) { .figure-card { grid-template-columns: 1fr; } }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 940px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(transparent, var(--gold) 6%, var(--gold) 94%, transparent);
}
.tl-item { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; position: relative; padding: 26px 0; }
.tl-item::before {
  content: ""; position: absolute; left: 50%; top: 40px; width: 16px; height: 16px; translate: -50% 0;
  background: var(--apricot);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.tl-item > div { grid-column: 1; text-align: right; }
.tl-item:nth-child(even) > div { grid-column: 2; text-align: left; }
.tl-year { font-family: var(--font-display); font-size: 2.2rem; color: var(--turquoise-bright); font-weight: 600; line-height: 1.2; }
.tl-item h4 { color: var(--ivory); margin: .2em 0 .3em; }
.tl-item p { color: var(--cream); font-size: .95em; margin: 0; }
@media (max-width: 760px) {
  .timeline::before { left: 8px; }
  .tl-item { grid-template-columns: 1fr; gap: 0; padding-left: 40px; }
  .tl-item::before { left: 8px; }
  .tl-item > div, .tl-item:nth-child(even) > div { grid-column: 1; text-align: left; }
}

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/5; background: var(--forest-mid); }
.gallery figure.wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; color: var(--ivory);
  font-family: var(--font-ui); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  background: linear-gradient(transparent, rgba(19,34,25,.85));
}
.gallery .placeholder {
  display: grid; place-items: center; text-align: center; padding: 20px;
  background: var(--forest) url("../img/pattern-line-gold.svg") center/80px;
  color: var(--cream); font-family: var(--font-ui); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  border: 1px dashed rgba(217,193,138,.4);
}
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Buy page ---------- */
.retailers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .retailers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .retailers { grid-template-columns: 1fr; } }
.retailer {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px; border-radius: var(--radius); background: #fbf8f1; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); position: relative;
  transition: transform .45s var(--ease), box-shadow .45s, border-color .45s;
}
a.retailer:hover { transform: translateY(-5px); box-shadow: 0 26px 40px -26px rgba(30,52,39,.45); border-color: var(--turquoise); color: var(--ink); }
.retailer h3 { font-size: 1.6rem; margin: 0; }
.retailer .formats { font-size: .92em; color: var(--ink-soft); margin: 0; flex: 1; }
.retailer .status {
  font-family: var(--font-ui); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px; color: var(--turquoise-deep);
}
.retailer .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.retailer.pending { opacity: .78; }
.retailer.pending .status { color: #9a7a4e; }
.retailer .go {
  font-family: var(--font-ui); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; color: var(--forest);
}
.retailer .go .arrow { transition: transform .3s var(--ease); }
a.retailer:hover .go .arrow { transform: translate(3px, -3px); }

.details-table { width: 100%; border-collapse: collapse; font-size: .95em; }
.details-table th, .details-table td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.details-table th { font-family: var(--font-ui); font-weight: 500; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); width: 42%; padding-right: 16px; }

.excerpt {
  background: #fffdf8; border: 1px solid var(--line); padding: clamp(32px, 6vw, 80px) clamp(24px, 7vw, 100px);
  box-shadow: 0 40px 60px -40px rgba(30,52,39,.35); position: relative; max-width: 860px; margin: 0 auto;
}
.excerpt::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: url("../img/pattern-tile.svg") center/40px;
}

/* ---------- Events / media ---------- */
.event-featured {
  display: grid; grid-template-columns: 200px 1fr; border-radius: var(--radius); overflow: hidden;
  background: #fbf8f1; border: 1px solid var(--line);
}
.event-date {
  background: var(--forest); color: var(--ivory); display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 30px; text-align: center; font-family: var(--font-display);
}
.event-date .d { font-size: 4rem; line-height: 1; color: var(--apricot); font-weight: 600; }
.event-date .m { font-family: var(--font-ui); letter-spacing: .26em; text-transform: uppercase; font-size: .78rem; margin-top: 8px; }
.event-body { padding: clamp(26px, 4vw, 44px); }
.meta-line { font-family: var(--font-ui); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--turquoise-deep); margin-bottom: .8em; }
@media (max-width: 640px) { .event-featured { grid-template-columns: 1fr; } .event-date { flex-direction: row; gap: 14px; padding: 18px; } .event-date .d { font-size: 2.6rem; } .event-date .m { margin: 0; } }

.empty-state {
  text-align: center; padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 60px);
  border: 1px dashed rgba(30,52,39,.25); border-radius: var(--radius);
  background: rgba(255,255,255,.4);
}
.empty-state .icon { width: 48px; height: 48px; margin: 0 auto 18px; color: var(--turquoise); }
.empty-state h3 { margin-bottom: .3em; }
.empty-state p { color: var(--ink-soft); max-width: 520px; margin-left: auto; margin-right: auto; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-btn {
  font-family: var(--font-ui); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
  transition: all .3s;
}
.filter-btn:hover { border-color: var(--turquoise); color: var(--turquoise-deep); }
.filter-btn[aria-pressed="true"] { background: var(--forest); color: var(--ivory); border-color: var(--forest); }

.kit-item {
  display: flex; gap: 18px; align-items: center; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fbf8f1; text-decoration: none; color: var(--ink); transition: border-color .3s, transform .4s var(--ease);
}
a.kit-item:hover { border-color: var(--turquoise); transform: translateX(4px); color: var(--ink); }
.kit-item .ic { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(46,156,151,.12); color: var(--turquoise-deep); }
.kit-item .ic svg { width: 20px; height: 20px; }
.kit-item strong { display: block; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.kit-item span { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.kit-item.pending { opacity: .6; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label {
  display: block; font-family: var(--font-ui); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fffdf8; border: 1px solid rgba(30,52,39,.22); border-radius: var(--radius);
  padding: 14px 16px; transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--turquoise); box-shadow: 0 0 0 4px rgba(46,156,151,.15);
}
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); line-height: 1.5; }
.check input { margin-top: 4px; accent-color: var(--turquoise); width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; }
.form-status { font-family: var(--font-ui); font-size: .9rem; padding: 14px 18px; border-radius: var(--radius); display: none; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(46,156,151,.12); color: var(--turquoise-deep); }
.form-status.err { background: rgba(233,164,106,.18); color: #8a4f1c; }

.contact-aside { display: grid; gap: 24px; align-content: start; }
.contact-aside .card { padding: 28px; }
.contact-aside h4 { font-family: var(--font-display); margin-bottom: .3em; }
.contact-aside p { margin: 0; font-size: .95em; }

/* Newsletter */
.newsletter {
  background:
    radial-gradient(ellipse 70% 90% at 50% 0%, rgba(79,184,170,.2), transparent 70%),
    var(--forest-deep);
  color: var(--ivory); text-align: center; overflow: hidden;
}
.newsletter::before {
  content: ""; position: absolute; inset: 0; opacity: .6;
  background: url("../img/pattern-line-gold.svg") center/120px;
  mask-image: radial-gradient(ellipse at center, transparent 30%, #000 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 30%, #000 80%);
}
.newsletter .wrap { position: relative; }
.newsletter-form { display: flex; gap: 10px; max-width: 560px; margin: 30px auto 0; }
.newsletter-form input {
  flex: 1; min-width: 0; padding: 16px 18px; font: inherit; font-size: 1rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(217,193,138,.35); color: var(--ivory); border-radius: var(--radius);
}
.newsletter-form input::placeholder { color: rgba(221,214,196,.6); }
.newsletter-form input:focus { outline: none; border-color: var(--apricot); }
.newsletter .form-status { margin: 16px auto 0; max-width: 560px; }
.newsletter .form-status.ok { background: rgba(79,184,170,.15); color: var(--turquoise-bright); }
@media (max-width: 520px) { .newsletter-form { flex-direction: column; } }

/* CTA band */
.cta-band {
  background: var(--forest); color: var(--ivory); overflow: hidden;
}
.cta-band .split { align-items: center; }
.cta-band .book { --w: min(280px, 60vw); animation: none; transform: rotateY(-18deg) rotateX(3deg); }
.cta-band:hover .book { transform: rotateY(-8deg) rotateX(2deg); }

/* Series */
.series-cover {
  max-width: 300px; margin: 0 auto; box-shadow: var(--shadow-lg); border-radius: 2px 6px 6px 2px; overflow: hidden;
  transform: rotate(-2deg); transition: transform .8s var(--ease);
}
.series-cover:hover { transform: rotate(0) scale(1.02); }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: var(--cream); padding: 0 0 36px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-top: 80px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand h3 { font-size: 1.7rem; color: var(--ivory); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .2em; }
.footer-brand .sub { font-family: var(--font-display); font-style: italic; color: var(--gold); font-size: 1.15rem; margin-bottom: 1em; }
.footer-brand p { color: rgba(221,214,196,.75); max-width: 360px; }
.site-footer h4 { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--apricot); font-weight: 500; margin-bottom: 1.4em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--cream); text-decoration: none; transition: color .3s; }
.site-footer a:hover { color: var(--ivory); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; align-items: center;
  margin-top: 70px; padding-top: 28px; border-top: 1px solid rgba(217,193,138,.15);
  font-family: var(--font-ui); font-size: .74rem; letter-spacing: .1em; color: rgba(221,214,196,.6);
}
.footer-verse { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; letter-spacing: 0; color: rgba(221,214,196,.75); }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(217,193,138,.3); transition: background .3s, border-color .3s;
}
.socials a:hover { background: var(--turquoise); border-color: var(--turquoise); }
.socials svg { width: 17px; height: 17px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
.reveal[data-delay="4"] { transition-delay: .48s; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* Utilities */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; } .mt-4 { margin-top: 4rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 2rem; }
.muted { color: var(--ink-soft); }
.small { font-size: .88em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
