/* Cortex Collective Agency — Base element styles
   Applies the brand defaults to raw HTML so any consumer page inherits the voice.
   Everything is Ivy Presto. Light for text, SemiBold for headings. */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  font-size: var(--text-body-sz);
  line-height: var(--leading-normal);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga" 1, "kern" 1;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  color: var(--text-strong);
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h1 { font-size: var(--text-h1); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); }
h2 { font-size: var(--text-h2); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); }
h3 { font-size: var(--text-h3); line-height: var(--leading-snug); letter-spacing: var(--tracking-snug); }
h4 { font-size: var(--text-h4); line-height: var(--leading-snug); }
h5 { font-size: var(--text-h5); line-height: var(--leading-snug); }

p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }

a { color: var(--text-accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.15em; }

strong { font-weight: var(--weight-display); }

small { font-size: var(--text-caption); color: var(--text-muted); }

hr {
  border: 0;
  border-top: var(--border-w) solid var(--border-hair);
  margin: var(--space-6) 0;
}

::selection { background: var(--cca-klein); color: #fff; }

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

/* Eyebrow label — the tracked-out kicker above headlines */
.cca-eyebrow {
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  font-size: var(--text-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-accent);
}

/* Two-tone headline helper: the quiet second half */
.cca-quiet { color: var(--text-muted); }
