/* ==========================================================================
   BLG — Base / Reset / Typography
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; margin: 0; padding: 0; }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--gray-900);
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* Accessible focus ring */
:focus-visible {
  outline: 2px solid var(--cyan-data);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Eyebrow / data-readout label — signature typographic element */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-primary);
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--blue-primary);
}

.eyebrow--on-dark { color: var(--cyan-data); }
.eyebrow--on-dark::before { background: var(--cyan-data); }

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-lg);
}

.section-head h2 { margin-top: 0.75rem; }

.text-sub {
  color: var(--gray-700);
  font-size: 1.05rem;
  margin-top: 1.1rem;
}

.section {
  padding-block: var(--space-section);
  position: relative;
}

.section--gray { background: var(--gray-50); }
.section--dark {
  background: var(--blue-abyss);
  color: var(--gray-100);
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }

/* Screen-reader only */
.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;
}
