/* ==========================================================================
   Jacqueline — The Power of Love · site styles
   "Sunset sky": twilight gradients from indigo through violet and magenta to
   peach, a setting sun over layered hills, glassy cards, bold Outfit headings.

   Performance notes: no backdrop-filter or filter: blur() (both make scrolling
   stutter). Glows are plain gradients, scenes are CSS + a tiny inline SVG, and
   looping animations pause while off screen (see site.js).
   ========================================================================== */

:root {
  --ink-950: #140b35;
  --ink-900: #1b1446;
  --ink-800: #241558;
  --violet-700: #3b1d6e;
  --violet-600: #5b2a86;
  --plum-500: #8a3384;
  --magenta-500: #c2457e;
  --coral-400: #ef6f7f;
  --peach-300: #f59e7a;
  --sun-200: #ffd3a1;
  --blush-100: #ffe4ec;

  --text: #ffffff;
  --text-2: rgba(255, 255, 255, .82);
  --text-3: rgba(255, 255, 255, .64);
  --line: rgba(255, 255, 255, .14);
  --line-2: rgba(255, 255, 255, .26);
  --glass: rgba(255, 255, 255, .075);
  --glass-hover: rgba(255, 255, 255, .11);
  --glass-dark: rgba(20, 11, 53, .5);

  --sunset: linear-gradient(170deg, #1b1446 0%, #3b1d6e 30%, #7a2c86 55%, #c2457e 80%, #f59e7a 100%);
  --sunset-band: linear-gradient(90deg, #c2457e 0%, #ef6f7f 50%, #f59e7a 100%);
  --sunset-text: linear-gradient(90deg, #ffd3a1 0%, #f9a07f 45%, #f47baa 100%);
  --sunset-button: linear-gradient(90deg, #b83d80, #d9566f);

  --font-display: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 24px 50px -24px rgba(10, 4, 30, .7);
  --shadow-lg: 0 40px 80px -30px rgba(10, 4, 30, .85);
  --glow: 0 30px 60px -28px rgba(239, 111, 127, .65);
  --ease: cubic-bezier(.22, .8, .24, 1);

  --bs-body-font-family: var(--font-sans);
  --bs-body-color: var(--text-2);
  --bs-body-bg: var(--ink-900);
  --bs-link-color-rgb: 255, 211, 161;
  color-scheme: dark;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; background: var(--ink-900); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-2);
  background: var(--ink-900);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; }
a { color: var(--sun-200); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; color: var(--text); }
h3, h4 { font-weight: 600; letter-spacing: -.02em; }
strong { color: var(--text); font-weight: 600; }
::selection { background: var(--peach-300); color: var(--ink-950); }
:focus-visible { outline: 2px solid var(--sun-200); outline-offset: 3px; border-radius: 6px; }
.container { max-width: 1200px; padding-left: 20px; padding-right: 20px; }
@media (max-width: 575.98px) { .row.g-5 { --bs-gutter-x: 2rem; } }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: #fff; color: var(--ink-900); padding: 10px 16px; border-radius: 99px; font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Type helpers ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 15px 6px 12px; border-radius: 99px;
  font-family: var(--font-display); font-size: .82rem; font-weight: 500; letter-spacing: .01em;
  color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--peach-300); box-shadow: 0 0 10px 2px rgba(245, 158, 122, .7); }
.eyebrow--center { margin-left: auto; margin-right: auto; }

.display-title em, .statement em, .hero h1 em, .page-hero h1 em, .gradient-text {
  font-style: normal;
  background: var(--sunset-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.display-title { font-size: clamp(2.2rem, 4.4vw, 3.6rem); margin: 18px 0 20px; }
.lead-soft { font-size: 1.15rem; color: var(--text-2); max-width: 60ch; }
.muted { color: var(--text-3); }

/* ---------- Buttons & links ---------- */

.btn-luxe, .btn-ghost, .btn-ink {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 99px;
  font-family: var(--font-display); font-size: 1rem; font-weight: 600; letter-spacing: 0;
  text-decoration: none; white-space: nowrap; border: 1px solid transparent; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn-luxe { color: #3a1a5e; background-color: #fff; box-shadow: 0 14px 34px -14px rgba(255, 190, 170, .8); }
.btn-luxe:hover { color: #3a1a5e; transform: translateY(-2px); box-shadow: 0 20px 44px -14px rgba(255, 190, 170, .95); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .55); background-color: rgba(255, 255, 255, .06); }
.btn-ghost:hover { color: #3a1a5e; background-color: #fff; border-color: #fff; transform: translateY(-2px); }
.btn-ink { color: #fff; background: var(--sunset-button); box-shadow: var(--glow); }
.btn-ink:hover { color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: .9rem; }
.btn-luxe i, .btn-ghost i, .btn-ink i { transition: transform .35s var(--ease); }
.btn-luxe:hover i.fa-arrow-right, .btn-ghost:hover i.fa-arrow-right, .btn-ink:hover i.fa-arrow-right { transform: translateX(3px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: .98rem; font-weight: 600; text-decoration: none; color: var(--sun-200);
}
.link-arrow i { transition: transform .3s var(--ease); font-size: .8rem; }
.link-arrow:hover { color: #fff; }
.link-arrow:hover i { transform: translateX(4px); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: 99px;
  font-family: var(--font-display); font-size: .78rem; font-weight: 500; text-decoration: none;
  color: #fff; background: rgba(239, 111, 127, .22); border: 1px solid rgba(245, 158, 122, .45);
  transition: background-color .25s, color .25s;
}
a.chip:hover { background-color: #fff; color: #3a1a5e; }

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

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color .4s, border-color .4s;
}
.site-header .navbar { padding: 20px 0; }
/* Solid tint rather than a blurred backdrop: a blurred fixed header re-renders on every scrolled frame */
.site-header.scrolled { background-color: rgba(27, 20, 70, .95); border-color: var(--line); }
.site-header.scrolled .navbar { padding: 12px 0; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; line-height: 1; color: #fff;
  background: var(--sunset-band); box-shadow: 0 8px 24px -8px rgba(239, 111, 127, .8);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; color: #fff; }
.brand-copy small { font-size: .62rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); margin-top: 5px; }

.site-header .nav-link {
  position: relative; padding: 8px 14px !important; border-radius: 99px;
  font-family: var(--font-display); font-size: .98rem; font-weight: 500;
  color: var(--text-2); transition: color .25s, background-color .25s;
}
.site-header .nav-link:hover { color: #fff; background-color: rgba(255, 255, 255, .08); }
.site-header .nav-link.active { color: #fff; background-color: rgba(255, 255, 255, .14); }
.nav-cta { margin-left: 14px; }

.nav-toggle {
  width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .08);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    margin-top: 14px; padding: 14px; border-radius: var(--radius);
    background: #241558; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
  }
  .site-header .nav-link { padding: 12px 16px !important; font-size: 1.05rem; }
  .nav-cta { margin: 12px 0 4px; width: 100%; }
}

.reading-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: var(--sunset-band);
  transform: scaleX(0); transform-origin: left; will-change: transform;
}

/* ---------- Sunset scenes ---------- */

.on-night { position: relative; isolation: isolate; overflow: hidden; color: var(--text-2); background-color: var(--ink-900); }
.on-night h1, .on-night h2, .on-night h3 { color: #fff; }

/* The sky: gradient, a setting sun (::before) and layered hills (::after). Twinkling stars are a canvas added by site.js. */
.sky {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--sunset);
}
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sky::before {
  content: ""; position: absolute; width: 560px; height: 560px; right: 6%; bottom: -170px; border-radius: 50%;
  background: radial-gradient(circle, #fff1d6 0%, #ffd3a1 22%, rgba(245, 158, 122, .75) 42%, rgba(239, 111, 127, .3) 58%, rgba(194, 69, 126, 0) 72%);
}
.sky::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 150px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220' preserveAspectRatio='none'%3E%3Cpath fill='%238a3384' fill-opacity='.55' d='M0 112C190 62 360 140 560 112S930 52 1130 92 1360 120 1440 84V220H0Z'/%3E%3Cpath fill='%233b1d6e' fill-opacity='.9' d='M0 160C220 118 430 186 700 150S1100 108 1300 150C1370 164 1410 160 1440 154V220H0Z'/%3E%3Cpath fill='%231b1446' d='M0 192C300 166 620 214 940 190S1300 176 1440 186V220H0Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.hero .sky::before { display: none; }
.post-hero .sky::before, .quote-band .sky::before, main.on-night > .sky::before { right: auto; left: 50%; margin-left: -280px; }
.page-hero .sky::before { bottom: -220px; }

/* Content surfaces: deep twilight purples with soft sunset light at the edges */
.section { padding: clamp(80px, 10vw, 130px) 0; position: relative; isolation: isolate; }
/* clip (not hidden) keeps glows from widening the page without breaking sticky sidebars */
.section--deep, .section--dusk { position: relative; isolation: isolate; overflow-x: clip; }
/* Both start and end near #1b1446, so sections (and the hills above them) meet without a seam */
.section--deep {
  background:
    radial-gradient(560px 420px at 100% 30%, rgba(194, 69, 126, .22), transparent 70%),
    radial-gradient(560px 420px at 0% 78%, rgba(245, 158, 122, .12), transparent 70%),
    linear-gradient(180deg, #1b1446 0%, #21145a 60%, #1d1450 100%);
}
.section--dusk {
  background:
    radial-gradient(600px 460px at 0% 38%, rgba(239, 111, 127, .2), transparent 70%),
    radial-gradient(600px 460px at 100% 72%, rgba(245, 158, 122, .16), transparent 70%),
    linear-gradient(180deg, #1b1446 0%, #35196c 28%, #45207a 62%, #1d1450 100%);
}
.section--tight { padding: clamp(56px, 7vw, 90px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* Glass cards */
.pillar, .post-card, .duo-card, .reach-card, .toc, .author-box, .post-nav a, .empty-state, .book-visual__tag, .footer-book {
  background-color: var(--glass);
  border: 1px solid var(--line);
}

/* ---------- Home hero ---------- */

.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 130px 0 150px;
}
.hero h1 {
  font-size: clamp(3rem, 6.4vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.04em;
  margin: 22px 0 24px;
}
.hero-lead { font-size: 1.2rem; color: rgba(255, 255, 255, .88); max-width: 34rem; }
.hero-lead strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding: 0; list-style: none; }
.hero-tags li { font-family: var(--font-display); font-size: .85rem; color: #fff; padding: 6px 14px; border-radius: 99px; background: rgba(20, 11, 53, .35); border: 1px solid rgba(255, 255, 255, .22); }

.book-stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.hero-sun {
  position: absolute; width: 620px; height: 620px; border-radius: 50%; top: 50%; left: 50%; margin: -310px 0 0 -310px;
  background: radial-gradient(circle, #fff3dc 0%, #ffd3a1 20%, rgba(245, 158, 122, .8) 38%, rgba(239, 111, 127, .35) 55%, rgba(194, 69, 126, 0) 70%);
  animation: sunrise 9s ease-in-out infinite;
}
.hero-glass {
  position: absolute; width: 360px; height: 470px; border-radius: 36px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .35);
  transform: rotate(-6deg);
}
@keyframes sunrise { 50% { transform: scale(1.06); opacity: .9; } }

.book3d { --bw: 290px; --bt: 32px; perspective: 1800px; position: relative; z-index: 2; }
.book3d__inner {
  position: relative; width: var(--bw); height: calc(var(--bw) * 1.508);
  transform-style: preserve-3d; transform: rotateY(-24deg) rotateX(4deg);
  transition: transform 1s var(--ease);
  animation: float 8s ease-in-out infinite;
}
.book3d:hover .book3d__inner { transform: rotateY(-6deg) rotateX(2deg); }
.book3d__cover {
  position: absolute; inset: 0; transform: translateZ(calc(var(--bt) / 2));
  border-radius: 3px 8px 8px 3px; overflow: hidden;
  box-shadow: inset 4px 0 10px rgba(0,0,0,.35);
}
.book3d__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book3d__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255,255,255,.2) 0%, transparent 18%, transparent 70%, rgba(255,255,255,.08) 100%); }
.book3d__pages {
  position: absolute; top: 4px; left: 0; height: calc(100% - 8px); width: calc(var(--bt) - 2px);
  transform: translateX(calc(var(--bw) - var(--bt) / 2 - 3px)) rotateY(90deg);
  background: repeating-linear-gradient(90deg, #fff 0, #fff 5%, #efe7e2 5%, #efe7e2 10%);
}
.book3d__back {
  position: absolute; inset: 0; transform: translateZ(calc(var(--bt) / -2));
  background: #2a1650; border-radius: 3px 8px 8px 3px;
  box-shadow: -24px 36px 60px rgba(40, 8, 50, .65);
}
@keyframes float { 50% { translate: 0 -12px; } }

.floating-quote {
  position: absolute; z-index: 3; left: -10px; bottom: 50px; max-width: 240px; margin: 0;
  padding: 16px 18px; border-radius: 20px;
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 500; line-height: 1.35; color: #fff;
  background: rgba(27, 20, 70, .82); border: 1px solid rgba(255, 255, 255, .22); box-shadow: var(--shadow-lg);
}
.floating-quote i { color: var(--peach-300); margin-right: 6px; }
.floating-badge {
  position: absolute; z-index: 3; right: -6px; top: 70px;
  display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 99px;
  background: #fff; box-shadow: var(--shadow-lg);
  font-family: var(--font-display); font-size: .82rem; line-height: 1.25; color: #6a4a7e;
}
.floating-badge strong { display: block; color: #2a1650; font-size: .92rem; font-weight: 700; }
.floating-badge i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--sunset-band); color: #fff; }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: .75rem; letter-spacing: .2em; color: rgba(255, 255, 255, .8); text-decoration: none; text-transform: uppercase;
}
.scroll-cue span { width: 2px; height: 34px; border-radius: 2px; background: linear-gradient(#fff, transparent); animation: cue 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 991.98px) {
  .hero { padding-top: 116px; }
  .book-stage { min-height: 470px; margin-top: 10px; }
  .book3d { --bw: 230px; --bt: 28px; }
  .hero-sun { width: 460px; height: 460px; margin: -230px 0 0 -230px; }
  .hero-glass { width: 290px; height: 380px; }
  .floating-quote { left: 0; bottom: 6px; font-size: .95rem; max-width: 210px; }
  .floating-badge { top: 30px; right: 0; }
  .scroll-cue { display: none; }
}
@media (max-width: 575.98px) {
  .book3d { --bw: 200px; --bt: 24px; }
  .hero-glass { width: 250px; height: 330px; }
  .floating-badge { display: none; }
  .hero-actions .btn-luxe, .hero-actions .btn-ghost { flex: 1 1 100%; }
}

/* ---------- Marquee ribbon ---------- */

.ribbon { position: relative; overflow: hidden; padding: 16px 0; background: var(--sunset-band); color: var(--ink-900); }
.ribbon__track { display: flex; gap: 40px; width: max-content; animation: marquee 40s linear infinite; }
.ribbon__track span { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; white-space: nowrap; display: inline-flex; align-items: center; gap: 40px; }
.ribbon__track span::after { content: "✦"; font-size: .9rem; color: #fff; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Home sections ---------- */

.statement { font-size: clamp(2.3rem, 4.8vw, 3.9rem); line-height: 1.02; margin: 18px 0 0; }
.large-copy { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.65; color: var(--text-2); }
.large-copy strong { color: #fff; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.pillar {
  position: relative; overflow: hidden; padding: 32px 30px; border-radius: var(--radius);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background-color .45s, border-color .45s;
}
.pillar:hover { transform: translateY(-6px); background-color: var(--glass-hover); border-color: var(--line-2); box-shadow: var(--glow); }
.pillar__icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 1.3rem; color: #fff; background: var(--sunset-band); box-shadow: 0 12px 28px -12px rgba(239, 111, 127, .9); }
.pillar__num { float: right; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--text-3); }
.pillar h3 { font-size: 1.6rem; margin: 22px 0 8px; }
.pillar p { color: var(--text-2); margin: 0; }
@media (max-width: 767.98px) { .pillars { grid-template-columns: 1fr; } }

/* Book feature */
.book-visual { position: relative; padding: 20px; }
.book-visual::before {
  content: ""; position: absolute; inset: 0 -4% -2%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 211, 161, .5), rgba(239, 111, 127, .28) 50%, transparent);
}
.book-visual img { position: relative; filter: drop-shadow(0 40px 40px rgba(20, 6, 40, .55)); }
.book-visual__tag {
  position: absolute; left: 6%; bottom: 8%; padding: 12px 18px; border-radius: 18px;
  background-color: rgba(27, 20, 70, .85); box-shadow: var(--shadow);
  font-family: var(--font-display); font-size: .8rem; color: var(--text-3);
}
.book-visual__tag strong { display: block; font-size: 1.05rem; color: #fff; }

.feature-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); }
.feature-list i { flex: 0 0 auto; margin-top: 4px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; color: #fff; background: var(--sunset-band); }
.feature-list strong { color: #fff; }

/* Journey / chapters: a full sunset section with dark glass cards */
.journey .sky { background: linear-gradient(165deg, #1b1446 0%, #3b1d6e 40%, #7a2c86 75%, #a83a80 100%); }
.journey .sky::before { width: 700px; height: 700px; right: -200px; bottom: -300px; opacity: .75; }
.journey .sky::after { display: none; }
.chapter-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.chapter-card {
  position: relative; padding: 26px 26px 24px; border-radius: var(--radius);
  background: var(--glass-dark); border: 1px solid rgba(255, 255, 255, .16);
  transition: border-color .4s, transform .4s var(--ease), background-color .4s;
}
.chapter-card:hover { border-color: rgba(255, 211, 161, .6); transform: translateY(-4px); background-color: rgba(20, 11, 53, .65); }
.chapter-card__num {
  display: inline-grid; place-items: center; min-width: 52px; height: 52px; padding: 0 10px; border-radius: 16px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink-900); background: var(--sunset-text);
}
.chapter-card h3 { font-size: 1.4rem; margin: 18px 0 6px; }
.chapter-card p { margin: 0; color: var(--text-2); font-size: .97rem; }
@media (max-width: 767.98px) { .chapter-grid { grid-template-columns: 1fr; } }

/* Quote band */
.quote-band { text-align: center; padding: clamp(100px, 12vw, 160px) 0 clamp(160px, 16vw, 220px); }
.quote-band .sky { background: linear-gradient(180deg, #1b1446 0%, #3b1d6e 35%, #8a3384 65%, #d9566f 85%, #f59e7a 100%); }
.quote-band .sky::before { bottom: -330px; }
.quote-band__mark { display: block; height: 60px; font-family: var(--font-display); font-weight: 800; font-size: 7rem; line-height: 1; background: var(--sunset-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quote-band blockquote { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 6vw, 4.8rem); line-height: 1.02; letter-spacing: -.04em; margin: 18px auto 24px; max-width: 16ch; color: #fff; }
.quote-band cite { display: inline-block; font-style: normal; font-family: var(--font-display); font-weight: 500; font-size: .95rem; color: #fff; padding: 7px 16px; border-radius: 99px; background: rgba(20, 11, 53, .4); border: 1px solid rgba(255, 255, 255, .25); }

/* Author */
.portrait-arch { position: relative; max-width: 440px; margin: 0 auto; }
.portrait-arch__frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden;
  background:
    radial-gradient(circle at 50% 46%, #fff1d6 0%, #ffd3a1 16%, rgba(245, 158, 122, .7) 32%, transparent 52%),
    linear-gradient(180deg, #3b1d6e 0%, #8a3384 50%, #ef6f7f 80%, #f59e7a 100%);
  display: flex; align-items: flex-end; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .25); box-shadow: var(--shadow-lg);
}
.portrait-arch__frame img { width: 86%; height: auto; display: block; }
.portrait-arch__signature {
  position: absolute; right: -12px; bottom: 34px; padding: 12px 20px; border-radius: 20px; background: #fff; color: #2a1650;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; box-shadow: var(--shadow-lg);
}
.portrait-arch__signature small { display: block; font-size: .75rem; font-weight: 500; color: var(--magenta-500); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
.stats div { padding: 18px 16px; border-radius: var(--radius-sm); background: var(--glass); border: 1px solid var(--line); }
.stats strong { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; line-height: 1; background: var(--sunset-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { display: block; margin-top: 8px; font-size: .85rem; color: var(--text-3); }

/* Excerpt */
.excerpt-layout { display: grid; grid-template-columns: 300px 1fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.excerpt-meta { position: sticky; top: 120px; padding-top: 8px; }
.excerpt-meta .chapter-label { display: inline-block; padding: 5px 13px; border-radius: 99px; font-family: var(--font-display); font-size: .85rem; font-weight: 600; color: var(--ink-900); background: var(--sunset-text); }
.excerpt-meta h3 { font-size: 2rem; margin: 14px 0 4px; }
.excerpt-meta small { font-size: .9rem; color: var(--text-3); }
.excerpt-meta blockquote { margin: 24px 0 0; padding: 18px 20px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; line-height: 1.45; color: #fff; }
.book-page {
  position: relative; padding: clamp(30px, 5vw, 60px); border-radius: var(--radius-lg);
  background: rgba(20, 11, 53, .55); border: 1px solid rgba(255, 255, 255, .16); box-shadow: var(--shadow-lg);
  font-size: 1.12rem; line-height: 1.9; color: rgba(255, 255, 255, .88);
}
.book-page p { margin-bottom: 1.3em; }
.book-page .dropcap::first-letter { float: left; font-family: var(--font-display); font-weight: 800; font-size: 4.4rem; line-height: .85; padding: 6px 12px 0 0; color: var(--peach-300); }
.book-page .lift { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.25; letter-spacing: -.02em; color: var(--sun-200); margin: 1.4em 0; }
@media (max-width: 991.98px) { .excerpt-layout { grid-template-columns: 1fr; } .excerpt-meta { position: static; } }

/* ---------- Blog cards ---------- */

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 991.98px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639.98px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex; flex-direction: column; height: 100%;
  border-radius: var(--radius); overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background-color .45s, border-color .45s;
}
.post-card:hover { transform: translateY(-6px); background-color: var(--glass-hover); border-color: var(--line-2); box-shadow: var(--glow); }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--violet-700); margin: 10px 10px 0; border-radius: 16px; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 24px 24px; }
.post-card__title { font-size: 1.45rem; line-height: 1.2; margin: 14px 0 10px; }
.post-card__title a { color: #fff; text-decoration: none; }
.post-card__title a:hover { color: var(--sun-200); }
.post-card__excerpt { color: var(--text-2); font-size: .98rem; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .link-arrow { margin-top: auto; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: .85rem; color: var(--text-3); }

.post-card--featured { display: grid; grid-template-columns: 1.15fr 1fr; }
.post-card--featured .post-card__media { aspect-ratio: auto; min-height: 380px; margin: 12px 0 12px 12px; }
.post-card--featured .post-card__body { padding: clamp(28px, 4vw, 52px); justify-content: center; }
.post-card--featured .post-card__title { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.post-card--featured .post-card__excerpt { -webkit-line-clamp: 4; font-size: 1.05rem; }
@media (max-width: 991.98px) { .post-card--featured { grid-template-columns: 1fr; } .post-card--featured .post-card__media { min-height: 0; aspect-ratio: 16 / 9; margin: 10px 10px 0; } }

.empty-state { text-align: center; padding: 70px 24px; border-style: dashed; border-radius: var(--radius); }
.empty-state i { font-size: 2rem; color: var(--peach-300); }
.empty-state h3 { font-size: 1.6rem; margin: 16px 0 8px; }

/* ---------- Newsletter ---------- */

.newsletter-card {
  position: relative; overflow: hidden; isolation: isolate; padding: clamp(36px, 6vw, 72px); border-radius: var(--radius-lg);
  color: rgba(255, 255, 255, .9);
  background: linear-gradient(120deg, #3b1d6e 0%, #8a3384 45%, #d9566f 80%, #f59e7a 100%);
  box-shadow: var(--shadow-lg);
}
.newsletter-card h2 { color: #fff; }
.newsletter-card .lead-soft { color: rgba(255, 255, 255, .9); }
.newsletter-card .display-title em { background: none; color: #fff; -webkit-text-fill-color: #fff; text-decoration: underline; text-decoration-color: var(--sun-200); text-decoration-thickness: 4px; text-underline-offset: 8px; }
.newsletter-card__stars {
  position: absolute; z-index: -1; width: 520px; height: 520px; right: -120px; bottom: -260px; border-radius: 50%;
  background: radial-gradient(circle, #fff1d6 0%, #ffd3a1 22%, rgba(245, 158, 122, .6) 42%, transparent 70%);
}
.newsletter-form__row { display: flex; gap: 8px; padding: 7px; border-radius: 99px; background: rgba(20, 11, 53, .45); border: 1px solid rgba(255, 255, 255, .35); }
.newsletter-form input {
  flex: 1; min-width: 0; padding: 12px 18px; border: 0; background: transparent; color: #fff; font-size: 1rem; outline: none;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, .7); }
.newsletter-form small { display: block; margin-top: 12px; padding-left: 20px; color: rgba(255, 255, 255, .8); font-size: .85rem; }
.newsletter-form__row:focus-within { border-color: #fff; }
@media (max-width: 575.98px) { .newsletter-form__row { flex-direction: column; border-radius: var(--radius); } .newsletter-form__row .btn-luxe { width: 100%; } }

/* ---------- Page hero (inner pages) ---------- */

.page-hero { padding: 160px 0 170px; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1; letter-spacing: -.04em; margin: 20px 0 22px; }
.page-hero .lead-soft { font-size: 1.18rem; color: rgba(255, 255, 255, .88); }
.page-hero__visual { position: relative; text-align: center; }
.page-hero__visual img { position: relative; filter: drop-shadow(0 30px 40px rgba(20, 6, 40, .6)); }
.page-hero--compact { padding-bottom: 150px; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; font-family: var(--font-display); font-size: .9rem; color: var(--text-3); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: var(--sun-200); }

/* Editorial blocks used on inner pages */
.editorial p { font-size: 1.12rem; line-height: 1.85; color: var(--text-2); }
.editorial p:first-of-type::first-letter { float: left; font-family: var(--font-display); font-weight: 800; font-size: 4.2rem; line-height: .85; padding: 6px 10px 0 0; color: var(--peach-300); }
.framed-img {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px);
  background:
    radial-gradient(circle at 50% 60%, rgba(255, 211, 161, .7), transparent 50%),
    linear-gradient(180deg, #3b1d6e 0%, #8a3384 55%, #ef6f7f 100%);
  border: 1px solid rgba(255, 255, 255, .25); box-shadow: var(--shadow-lg);
}
.framed-img img { position: relative; filter: drop-shadow(0 30px 40px rgba(20, 6, 40, .55)); }

.fact-strip { display: grid; grid-template-columns: repeat(4, 1fr); color: #fff; background: linear-gradient(90deg, #3b1d6e 0%, #7a2c86 50%, #a83a80 100%); }
.fact-strip div { padding: 40px 24px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .18); }
.fact-strip div:last-child { border-right: 0; }
.fact-strip strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -.03em; background: var(--sunset-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact-strip span { display: block; margin-top: 10px; font-family: var(--font-display); font-size: .92rem; color: rgba(255, 255, 255, .88); }
@media (max-width: 767.98px) { .fact-strip { grid-template-columns: repeat(2, 1fr); } .fact-strip div:nth-child(2) { border-right: 0; } .fact-strip div:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .18); } }

.toc-list { columns: 2; column-gap: 20px; list-style: none; padding: 0; margin: 0; }
.toc-list li { break-inside: avoid; display: flex; gap: 16px; align-items: center; padding: 14px 18px; margin-bottom: 10px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); font-family: var(--font-display); font-weight: 500; font-size: 1.12rem; color: #fff; }
.toc-list li span { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-size: .85rem; font-weight: 700; color: var(--ink-900); background: var(--sunset-text); }
@media (max-width: 767.98px) { .toc-list { columns: 1; } }

.duo-card {
  height: 100%; padding: clamp(30px, 4vw, 46px); border-radius: var(--radius-lg);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background-color .45s, border-color .45s;
}
.duo-card:hover { transform: translateY(-6px); background-color: var(--glass-hover); border-color: var(--line-2); box-shadow: var(--glow); }
.duo-card h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 16px 0 12px; }
.duo-card p { color: var(--text-2); margin-bottom: 26px; }

/* Timeline */
.timeline { position: relative; max-width: 860px; margin: 0 auto; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: linear-gradient(var(--peach-300), var(--magenta-500), transparent); }
.timeline li { position: relative; margin: 0 0 16px 48px; padding: 20px 24px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); }
.timeline li::before { content: ""; position: absolute; left: -44px; top: 24px; width: 20px; height: 20px; border-radius: 50%; background: var(--sunset-band); border: 4px solid #2a1663; box-shadow: 0 0 0 1px rgba(245, 158, 122, .6); }
.timeline span { display: inline-block; font-family: var(--font-display); font-size: .85rem; font-weight: 600; color: var(--sun-200); }
.timeline h3 { font-size: 1.6rem; margin: 6px 0 8px; }
.timeline p { color: var(--text-2); margin: 0; max-width: 62ch; }

/* Contact */
.reach-card { border-radius: var(--radius-lg); overflow: hidden; }
.reach-row { display: flex; gap: 18px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); text-decoration: none; color: #fff; transition: background-color .3s; }
.reach-row:last-child { border-bottom: 0; }
a.reach-row:hover { background-color: rgba(255, 255, 255, .07); color: #fff; }
.reach-row i { width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--sunset-band); }
.reach-row small { display: block; font-family: var(--font-display); font-size: .82rem; color: var(--text-3); }
.reach-row strong { font-weight: 500; word-break: break-word; }

/* ---------- Blog listing ---------- */

.blog-toolbar { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pills a { padding: 8px 18px; border-radius: 99px; font-family: var(--font-display); font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--text-2); background: var(--glass); border: 1px solid var(--line); transition: background-color .25s, color .25s, border-color .25s; }
.filter-pills a:hover { border-color: var(--line-2); color: #fff; }
.filter-pills a.active { background: #fff; color: #3a1a5e; border-color: #fff; }
.filter-pills a sup { font-size: .7rem; margin-left: 4px; opacity: .7; }

.search-box { position: relative; max-width: 480px; margin-top: 30px; }
.search-box input { width: 100%; padding: 16px 64px 16px 24px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .4); background: rgba(20, 11, 53, .4); color: #fff; font-size: 1rem; outline: none; transition: border-color .3s, background-color .3s; }
.search-box input::placeholder { color: rgba(255, 255, 255, .7); }
.search-box input:focus { border-color: #fff; background-color: rgba(20, 11, 53, .6); }
.search-box button { position: absolute; right: 6px; top: 6px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: #3a1a5e; }

.pagination-luxe { display: flex; justify-content: center; gap: 8px; margin-top: 56px; list-style: none; padding: 0; }
.pagination-luxe a, .pagination-luxe span { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 99px; text-decoration: none; font-family: var(--font-display); font-weight: 600; color: #fff; background: var(--glass); border: 1px solid var(--line); }
.pagination-luxe a:hover { border-color: var(--line-2); background: var(--glass-hover); color: #fff; }
.pagination-luxe .current { background: #fff; color: #3a1a5e; border-color: #fff; }

/* ---------- Single post ---------- */

.post-hero { padding: 150px 0 210px; text-align: center; }
.post-hero .crumbs ol { justify-content: center; }
.post-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1.04; letter-spacing: -.035em; max-width: 20ch; margin: 20px auto 18px; }
.post-hero .lead-soft { margin: 0 auto; color: rgba(255, 255, 255, .88); }
.post-hero .post-meta { justify-content: center; margin-top: 26px; font-size: .92rem; color: rgba(255, 255, 255, .85); }
.byline { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.byline img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--sunset-band); border: 2px solid rgba(255, 255, 255, .6); }

.post-cover { margin-top: -120px; position: relative; z-index: 2; }
.post-cover img { width: 100%; max-height: 600px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--violet-700); border: 1px solid rgba(255, 255, 255, .2); }

.article-layout { display: grid; grid-template-columns: 64px minmax(0, 720px) 1fr; gap: 48px; justify-content: center; }
.share-rail { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 10px; align-self: start; }
.share-rail span { font-family: var(--font-display); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); writing-mode: vertical-rl; transform: rotate(180deg); margin: 0 auto 8px; }
.share-btn { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); color: #fff; text-decoration: none; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.share-btn:hover { background: #fff; color: #3a1a5e; border-color: #fff; }
.toc { position: sticky; top: 120px; align-self: start; max-width: 280px; padding: 24px; border-radius: var(--radius); }
.toc h2 { font-family: var(--font-display); font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin: 0 0 14px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.toc a { display: block; padding: 7px 12px; border-radius: 10px; font-size: .92rem; line-height: 1.4; text-decoration: none; color: var(--text-2); transition: color .25s, background-color .25s; }
.toc .toc-h3 a { padding-left: 24px; font-size: .86rem; }
.toc a:hover, .toc a.active { color: #fff; background-color: rgba(255, 255, 255, .1); }
@media (max-width: 1199.98px) { .article-layout { grid-template-columns: 56px minmax(0, 720px); } .toc { display: none; } }
@media (max-width: 767.98px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .share-rail { position: static; flex-direction: row; justify-content: center; order: 2; margin-top: 40px; }
  .share-rail span { writing-mode: horizontal-tb; transform: none; margin: 0 8px 0 0; align-self: center; }
}

.prose { font-size: 1.125rem; line-height: 1.85; color: rgba(255, 255, 255, .86); }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.35em; }
.prose > p:first-child::first-letter { float: left; font-family: var(--font-display); font-weight: 800; font-size: 4.4rem; line-height: .85; padding: 6px 12px 0 0; color: var(--peach-300); }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-top: 2em; color: #fff; }
.prose h3 { font-size: 1.45rem; margin-top: 1.7em; color: #fff; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose a { color: var(--sun-200); text-decoration: underline; text-decoration-color: rgba(255, 211, 161, .45); }
.prose a:hover { color: #fff; text-decoration-color: currentColor; }
.prose strong { color: #fff; }
.prose blockquote { position: relative; margin: 2em 0; padding: 22px 26px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); border-left: 4px solid var(--peach-300); font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; line-height: 1.4; letter-spacing: -.01em; color: #fff; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--peach-300); }
.prose img { display: block; border-radius: var(--radius); margin: 2em auto; box-shadow: var(--shadow); }
.prose figcaption { font-size: .88rem; text-align: center; color: var(--text-3); margin-top: -1em; }
.prose hr { border: 0; text-align: center; margin: 2.5em 0; opacity: 1; }
.prose hr::before { content: "✦ ✦ ✦"; color: var(--peach-300); letter-spacing: 1em; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose pre { background: var(--ink-950); color: #fff; padding: 20px; border-radius: var(--radius-sm); font-size: .9rem; border: 1px solid var(--line); }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--line); }
.post-tags a { padding: 6px 14px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line); color: var(--text-2); font-family: var(--font-display); font-size: .88rem; text-decoration: none; }
.post-tags a:hover { background: #fff; border-color: #fff; color: #3a1a5e; }

.author-box { display: flex; gap: 24px; align-items: center; margin-top: 46px; padding: 28px; border-radius: var(--radius-lg); }
.author-box img { width: 96px; height: 96px; flex: 0 0 auto; border-radius: 28px; object-fit: cover; object-position: top; background: linear-gradient(180deg, #8a3384, #f59e7a); }
.author-box h2 { font-size: 1.5rem; margin: 4px 0 8px; }
.author-box p { margin: 0 0 10px; color: var(--text-2); font-size: .97rem; }
@media (max-width: 575.98px) { .author-box { flex-direction: column; text-align: center; } }

.book-cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 150px 1fr; gap: 34px; align-items: center; margin-top: 30px;
  padding: 34px; border-radius: var(--radius-lg); color: rgba(255, 255, 255, .9);
  background: linear-gradient(120deg, #3b1d6e 0%, #8a3384 50%, #d9566f 100%);
}
.book-cta::before { content: ""; position: absolute; z-index: -1; width: 380px; height: 380px; right: -100px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 211, 161, .8), rgba(245, 158, 122, .3) 45%, transparent 70%); }
.book-cta img { border-radius: 6px; box-shadow: 0 20px 40px rgba(20, 6, 40, .6); transform: rotate(-4deg); }
.book-cta h2 { color: #fff; font-size: 1.7rem; margin: 10px 0 10px; }
.book-cta p { color: rgba(255, 255, 255, .88); margin-bottom: 20px; }
@media (max-width: 575.98px) { .book-cta { grid-template-columns: 1fr; text-align: center; } .book-cta img { max-width: 140px; margin: 0 auto; } }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.post-nav a { display: block; padding: 22px 24px; border-radius: var(--radius); text-decoration: none; color: #fff; transition: background-color .3s, border-color .3s; }
.post-nav a:hover { background-color: var(--glass-hover); border-color: var(--line-2); color: #fff; }
.post-nav small { display: block; font-family: var(--font-display); font-size: .82rem; color: var(--text-3); margin-bottom: 6px; }
.post-nav strong { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; line-height: 1.3; }
.post-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 575.98px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { grid-column: 1; } }

.preview-banner { position: fixed; z-index: 300; left: 50%; bottom: 20px; transform: translateX(-50%); padding: 12px 20px; border-radius: 99px; background: #fff; color: #3a1a5e; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-lg); }
.preview-banner a { color: var(--magenta-500); margin-left: 10px; }

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

.site-footer { position: relative; overflow: hidden; isolation: isolate; padding: 90px 0 30px; color: var(--text-2); background: var(--ink-950); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--sunset-band); }
.footer-glow {
  position: absolute; z-index: -1; width: 900px; height: 500px; left: 50%; top: -320px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(239, 111, 127, .3), rgba(138, 51, 132, .15) 55%, transparent);
}
.footer-blurb { margin: 20px 0 24px; max-width: 34ch; font-size: .98rem; }
.footer-title { font-family: var(--font-display); font-size: 1rem; font-weight: 600; letter-spacing: 0; color: #fff; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--text-2); text-decoration: none; font-size: .98rem; }
.footer-links a:hover { color: var(--sun-200); }
.social-links { display: flex; gap: 10px; }
.social-links a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); color: #fff; text-decoration: none; transition: background-color .3s, color .3s, transform .3s; }
.social-links a:hover { background: #fff; color: #3a1a5e; transform: translateY(-3px); }
.footer-book { display: flex; gap: 20px; align-items: center; padding: 20px; border-radius: var(--radius); }
.footer-book img { width: 86px; height: auto; border-radius: 6px; box-shadow: 0 14px 30px rgba(0, 0, 0, .5); }
.footer-book p { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: #fff; line-height: 1.3; margin: 10px 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--text-3); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--text-3); }
.footer-bottom .footer-credit { color: #fff; font-weight: 600; text-decoration: none; }
.footer-bottom .footer-credit:hover { color: var(--sun-200); text-decoration: underline; }

/* ---------- Toast ---------- */

.toast-message {
  position: fixed; z-index: 400; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  padding: 14px 24px; border-radius: 99px; background: #fff; color: #3a1a5e; font-family: var(--font-display); font-weight: 600; font-size: .95rem; box-shadow: var(--shadow-lg);
  transition: opacity .4s, transform .4s var(--ease);
}
.toast-message.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 404 ---------- */
.not-found { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 140px 20px 200px; }
.not-found strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(7rem, 20vw, 13rem); line-height: 1; letter-spacing: -.06em; background: var(--sunset-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Motion ---------- */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .12s; }
.reveal.delay-2 { transition-delay: .24s; }

/* Sections out of view stop their looping animations (set by site.js) */
.is-offscreen, .is-offscreen * { animation-play-state: paused !important; }

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