/* Single-purpose utility classes. Loaded last so they win specificity ties.
   IMPORTANT: utilities NEVER set color when only addressing typography or spacing —
   section CSS owns color so the Pearl/Navy palette works correctly across light + dark surfaces. */

/* === CONTAINERS === */
.container,
.container--narrow,
.container--wide {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--space-gutter);
}

.container          { max-width: var(--container-max); }
.container--narrow  { max-width: var(--container-narrow); }
.container--wide    { max-width: var(--container-wide); }

/* === EYEBROW LABEL — uppercase, wide tracking, hairline-rule prefix === */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--fs-tiny);
  font-weight: 500;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background-color: var(--color-hairline-strong);
  flex-shrink: 0;
}

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

.eyebrow--on-dark::before {
  background-color: rgba(255, 255, 255, 0.32);
}

/* === ACCESSIBILITY === */
.sr-only {
  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;
  top: -100px;
  left: var(--space-4);
  z-index: var(--z-modal);
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-button);
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  font-size: var(--fs-tiny);
  transition: top var(--transition-fast);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: var(--space-3);
  color: var(--color-text-light);
}

/* === TEXT — size/weight only, color is opt-in per section === */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.fs-lead     { font-size: var(--fs-lead); line-height: var(--lh-loose); font-weight: 300; }
.fs-small    { font-size: var(--fs-small); }
.fs-tiny     { font-size: var(--fs-tiny); }

.fw-light    { font-weight: 300; }
.fw-regular  { font-weight: 400; }
.fw-medium   { font-weight: 500; }
.fw-semibold { font-weight: 600; }

.font-display{ font-family: var(--font-display); }
.font-body   { font-family: var(--font-body); }

.italic      { font-style: italic; }
.uppercase   { text-transform: uppercase; letter-spacing: var(--ls-wider); }

/* === SPACING === */
.mt-0  { margin-top: 0; }
.mt-1  { margin-top: var(--space-1); }
.mt-2  { margin-top: var(--space-2); }
.mt-3  { margin-top: var(--space-3); }
.mt-4  { margin-top: var(--space-4); }
.mt-5  { margin-top: var(--space-5); }
.mt-6  { margin-top: var(--space-6); }
.mt-7  { margin-top: var(--space-7); }

.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: var(--space-1); }
.mb-2  { margin-bottom: var(--space-2); }
.mb-3  { margin-bottom: var(--space-3); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-5  { margin-bottom: var(--space-5); }
.mb-6  { margin-bottom: var(--space-6); }

.pt-section { padding-top: var(--space-section); }
.pb-section { padding-bottom: var(--space-section); }
.py-section { padding-block: var(--space-section); }

/* === HAIRLINE RULE UTILITY === */
.hairline { border-top: 1px solid var(--color-hairline); }
.hairline--strong { border-top: 1px solid var(--color-hairline-strong); }
.hairline--dark { border-top: 1px solid var(--color-hairline-dark); }

/* === LIST RESET === */
.list-reset {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-reset > li + li {
  margin-top: 0;
}

@media (min-width: 768px) {
  .d-md-block { display: block; }
  .d-md-none  { display: none; }
  .d-md-flex  { display: flex; }
}

@media (min-width: 1024px) {
  .d-lg-block { display: block; }
  .d-lg-none  { display: none; }
  .d-lg-flex  { display: flex; }
}
