/* ==========================================================================
   Utilities — layout, spacing, and typography helpers shared by every section.
   Extend this file as new needs arise; don't fork a one-off copy per section.
   ========================================================================== */

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

.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;
}

/* Typography — families */
.font-serif { font-family: var(--font-serif); }
.font-sans  { font-family: var(--font-sans); }

/* Typography — roles (map directly to the type scale in the design system) */
.text-hero {
  font-family: var(--font-serif);
  font-size: var(--text-hero);
  font-weight: 500;
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  color: var(--color-white);
}

.text-section-title {
  font-family: var(--font-serif);
  font-size: var(--text-section-title);
  font-weight: 500;
  line-height: var(--leading-snug);
}

.text-founder-message {
  font-family: var(--font-serif);
  font-size: var(--text-founder-message);
  line-height: var(--leading-snug);
}

.text-stat {
  font-family: var(--font-sans);
  font-size: var(--text-stat);
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1;
}

.text-body {
  font-size: var(--text-body);
  line-height: var(--leading-normal);
}

.text-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-eyebrow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--color-brass);
}

.text-slate { color: var(--color-slate); }
.text-brass { color: var(--color-brass); }
.text-white { color: var(--color-white); }

/* Numerals — apply to every number on the site, no exceptions */
.tabular-nums { font-variant-numeric: tabular-nums lining-nums; }

/* Spacing utilities — vertical rhythm only (deliberately not a full framework) */
.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-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.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-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Section padding tiers — apply directly to any <section> */
.section-padding-compact  { padding-block: var(--section-padding-compact); }
.section-padding-standard { padding-block: var(--section-padding-standard); }
.section-padding-generous { padding-block: var(--section-padding-generous); }
