:root {
  --color-primary: #18181B;
  --color-on-primary: #FFFFFF;
  --color-secondary: #3F3F46;
  --color-accent: #2563EB;
  --color-background: #FAFAFA;
  --color-foreground: #09090B;
  --color-muted: #E8ECF0;
  --color-border: #E4E4E7;
  --color-ring: #18181B;

  --font-heading: 'Archivo', system-ui, sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
}

h1, h2, h3 {
  font-family: var(--font-heading);
}

/* Visible focus rings for keyboard navigation — never removed, only restyled */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Scroll-reveal fade, implemented without a GSAP dependency.
   Visible by default — JS opts elements into the hidden starting state,
   so content never depends on JS/IntersectionObserver to become visible. */
.reveal {
  transition: opacity 350ms ease-out, transform 350ms ease-out;
}

.reveal.reveal-hidden {
  opacity: 0;
  transform: translateY(12px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.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;
}
