/* ==========================================================================
   PowerLight — Typography tokens
   Three typefaces, three jobs:
     Display  → Saira Condensed · 700–800 · UPPERCASE · tight        (headlines)
     Body/UI  → Saira · 300–600 · sentence case                      (reading)
     Technical→ IBM Plex Mono · 400–500 · UPPERCASE · tracked        (labels/readouts)
   ========================================================================== */
:root {
  /* --- Families --- */
  --pl-font-display: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --pl-font-body: 'Saira', system-ui, sans-serif;
  --pl-font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* --- Weights --- */
  --pl-w-light: 300;     /* @kind font */
  --pl-w-regular: 400;   /* @kind font */
  --pl-w-medium: 500;    /* @kind font */
  --pl-w-semibold: 600;  /* @kind font */
  --pl-w-bold: 700;      /* @kind font */
  --pl-w-black: 800;     /* @kind font */

  /* --- Display scale (Saira Condensed, uppercase, line-height ~.9–1) --- */
  --pl-fs-display-xl: clamp(52px, 8.5vw, 108px); /* @kind font */
  --pl-fs-display: clamp(38px, 6vw, 72px);       /* @kind font */
  --pl-fs-h1: clamp(40px, 5.4vw, 64px);          /* @kind font */
  --pl-fs-h2: clamp(30px, 4.6vw, 52px);          /* @kind font */
  --pl-fs-h3: 22px;                              /* @kind font */
  --pl-fs-h4: 18px;                              /* @kind font */

  /* --- Body scale (Saira, sentence case) --- */
  --pl-fs-body-lg: clamp(18px, 1.7vw, 22px); /* @kind font */
  --pl-fs-body: 16px;    /* @kind font */
  --pl-fs-body-sm: 15px; /* @kind font */
  --pl-fs-body-xs: 14px; /* @kind font */

  /* --- Mono / technical scale (tracked, uppercase) --- */
  --pl-fs-mono: 13px;    /* @kind font */
  --pl-fs-mono-sm: 12px; /* @kind font */
  --pl-fs-mono-xs: 11px; /* @kind font */

  /* --- Line heights --- */
  --pl-lh-display: .92;  /* @kind font */
  --pl-lh-tight: 1;      /* @kind font */
  --pl-lh-heading: 1.15; /* @kind font */
  --pl-lh-body: 1.55;    /* @kind font */

  /* --- Letter-spacing --- */
  --pl-ls-display: -.015em;  /* @kind font */
  --pl-ls-tight: -.01em;     /* @kind font */
  --pl-ls-cta: .05em;        /* @kind font */
  --pl-ls-mono: .14em;       /* @kind font */
  --pl-ls-mono-wide: .2em;   /* @kind font */
  --pl-ls-mono-xwide: .32em; /* @kind font */
}
