/* blue hour — base: reset, default type, role classes
   Reachable from styles.css so tokens above are assumed loaded. */

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

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

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

::selection { background: color-mix(in oklab, var(--purple) 45%, transparent); color: var(--ink); }

a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img, svg, video { display: block; max-width: 100%; }

/* ---- Type role utilities (mirror DESIGN.md §5.3) ---- */
.bh-hero {
  font-family: var(--font-display); font-weight: var(--weight-display);
  font-size: var(--fs-hero); line-height: var(--lh-hero); letter-spacing: var(--ls-hero);
  color: var(--ink); margin: 0; text-wrap: balance;
}
.bh-h2 {
  font-family: var(--font-display); font-weight: var(--weight-title);
  font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2);
  color: var(--ink); margin: 0; text-wrap: balance;
}
.bh-h3 {
  font-family: var(--font-display); font-weight: var(--weight-title);
  font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3);
  color: var(--ink); margin: 0;
}
.bh-tagline {
  font-family: var(--font-script); font-weight: 400;
  font-size: var(--fs-tagline); line-height: var(--lh-tagline); letter-spacing: var(--ls-tagline);
  color: var(--cyan); margin: 0;
}
.bh-eyebrow {
  font-family: var(--font-body); font-weight: var(--weight-medium);
  font-size: var(--fs-eyebrow); line-height: var(--lh-eyebrow); letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase; color: var(--eyebrow); margin: 0;
}
.bh-lede {
  font-family: var(--font-body); font-weight: var(--weight-body);
  font-size: var(--fs-lede); line-height: var(--lh-lede);
  color: var(--lede); margin: 0; text-wrap: pretty;
}
.bh-subtitle {
  font-family: var(--font-body); font-weight: var(--weight-medium);
  font-size: var(--fs-subtitle); line-height: var(--lh-subtitle);
  color: var(--muted); margin: 0;
}
.bh-body {
  font-family: var(--font-body); font-weight: var(--weight-body);
  font-size: var(--fs-body); line-height: var(--lh-body);
  color: var(--ink); margin: 0; text-wrap: pretty;
}
.bh-caption {
  font-family: var(--font-body); font-weight: var(--weight-body);
  font-size: var(--fs-caption); line-height: var(--lh-caption);
  color: var(--muted); margin: 0;
}

/* the gradient applied to text (statement words, accents) */
.bh-gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
