/* ==========================================================================
   git-trace forge — Design Tokens: Typography
   Identità editoriale contemporanea + leggibilità tecnica
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Familjen+Grotesk:ital,wght@0,500;0,600;0,700;1,500&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Font Families */
  --font-display: 'Familjen Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:    'JetBrains Mono', "Cascadia Code", "Consolas", monospace;

  /* Font Weights */
  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semibold: 600;
  --weight-bold:    700;

  /* Typographic Scale (Fluid clamp: mobile -> desktop) */
  --text-display: clamp(2.25rem, 5vw + 1rem, 3.75rem);   /* Titolo Hero (36px -> 60px) */
  --text-h1:      clamp(1.75rem, 3vw + 0.8rem, 2.5rem);   /* Titolo Sezione (28px -> 40px) */
  --text-h2:      clamp(1.35rem, 2vw + 0.5rem, 1.75rem);  /* Sottotitoli / Card grandi (22px -> 28px) */
  --text-h3:      1.15rem;                                /* Intestazioni card (18.4px) */
  --text-body:    1.00rem;                                /* Testo base (16px) */
  --text-sm:      0.875rem;                               /* Testo ausiliario (14px) */
  --text-xs:      0.75rem;                                /* Badge / micro-copy (12px) */

  /* Line Heights */
  --leading-tight:  1.12;
  --leading-snug:   1.30;
  --leading-normal: 1.55;
  --leading-loose:  1.75;

  /* Tracking / Letter Spacing */
  --tracking-tight: -0.025em; /* Per display headers */
  --tracking-snug:  -0.012em; /* Per h1, h2 */
  --tracking-normal: 0em;
  --tracking-wide:   0.05em;  /* Per badge ATTIVO/DISATTIVO in uppercase */
}
