/* What It's Really Like to Be Young, Black, and an African Tech Startup Entrepreneur (in Africa)
   Concept: stark and honest. Black type on white, a stamped title, one red for the money running out. */

html.theme-founder {
  --fg: #0a0a0a;
  --muted: #5c5c5c;
  --accent: #d7261e;
  --rule: #e4e4e4;
  --surface: #f5f5f5;
  --selection: #ffd5d2;
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}

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

.theme-founder .hero-meta { color: var(--muted); }
.yb-title {
  font-family: var(--font-display);
  font-weight: 800; font-stretch: 112%;
  font-size: clamp(2.2rem, 1rem + 4.4vw, 4.6rem);
  line-height: 1; letter-spacing: -0.03em;
  max-width: none;
}
.yb-line {
  display: block;
  animation: rise 0.7s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: calc(0.15s + var(--i) * 0.18s);
}
.yb-line:first-child, .yb-aside { font-weight: 500; font-stretch: 100%; font-size: 0.55em; letter-spacing: -0.01em; }
.yb-line:first-child { margin-bottom: 0.35em; }
.yb-aside { margin-top: 0.35em; color: var(--muted); }
.yb-stamps { font-size: 1.6em; font-stretch: 125%; line-height: 0.95; margin: 0.08em 0; }
.yb-stamps b {
  display: inline-block; font-weight: 900; padding: 0 0.12em 0.04em;
  background: var(--fg); color: #fff;
  animation: stamp 0.45s cubic-bezier(.3,1.6,.5,1) both;
  animation-delay: calc(0.5s + var(--i) * 0.28s);
}
.yb-stamps b + b { margin-left: 0.05em; }
@keyframes rise { from { opacity: 0; translate: 0 0.4em; } }
@keyframes stamp { from { opacity: 0; scale: 1.5; rotate: -4deg; } }

.yb-balance {
  display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1.4rem; align-items: center;
  margin: 2.4rem 0 0; padding: 1.2rem 0; border-block: 2px solid var(--fg);
}
.yb-amount {
  margin: 0; font: 800 clamp(2.4rem, 6vw, 4rem)/1 var(--font-display); font-stretch: 75%;
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em; min-width: 5.2ch;
  color: var(--accent);
}
.yb-balance.is-running .yb-amount { color: var(--fg); }
.yb-caption { margin: 0; display: grid; gap: 0.2rem; font: 0.95rem/1.4 var(--font-ui); color: var(--muted); }
.yb-balance .yb-to { color: var(--fg); font-weight: 600; }
.yb-balance.is-running .yb-to { opacity: 0.25; }
.yb-balance .yb-to, .yb-balance .yb-amount { transition: opacity 0.4s, color 0.4s; }

.theme-founder .hero-dek { font-style: normal; color: var(--fg); margin-top: 1.6rem; }

/* ---------------------------------------------------------------- prose */

.theme-founder .prose > p:first-child { font-family: var(--font-display); font-weight: 600; font-size: 1.35em; line-height: 1.3; letter-spacing: -0.015em; }
.theme-founder .prose strong { background: linear-gradient(transparent 62%, #ffd5d2 62%); }

.theme-founder .prose figcaption { font-family: var(--font-ui); text-align: left; margin-left: 0; }
