/* ============================================================
   Simplifae — Typography tokens
   Inter for all UI. Monospace for source references & codes
   (PPT §10.1, PCAP · p.46, CPV 45223100, NIF/NIPC, expedientes).
   Type is calm and scannable: bold ONLY the one thing that matters.
   ============================================================ */
:root {
  /* ── Families ──────────────────────────────────────── */
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Courier New', Menlo, Consolas, monospace;

  /* ── Weights ───────────────────────────────────────── */
  --fw-regular: 400;    /* @kind font */
  --fw-medium:  500;    /* @kind font */
  --fw-semibold: 600;   /* @kind font */
  --fw-bold:    700;    /* @kind font */
  --fw-extrabold: 800;  /* @kind font */
  --fw-black:   900;    /* @kind font */

  /* ── Type scale (desktop-first enterprise app) ─────── */
  --fs-display:  28px;  /* page hero numbers / big stats */
  --fs-h1:       22px;  /* screen title */
  --fs-h2:       18px;  /* section title */
  --fs-h3:       16px;  /* card title */
  --fs-body:     14px;  /* default body / controls */
  --fs-sm:       13px;  /* dense body */
  --fs-meta:     12px;  /* metadata, tags */
  --fs-micro:    11px;  /* pills, eyebrows */
  --fs-mono:     12px;  /* source references */

  /* ── Line heights ──────────────────────────────────── */
  --lh-tight:    1.2;   /* @kind font */
  --lh-snug:     1.35;  /* @kind font */
  --lh-normal:   1.5;   /* @kind font */
  --lh-relaxed:  1.65;  /* @kind font */

  /* ── Letter spacing ────────────────────────────────── */
  --ls-tight:   -0.01em;  /* @kind font */
  --ls-normal:   0;        /* @kind font */
  --ls-eyebrow:  0.06em;   /* @kind font */

  /* ── Semantic aliases ──────────────────────────────── */
  --text-title:    var(--fw-extrabold) var(--fs-h1)/var(--lh-tight) var(--font-ui);
  --text-section:  var(--fw-bold) var(--fs-h2)/var(--lh-snug) var(--font-ui);
  --text-card:     var(--fw-extrabold) var(--fs-h3)/var(--lh-snug) var(--font-ui);
  --text-default:  var(--fw-regular) var(--fs-body)/var(--lh-normal) var(--font-ui);
  --source-ref:    var(--fw-medium) var(--fs-mono)/var(--lh-normal) var(--font-mono);
}

/* Uppercase eyebrow / section-label helper */
.sf-eyebrow {
  font: var(--fw-bold) var(--fs-micro)/1.4 var(--font-ui);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--text-muted);
}

/* Source reference — the inline, muted, monospace citation that
   sits at the END of the claim it backs. Never decorative. */
.sf-source {
  font: var(--source-ref);
  color: var(--text-muted);
  white-space: nowrap;
}
