/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }

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

/* Base type */
html {
  font-size: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0;
  line-height: 1.1;
}

/* Per the handoff type scale, H1 and specific display-style headlines use
   the brand display font (Orbitron); H2/H3/H4 otherwise use the body font. */
h1 {
  font-family: var(--font-display);
}

h2, h3, h4 {
  font-family: var(--font-body);
}

.heading-display {
  font-family: var(--font-display);
}

/* Shared H2 sizes from the type scale (40px, 52px and 58px desktop) */
.h2-40 {
  font-size: 1.75rem;
}

@media (min-width: 900px) {
  .h2-40 {
    font-size: 2.5rem;
  }
}


.h2-52 {
  font-size: 2rem;
}

@media (min-width: 900px) {
  .h2-52 {
    font-size: 3.25rem;
  }
}

.h2-58 {
  font-size: 2.25rem;
}

@media (min-width: 900px) {
  .h2-58 {
    font-size: 3.625rem;
  }
}

p { color: var(--text); }

.text-accent {
  color: var(--blue);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 100;
  transition: top 200ms ease;
}
.skip-link:focus {
  top: 0.5rem;
}

/* Focus ring — per handoff: 2px solid #0096FF, 2px offset */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* <main tabindex="-1"> is only a programmatic focus target (skip link),
   not a control, so it gets no ring. */
main:focus {
  outline: none;
}

/* Layout */
.content-max {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 900px) {
  .content-max {
    padding-inline: 40px;
  }
}

/* Blueprint grid background — used on Home hero and each sub-page hero */
.grid-bg {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 100px 100px;
}

@media (max-width: 899px) {
  .grid-bg {
    background-size: 50px 50px;
  }
}

/* Visually hidden but still available to assistive tech */
.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;
}

/* Placeholder-page content spacing (pages not yet built, e.g. Home, 404) */
.section-placeholder {
  padding: 96px 0;
}
