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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  font-synthesis: none;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { padding: 0; margin: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

h1, h2, h3, h4, h5, h6,
.h-display, .h0, .h1, .h2, .h3, .h4, .h5 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--ls-display);
  line-height: var(--lh-h3);
  margin: 0;
  color: inherit;
  font-feature-settings: "ss01", "ss02";
  font-variation-settings: "opsz" 36, "SOFT" 30;
}

h1, .h1 { font-size: var(--fs-h1); font-weight: 500; line-height: 1.05; letter-spacing: var(--ls-display-tight); font-variation-settings: "opsz" 96, "SOFT" 30; }
h2, .h2 { font-size: var(--fs-h2); font-weight: 500; line-height: var(--lh-h2); letter-spacing: var(--ls-display); font-variation-settings: "opsz" 72, "SOFT" 30; }
h3, .h3 { font-size: var(--fs-h3); font-weight: 500; line-height: var(--lh-h3); }
h4, .h4 { font-size: var(--fs-h4); font-weight: 500; line-height: 1.25; }
h5, .h5 { font-size: var(--fs-h5); font-weight: 500; }
h6      { font-size: var(--fs-h6); font-weight: 500; }
.h0     { font-size: var(--fs-h0); font-weight: 500; line-height: 1.02; letter-spacing: var(--ls-display-tight); font-variation-settings: "opsz" 144, "SOFT" 50; }

em, i { font-style: italic; font-feature-settings: "ss01"; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--muted);
  display: inline-block;
}
[data-theme="navy"] .eyebrow { color: var(--accent-light-2); }

.lede {
  font-size: var(--fs-lede);
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
  font-weight: 400;
}
[data-theme="navy"] .lede { color: rgba(255,255,255,0.78); }

.mono { font-family: var(--font-mono); letter-spacing: var(--ls-mono); text-transform: none; }
.tnum { font-variant-numeric: tabular-nums; }

::selection { background: var(--navy-primary); color: var(--white); }

.skip-link {
  position: absolute; left: -9999px; top: -9999px;
  padding: 10px 14px; background: var(--navy-primary); color: var(--white);
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: var(--ls-eyebrow);
  font-size: 0.75rem;
  z-index: 9999;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-2);
}

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

.no-js [data-reveal] { opacity: 1 !important; transform: none !important; }
