/* ============================================================
   LGS Ellwangen 2026 — Base element styles & helpers
   Lightweight resets + brand defaults that read from tokens.
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--type-body-size);
  font-weight: var(--weight-regular);
  line-height: var(--type-body-leading);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  line-height: var(--leading-snug);
  margin: 0 0 var(--space-4);
}
h1 { font-size: var(--type-h1-size); font-weight: var(--type-h1-weight); letter-spacing: var(--tracking-tight); }
h2 { font-size: var(--type-h2-size); font-weight: var(--type-h2-weight); }
h3 { font-size: var(--type-h3-size); font-weight: var(--type-h3-weight); }

p { margin: 0 0 var(--space-4); }

a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-xs);
}

/* ---- Brand helper classes (mirror the manual's compact CSS) ---- */
.lgs-eyebrow {
  font-size: var(--type-eyebrow-size);
  font-weight: var(--type-eyebrow-weight);
  letter-spacing: var(--type-eyebrow-tracking);
  text-transform: uppercase;
  color: var(--brand);
}
.lgs-display {
  font-family: var(--font-display);
  font-size: var(--type-display-size);
  font-weight: var(--type-display-weight);
  line-height: var(--type-display-leading);
  letter-spacing: var(--type-display-tracking);
  color: var(--text-strong);
}
.lgs-lead {
  font-size: var(--type-lead-size);
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
}
.lgs-section-dark { background: var(--surface-dark); color: var(--text-on-dark); }
.lgs-accent { color: var(--accent); }
.lgs-link { color: var(--text-link); }
