/* ==========================================================================
   Base — reset, typography classes, layout helpers
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keeps layout from shifting when the mobile menu locks scrolling */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--color-bg-white);
  color: var(--color-text-body);
  font-family: var(--font-body);
  font-size: var(--fs-body-16);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote {
  margin: 0;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 3px;
}

/* ---- Typography (one class per Figma text style) ----------------------- */

.headline,
.h1,
.h2,
.h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-text-heading);
  line-height: normal;
  overflow-wrap: break-word;
}

.headline { font-size: var(--fs-headline); line-height: 1.2; }
.h1       { font-size: var(--fs-h1); }
.h2       { font-size: var(--fs-h2); }
.h3       { font-size: var(--fs-h3); }

.body-20,
.body-16 {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-body);
}

.body-20 { font-size: var(--fs-body-20); }
.body-16 { font-size: var(--fs-body-16); }

/* ---- Layout ------------------------------------------------------------ */

/* Full-width band; matches "web-section" frames in Figma */
.section {
  padding-block: var(--section-pad-y);
}

.section--tan        { background: var(--color-bg-tan); }
.section--light-blue { background: var(--color-bg-light-blue); }
.section--blue       { background: var(--color-bg-blue-brighter); }

/* 1000px centered column; matches "content-container" frames in Figma */
.container {
  width: 100%;
  max-width: calc(var(--content-width) + var(--gutter) * 2);
  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;
}

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