/* ============================================================
   AXIOM RESEARCH GROUP — Base / Reset / Typography
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--navy-deep);
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}

a:hover {
  color: var(--navy-mid);
}

ul, ol {
  list-style-position: inside;
}

/* Headings */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}

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

h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.2;
  font-size: var(--fs-h4);
  color: var(--ink);
}

p {
  margin-bottom: var(--sp-4);
}

p:last-child {
  margin-bottom: 0;
}

strong { font-weight: 600; }

.small {
  font-size: var(--fs-small);
  color: var(--slate);
}

/* Eyebrow label */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-1);
  margin-bottom: var(--sp-3);
}

.eyebrow--navy { color: var(--navy-mid); }

/* Mono code label */
.code-label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Focus visibility (WCAG) */
:focus-visible {
  outline: 3px solid var(--navy-mid);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -48px;
  left: var(--sp-4);
  z-index: 1001;
  background: var(--navy-deep);
  color: var(--white);
  padding: var(--sp-3) var(--sp-5);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  transition: top var(--dur-fast) ease;
}

.skip-link:focus {
  top: 0;
  color: var(--white);
}

/* Visually hidden (screen readers 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;
}

/* Selection */
::selection {
  background: var(--gold-2);
  color: var(--navy-deep);
}

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