/* ============================================================
   CBS: base element styles & a few brand utilities.
   Tokens come from the other imported files.
   ============================================================ */

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

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

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin: 0 0 1em; text-wrap: pretty; }

/* Code shows the characters as typed: no ligatures that turn => or -> into arrow glyphs. */
code, kbd, pre, samp { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }

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

:focus-visible {
  outline: var(--border-width-strong) solid var(--focus-ring);
  outline-offset: 2px;
}

/* ---- Brand utilities ---- */

.cbs-display {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: var(--fs-display-l);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  color: var(--text-strong);
}

.cbs-serif { font-family: var(--font-serif); }

.cbs-overline {
  font-size: var(--fs-overline);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Lagoon to Veilchen gradient text */
.cbs-gradient-text {
  background: var(--cbs-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Full brand gradient surface (e.g. footer bar, hero) */
.cbs-gradient-surface {
  background: var(--cbs-gradient) border-box;
  color: #fff;
}

/* The signature footer bar with white wordmark sits on this. */
