/* ==========================================================================
   Dear Black Boy — site styles
   Palette: ink #0C0B09 · panel #16130F · gold #F2B23E · cream #F5F1E8
   Type: Anton (display) · Inter (body) · Caveat (scholar notes)
   ========================================================================== */

:root {
  --ink: #0C0B09;
  --panel: #16130F;
  --gold: #F2B23E;
  --gold-light: #FFD27A;
  --cream: #F5F1E8;

  --cream-90: rgba(245, 241, 232, 0.9);
  --cream-75: rgba(245, 241, 232, 0.75);
  --cream-65: rgba(245, 241, 232, 0.65);
  --cream-50: rgba(245, 241, 232, 0.5);
  --cream-40: rgba(245, 241, 232, 0.4);
  --hairline: rgba(245, 241, 232, 0.14);
  --gold-hairline: rgba(242, 178, 62, 0.4);

  --ink-85: rgba(12, 11, 9, 0.85);
  --ink-70: rgba(12, 11, 9, 0.7);
  --ink-60: rgba(12, 11, 9, 0.6);

  --display: Anton, "Arial Narrow", sans-serif;
  --body: Inter, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --hand: Caveat, "Comic Sans MS", cursive;

  --shell: 1200px;
  --gutter: 20px;
  --section-y: clamp(56px, 8vw, 96px);
  --band-y: clamp(48px, 7vw, 82px);
}

/* --- Reset & base ------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--gold); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gold-light); }

::selection { background: var(--gold); color: var(--ink); }

h1, h2, h3 { font-family: var(--display); letter-spacing: 0.02em; text-transform: uppercase; margin: 0; }
p { margin: 0; text-wrap: pretty; }

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

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

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }

.section { max-width: var(--shell); margin: 0 auto; padding: var(--section-y) var(--gutter) 0; }

.band { margin-top: var(--section-y); }
.band--panel { background: var(--panel); }
.band--gold { background: var(--gold); color: var(--ink); }
.band__inner {
  max-width: var(--shell); margin: 0 auto;
  padding: var(--band-y) var(--gutter);
}

.grid { display: grid; }
.grid--split { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(36px, 5vw, 64px); align-items: center; }
.grid--cards-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.grid--stats { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 36px; }
.grid--quotes { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.grid--notes { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 30px; }
.grid--gains { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 36px 30px; max-width: 1000px; }
.grid--packages { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; align-items: start; }
.grid--programs { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 26px; }

/* --- Section headings --------------------------------------------------- */

.eyebrow {
  display: block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold);
}
.eyebrow--muted { color: var(--cream-50); }

.rule-label { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.rule-label::before { content: ""; width: 34px; height: 2px; background: var(--gold); flex: none; }
.rule-label span {
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold);
}

.section-title { font-size: clamp(32px, 4vw, 52px); line-height: 1.02; color: var(--gold); }
.section-title--cream { color: var(--cream); font-size: clamp(28px, 3.2vw, 40px); }
.section-lede {
  font-size: 17px; line-height: 1.6; color: var(--cream-65);
  max-width: 64ch; margin-top: 14px;
}
.section-note { font-size: 15px; color: var(--cream-50); margin-top: 8px; }
.mb-40 { margin-bottom: 40px; }
.mb-44 { margin-bottom: 44px; }

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

.btn {
  display: inline-block;
  font-size: 14px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; padding: 17px 30px; border-radius: 2px;
  border: 1px solid transparent; cursor: pointer;
  font-family: var(--body); transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--gold); color: var(--ink); }
.btn--primary:hover { background: var(--gold-light); color: var(--ink); }
.btn--ghost { border-color: rgba(245, 241, 232, 0.28); color: var(--cream); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--outline-gold {
  border-color: var(--gold); color: var(--gold);
  font-size: 13px; letter-spacing: 0.08em; padding: 15px 26px; white-space: nowrap;
}
.btn--outline-gold:hover { background: var(--gold); color: var(--ink); }
.btn--sm { font-size: 13px; padding: 13px 20px; white-space: nowrap; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 11, 9, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(242, 178, 62, 0.18);
}
.site-header__inner {
  max-width: var(--shell); margin: 0 auto;
  padding: 12px var(--gutter); min-height: 76px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 48px; width: 48px; object-fit: contain; }
.brand span {
  font-family: var(--display); font-size: 19px;
  letter-spacing: 0.04em; color: var(--cream); line-height: 1;
}
.nav {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: clamp(14px, 2vw, 30px); justify-content: flex-end;
}
.nav__link {
  font-size: 13px; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--cream);
}
.nav__link:hover { color: var(--gold); }
.nav__link--gold { color: var(--gold); }

section[id] { scroll-margin-top: 90px; }

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

.hero {
  max-width: var(--shell); margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) var(--gutter) var(--section-y);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(36px, 5vw, 64px); align-items: center;
}
.hero__title {
  font-size: clamp(52px, 6.4vw, 92px); line-height: 0.94;
  letter-spacing: 0.005em; color: var(--gold);
}
.hero__claim {
  font-family: var(--display); font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.18; text-transform: uppercase; color: var(--cream);
  max-width: 20ch; margin-top: 18px;
}
.hero__body {
  font-size: 19px; line-height: 1.65; color: var(--cream-75);
  max-width: 52ch; margin-top: 26px;
}
.hero__figure { position: relative; }
.hero__figure::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid rgba(242, 178, 62, 0.35);
}
.hero__figure img {
  position: relative; width: 100%; display: block;
  aspect-ratio: 4 / 3; object-fit: cover;
}

/* --- Press strip ------------------------------------------------------- */

.press-strip {
  border-top: 1px solid rgba(245, 241, 232, 0.1);
  border-bottom: 1px solid rgba(245, 241, 232, 0.1);
}
.press-strip__inner {
  max-width: var(--shell); margin: 0 auto; padding: 20px var(--gutter);
  display: flex; align-items: center; gap: 34px; flex-wrap: wrap;
}
.press-strip__label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(245, 241, 232, 0.45);
}
.press-strip__logos { display: flex; gap: 34px; flex-wrap: wrap; }
.press-strip__logos span {
  font-family: var(--display); font-size: 20px;
  letter-spacing: 0.06em; color: rgba(245, 241, 232, 0.72);
}

/* --- Numbered pillar cards --------------------------------------------- */

.pillar { background: var(--panel); border-top: 3px solid var(--gold); padding: 34px 30px 38px; }
.pillar__num { font-family: var(--display); font-size: 34px; line-height: 1; color: rgba(242, 178, 62, 0.35); }
.pillar__title { font-size: 23px; letter-spacing: 0.03em; color: var(--cream); margin: 14px 0 12px; }
.pillar__body { font-size: 16px; line-height: 1.6; color: var(--cream-65); }

/* --- Feature panels (press / book / donate) ---------------------------- */

.feature {
  background: var(--panel);
  padding: clamp(28px, 3.5vw, 44px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(30px, 4vw, 52px); align-items: center;
}
.feature--book { padding: clamp(30px, 4vw, 56px) clamp(24px, 4vw, 52px); gap: clamp(36px, 5vw, 64px); }
.feature__img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.feature__title {
  font-size: clamp(26px, 3.2vw, 42px); line-height: 1.05;
  color: var(--cream); margin: 14px 0 18px;
}
.feature__body { font-size: 17px; line-height: 1.68; color: rgba(245, 241, 232, 0.7); max-width: 48ch; }

.book-cover {
  width: 100%; max-width: min(330px, 70vw); display: block;
  justify-self: center; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.book__title { font-size: clamp(30px, 3.6vw, 46px); color: var(--cream); margin: 16px 0 6px; }
.book__meta { font-size: 14px; font-style: italic; color: var(--cream-50); margin-bottom: 22px; }
.book__body { font-size: 17px; line-height: 1.68; color: var(--cream-75); max-width: 54ch; margin-bottom: 18px; }
.book__kicker { font-size: 15px; line-height: 1.6; color: var(--gold); margin-bottom: 26px; }

/* --- Stats ------------------------------------------------------------- */

.stat { border-top: 1px solid rgba(242, 178, 62, 0.5); padding-top: 18px; }
.stat__num { font-family: var(--display); font-size: clamp(46px, 5.4vw, 68px); line-height: 1; color: var(--cream); }
.stat__num span { color: var(--gold); }
.stat__label { font-family: var(--body); font-size: 16px; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--cream); margin: 16px 0 6px; }
.stat__body { font-size: 14px; line-height: 1.55; color: var(--cream-50); }

/* --- Educator quote cards ---------------------------------------------- */

.quote {
  background: var(--panel); padding: 34px 30px; margin: 0;
  display: flex; flex-direction: column; gap: 22px;
}
.quote__mark { font-family: var(--display); font-size: 44px; line-height: 0.7; color: var(--gold); }
.quote__text { margin: 0; font-size: 16px; line-height: 1.68; color: rgba(245, 241, 232, 0.8); flex: 1; }
.quote__by { display: flex; align-items: center; gap: 14px; }
.quote__by img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote__name { font-size: 14px; font-weight: 700; color: var(--cream); }
.quote__role { font-size: 13px; color: var(--gold); }

/* --- Gallery ----------------------------------------------------------- */

.gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  grid-auto-rows: 200px; gap: 16px;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery img.is-tall { grid-row: span 2; }
.gallery img.is-lower { object-position: center 30%; }

/* --- Scholar notes (loose-leaf) ---------------------------------------- */

.note {
  position: relative; margin: 0;
  background: var(--cream);
  background-image: repeating-linear-gradient(
    180deg, transparent 0, transparent 33px,
    rgba(12, 11, 9, 0.1) 33px, rgba(12, 11, 9, 0.1) 34px
  );
  padding: 34px 28px 28px 62px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.note:nth-child(1) { transform: rotate(-1.1deg); }
.note:nth-child(2) { transform: rotate(0.7deg); }
.note:nth-child(3) { transform: rotate(-0.5deg); }
.note::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 44px;
  width: 1px; background: rgba(196, 62, 52, 0.45);
}
.note__holes {
  position: absolute; top: 0; bottom: 0; left: 0; width: 34px;
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-evenly; padding: 52px 0;
}
.note__holes i {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--ink); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}
.note__text {
  margin: 0; font-family: var(--hand); font-size: 25px;
  line-height: 34px; color: #1B1712;
}
.note__by { font-family: var(--hand); font-size: 23px; line-height: 34px; color: #8A5A0B; margin-top: 8px; }

/* --- Mentor tags ------------------------------------------------------- */

.tags { display: flex; flex-wrap: wrap; gap: 12px; }
.tag {
  font-family: var(--display); font-size: clamp(16px, 1.6vw, 20px);
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--cream); border: 1px solid rgba(245, 241, 232, 0.24);
  padding: 11px 18px;
}
.tag--fill { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.tag--more { border: 0; padding: 11px 4px; color: rgba(245, 241, 232, 0.45); }

/* --- Gains ------------------------------------------------------------- */

.gain { border-left: 2px solid var(--gold); padding: 4px 0 4px 20px; }
.gain__title { font-size: 19px; letter-spacing: 0.03em; color: var(--cream); margin-bottom: 10px; }
.gain__body { font-size: 15px; line-height: 1.58; color: rgba(245, 241, 232, 0.62); }

/* --- Packages ---------------------------------------------------------- */

.package { background: var(--panel); padding: 38px 32px 42px; position: relative; }
.package--featured { background: var(--gold); }
.package__flag {
  position: absolute; top: 0; right: 0;
  background: var(--ink); color: var(--gold);
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 8px 14px;
}
.package__title { font-size: 20px; letter-spacing: 0.07em; color: var(--gold); margin-bottom: 22px; }
.package--featured .package__title { color: var(--ink); }
.package__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.package__list li { font-size: 16px; color: var(--cream-75); }
.package--featured .package__list li { color: var(--ink-85); }
.packages-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap; margin-top: 26px;
}
.packages-foot p { font-size: 14px; line-height: 1.6; color: var(--cream-50); max-width: 64ch; }

/* --- Other programs ---------------------------------------------------- */

.program { background: var(--panel); display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.program img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.program__body { padding: 34px 30px; }
.program__title { font-size: 23px; letter-spacing: 0.03em; color: var(--gold); margin-bottom: 6px; }
.program__meta { font-size: 13px; font-style: italic; color: var(--cream-50); margin-bottom: 16px; }
.program__text { font-size: 15px; line-height: 1.6; color: rgba(245, 241, 232, 0.68); }

/* --- Founder ----------------------------------------------------------- */

.founder__inner { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(36px, 5vw, 60px); }
.founder__portrait { width: 100%; max-width: 420px; display: block; aspect-ratio: 3 / 4; object-fit: cover; }
.founder__title { font-size: clamp(32px, 4vw, 52px); color: var(--cream); margin: 14px 0 24px; }
.founder__body { font-size: 17px; line-height: 1.68; color: var(--cream-75); max-width: 58ch; margin-bottom: 16px; }
.founder__pull {
  font-family: var(--display); font-size: clamp(19px, 2.1vw, 26px);
  line-height: 1.35; letter-spacing: 0.02em; color: var(--gold);
  border-left: 3px solid var(--gold); padding-left: 22px;
  max-width: 40ch; margin-top: 28px;
}

/* --- FAQ --------------------------------------------------------------- */

.faq { border-top: 1px solid var(--hairline); }
.faq__item { border-bottom: 1px solid var(--hairline); }
.faq__q {
  width: 100%; background: none; border: 0; padding: 26px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  cursor: pointer; text-align: left; color: var(--cream);
  font-family: var(--body); font-size: 19px; font-weight: 600;
  transition: color .15s ease;
}
.faq__q:hover { color: var(--gold); }
.faq__sign { font-family: var(--display); font-size: 24px; color: var(--gold); line-height: 1; flex: none; }
.faq__a { display: none; }
.faq__item.is-open .faq__a { display: block; }
.faq__a p { font-size: 17px; line-height: 1.65; color: rgba(245, 241, 232, 0.68); padding-bottom: 26px; max-width: 70ch; }

/* --- Donate ------------------------------------------------------------ */

.donate {
  border: 1px solid var(--gold-hairline);
  padding: clamp(30px, 4vw, 56px) clamp(24px, 4vw, 52px);
}
.donate__grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(36px, 5vw, 60px); }
.donate__title { font-size: clamp(32px, 4vw, 52px); line-height: 1.02; color: var(--cream); margin: 14px 0 20px; }
.donate__body { font-size: 17px; line-height: 1.68; color: rgba(245, 241, 232, 0.7); max-width: 44ch; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; }
.tier {
  cursor: pointer; text-align: left; font-family: var(--body);
  padding: 20px 18px; border-radius: 2px;
  background: var(--panel); color: var(--cream);
  border: 1px solid rgba(245, 241, 232, 0.16);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.tier[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.tier__amount { font-family: var(--display); font-size: 26px; line-height: 1; display: block; }
.tier__label { font-size: 12px; line-height: 1.4; display: block; margin-top: 9px; opacity: 0.72; }
.donate__actions { display: flex; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.donate__actions .btn { flex: 1; min-width: 200px; text-align: center; padding: 18px 26px; }
.donate__fineprint { font-size: 13px; line-height: 1.55; color: rgba(245, 241, 232, 0.42); margin-top: 16px; }

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

.contact__title { font-size: clamp(38px, 4.8vw, 64px); line-height: 1; color: var(--ink); }
.contact__body { font-size: 18px; line-height: 1.6; color: var(--ink-70); max-width: 46ch; margin-top: 22px; }
.contact__note { font-size: 15px; line-height: 1.6; color: var(--ink-60); margin-top: 22px; }
.social { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.social a {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 700; color: rgba(12, 11, 9, 0.78);
}
.social a:hover { color: var(--ink); }

.form {
  background: var(--ink);
  padding: clamp(26px, 3.5vw, 38px) clamp(22px, 3vw, 34px) 42px;
  display: flex; flex-direction: column; gap: 18px;
}
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
}
.field input, .field select, .field textarea {
  background: var(--panel); border: 1px solid rgba(245, 241, 232, 0.18);
  color: var(--cream); font-family: var(--body); font-size: 15px;
  padding: 13px 14px; border-radius: 2px; outline: none;
  transition: border-color .15s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.form .btn { margin-top: 6px; }

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

.site-footer { background: var(--ink); border-top: 1px solid rgba(242, 178, 62, 0.2); }
.site-footer__inner {
  max-width: var(--shell); margin: 0 auto; padding: 40px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.site-footer__brand { display: flex; align-items: center; gap: 14px; }
.site-footer__brand img { height: 44px; width: 44px; object-fit: contain; }
.site-footer__name { font-family: var(--display); font-size: 16px; letter-spacing: 0.05em; color: var(--cream); }
.site-footer__place { font-size: 13px; color: rgba(245, 241, 232, 0.45); margin-top: 3px; }
.site-footer__right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.icon-link {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid rgba(245, 241, 232, 0.25);
  color: rgba(245, 241, 232, 0.7);
  transition: border-color .15s ease, color .15s ease;
}
.icon-link:hover { border-color: var(--gold); color: var(--gold); }
.site-footer__copy { font-size: 13px; color: var(--cream-40); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .note { transform: none !important; }
}
