/* ============================================================
   CRO CUSTOMS — BASE / ELEMENT LAYER
   Lightweight resets + default element styling that expresses
   the brand voice. Scoped to be safe inside design-system
   cards and consuming pages alike.
   ============================================================ */

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

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

body {
  margin: 0;
  font: var(--type-body);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Headings = display voice, uppercase, stamped */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.4em;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  color: var(--text-strong);
  line-height: var(--leading-snug);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}
h1 { font-size: var(--text-4xl); line-height: var(--leading-tight); font-weight: var(--weight-bold); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-md); }
h6 { font-size: var(--text-sm); letter-spacing: var(--tracking-wider); }

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

a {
  color: var(--text-accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color var(--dur-fast) var(--ease-standard);
}
a:hover { color: var(--accent-hover); }

strong, b { font-weight: var(--weight-bold); color: var(--text-strong); }

code, kbd, samp { font-family: var(--font-mono); font-size: 0.9em; }

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

::selection { background: var(--brass-300); color: var(--ink-900); }

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

img { max-width: 100%; display: block; }
