/* =========================================================================
   BASE — reset, typography, layout helpers
   ========================================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

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

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
p a:not([class]),
.prose a:not([class]) { text-decoration: underline; text-underline-offset: 0.2em; }

button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--dna-yellow);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--dna-blue);
}

::selection { background: var(--dna-yellow); color: var(--ink); }

/* ---- Typography ------------------------------------------------------- */

.display,
h1, h2 {
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--ink);
}

h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

.h-4xl { font-size: var(--fs-4xl); }
.h-3xl { font-size: var(--fs-3xl); }
.h-2xl { font-size: var(--fs-2xl); }
.h-xl  { font-size: var(--fs-xl); }
.h-lg  { font-size: var(--fs-lg); }

.lead {
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--text);
  max-width: 60ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dna-blue);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}
.eyebrow--plain::before { display: none; }

.text-blue   { color: var(--dna-blue); }
.text-yellow { color: var(--dna-yellow); }
.text-muted  { color: var(--muted); }

/* ---- Layout ------------------------------------------------------------ */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--paper { background: var(--paper-2); }
.section--blue { background: var(--dna-blue); color: #fff; }
.section--blue h2,
.section--blue h3 { color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--dna-yellow);
  color: var(--ink);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ---- Scroll reveal (progressive — content is visible without JS) ------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
