/* ==========================================================================
   Base: reset, typography, containers, sections
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--slate);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  font-stretch: var(--wdth-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0;
}
h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  font-stretch: var(--wdth-display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-head);
  font-stretch: var(--wdth-head);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h3 {
  font-size: var(--fs-h3);
  line-height: 1.2;
  font-weight: 700;
  font-stretch: var(--wdth-head);
}
h4 { font-size: var(--fs-base); font-weight: 700; }

p, ul, ol, blockquote, figure, table { margin: 0; }
p + p, p + ul, p + ol, ul + p, ol + p { margin-top: 1rem; }
ul, ol { padding-left: 1.2em; }
li + li { margin-top: .4rem; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: .14em; }
a:hover { text-decoration-color: var(--gold-ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

strong { color: var(--navy); font-weight: 700; }
small, .small { font-size: var(--fs-sm); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  max-width: 62ch;
}
.measure { max-width: 66ch; }
.muted { color: var(--mark); }

address { font-style: normal; }

/* Layout primitives ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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: 2000;
  padding: .6rem 1rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* Sections ------------------------------------------------------------ */
.section { padding-block: var(--section-y); }
.section--stock { background: var(--stock); }
.section--navy {
  background: var(--navy);
  color: var(--slate-light);
}
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: var(--paper); }
.section--navy strong { color: var(--paper); }
.section--navy a { color: var(--paper); }
.section--navy .muted { color: var(--slate-light); }
.section--tight { padding-block: clamp(2.25rem, 4vw, 3.5rem); }

.section__head { max-width: 70ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head .lead { margin-top: 1rem; }
.section__head .kicker + h2, .section__head .kicker + h1 { margin-top: .5rem; }

/* Kicker: a short sentence-case line that names what a section is about */
.kicker {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--mark);
}
.section--navy .kicker { color: var(--slate-light); }
