/* ==========================================================================
   Base: reset, typography, containers, sections
   Same structure as zOneStopShop.com so the sites behave the same way.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

p, ul, ol, dl, blockquote, figure { 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(--blue); text-decoration-thickness: 1px; text-underline-offset: .14em; }
a:hover { text-decoration-color: var(--green-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

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

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  max-width: 62ch;
}
.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(--green);
  color: var(--ink);
  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--blue {
  background: var(--blue);
  color: var(--slate-light);
}
.section--blue h1, .section--blue h2, .section--blue h3, .section--blue h4 { color: var(--paper); }
.section--blue strong { color: var(--paper); }
.section--blue a:not(.btn) { color: var(--paper); }
.section--blue :focus-visible { outline-color: var(--green); }

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