/* ============================================================
   Muse Bio — Base layer
   Element resets, defaults, link styling, and the brand text
   utilities (eyebrow / display / hero / accent / stat) used
   across Muse Bio decks and documents.
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-tightest);
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}

/* Serif italic accent — the emphasis phrase inside a headline
   ("the symphony", "evolved to regenerate"). Drops the uppercase
   and restores Georgia italic sentence case; keeps any inline
   coral color. This is the signature Muse Bio headline move. */
h1 span, h2 span, h3 span, h4 span, h5 span, h6 span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: var(--fw-regular);
  text-transform: none;
  letter-spacing: var(--tracking-tight);
}

p { margin: 0 0 var(--space-2); text-wrap: pretty; }

/* Links — brand coral, darken on hover */
a { color: var(--text-accent); text-decoration: none; transition: color var(--dur-fast) var(--ease-standard); }
a:hover { color: var(--coral-700); text-decoration: underline; text-underline-offset: 2px; }

strong, b { font-weight: var(--fw-bold); }
small { font-size: var(--fs-small); }

code, kbd, samp, pre { font-family: var(--font-mono); font-size: 0.9em; }

hr { border: 0; border-top: var(--border-hairline) solid var(--border-default); margin: var(--space-4) 0; }

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

:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* ---------------- Brand text utilities ---------------- */

/* Eyebrow — uppercase mono kicker */
.eyebrow, .ds-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--space-2);
}

/* Hero — full takeover headline (grotesque, uppercase, tight) */
.hero, .ds-hero {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: var(--fw-black);
  line-height: 0.92;
  letter-spacing: var(--tracking-tightest);
  text-transform: uppercase;
  margin: 0;
}

/* Display — section-lead headline (grotesque, uppercase) */
.display, .ds-display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: var(--fw-black);
  line-height: 0.98;
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
  margin: 0;
}

/* Accent — coral emphasis span inside a headline */
.accent, .ds-accent { color: var(--text-accent); }

/* Serif accent — Georgia italic emphasis (“the symphony”, “for R&D”).
   Drops UPPERCASE, restores sentence case; pair with .accent for coral. */
.serif, .ds-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: var(--fw-regular);
  text-transform: none;
  letter-spacing: var(--tracking-normal);
}

/* Lede — oversized intro paragraph */
.lede, .ds-lede {
  font-size: var(--fs-lead);
  line-height: var(--lh-snug);
  color: var(--text-secondary);
}

/* Stat number — big display figure */
.stat-num, .ds-stat-num {
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  font-weight: var(--fw-black);
  line-height: 1;
  letter-spacing: var(--tracking-tightest);
  color: var(--text-primary);
}

/* Citation — small mono source line */
.citation, .ds-citation {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* Coral rule — short accent divider */
.rule-coral, .ds-rule-coral {
  border: 0;
  height: 3px;
  width: 64px;
  background: var(--coral-500);
  border-radius: var(--radius-pill);
  margin: var(--space-2) 0;
}
