/* Typografie-Tokens — Schriftfamilien, Sizes, Weights, Line-Heights.
   Self-hosted Inter (Sans) + Source Serif 4 (Headings + Reading-Frame). */

:root {
  /* === Font-Family === */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Source Serif 4', 'Iowan Old Style', 'Palatino', Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; /* Code, Logs, Tokens, Pfade */

  /* === Font-Size-Scale ===
     Editorial-Skala, 4-Stufen modular: xs/sm/base/md (UI),
     lg/xl/2xl (Sub-Headings, Section-Heading, Card-Title).
     micro/mini/reading: semantische Sub-Stufen für dichte UI bzw. Long-Form. */
  --font-size-micro:   10px;  /* Micro-Labels, Token-Stats, Caption */
  --font-size-mini:    12px;  /* Compact-UI zwischen xs und sm */
  --font-size-xs:      11px;
  --font-size-sm:      13px;
  --font-size-base:    14px;
  --font-size-md:      15px;
  --font-size-reading: 16px;  /* Long-Form-Reading (Editor, Page-View) */
  --font-size-lg:      18px;  /* Sub-Heading, Section-Heading-Stufe 2 */
  --font-size-xl:      22px;  /* Card-Title-Standard */
  --font-size-2xl:     26px;  /* Hero/Card-Title-prominent */
  --font-size-3xl:     30px;  /* Hero-Stat-Value */
  --font-size-4xl:     38px;  /* Hero-Stat-XL (Bookoverview-Hero) */

  /* === Em-Scale (relativ zum Parent) ===
     Reading-Frame Headings + Inline-Markup (sup/sub/code) + Dialog-Sub-Text.
     Em statt px: skaliert mit Parent-Font, bleibt korrekt bei Reader-Zoom. */
  --font-em-70:  0.7em;
  --font-em-75:  0.75em;
  --font-em-80:  0.8em;
  --font-em-85:  0.85em;
  --font-em-90:  0.9em;   /* h6, inline code */
  --font-em-95:  0.95em;  /* h5 */
  --font-em-100: 1em;
  --font-em-105: 1.05em;  /* h4 */
  --font-em-110: 1.1em;
  --font-em-115: 1.15em;  /* h3 */
  --font-em-130: 1.3em;   /* h2 */
  --font-em-140: 1.4em;
  --font-em-150: 1.5em;   /* h1 */

  /* === Icon-Glyph-Grösse ===
     Feste Rendergrösse des Sprite-Icons (<svg.icon>, sonst 1em) in Icon-only
     Action-/Close-Buttons. Entkoppelt die Icon-Grösse von der font-size des
     Buttons, damit alle Icon-only-Buttons dasselbe Glyph zeigen — desktop wie
     mobile (wo der Tap-Target auf 40px wächst, das Glyph aber gleich bleiben
     soll). SSoT-Konsument: components/icon-btn.css. */
  --icon-size-action: 16px;

  /* === Font-Weight === */
  --fw-regular:    400;
  --fw-medium:     500;
  --fw-semibold:   600;
  --fw-bold:       700;

  /* === Line-Height === */
  --lh-tight:      1.2;   /* Headings, Buttons, kompakte UI */
  --lh-base:       1.45;  /* Standard-Text */
  --lh-relaxed:    1.6;   /* Reading-Frame, längere Absätze */

  /* === Letter-Spacing für Versalien (text-transform: uppercase) ===
     caps = Labels, Badges, Tabellenköpfe; caps-wide = Abschnitts-Titel
     (.card-section-title) und Gruppen-Köpfe, die als Überschrift stehen. */
  --tracking-caps:      0.04em;
  --tracking-caps-wide: 0.06em;

  /* === Compact-Controls (Buttons + Dropdowns nebeneinander gleich hoch) === */
  --size-compact-font-size: 12px;
  --size-compact-padding: 4px 10px;
  /* Gemeinsame Zeilenhöhe: Knopf, Combobox-Trigger und Filter-Suchfeld sind
     nur dann gleich hoch, wenn auch die line-height übereinstimmt — der Knopf
     erbte sonst `normal` (~1.2) und lag 2px unter dem Feld daneben. */
  --size-compact-line-height: 1.4;

  /* === Default-Controlgrösse (button, combobox-trigger, input, select) === */
  --size-default-padding-y: 8px;
  /* Feldrand + Innenabstand: Oberkante der Textzeile in Input/Combobox/Radio —
     Beschriftungen und Lesewerte neben einem Feld setzen hier an. */
  --size-default-text-inset: calc(var(--size-default-padding-y) + var(--space-1));
}
