/* ============================================================
   BASE — element defaults, applied on top of tokens.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

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

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  text-transform: uppercase;
  margin: 0 0 0.4em;
  color: var(--text);
}
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

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

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

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

::selection { background: var(--accent); color: var(--text-on-accent); }

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

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

/* Eyebrow / kicker label used across the brand */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--accent-text);
}

/* Engineered hairline grid background — signature surface texture */
.grid-surface {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--bg-grid) var(--bw-hair), transparent var(--bw-hair)),
    linear-gradient(90deg, var(--bg-grid) var(--bw-hair), transparent var(--bw-hair));
  background-size: 32px 32px;
}
