/* Reset + base typography + layout primitives. */

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

html { -webkit-text-size-adjust: 100%; tab-size: 4; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--body-weight-light);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  color: var(--color-offwhite);
  background: var(--color-navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
h2 { font-size: clamp(1.625rem, 1.4rem + 1.2vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem); }

p { margin: 0 0 1em; max-width: 60ch; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 150ms ease;
}

a:hover { text-decoration-color: var(--color-blue); }
a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

ul { padding-left: 1.1em; margin: 0 0 1em; }
li { margin: 0 0 0.35em; }
strong { font-weight: var(--body-weight-medium); }

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

.skip-link {
  position: absolute;
  left: -10000px;
  top: 0;
  background: var(--color-gold);
  color: var(--color-navy);
  padding: 0.5rem 0.75rem;
  font-weight: var(--body-weight-medium);
  text-decoration: none;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; z-index: 10; }

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

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
