/* The Black Man's Toolkit. Global stylesheet.
   Vibrant, Afro-cultural, editorial. No em dashes. */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,700;12..96,800&display=swap');

:root {
  /* Default palette: NAVY (white paper, deep navy ink) */
  --bg: #ffffff;
  --bg-deep: #f1f4fb;
  --paper: #ffffff;
  --ink: #0a1f44;
  --ink-soft: #4a5a7a;
  --rule: rgba(10, 31, 68, 0.16);
  --primary: #0a1f44;       /* deep navy */
  --primary-soft: #1f3a78;
  --accent: #c89b3c;         /* muted gold */
  --accent-deep: #8c6a1f;
  --leaf: #1f4d3a;
  --plum: #2a1e58;
  --carmine: #b13a2a;
  --rust: #8c4a1f;
  --indigo: #0a1f44;
  --violet: #2a1e58;
  --emerald: #1f4d3a;
  --ochre: #8c6a1f;
  --hot: #b13a2a;

  --serif: "Hanken Grotesk", system-ui, sans-serif;
  --display: "Hanken Grotesk", system-ui, sans-serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --logo: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;

  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(10, 31, 68, 0.08);
  --shadow-md: 0 12px 28px rgba(10, 31, 68, 0.14);
  --shadow-lg: 0 24px 60px rgba(10, 31, 68, 0.22);
}

[data-palette="sankofa"] {
  --bg: #f3e9d2;
  --bg-deep: #e9dcb9;
  --paper: #faf2dc;
  --ink: #1a0d07;
  --ink-soft: #3a2618;
  --rule: rgba(26, 13, 7, 0.16);
  --primary: #8a1a1a;
  --primary-soft: #b13a2a;
  --accent: #e8a93a;
  --accent-deep: #c98317;
  --leaf: #2f5233;
  --plum: #4d1e3a;
  --shadow-sm: 0 2px 8px rgba(26, 13, 7, 0.08);
  --shadow-md: 0 12px 28px rgba(26, 13, 7, 0.14);
  --shadow-lg: 0 24px 60px rgba(26, 13, 7, 0.22);
}

[data-palette="brixton"] {
  --bg: #efe6d3;
  --bg-deep: #e2d4ba;
  --paper: #f7eed8;
  --ink: #1f1815;
  --ink-soft: #3a2c25;
  --rule: rgba(31, 24, 21, 0.16);
  --primary: #c7522a;
  --primary-soft: #db6f3e;
  --accent: #2f5233;
  --accent-deep: #234023;
  --leaf: #2f5233;
  --plum: #6a2330;
}

[data-palette="navy"] {
  /* alias, identical to :root default */
}

[data-palette="mansa"] {
  --bg: #ece4d2;
  --bg-deep: #d8cdb4;
  --paper: #f4ecd6;
  --ink: #0e1428;
  --ink-soft: #1f2a45;
  --rule: rgba(14, 20, 40, 0.18);
  --primary: #2a3a87;
  --primary-soft: #4a5fb4;
  --accent: #d97c3a;
  --accent-deep: #a85a1f;
  --leaf: #355c41;
  --plum: #3a1e58;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "ss02";
  overflow-x: hidden;
}

/* Headings: medium weight (Söhne-style grotesk), regular body. */
h1, h2, h3, h4, h5, h6, .hero-title, .display { font-weight: 500; letter-spacing: -0.02em; }

a { color: inherit; }
img { max-width: 100%; display: block; }

/* Accessibility: visible keyboard focus for all interactive elements (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
/* Respect users who ask for less motion (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
/* Screen-reader-only utility */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
/* Skip-to-content link (WCAG 2.4.1) — hidden until keyboard-focused */
.skip-link {
  position: fixed; left: 12px; top: 12px; z-index: 4000;
  transform: translateY(-160%);
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; border-radius: 8px;
  font-family: var(--sans); font-weight: 700; font-size: 14px;
  text-decoration: none;
  transition: transform 0.18s ease;
}
.skip-link:focus, .skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid var(--accent); outline-offset: 2px;
}

/* Typography */
.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: none;
}
.display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.92;
}
.serif-italic { font-family: var(--serif); font-style: normal; font-weight: 300; }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: none;
  padding: 24px clamp(28px, 6vw, 96px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none;
  color: #fff;
}
.brand-mark {
  display: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent), var(--primary) 65%, var(--plum));
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.85);
}
.brand-name {
  font-family: var(--logo);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fff;
  white-space: nowrap;
}
.brand-name small {
  display: none;
}
.brand-by {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--logo);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1;
  color: rgba(255,255,255,0.82);
}
.brand-bt-logo {
  height: 58px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a {
  text-decoration: none;
  white-space: nowrap;
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
  color: #fff;
}
.nav a:hover { color: rgba(255,255,255,0.7); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: rgba(255,255,255,0.85);
}
.nav-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--rule);
  cursor: pointer;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.icon-btn:hover { background: var(--paper); border-color: var(--ink); }
.icon-btn[data-active="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--primary); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-accent {
  background: var(--accent);
  color: var(--ink);
}
.btn-accent:hover { background: var(--accent-deep); color: var(--paper); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: clamp(640px, 92vh, 900px);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  filter: saturate(1.1) contrast(1.05);
}
.hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.85) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 60%);
}
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 28%;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.85) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 60%);
}
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScyMDAnIGhlaWdodD0nMjAwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC45Jy8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9JzEwMCUnIGhlaWdodD0nMTAwJScgZmlsdGVyPSd1cmwoI24pJy8+PC9zdmc+");
  pointer-events: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  padding: 72px clamp(28px, 6vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
  color: #fff;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--accent);
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--accent);
}
.hero-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 3.2vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px 0;
  max-width: none;
}
.hero-title em {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 300;
  color: var(--accent);
}
.hero-words {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.005em;
  color: #fff;
  margin-bottom: 36px;
  opacity: 1;
}
.hero-words span {
  display: inline-flex;
  align-items: center;
  gap: 22px;
}
.hero-words span::after {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
}
.hero-words span:last-child::after { display: none; }

.hero-tagline {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(13px, 2.3vw, 26px);
  line-height: 1.35;
  max-width: none;
  white-space: nowrap;
  margin: 0 0 38px 0;
  color: #fff;
  opacity: 1;
}
@media (max-width: 560px) { .hero-tagline { white-space: normal; } }
.hero-tagline-sub { opacity: 0.75; font-size: 0.9em; margin-top: -8px; }

.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-cta-row .btn { white-space: nowrap; }

.hero-credit {
  position: absolute;
  top: 36px;
  right: clamp(28px, 6vw, 96px);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 600;
  text-align: right;
  color: var(--paper);
  opacity: 0.85;
  z-index: 3;
  max-width: 280px;
  line-height: 1.7;
}
.hero-credit strong { color: var(--accent); display: block; }

.hero-pattern {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 22px;
  z-index: 3;
  background:
    repeating-linear-gradient(
      90deg,
      var(--primary) 0 60px,
      var(--accent) 60px 90px,
      var(--leaf) 90px 130px,
      var(--paper) 130px 145px,
      var(--plum) 145px 200px
    );
}

/* ---------- Section: directory ---------- */
.directory {
  padding: 96px clamp(28px, 6vw, 96px) 80px;
}
.section-head {
  display: block;
  margin-bottom: 56px;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 24px 0;
  max-width: none;
}
.section-head h2 em { font-family: var(--serif); font-style: normal; font-weight: 300; color: var(--primary); }
.section-head h2 .sh-line2 { display: block; margin-top: clamp(14px, 1.7vw, 22px); font-size: 0.75em; }
.section-head p {
  font-size: 17px;
  max-width: none;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.chapter-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--rule);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
  isolation: isolate;
}
.chapter-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.chapter-card .card-image {
  position: relative;
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center 20%;
}
.chapter-card .card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.85) 100%);
}
.card-num {
  position: absolute;
  top: 18px;
  left: 18px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--paper);
  z-index: 2;
  background: rgba(0,0,0,0.4);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.card-title-overlay {
  position: absolute;
  left: 18px; right: 18px; bottom: 14px;
  z-index: 2;
  color: var(--paper);
}
.card-title-overlay h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 4px 0;
}
.card-title-overlay .kicker {
  font-size: 13px;
  letter-spacing: 0.005em;
  font-weight: 600;
  opacity: 0.92;
}

.card-body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-promise {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.25;
  margin: 0;
}
.card-character {
  font-size: 20px;
  color: var(--ink-soft);
  line-height: 1.4;
  border-top: 1px dashed var(--rule);
  padding-top: 14px;
}
.card-character strong { color: var(--ink); font-weight: 700; }

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
}
.card-foot .read-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 16px;
}
.chapter-card:hover .read-arrow { color: var(--primary); }
.chapter-card .progress-pip {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: transparent;
  flex-shrink: 0;
}
.chapter-card[data-read="true"] .progress-pip {
  background: var(--leaf);
  border-color: var(--leaf);
}

/* even two-column layout */
.chapter-card.size-md,
.chapter-card.size-lg,
.chapter-card.size-sm { grid-column: span 1; }

@media (max-width: 700px) {
  .chapter-grid { grid-template-columns: 1fr; }
  .chapter-card .card-image { aspect-ratio: 16 / 11; }
}

/* ---------- Letter / Intro band ---------- */
.letter {
  background: var(--ink);
  color: var(--paper);
  padding: 110px clamp(28px, 6vw, 96px);
  position: relative;
  overflow: hidden;
}
.letter::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 20%, var(--primary) 0%, transparent 30%),
    radial-gradient(circle at 10% 90%, var(--plum) 0%, transparent 35%);
  opacity: 0.3;
}
.letter-inner {
  position: relative;
  display: block;
  max-width: 1300px;
  margin: 0 auto;
}
.letter-inner h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 36px 0;
  max-width: 22ch;
}
.letter-body {
  columns: 2;
  column-gap: 64px;
  max-width: 100%;
}
.letter-body p { break-inside: avoid; }
@media (max-width: 900px) {
  .letter-body { columns: 1; }
}
.letter-inner h2 em {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 300;
  color: var(--accent);
}
.letter-body p {
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 20px 0;
  opacity: 0.9;
}
.letter-body p:first-child {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 300;
  font-size: 24px;
  line-height: 1.4;
  opacity: 1;
  color: var(--paper);
}
@media (max-width: 900px) {
  .letter-body { columns: 1; }
}

/* ---------- Stat Strip ---------- */
.stat-strip {
  background: #F5F5F5;
  color: var(--ink);
  padding: 60px clamp(28px, 6vw, 96px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  border-top: 6px solid var(--ink);
  border-bottom: 6px solid var(--ink);
}
.stat-strip .stat .big {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  display: block;
  margin-bottom: 12px;
}
.stat-strip .stat .label {
  font-size: 14px;
  line-height: 1.5;
  max-width: none;
  font-weight: 500;
}
@media (max-width: 800px) {
  .stat-strip { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Quiz CTA + Resource finder CTA ---------- */
.cta-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  padding: 80px clamp(28px, 6vw, 96px);
}
.cta-card {
  position: relative;
  border-radius: var(--r-xl);
  padding: 48px;
  overflow: hidden;
  text-decoration: none;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  transition: transform 0.2s ease;
}
.cta-card:hover { transform: translateY(-3px); }
.cta-card.quiz {
  background:
    linear-gradient(135deg, var(--primary), var(--plum));
}
.cta-card.resources {
  background: var(--leaf);
}
.cta-card .cta-eyebrow {
  font-size: 16px;
  letter-spacing: 0.01em;
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 16px;
}
.cta-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px 0;
  text-wrap: balance;
}
.cta-card h3 em {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 300;
  color: var(--accent);
}
.cta-card p {
  font-size: 19px;
  line-height: 1.5;
  opacity: 0.9;
  max-width: none;
  margin: 0 0 24px 0;
}
.cta-card .arrow {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
}
@media (max-width: 900px) { .cta-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 64px clamp(28px, 6vw, 96px) 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
.footer-grid h4 {
  font-family: var(--sans);
  font-size: 22px;
  letter-spacing: -0.01em;
  text-transform: none;
  font-weight: 700;
  margin: 0 0 18px 0;
  color: #fff;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { text-decoration: none; opacity: 1; font-size: 16px; color: #fff; }
.footer-grid a:hover { opacity: 1; color: var(--accent); }
.footer-bigword {
  font-family: var(--display);
  font-weight: 800;
  font-size: 32px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 0 0 18px 0;
}
.footer-meta {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 18px;
  letter-spacing: 0.04em;
  opacity: 1;
  color: #fff;
}
.footer-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .footer-grid, .footer-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid, .footer-grid-3 { grid-template-columns: 1fr; } }

/* ============================================================ */
/* CHAPTER PAGE                                                  */
/* ============================================================ */
.chapter-hero {
  position: relative;
  height: clamp(560px, 80vh, 760px);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.chapter-hero .hero-img { position: absolute; inset: 0; background-size: cover; background-position: center 25%; }
.chapter-hero .hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.9) 100%);
}
.chapter-hero-content {
  position: absolute;
  inset: 0;
  padding: 72px clamp(28px, 6vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}
.chapter-meta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 700;
}
.chapter-meta-row .num {
  background: var(--accent);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.chapter-hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(72px, 12vw, 220px);
  line-height: 0.82;
  letter-spacing: -0.04em;
  margin: 0 0 48px 0;
}
.chapter-hero .promise {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 32px);
  margin: 0 0 24px 0;
  max-width: none;
  white-space: nowrap;
  color: var(--accent);
  line-height: 1.3;
}
@media (max-width: 700px) { .chapter-hero .promise { white-space: normal; } }
.chapter-hero .character-tag {
  display: block;
  font-size: 17px;
  line-height: 1.45;
  color: #fff;
  margin: 0;
  max-width: none;
}
.chapter-hero .character-tag strong { font-weight: 700; }

/* Chapter sub-nav (scroll-spy) */
.chapter-subnav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
}
.subnav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 clamp(28px, 6vw, 96px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.subnav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.subnav-links a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease;
}
.subnav-links a:hover { background: var(--paper); color: var(--ink); }
.subnav-links a.active { background: var(--ink); color: var(--bg); }

.chapter-actions-bar {
  display: flex;
  gap: 6px;
}

/* Chapter body sections */
.chapter-body {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 clamp(28px, 6vw, 96px);
}
.chapter-section {
  padding: 96px 0;
  border-bottom: 1px solid var(--rule);
}
.chapter-section:last-child { border-bottom: none; }
.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 28px;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 28px;
}
.section-label::before {
  content: none;
}

/* Story */
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: none;
}
.story-grid p {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
}
.story-grid p:first-child::first-letter {
  font: inherit;
  float: none;
  margin: 0;
  color: inherit;
}
.pull-quote {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 4.5vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
  padding: 24px 0;
  margin: 64px 0;
  max-width: none;
}

/* Stats inside chapter */
.chapter-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 56px 0 0;
}
.chapter-stats .stat {
  background: var(--paper);
  border: 1px solid var(--primary);
  border-radius: var(--r-md);
  padding: 32px 28px;
}
.chapter-stats .stat .big {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--primary);
  margin: 0 0 12px 0;
  display: block;
}
.chapter-stats .stat .label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}
@media (max-width: 800px) { .chapter-stats { grid-template-columns: 1fr; } }

/* Questions */
.questions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: q;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.questions-list li {
  position: relative;
  padding: 28px 28px 28px 28px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.4;
  counter-increment: q;
  font-weight: 400;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.questions-list li:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.questions-list li::before {
  content: none;
}
.questions-list .journal-input {
  display: none;
  margin-top: 18px;
  width: 100%;
  border: none;
  border-top: 1px dashed var(--rule);
  padding: 16px 0 0;
  font-family: var(--sans);
  font-size: 14px;
  background: transparent;
  color: var(--ink);
  resize: vertical;
  min-height: 80px;
  font-style: normal;
  outline: none;
}
.questions-list li[data-open="true"] .journal-input { display: block; }
@media (max-width: 800px) { .questions-list { grid-template-columns: 1fr; } }

/* Actions */
.actions-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.action-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 34px 36px;
  display: block;
}
.action-num {
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: 1;
  color: var(--primary);
}
.action-card h4 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 10px 0;
  color: var(--ink);
}
.action-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}
.action-rest { margin-top: 12px; }
.action-rest p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}
.action-toggle {
  margin-top: 14px;
  background: none; border: none; padding: 0;
  font-family: var(--sans); font-weight: 700; font-size: 14px;
  color: var(--accent-deep); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.action-toggle:hover { color: var(--ink); }
@media (max-width: 800px) { .actions-list { grid-template-columns: 1fr; } }

/* Resources */
.resources-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.resource {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease;
  position: relative;
}
.resource:hover { background: var(--bg-deep); border-color: var(--ink); }
.resource-text { flex: 1; }
.resource .name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.resource .badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  background: var(--ink);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 999px;
}
.resource .note { font-size: 13px; color: var(--ink-soft); line-height: 1.45; }
.resource-actions { display: flex; gap: 6px; align-items: center; }
.bookmark-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--rule);
  cursor: pointer;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.bookmark-btn:hover { background: var(--bg-deep); color: var(--ink); }
.bookmark-btn[data-saved="true"] { background: var(--primary); color: var(--paper); border-color: var(--primary); }
@media (max-width: 800px) { .resources-list { grid-template-columns: 1fr; } }

/* Chapter prev/next nav */
.chapter-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 80px clamp(28px, 6vw, 96px);
  background: var(--bg-deep);
}
.chapter-nav a {
  text-decoration: none;
  color: var(--ink);
  display: block;
  padding: 32px;
  background: var(--paper);
  border-radius: var(--r-lg);
  border: 1px solid var(--rule);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.chapter-nav a:hover { transform: translateY(-2px); border-color: var(--ink); }
.chapter-nav .label {
  font-size: 20px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}
.chapter-nav h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 0 0 6px 0;
}
.chapter-nav p { margin: 0; font-size: 18px; color: var(--primary); font-family: var(--serif); font-style: normal; }
.chapter-nav .next { text-align: right; }
@media (max-width: 700px) { .chapter-nav { grid-template-columns: 1fr; } .chapter-nav .next { text-align: left; } }

/* ===== Quiz page ===== */
.quiz-shell {
  min-height: calc(100vh - 70px);
  background: var(--ink);
  color: var(--paper);
  padding: 130px clamp(28px, 6vw, 96px) 60px;
  position: relative;
  overflow: hidden;
}
.quiz-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 0%, var(--primary) 0, transparent 40%),
    radial-gradient(circle at 0% 100%, var(--plum) 0, transparent 50%);
  opacity: 0.3;
  pointer-events: none;
}
.quiz-inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.quiz-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 48px;
}
.quiz-progress span {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
}
.quiz-progress span.done { background: var(--accent); }
.quiz-question {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 12px 0;
}
.quiz-question em { font-family: var(--serif); font-style: normal; font-weight: 300; color: var(--accent); }
.quiz-sub { font-family: var(--serif); font-style: normal; font-size: 22px; line-height: 1.4; opacity: 0.9; margin: 0 0 40px 0; }
.quiz-options { display: grid; grid-template-columns: 1fr; gap: 12px; }
.quiz-option {
  text-align: left;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-md);
  padding: 22px 28px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--paper);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.quiz-option:hover { background: rgba(255,255,255,0.12); transform: translateX(4px); border-color: var(--accent); }
.quiz-option.selected { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.quiz-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
  align-items: center;
}
.quiz-link {
  background: none;
  border: none;
  color: var(--paper);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.7;
  text-decoration: underline;
}
.quiz-link:hover { opacity: 1; }

.quiz-result {
  display: none;
}
.quiz-result.active { display: block; }
.quiz-result h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 24px 0;
}
.quiz-result h2 em { font-family: var(--serif); font-style: normal; font-weight: 300; color: var(--accent); }
.quiz-result p { font-family: var(--serif); font-size: 22px; line-height: 1.5; margin: 0 0 32px 0; opacity: 0.92; }
.quiz-recommendation {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: 36px;
  margin-bottom: 18px;
  display: flex;
  gap: 28px;
  align-items: center;
}
.quiz-recommendation img { width: 140px; height: 180px; object-fit: cover; border-radius: var(--r-md); }
.quiz-recommendation .rec-eyebrow { font-size: 22px; letter-spacing: 0.02em; text-transform: none; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.quiz-recommendation h3 { font-family: var(--display); font-weight: 800; font-size: 32px; margin: 0 0 8px 0; }
.quiz-recommendation p { font-family: var(--serif); font-style: normal; font-size: 18px; line-height: 1.4; color: var(--ink-soft); margin: 0 0 16px 0; }

/* ===== Bookmarks page ===== */
.simple-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 140px 0 72px;
}
.simple-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(28px, 6vw, 64px);
}
.simple-hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 16px 0;
  color: var(--paper);
}
.simple-hero .lead {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
  max-width: none;
  margin: 0;
  font-weight: 400;
}
.simple-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px clamp(28px, 6vw, 64px) 80px;
}
.simple-page h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 16px 0;
}
.simple-page h1 em { font-family: var(--serif); font-style: normal; font-weight: 300; color: var(--primary); }
.simple-page > p.lead {
  font-family: var(--serif);
  font-style: normal;
  font-size: 24px;
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: none;
  margin: 0 0 56px 0;
}

/* Resource finder filter chips */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 28px;
  align-items: center;
}
.filter-chip {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.filter-chip:hover { background: var(--paper); }
.filter-chip.active { background: var(--ink); color: var(--bg); }
.filter-search {
  margin-left: auto;
  flex: 1;
  min-width: 220px;
  max-width: 360px;
  border: 1.5px solid var(--ink);
  background: transparent;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
}

.empty-state {
  padding: 80px 32px;
  text-align: center;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-style: normal;
  font-size: 22px;
}

/* Toast for share/copy actions */
.toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(150%);
  background: var(--ink);
  color: var(--paper);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  z-index: 200;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* Tweaks panel */
.tweaks-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  border: none;
  cursor: pointer;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.tweaks-fab:hover { background: var(--primary); }
.tweaks-panel {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 280px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  display: none;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h5 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: none;
  margin: 0 0 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tweaks-panel h5 button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink);
}
.palette-options { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.palette-option {
  border: 2px solid var(--rule);
  border-radius: var(--r-md);
  padding: 12px;
  cursor: pointer;
  background: transparent;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  color: var(--ink);
}
.palette-option .swatches { display: flex; gap: 2px; }
.palette-option .swatches span { width: 14px; height: 22px; }
.palette-option.active { border-color: var(--ink); }

/* Patterned divider */
.kente-strip {
  height: 14px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--primary) 0 30px,
      var(--accent) 30px 50px,
      var(--leaf) 50px 80px,
      var(--paper) 80px 92px,
      var(--plum) 92px 130px
    );
}
.kente-strip.thin { height: 6px; }

/* Print resources / share-friendly */
@media (max-width: 1080px) {
  .nav { gap: 16px; }
  .nav a { font-size: 13px; }
  .brand-name { font-size: 26px; }
  .brand-by { font-size: 15px; }
  .brand-bt-logo { height: 50px; }
}
/* ---------- Mobile nav ---------- */
.nav-toggle {
  display: none;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 10px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  color: #fff;
}
.nav-toggle svg { display: block; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 12px; right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
    z-index: 60;
  }
  .site-header.nav-open .nav { display: flex; }
  .nav a {
    font-size: 16px;
    padding: 14px 16px;
    border-radius: 8px;
    color: #fff;
  }
  .nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
  .nav a.active { background: rgba(255,255,255,0.10); }
  .nav a.active::after { display: none; }
  .site-header { position: absolute; }
}
@media (max-width: 600px) {
  .hero-credit { display: none; }
  .hero-words span { gap: 12px; }
  .brand-name { font-size: 24px; }
  .brand-by { font-size: 14px; }
  .brand-bt-logo { height: 43px; }
}

/* utility */
.center-narrow { max-width: 720px; margin: 0 auto; }
.spacer-lg { height: 80px; }

/* Footer inclusion tagline */
.footer-inclusion {
  font-family: var(--serif);
  font-style: normal;
  font-size: 17px;
  color: var(--paper);
  opacity: 0.75;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 28px 0 24px;
  margin-bottom: 8px;
  max-width: none;
}

/* ===== Chapter testimonial (From our conversations) ===== */
.chapter-testimonial {
  background: var(--bg);
  padding: clamp(80px, 12vw, 160px) 0;
  border-bottom: 1px solid var(--rule);
}
.testimonial-inner {
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  padding: 0 clamp(28px, 6vw, 96px);
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.testimonial-label {
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.testimonial-label::before {
  content: ""; display: inline-block;
  width: 28px; height: 2px;
  background: var(--primary);
  vertical-align: middle;
  margin-right: 14px; margin-bottom: 4px;
}
.testimonial-quote {
  position: relative;
  margin: 0;
  padding: 0;
}
.testimonial-mark {
  display: block;
  position: static;
  height: 0.55em;
  font-family: var(--display);
  font-size: clamp(72px, 10vw, 128px);
  font-weight: 500;
  line-height: 1;
  color: var(--primary);
  user-select: none;
}
.testimonial-quote p {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 24px 0;
  text-wrap: balance;
}
.testimonial-quote cite {
  font-style: normal;
  font-size: 26px;
  letter-spacing: 0.04em;
  font-weight: 500;
  color: var(--primary);
  display: block;
}
.testimonial-counterpoint { opacity: 0.86; }
.testimonial-counterpoint .testimonial-mark { color: var(--ink-soft); }
.testimonial-counterpoint p { font-size: clamp(22px, 2.8vw, 36px); }

/* No special em treatment in display headings — keep the whole sentence consistent. */
h1 em, h2 em, h3 em, h4 em, h5 em, h6 em,
.hero-title em, .section-head h2 em, .letter-inner h2 em,
.cta-card h3 em, .quiz-question em, .quiz-result h2 em,
.simple-page h1 em, .rf-hero h1 em, .pc-card h2 em,
.rf-section-head h2 em, .rf-group-head h3 em, .rf-crisis-head h2 em,
.chapter-hero h1 em, .quiz-recommendation h3 em,
.card-title-overlay h3 em, .footer-bigword em {
  font: inherit;
  font-style: normal;
  color: inherit;
}


/* ============================================================
   Build 6 — Conversation scripts deck
   ============================================================ */
.chapter-scripts { background: var(--bg); padding-top: 96px; padding-bottom: 96px; }
.scripts-intro {
  font-family: var(--serif); font-style: normal;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--ink-soft);
  max-width: none;
  margin: 0 0 40px 0;
}
.scripts-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}
.script-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 28px 30px 24px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
}
.script-card header { display: flex; align-items: baseline; gap: 14px; }
.script-card .script-num {
  display: none;
}
.script-card h4 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(20px, 2vw, 24px); line-height: 1.15;
  letter-spacing: -0.01em; margin: 0; color: var(--ink);
}
.script-card blockquote {
  margin: 0; padding: 0; position: relative;
  font-family: var(--serif); font-style: normal;
  font-size: clamp(19px, 2.1vw, 22px); line-height: 1.4;
  color: var(--ink);
}
.script-card .script-mark {
  font-family: var(--display); font-weight: 800;
  font-style: normal;
  font-size: 56px; line-height: 0.6;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}
.script-card .script-copy {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.01em;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  border: none; cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.script-card .script-copy:hover { background: var(--accent); color: var(--ink); transform: translateY(-1px); }

/* ============================================================
   Build 5 — Chapter takeaway (PDF, share, QR)
   ============================================================ */
.chapter-takeaway {
  background: var(--ink); color: var(--paper);
  padding: clamp(56px, 8vw, 96px) clamp(28px, 6vw, 96px);
  margin-top: 0;
}
.chapter-takeaway .section-label { color: rgba(255,255,255,0.7); }
.chapter-takeaway .section-label::before { background: var(--accent); }
.takeaway-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto;
  gap: clamp(28px, 5vw, 64px); align-items: end;
}
.takeaway-buttons { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.takeaway-buttons .btn, .takeaway-buttons .qr-toggle { min-width: 240px; justify-content: center; }
@media (max-width: 900px) { .takeaway-inner { grid-template-columns: 1fr; align-items: stretch; } }
.takeaway-text h3 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(32px, 4vw, 48px); line-height: 0.98;
  letter-spacing: -0.02em; margin: 0 0 12px 0;
}
.takeaway-text p {
  font-family: var(--serif); font-style: normal;
  font-size: clamp(18px, 2vw, 22px);
  color: rgba(255,255,255,0.78); margin: 0; max-width: none;
}
.takeaway-buttons .btn-ghost { color: var(--paper); border-color: rgba(255,255,255,0.4); }
.takeaway-buttons .btn-ghost:hover { background: rgba(255,255,255,0.08); }
.takeaway-qr { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.qr-toggle {
  background: transparent; border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--paper); padding: 14px 22px; border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px; letter-spacing: 0.02em; text-transform: none;
  font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
}
.qr-toggle:hover { background: rgba(255,255,255,0.1); }
.qr-anchor {
  background: var(--paper); padding: 14px; border-radius: 8px;
  display: none; flex-direction: column; align-items: center; gap: 10px;
  width: max-content;
}
.qr-anchor[data-open="true"] { display: flex; }
.qr-anchor canvas { display: block; }
.qr-dl {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.02em;
  text-transform: none; font-weight: 700;
  color: var(--ink); text-decoration: none;
}

/* ============================================================
   Build 4 — Homepage check-in, streak, nudge, progress
   ============================================================ */
.checkin {
  padding: 96px clamp(28px, 6vw, 96px) 80px;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--rule);
}
.checkin-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
}
.checkin-main { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 32px); min-width: 0; }
.checkin-media { overflow: hidden; border-radius: 4px; }
.checkin-media img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 340px; }
@media (max-width: 880px) { .checkin-inner { grid-template-columns: 1fr; } .checkin-media { display: none; } }
.checkin h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(40px, 5vw, 64px); line-height: 0.98;
  letter-spacing: -0.025em; margin: 0 0 16px 0;
  white-space: nowrap;
}
@media (max-width: 880px) { .checkin h2 { white-space: normal; } }
.checkin .lede {
  font-family: var(--serif); font-style: normal;
  font-size: clamp(20px, 2.1vw, 22px); line-height: 1.4;
  color: var(--ink-soft); margin: 0 0 24px 0; max-width: none;
}
.checkin .privacy {
  font-size: 17px; font-family: var(--serif); color: var(--ink-soft);
  letter-spacing: 0; margin: 18px 0 0; max-width: none; line-height: 1.5;
}
.checkin-card {
  background: var(--paper); border: 1px solid var(--rule);
  padding: clamp(28px, 4vw, 44px);
}
.checkin-row {
  display: flex; gap: 16px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
}
.checkin-row:last-child { border-bottom: none; }
.checkin-row .num {
  font-family: var(--display); font-weight: 800;
  font-size: 12px; letter-spacing: 0.02em; color: var(--ink-soft);
  width: 28px; flex-shrink: 0;
}
.checkin-row .label-block { flex: 1; }
.checkin-row .label-block .title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(20px, 2.2vw, 24px); letter-spacing: -0.01em;
  margin: 0;
}
.checkin-row .label-block .note {
  font-family: var(--serif); font-style: normal;
  font-size: 15px; color: var(--ink-soft); margin: 2px 0 0;
}
.checkin-row .go {
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: 0.01em;
  padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  border: none; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.checkin-row .go:hover { background: var(--accent); color: var(--ink); }
.checkin-textarea {
  width: 100%; min-height: 92px; margin-top: 12px;
  background: var(--bg); border: 1px solid var(--rule);
  font-family: var(--serif); font-style: normal; font-size: 17px;
  color: var(--ink); padding: 14px 16px; resize: vertical;
  line-height: 1.5;
}
.checkin-textarea:focus { outline: none; border-color: var(--ink); }
.checkin-card .go, .checkin-card #ci-status { white-space: nowrap; }
.checkin-recent {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  margin-top: 16px; font-size: 13px; color: var(--ink-soft);
}
.checkin-recent .chip {
  background: var(--bg); padding: 4px 12px; border-radius: 999px;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.02em;
  text-transform: none; font-weight: 700; color: var(--ink);
  border: 1px solid var(--rule);
}

/* Streak chip */
.streak-chip {
  position: absolute; top: 28px; right: 28px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--paper); padding: 10px 16px; border-radius: 999px;
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em;
  z-index: 5;
}
.streak-chip .flame { font-size: 16px; line-height: 1; }
.streak-chip .num { font-family: var(--display); font-weight: 800; font-size: 14px; }
.streak-chip[hidden] { display: none; }
.streak-chip .hide-btn {
  background: none; border: none; color: rgba(255,255,255,0.7);
  cursor: pointer; font-size: 15px; line-height: 1; margin-left: 6px; padding: 0;
}
.streak-chip .hide-btn:hover { color: var(--paper); }

/* Weekly nudge */
.nudge {
  padding: 96px clamp(28px, 6vw, 96px) 80px;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.nudge-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
@media (max-width: 880px) { .nudge-inner { grid-template-columns: 1fr; } }
.nudge h3 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1;
  letter-spacing: -0.02em; margin: 0 0 12px 0;
}
.nudge p {
  font-family: var(--serif); font-style: normal;
  font-size: 17px; color: var(--ink-soft); margin: 0;
  max-width: none; line-height: 1.45;
}
.nudge-form {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch;
}
.nudge-form .channel {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.01em;
  background: var(--paper); border: 1.5px solid var(--rule);
  color: var(--ink); padding: 14px 18px; cursor: pointer;
  border-radius: 999px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nudge-form .channel:hover { border-color: var(--ink); }
.nudge-form .channel[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nudge-form .nudge-input {
  flex: 1; min-width: 220px;
  font-family: var(--sans); font-size: 15px;
  padding: 14px 18px; border-radius: 999px;
  border: 1.5px solid var(--rule); background: var(--paper); color: var(--ink);
}
.nudge-form .nudge-input:focus { outline: none; border-color: var(--ink); }
.nudge-form .nudge-submit {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.01em;
  padding: 14px 22px; border-radius: 999px;
  background: var(--ink); color: var(--paper); border: none; cursor: pointer;
}
.nudge-form .nudge-submit:hover { background: var(--accent); color: var(--ink); }
.nudge-status {
  font-family: var(--serif); font-style: normal; font-size: 15px;
  color: var(--ink-soft); margin: 12px 0 0;
}

/* Chapter progress — segmented */
.progress-strip {
  display: block;
  margin: 0 0 36px 0;
  font-family: var(--sans);
}
.progress-strip .progress-top {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 12px;
}
.progress-strip .count {
  font-size: 15px; font-weight: 600; letter-spacing: 0;
  text-transform: none; color: var(--ink);
}
.progress-strip .pct {
  font-family: var(--display); font-weight: 800;
  font-size: 18px; letter-spacing: -0.01em; color: var(--accent-deep);
}
.progress-strip .progress-segs {
  display: flex; gap: 7px;
}
.progress-strip .progress-segs .seg {
  flex: 1; height: 10px; border-radius: 999px;
  background: var(--rule);
  transition: background 0.5s ease, transform 0.5s ease;
}
.progress-strip .progress-segs .seg.on {
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
}
.progress-strip .progress-steps {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-top: 14px; padding: 12px 16px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 12px;
  text-decoration: none; color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.progress-strip .progress-steps:hover { border-color: var(--ink); transform: translateY(-1px); }
.progress-strip .progress-steps strong { font-family: var(--display); font-weight: 800; }
.progress-strip .progress-steps .go {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: var(--accent-deep);
}
.progress-strip .progress-steps .go svg { transition: transform 0.15s ease; }
.progress-strip .progress-steps:hover .go svg { transform: translateX(3px); }

/* Brotherhood chapter: Find your circle CTA */
.chapter-circle-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 880px; margin: 0 auto 8px;
  padding: 32px clamp(24px, 4vw, 44px);
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-lg); text-decoration: none;
  position: relative; overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.chapter-circle-cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 100% 0%, rgba(200,155,60,0.26) 0%, transparent 46%);
}
.chapter-circle-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.chapter-circle-cta .cc-text { position: relative; }
.chapter-circle-cta .cc-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: #fff; margin-bottom: 10px; }
.chapter-circle-cta h3 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3vw, 38px); line-height: 1; letter-spacing: -0.02em; margin: 0 0 10px; }
.chapter-circle-cta p { font-size: 15.5px; line-height: 1.5; color: rgba(255,255,255,0.82); margin: 0; max-width: none; }
.chapter-circle-cta .cc-arrow {
  position: relative; flex-shrink: 0;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease;
}
.chapter-circle-cta:hover .cc-arrow { transform: translateX(4px); }
@media (max-width: 600px) {
  .chapter-circle-cta { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* Circle page: ensure card anchors never show the UA underline */
.ci-path, .ci-group { text-decoration: none; color: var(--ink); }
.ci-path h2, .ci-path p, .ci-path .k, .ci-path .jump,
.ci-group h3, .ci-group p { text-decoration: none; }

/* Tools: Energy Mapping (light tools for low-energy days, deeper for planning days) */
.energy-bar {
  max-width: 1320px; margin: 0 auto 18px; padding: 0 clamp(28px, 6vw, 96px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
}
.energy-bar .energy-q { font-family: var(--sans); font-weight: 600; font-size: clamp(18px, 1.6vw, 22px); color: #fff; }
.energy-toggle { display: inline-flex; gap: 6px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; padding: 4px; max-width: 100%; }
@media (max-width: 700px) {
  .energy-bar { align-items: stretch; }
  .energy-toggle { display: flex; flex-direction: column; border-radius: 18px; width: 100%; }
  .energy-toggle button { width: 100%; text-align: center; padding: 12px 16px; white-space: normal; }
}
.energy-toggle button {
  font-family: var(--sans); font-weight: 700; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: 0.01em;
  color: #fff; background: none; border: none; border-radius: 999px;
  padding: 9px 16px; cursor: pointer; transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.energy-toggle button.on { background: var(--accent); color: var(--ink); }
.energy-note {
  max-width: 1320px; margin: 0 auto 26px; padding: 0 clamp(28px, 6vw, 96px);
  color: rgba(255,255,255,0.72); font-size: 14.5px; line-height: 1.5; max-width: 1320px;
}
.tools-page .tile-energy {
  font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: 0.02em;
  color: #fff; background: rgba(255,255,255,0.18); border-radius: 999px;
  padding: 5px 11px; display: inline-block; margin-top: 14px;
}
