/* ============================================================
   Base styles: reset, body defaults, typography primitives.
   ============================================================ */

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

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

body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ----- Typography classes ----- */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--fw-medium);
  line-height: var(--lh-snug);
  letter-spacing: -0.4px;
  color: var(--text-primary);
}

.text-display {
  font-size: var(--fs-display);
  font-weight: var(--fw-medium);
  letter-spacing: -1px;
  line-height: 1.05;
}

.text-h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-medium);
  letter-spacing: -0.6px;
  line-height: 1.1;
}

.text-h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-medium);
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.text-h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-medium);
  line-height: var(--lh-snug);
}

.text-body {
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
}

.text-sm {
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}

.text-xs {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.text-eyebrow {
  font-size: var(--fs-2xs);
  color: var(--text-muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: var(--fw-medium);
}

.text-eyebrow-orange {
  font-size: var(--fs-2xs);
  color: var(--color-orange);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: var(--fw-medium);
}

.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-orange { color: var(--color-orange); }
.text-teal { color: var(--color-teal-dark); }
.text-amber { color: var(--color-amber-dark); }
.text-on-dark { color: var(--text-on-dark); }

.text-mono {
  font-family: var(--font-mono);
}

/* ----- Visibility helpers ----- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- Selection ----- */
::selection {
  background: var(--color-orange);
  color: var(--text-on-dark);
}
