/* ===================================
   TYPOGRAFIE
   Ein Variable Font (IBM Plex Sans): Text in voller Breite,
   Display mit font-stretch 85 %. Achsen erlauben kinetische Typo.
   =================================== */

body {
  font-family: var(--font-text);
  font-size: var(--t-body);
  font-weight: 400;
  font-feature-settings: "kern", "liga";
}

/* Optische Kompensation: helle Schrift auf dunklem Grund minimal kräftiger */
[data-ground="dark"] {
  font-weight: 430;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-weight: 600;
  letter-spacing: var(--track-tight);
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

strong {
  font-weight: 600;
}

/* Abschnittstitel */
.section-title {
  font-size: var(--t-h2);
  line-height: 1.02;
  letter-spacing: var(--track-display);
  color: var(--ink);
}

.section-title--sm {
  font-size: var(--t-h3);
  line-height: 1.15;
}

.section-intro {
  margin-top: var(--s-5);
  max-width: 46ch;
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Kleines Label (sparsam: höchstens jede dritte Sektion) */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--accent-text);
}

.section-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background-color: currentColor;
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--ink);
}

.inline-link {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color var(--dur-fast) var(--ease-out);
}

.inline-link:hover {
  text-decoration-color: transparent;
}

/* Zahlen in Fakten, Jahren und Metadaten */
.fact__value,
.case__meta dd,
.milestone__year,
.history__year {
  font-variant-numeric: tabular-nums lining-nums;
}
