/* TYPOGRAPHY — the content scale.
   Interface type (labels, controls, meta) lives on the size ladder in
   ramp.css. This file holds the CONTENT scale: display, editorial, data.

   TWO REGISTERS, DELIBERATELY DIFFERENT — the one place this system parts
   from its donor, and it parts on purpose:

     · INTERFACE type is pinned in px with line-heights on the 4px grid,
       because it is single-line and must align to control heights.
     · EDITORIAL type keeps RATIO leading (1.55–1.6), because a reading
       surface's leading has to scale with its own measure. Snapping prose
       leading to a control grid is a category error.

   Display type sits with the editorial register: fluid clamps, ratio leading,
   because a headline is read, not aligned. */
:root{
  --weight-regular:400; --weight-medium:500; --weight-semibold:600;
  --weight-bold:700;    --weight-black:800;

  --tracking-display:-0.015em;  /* Halogen at heading size and above */
  --tracking-wordmark:-0.01em;
  --tracking-label:0.06em;      /* mono uppercase: chips, rails, buttons */
  --tracking-eyebrow:0.1em;     /* mono uppercase: eyebrows only, the widest */
  --tracking-data:0.02em;       /* mono values — tracked least, read most */

  --measure-reading:680px;      /* prose column ceiling. Also .prose/.lede cap */
  --measure-narrow:560px;       /* roadmap and caption copy */

  /* ---- display — fluid, ratio leading. Never inside a panel or card. ---- */
  --type-display-xl: clamp(2.6rem, 1.8rem + 3.4vw, 4.4rem);  --line-display-xl:1.08;
  --type-display-lg: clamp(2.1rem, 1.6rem + 2vw,   3rem);    --line-display-lg:1.08;
  --type-display-md: clamp(1.6rem, 1.3rem + 1.2vw, 2.15rem); --line-display-md:1.12;

  /* ---- heading — fixed, for cards, rows and panels ---- */
  --type-title:   1.5rem;  --line-title:1.2;
  --type-heading: 1.25rem; --line-heading:1.25;
  --type-subhead: 1.1rem;  --line-subhead:1.3;

  /* ---- editorial — ratio leading, the reading surfaces ---- */
  --type-lede:    1.15rem; --line-lede:1.55;
  --type-body:    1rem;    --line-body:1.6;
  --type-body-sm: 0.95rem; --line-body-sm:1.6;

  /* ---- data & label — mono. Every value a reader might copy. ---- */
  --type-data:       0.82rem; --line-data:1.5;
  --type-data-sm:    0.78rem; --line-data-sm:1.5;
  --type-label:      0.72rem; --line-label:1.4;
  --type-label-micro:0.68rem; --line-label-micro:1.4;

  /* ---- deprecated · the flat pre-ladder scale. Aliases only. ---- */
  --text-xs:  0.75rem;
  --text-sm:  0.875rem;
  --text-base:1rem;
  --text-lg:  var(--type-lede);
  --text-xl:  1.4rem;
  --text-2xl: var(--type-display-md);
  --text-3xl: var(--type-display-lg);
  --text-4xl: var(--type-display-xl);
}
