/* ============================================================
   BASE / RESET
   ------------------------------------------------------------
   Global resets, base typography and small reusable utility
   classes shared across the whole site.
============================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height); /* keeps anchored sections clear of the fixed nav */
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--lh-tight);
  font-weight: 600;
  color: var(--text-primary);
}

/* Respect users who have asked their OS for reduced motion */
@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;
  }
}

/* Visible keyboard focus - accessibility baseline */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- layout utilities -------------------------------------- */

.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 3rem);
}

.container--narrow {
  max-width: var(--content-narrow);
}

.section {
  padding-block: var(--section-padding-y);
}

.section--alt {
  background: var(--bg-section-alt);
}

/* small uppercase label used above section headings, e.g. "01 — RESEARCH" */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.section-heading {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-4);
  max-width: 40ch;
}

.section-intro {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 62ch;
  margin-top: -1.2rem;
  margin-bottom: var(--space-4);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
