/* ==========================================================================
   Base: reset, typography, layout primitives, accessibility helpers
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--sand);
  color: var(--dark-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--deep-teal);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 800;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; }

a { color: var(--deep-teal); text-underline-offset: 0.18em; }
a:hover { color: var(--dark-text); }

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

:focus-visible { outline: var(--focus-ring); outline-offset: 3px; border-radius: 4px; }

/* Layout */
.container { width: 100%; max-width: var(--max-width); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 1.5rem; } }
.section { padding-block: var(--space-section); }
.section--sea { background: var(--sea-glass); }
.section--white { background: var(--white); }
.section--teal { background: var(--deep-teal); color: var(--white); }
.section--teal h2, .section--teal h3 { color: var(--white); }
.section-intro { max-width: 46rem; font-size: 1.1rem; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--deep-teal);
  margin-bottom: 0.75rem;
}
.eyebrow::before { content: ""; display: inline-block; width: 1.5rem; height: 4px; border-radius: 2px; background: var(--lime); vertical-align: middle; margin-right: 0.5rem; }

/* The hidden attribute must win over component display rules */
[hidden] { display: none !important; }

/* Accessibility helpers */
.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: 0.75rem; top: -4rem; z-index: 100;
  background: var(--white); color: var(--deep-teal); font-weight: 700;
  padding: 0.75rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 0.75rem; }

/* [VERIFY] markers: visible on purpose so nothing ships unreviewed */
.verify {
  background: #FFF3C4; color: var(--dark-text); border: 1px dashed #8A6D00;
  border-radius: 4px; padding: 0 0.3em; font-size: 0.9em; font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
