/* ==========================================================================
   Base — reset, document defaults, shared primitives
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-black);
  font: 400 var(--fs-body)/var(--lh-body) var(--ff-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: var(--ls-tight); }
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); line-height: 1.05; text-transform: uppercase; }
h3 { font-size: var(--fs-h3); line-height: 1.12; }
p  { margin: 0; text-wrap: pretty; }

a {
  color: var(--c-teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--c-red); }

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

button {
  margin: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input, select, textarea { font: inherit; color: inherit; }

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--c-teal);
  outline-offset: 2px;
}

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

.section { padding-block: var(--sp-20); }
.section--hairline { border-top: 1px solid var(--c-line); }
.section--sand { background: var(--c-sand); }
.section--white { background: var(--c-white); }

/* Utilities -------------------------------------------------------------- */
.u-center { text-align: center; }
.u-stack  { display: flex; flex-direction: column; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--sp-4); top: var(--sp-4);
  z-index: 100;
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-yellow);
  color: var(--c-black);
  font: 700 13px/1 var(--ff-sans);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Animation ------------------------------------------------------------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rise    { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes draw    { from { stroke-dashoffset: 1600; } to { stroke-dashoffset: 0; } }
@keyframes ticker  { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes jitter {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  25%      { transform: translate(1px, -2px) rotate(.6deg); }
  50%      { transform: translate(-1px, 1px) rotate(-.5deg); }
  75%      { transform: translate(2px, 1px) rotate(.4deg); }
}

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