/* ============================================================
   BioTrends EM — BASE / RESET & TYPOGRAPHIC DEFAULTS
   Applies the type system to real elements so any consumer page
   that links styles.css gets brand-correct defaults for free.
   ============================================================ */

*, *::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);
  font-weight: var(--fw-regular);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: var(--fw-semibold); }

p { margin: 0 0 1em; text-wrap: pretty; }

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

strong, b { font-weight: var(--fw-semibold); }

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

small { font-size: var(--fs-caption); }

::selection { background: var(--bt-blue-200); color: var(--bt-ink-900); }

/* ---- Reusable brand text roles (optional helper classes) ---- */
.bt-eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--bt-primary);
}
.bt-display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: var(--fw-extra);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--text-strong);
}
.bt-lead {
  font-family: var(--font-body);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
}
.bt-mono { font-family: var(--font-mono); }

/* Forma pill per il Button. Doppia classe di proposito: components.css e'
   caricato DOPO i token, e .bt-btn--md/-sm/-lg portano il loro border-radius;
   a parita' di specificita' vincerebbero per ordine. */
.bt-btn.bt-btn--pill { border-radius: var(--radius-pill); }

.bt-gradient-text {
  background: var(--bt-gradient-signature-h);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
