/* ============================================================
   The Heart Before the Home — Brand Site
   ============================================================ */

:root{
  --navy: #16293F;
  --navy-soft: #24405D;
  --terracotta: #A8451D;
  --terracotta-soft: #C4682F;
  --olive: #5F6B3E;
  --olive-soft: #7C8A56;
  --cream: #F3E6D8;
  --cream-soft: #FAF3EA;
  --cream-deep: #EAD8C4;
  --ink: #2B2422;
  --ink-soft: #5A4F49;

  --amazon-bg: #131921;
  --amazon-accent: #FF9900;
  --amazon-bg-hover: #232F3E;

  --paystack-bg: #011B33;
  --paystack-accent: #3BB75E;
  --paystack-accent-hover: #34a453;

  --shadow-soft: 0 18px 45px -18px rgba(22,41,63,0.28);
  --shadow-card: 0 10px 30px -14px rgba(22,41,63,0.18);
  --radius: 14px;

  --line-rgb: 22,41,63;
  --accent-rgb: 168,69,29;
  --accent-olive-rgb: 95,107,62;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
/* Keeps in-page jump targets (buy buttons, etc.) from landing behind
   the sticky header. */
[id]{ scroll-margin-top: 88px; }
body{
  margin:0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream-soft);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3,h4{
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
p{ margin: 0 0 1em; }
.container{
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}
.section{ padding: 96px 0; }
.section--tight{ padding: 64px 0; }
.section--cream-deep{ background: var(--cream-deep); }
.section--navy{ background: var(--navy); color: #EDE3D6; }
.section--navy h2, .section--navy h3{ color: #F6EEE3; }
.section--navy p{ color: #C9D2DB; }

.eyebrow{
  display:inline-block;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--terracotta);
  margin-bottom: 14px;
}
.section--navy .eyebrow{ color: var(--terracotta-soft); }

.lede{
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ---------- Brandmark word treatment (mirrors the cover) ---------- */
.brand-word-mark{
  font-family: var(--serif);
  font-weight: 700;
}
.bw-the{ color: var(--navy); }
.bw-heart{ color: var(--terracotta); }
.bw-before{ color: var(--navy); }
.bw-home{ color: var(--olive); }

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(250,243,234,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(var(--line-rgb),0.08);
  transition: box-shadow .3s ease, background .3s ease, border-color .3s ease;
}
.site-header.is-scrolled{
  background: rgba(250,243,234,0.98);
  box-shadow: 0 12px 30px -18px rgba(22,41,63,0.35);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
  position: relative;
}
.nav-brand{ display:flex; align-items:center; gap:12px; }
.nav-brand img{ width:40px; height:40px; transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.nav-brand:hover img{ transform: rotate(-8deg) scale(1.08); }
.nav-brand-text{
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight:700;
  color: var(--navy);
  line-height:1.15;
}
.nav-brand-text span{ display:block; font-size:0.62rem; letter-spacing:0.18em; font-weight:600; color: var(--olive); font-family: var(--sans); text-transform:uppercase; margin-top:2px; }

.nav-links{ display:flex; align-items:center; gap:36px; list-style:none; margin:0; padding:0; }
.nav-links a{
  font-size:0.86rem; font-weight:600; letter-spacing:0.03em;
  color: var(--navy); position:relative; padding: 6px 0;
}
.nav-links a::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px;
  background: var(--terracotta); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after{ transform: scaleX(1); }
.nav-links a.active{ color: var(--terracotta); }
.nav-link-cta{ display:none; } /* shown only inside the mobile hamburger menu */

.nav-cta{ display:flex; align-items:center; gap:12px; }
.nav-toggle{ display:none; background:none; border:none; cursor:pointer; padding:6px; }
.nav-toggle span{ display:block; width:24px; height:2px; background:var(--navy); margin:5px 0; transition:.25s; }

/* ---------- Theme toggle ---------- */
.theme-toggle{
  display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px; flex:none; border-radius:50%;
  border: 1.5px solid rgba(var(--line-rgb),0.18);
  background: transparent; color: var(--navy); cursor:pointer; padding:0;
  transition: border-color .25s ease, color .25s ease, transform .35s ease;
}
.theme-toggle:hover{ border-color: var(--terracotta); color: var(--terracotta); transform: rotate(14deg); }
.theme-toggle svg{ width:18px; height:18px; }
.theme-toggle .icon-moon{ display:none; }
[data-theme="dark"] .theme-toggle .icon-sun{ display:none; }
[data-theme="dark"] .theme-toggle .icon-moon{ display:block; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding: 14px 26px;
  border-radius: 9px;
  font-weight:700;
  font-size:0.95rem;
  letter-spacing:0.01em;
  border: none; cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn:hover{ transform: translateY(-2px); }
.btn::before{
  content:"";
  position:absolute; top:0; left:-60%; width:40%; height:100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
  pointer-events:none;
}
.btn:hover::before{ left:130%; }
.btn-outline::before{ background: linear-gradient(120deg, transparent, rgba(var(--line-rgb),0.12), transparent); }
.btn-row{ display:flex; flex-wrap:wrap; gap:16px; margin-top:8px; }

/* Amazon + Paystack buy buttons: identical footprint, no hover motion,
   no shine sweep. Kept static so neither badge's presentation changes
   on interaction — Amazon's badge-usage guidelines disallow recoloring,
   distortion, or added effects on the mark itself. */
.btn-amazon, .btn-paystack{
  width: 236px;
  height: 60px;
  padding: 0 20px;
  box-sizing: border-box;
}
.btn-amazon::before, .btn-paystack::before{ content:none; }
.btn-amazon:hover, .btn-paystack:hover{ transform:none; }

.btn-amazon{
  background: var(--amazon-bg);
  color:#fff;
  box-shadow: 0 10px 24px -10px rgba(19,25,33,0.55);
}
.amazon-badge{ height: 34px; width:auto; display:block; }
.amazon-badge-dark-text{ display:none; }
[data-theme="dark"] .amazon-badge-rev{ display:none; }
[data-theme="dark"] .amazon-badge-dark-text{ display:block; }

.btn-paystack{
  background: #fff;
  border: 1.5px solid rgba(22,41,63,0.14);
  box-shadow: 0 10px 24px -14px rgba(22,41,63,0.35);
}
.paystack-content{ display:flex; flex-direction:column; align-items:center; gap:3px; }
.paystack-logo{ height: 22px; width:auto; display:block; }
.paystack-content small{ font-size:0.62rem; font-weight:600; letter-spacing:0.03em; color: var(--ink-soft); }

.btn-outline{
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  padding: 12px 24px;
}
.btn-outline:hover{ background: var(--navy); color:#fff; }
.section--navy .btn-outline{ border-color:#EDE3D6; color:#EDE3D6; }
.section--navy .btn-outline:hover{ background:#EDE3D6; color:var(--navy); }

/* ---------- Hero ---------- */
.hero{
  padding: 76px 0 96px;
  background:
    radial-gradient(ellipse 620px 480px at 92% -8%, rgba(168,69,29,0.10), transparent 60%),
    radial-gradient(ellipse 520px 420px at -6% 108%, rgba(95,107,62,0.14), transparent 60%);
  position: relative;
  overflow:hidden;
}
.hero-grid{
  display:grid; grid-template-columns: 1.05fr 0.95fr; gap:56px; align-items:center;
}
.hero h1{ font-size: 3rem; margin-bottom:0.35em; }
.hero .lede{ margin-bottom: 30px; }
.hero-cover-wrap{ position:relative; display:flex; justify-content:center; }
.hero-cover{
  width: min(360px, 82vw);
  position:relative; z-index:1;
  transform: rotate(1.2deg);
  animation: coverFloat 5.2s ease-in-out infinite;
  transition: transform .35s ease;
}
.hero-cover-wrap:hover .hero-cover{ transform: rotate(0deg) scale(1.02); animation-play-state: paused; }
.blob{ position:absolute; z-index:0; opacity:0.9; }
.blob-1{ top:-60px; right:-70px; width:260px; animation: blobFloat1 9s ease-in-out infinite; }
.blob-2{ bottom:-50px; left:-60px; width:220px; animation: blobFloat2 11s ease-in-out infinite; }

@keyframes coverFloat{
  0%,100%{ transform: rotate(1.2deg) translateY(0); }
  50%{ transform: rotate(1.2deg) translateY(-30px); }
}
@keyframes coverFloatBack{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-24px); }
}
@keyframes blobFloat1{
  0%,100%{ transform: translate(0,0); }
  50%{ transform: translate(12px,-16px); }
}
@keyframes blobFloat2{
  0%,100%{ transform: translate(0,0); }
  50%{ transform: translate(-14px,12px); }
}

/* One-time hero entrance — above-the-fold content is visible by default
   (see .reveal note below); this only adds motion once .js confirms
   scripting is available, it never gates visibility. */
.js .hero-grid > .reveal{ animation: heroRise .9s cubic-bezier(.22,1,.36,1) both; }
.js .hero-grid > .reveal:nth-child(2){ animation-delay: .15s; }
@keyframes heroRise{
  from{ opacity:0; transform: translateY(26px); }
  to{ opacity:1; transform:none; }
}

.trust-row{
  display:flex; align-items:center; gap:12px; margin-top: 34px; flex-wrap:wrap;
  font-size:0.85rem; color: var(--ink-soft);
}
.trust-row .divider-dot{ width:5px; height:5px; border-radius:50%; background: var(--terracotta); }

/* ---------- Principles / cards ---------- */
.principle-grid{
  display:grid; grid-template-columns: repeat(4,1fr); gap:24px; margin-top:48px;
}
.principle-card{
  background: var(--cream-soft);
  border: 1px solid rgba(var(--line-rgb),0.08);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow-card);
  transition: transform .35s ease, box-shadow .35s ease, background-color .35s ease, border-color .35s ease;
}
.principle-card:hover{
  transform: translateY(-7px);
  box-shadow: 0 22px 42px -18px rgba(22,41,63,0.28);
}
.principle-num{
  font-family: var(--serif); font-size:0.85rem; font-weight:700; color: var(--terracotta);
  letter-spacing:0.1em; margin-bottom: 12px; display:inline-block;
  transition: transform .3s ease;
}
.principle-card:hover .principle-num{ transform: scale(1.15); }
.principle-card h3{ font-size:1.15rem; margin-bottom:10px; }
.principle-card p{ font-size:0.92rem; color: var(--ink-soft); margin:0; }

.principle-more{
  margin-top:40px; padding-top:28px;
  border-top:1px solid rgba(var(--line-rgb),0.12);
  display:flex; align-items:center; justify-content:center; gap:20px; flex-wrap:wrap;
  text-align:center;
}
.principle-more span{ font-family:var(--serif); font-size:1.15rem; color:var(--navy); font-style:italic; }

/* ---------- Split sections ---------- */
.split{
  display:grid; grid-template-columns: 1fr 1fr; gap:64px; align-items:center;
}
.split-reverse .split > *:first-child{ order:2; }
.split-reverse .split > *:last-child{ order:1; }

/* ---------- "Idea" section (single column, no image) ----------
   Centered reading column used on the Home page in place of the old
   text + back-cover split. The author credit reads as a signature
   right after the argument it belongs to; a thin rule + diamond mark
   then closes the block, and the "Explore" button stands alone,
   centered, as the section's one clear call to action. */
.idea-container{
  max-width: 700px;
  margin: 0 auto;
}
.author-credit{
  display:flex; flex-direction:column; gap:3px;
  margin-top: 30px;
}
.author-credit-name{
  font-family: var(--serif); font-weight:700; font-size:1.02rem; color: var(--navy);
}
.author-credit-role{
  font-size:0.66rem; font-weight:600; letter-spacing:0.12em; text-transform:uppercase; color: var(--olive);
}
.author-credit-email{
  font-size:0.82rem; color: var(--ink-soft); transition: color .2s ease;
}
.author-credit-email:hover{ color: var(--terracotta); }

.idea-divider{
  display:flex; align-items:center; gap:16px;
  margin: 34px 0 32px;
}
.idea-divider-line{ flex:1; height:1px; background: rgba(var(--line-rgb),0.16); }
.idea-divider-mark{ font-family: var(--serif); font-size:1.1rem; line-height:1; color: var(--terracotta); }

.idea-cta-wrap{ text-align:center; }

/* ---------- Cover frame (glossy sheen; wraps every front/back cover
   image sitewide so the artwork reads consistently everywhere) ---------- */
.cover-frame{
  position:relative;
  border-radius: 10px;
  overflow:hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(var(--line-rgb),0.08);
}
.cover-frame img{ width:100%; display:block; }
.cover-frame::after{
  content:"";
  position:absolute; inset:0; pointer-events:none;
  background:
    linear-gradient(115deg, rgba(255,255,255,0) 28%, rgba(255,255,255,0.38) 44%, rgba(255,255,255,0.06) 56%, rgba(255,255,255,0) 72%),
    linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0) 32%);
  mix-blend-mode: overlay;
}
.cover-float-back{ animation: coverFloatBack 6s ease-in-out infinite; }

/* Buy-buttons container: vividly highlighted whenever a "Get the Book"
   link/tap lands the visitor here, so it's unmistakable where they landed. */
#buy:target{
  animation: buyHighlight 2.3s ease-out;
  border-radius: 18px;
}
@keyframes buyHighlight{
  0%{ box-shadow: 0 0 0 0 rgba(var(--accent-rgb),0.65); background: rgba(var(--accent-rgb),0.22); transform: scale(1); }
  6%{ transform: scale(1.045); }
  14%{ transform: scale(1); }
  38%{ box-shadow: 0 0 0 34px rgba(var(--accent-rgb),0); background: rgba(var(--accent-rgb),0.22); }
  46%{ box-shadow: 0 0 0 0 rgba(var(--accent-rgb),0.55); background: rgba(var(--accent-rgb),0.2); transform: scale(1.03); }
  56%{ transform: scale(1); }
  88%{ box-shadow: 0 0 0 34px rgba(var(--accent-rgb),0); background: rgba(var(--accent-rgb),0.1); }
  100%{ box-shadow: 0 0 0 34px rgba(var(--accent-rgb),0); background: transparent; }
}

/* ---------- Chapters (book page) ---------- */
.parts-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:40px; margin-top:20px; }
.part-block h3{
  font-size:0.78rem; letter-spacing:0.22em; text-transform:uppercase; color:var(--terracotta);
  margin-bottom:6px;
}
.part-title{ font-family: var(--serif); font-size:1.55rem; color:var(--navy); margin-bottom:22px; }
.chapter-list{ list-style:none; margin:0; padding:0; }
.chapter-list li{
  display:flex; gap:14px; padding: 13px 6px; border-bottom:1px solid rgba(var(--line-rgb),0.08);
  font-size:0.95rem; border-radius:6px;
  transition: background .25s ease, padding-left .25s ease;
}
.chapter-list li:hover{ background: rgba(var(--accent-rgb),0.06); padding-left:12px; }
.chapter-list li:last-child{ border-bottom:none; }
.chapter-num{ font-family: var(--serif); color: var(--olive); font-weight:700; flex:none; width:26px; transition: color .25s ease; }
.chapter-list li:hover .chapter-num{ color: var(--terracotta); }

.parts-grid .part-block:nth-child(1){ transition-delay: 0s; }
.parts-grid .part-block:nth-child(2){ transition-delay: .12s; }

.reflect-box{
  margin-top:56px; padding: 34px 36px; border-radius: var(--radius);
  background: var(--cream-deep); border:1px solid rgba(var(--line-rgb),0.08);
  display:grid; grid-template-columns: auto 1fr; gap:22px; align-items:center;
}
.reflect-mark{ font-family: var(--serif); font-size:2.4rem; color: var(--terracotta); line-height:1; }
.reflect-box h4{ margin-bottom:8px; }
.reflect-box p{ margin:0; color:var(--ink-soft); font-size:0.95rem; }

/* ---------- CTA band ---------- */
.cta-band{
  background: #D6C9B1; /* the deepest tone from the panel's previous right-hand gradient edge, used flat */
  color: var(--ink);
  padding: 72px 0;
  text-align:center;
  transition: background-color .35s ease;
}
.cta-band h2{ color: var(--terracotta); margin-bottom: 36px; }
.cta-band .lede{ color: var(--ink-soft); margin:0 auto 30px; }
.cta-band .btn-row{ justify-content:center; }

/* ---------- Contact ---------- */
.contact-card{
  background: var(--cream-soft);
  border:1px solid rgba(var(--line-rgb),0.08);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow-card);
  max-width: 620px;
  transition: transform .35s ease, box-shadow .35s ease, background-color .35s ease, border-color .35s ease;
}
.contact-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 22px 44px -18px rgba(22,41,63,0.24);
}
.contact-email{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--serif); font-size:1.3rem; color: var(--terracotta);
  margin: 10px 0 26px; border-bottom: 1.5px solid rgba(var(--accent-rgb),0.35); padding-bottom:4px;
}
.contact-email:hover{ color: var(--olive); border-color: rgba(var(--accent-olive-rgb),0.4); }

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy); color:#C9D2DB; padding: 56px 0 30px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap:40px; margin-bottom:36px; }
.footer-brand{ display:flex; gap:14px; align-items:flex-start; }
.footer-brand img{ width:44px; }
.footer-brand-text{ font-family: var(--serif); color:#F6EEE3; font-size:1.1rem; }
.footer-tagline{ font-size:0.88rem; color:#9FAAB4; margin-top:8px; max-width:280px; }
.footer-col h4{ color:#F6EEE3; font-family: var(--sans); font-size:0.78rem; letter-spacing:0.14em; text-transform:uppercase; margin-bottom:16px; }
.footer-col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.footer-col a{ font-size:0.92rem; color:#C9D2DB; }
.footer-col a:hover{ color:#fff; }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,0.12); padding-top:22px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-size:0.82rem; color:#8B97A3;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero{
  padding: 64px 0 24px;
  text-align:center;
  background: linear-gradient(180deg, var(--cream-deep), var(--cream-soft));
}
.page-hero h1{ font-size:2.5rem; }
.page-hero .lede{ margin: 0 auto; }

/* ---------- Reveal animation ----------
   Content is visible by default (no JS / JS disabled / crawlers / print).
   Only when the early inline script marks <html class="js"> do sections
   start hidden and fade in via IntersectionObserver in main.js. */
.reveal{ transition: opacity .7s ease, transform .7s ease; }
.js .reveal{ opacity:0; transform: translateY(18px); }
.reveal.is-visible{ opacity:1; transform:none; }

/* Directional variants — same fade, different starting offset, so
   split (image/text) sections can enter from opposite sides. */
.js .reveal-left{ opacity:0; transform: translateX(-32px); }
.js .reveal-right{ opacity:0; transform: translateX(32px); }
.reveal-left.is-visible, .reveal-right.is-visible{ opacity:1; transform:none; }

/* Respect reduced-motion preference: collapse all animation/transition
   to effectively instant, and disable smooth scrolling. */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- "Coming soon!" callout ----------
   A speech-bubble popup anchored directly above whichever buy button
   (Amazon / Paystack) was just clicked — shown while the real store
   links aren't live yet. JS positions it via left/top (see main.js);
   this block only handles its look, the pointer tail, and the
   fade/rise-in animation. Inverts light/dark the same way the Amazon
   button does, so it always reads clearly regardless of theme. */
.buy-callout{
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, 8px);
  background: #16293F;
  color: #FAF3EA;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding: 12px 22px;
  border-radius: 12px;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 999;
}
.buy-callout::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 11px;
  height: 11px;
  background: inherit;
  border-radius: 2px;
  transform: translateX(-50%) rotate(45deg);
}
.buy-callout.is-shown{
  opacity: 1;
  transform: translate(-50%, 0);
}
[data-theme="dark"] .buy-callout{
  background: #F1E7DA;
  color: #16293F;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.6);
}

/* ---------- Responsive ---------- */
/* Nav switches to hamburger well before the link row would ever
   get tight — avoids any squeeze/overlap zone on tablet-width screens. */
@media (max-width: 1024px){
  .nav-links{
    position:absolute; top:100%; left:0; right:0;
    background: var(--cream-soft);
    flex-direction:column; align-items:flex-start; gap:0;
    padding: 6px 28px 18px;
    border-bottom:1px solid rgba(var(--line-rgb),0.08);
    display:none;
  }
  .nav-links.open{ display:flex; }
  .nav-links li{ width:100%; padding: 12px 0; border-bottom:1px solid rgba(var(--line-rgb),0.06); }
  .nav-toggle{ display:block; }
  /* "Get the Book" lives only inside the hamburger menu on mobile —
     the standalone header button is dropped to save space. */
  .nav-cta > .btn-outline{ display:none; }
  .nav-link-cta{ display:inline-block; color: var(--terracotta) !important; }
}
@media (max-width: 900px){
  .hero-grid, .split{ grid-template-columns: 1fr; }
  .split-reverse .split > *:first-child, .split-reverse .split > *:last-child{ order:0; }
  .hero-grid{ gap:40px; }
  .hero .hero-cover-wrap{ order:-1; }
  .principle-grid{ grid-template-columns: 1fr 1fr; }
  .parts-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  /* Once the hero / split columns stack, center the Amazon + Paystack
     buy buttons rather than leaving them pinned to the left edge of
     the now full-width text column (Home hero, Book page intro). */
  .hero .btn-row, .split .btn-row{ justify-content:center; }
}
@media (max-width: 720px){
  .hero h1{ font-size:2.2rem; }
  .principle-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .reflect-box{ grid-template-columns: 1fr; text-align:center; }
  .reflect-mark{ margin:0 auto; }
  .contact-card{ padding:28px; }
}

/* ============================================================
   Dark theme
   All base tokens are redefined here; because the rest of the
   stylesheet consumes them through var(), most components adapt
   automatically. A handful of surfaces that are intentionally
   dark in BOTH themes (footer, CTA band, the Paystack badge —
   which uses a light-background logo asset) get explicit
   overrides below so they don't get swept up in the remap.
   ============================================================ */
[data-theme="dark"]{
  --navy: #F1E7DA;
  --navy-soft: #D9CBB8;
  --terracotta: #E2864F;
  --terracotta-soft: #EFA679;
  --olive: #9CAB74;
  --olive-soft: #B7C398;
  --cream: #1B1D23;
  --cream-soft: #191B21;
  --cream-deep: #121317;
  --ink: #DCD4C9;
  --ink-soft: #9C9186;

  --shadow-soft: 0 18px 45px -18px rgba(0,0,0,0.6);
  --shadow-card: 0 10px 30px -14px rgba(0,0,0,0.5);

  --line-rgb: 241,231,218;
  --accent-rgb: 226,134,79;
  --accent-olive-rgb: 156,171,116;
}

[data-theme="dark"] .site-header{ background: rgba(20,22,27,0.92); }
[data-theme="dark"] .site-header.is-scrolled{
  background: rgba(20,22,27,0.98);
  box-shadow: 0 12px 30px -18px rgba(0,0,0,0.55);
}
[data-theme="dark"] .hero{
  background:
    radial-gradient(ellipse 620px 480px at 92% -8%, rgba(226,134,79,0.14), transparent 60%),
    radial-gradient(ellipse 520px 420px at -6% 108%, rgba(156,171,116,0.16), transparent 60%);
}
[data-theme="dark"] .blob-1 path{ fill: #E2864F; }
[data-theme="dark"] .blob-2 path{ fill: #9CAB74; }

/* Footer and CTA band stay dark-toned regardless of theme — just a
   richer, deeper tone in dark mode rather than flipping light. */
[data-theme="dark"] .site-footer{ background: #0E1015; }
[data-theme="dark"] .cta-band{ background: #221C16; }

/* --navy now serves as the light heading/text color in dark mode,
   so the outline button's hover-fill needs dark (not white) text. */
[data-theme="dark"] .btn-outline:hover{ color: #14171A; }

/* Paystack button in dark mode: same logo and caption as light mode
   (the brand mark keeps its own navy/cyan colors, per Paystack's
   usage guidelines), just a warm, muted tan pill instead of pure
   white — enough contrast for the navy wordmark to stay sharp, while
   reading as clearly distinct from the page and from Amazon's plain
   white pill. */
[data-theme="dark"] .btn-paystack{
  background: #D9CBB8;
  border: 1.5px solid rgba(var(--line-rgb),0.16);
  box-shadow: 0 10px 24px -14px rgba(0,0,0,0.5);
}
[data-theme="dark"] .paystack-content small{ color: #5A4F49; }

/* Amazon button in dark mode: a white pill (matching Paystack) so it
   always reads clearly against the dark page, paired with the plain
   dark-text badge variant (swapped in via .amazon-badge-dark-text)
   instead of the white-on-transparent "rev" badge, which would
   disappear against a white fill. */
[data-theme="dark"] .btn-amazon{
  background: #fff;
  border: 1.5px solid rgba(var(--line-rgb),0.14);
  box-shadow: 0 10px 24px -14px rgba(0,0,0,0.5);
}
