/* ---------------------------------------------------------------
   Base — reset, typography, layout primitives
--------------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  font-size: var(--fs-16);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page > main {
  flex: 1 0 auto;
}

/* Section = full-bleed horizontal band. Inner .container centers content. */
.section {
  padding: var(--section-padding-y) 0;
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section--surface {
  background: var(--bg-surface);
}

.section--muted {
  background: var(--bg-page);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-padding-x);
}

/* Section header block: eyebrow label + title (+ optional lead) */
.section-heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-9);
}

.section-heading--center {
  align-items: center;
  text-align: center;
}

.section-heading > * {
  /* Full width so long titles wrap inside the container instead of overflowing.
     min-width: 0 defeats the flex default of min-width: auto that would otherwise
     size the item to its intrinsic content width. */
  width: 100%;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.eyebrow {
  font-size: var(--fs-11);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-primary);
}

.eyebrow--on-dark {
  color: var(--text-on-dark-muted);
}

.eyebrow--lg-tracking {
  letter-spacing: var(--ls-eyebrow-lg);
}

.title-xl {
  font-size: clamp(30px, 6vw, 54px);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  color: var(--text-on-dark);
}

.title-lg {
  font-size: clamp(22px, 4.2vw, 38px);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--text-primary);
  overflow-wrap: break-word;
  hyphens: auto;
}

.title-lg--on-dark {
  color: var(--text-on-dark);
}

.lead {
  font-size: var(--fs-17);
  line-height: 1.65;
  color: var(--text-on-dark-muted);
}

/* Utility */
.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;
}

/* ---------- Responsive base ----------
   Titles use clamp() and scale fluidly; only container padding
   and body copy sizes are stepped here. */
@media (max-width: 1023px) {
  :root {
    --section-padding-x: 40px;
    --section-padding-y: 64px;
  }
}

@media (max-width: 767px) {
  :root {
    --section-padding-x: 20px;
    --section-padding-y: 48px;
  }
  .lead {
    font-size: var(--fs-16);
  }
}
