/* ==========================================================================
   Base — reset, global typography, layout primitives
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-body);
  background: var(--color-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* .site-header is position:fixed (always pinned) so every page reserves
   space for it here. Pages with a full-bleed hero that the nav should
   float over (transparent variant) cancel this out with a negative
   margin-top on their hero section — see css/pages/landing.css. */
body {
  padding-top: var(--nav-height);
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  font-weight: 700;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-12) 0;
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-12);
  text-align: center;
}

.section-heading h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  color: var(--color-navy);
}

.section-heading-underline {
  width: 96px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}

.visually-hidden {
  position: absolute;
  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: 12px;
  top: -48px;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  z-index: 200;
  transition: top var(--duration-fast) var(--ease-standard);
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--color-navy-cta);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--space-4);
  }
}
