/* ==========================================================================
   Base Typography & Global Styles
   Fonts: Plus Jakarta Sans (headings), Source Sans 3 (body)
   ========================================================================== */

/* ---- @font-face declarations (self-hosted, variable fonts) ---- */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/PlusJakartaSans-SemiBold.woff2') format('woff2');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/PlusJakartaSans-Variable-LatinExt.woff2') format('woff2');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/SourceSans3-Variable.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/SourceSans3-Variable-LatinExt.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Body ---- */

body {
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  color: var(--color-text-body);
  background-color: var(--color-bg-white);
}

/* ---- Headings ---- */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text-heading);
  line-height: var(--leading-heading);
  text-wrap: pretty;
}

h1 {
  font-size: var(--text-h1);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-heading);
}

h2 {
  font-size: var(--text-h2);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-heading);
}

h3 {
  font-size: var(--text-h3-card);
  font-weight: var(--weight-bold);
}

h4 {
  font-size: var(--text-h4);
  font-weight: var(--weight-bold);
}

/* ---- Paragraphs ---- */

p {
  line-height: var(--leading-body);
}

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

/* ---- Links ---- */

a {
  transition: color var(--transition-fast);
}

a:focus-visible {
  outline: 2px solid var(--color-primary-dark);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---- Utility Classes ---- */

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

.eyebrow {
  font-family: var(--font-heading);
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-primary-dark);
}

.section-header {
  text-align: center;
  max-width: 50rem;
  margin-inline: auto;
}

.section-header .eyebrow {
  font-size: var(--text-eyebrow);
  color: var(--color-primary-dark);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 37.5rem;
  margin-inline: auto;
  color: var(--color-text-body);
  font-size: var(--text-body-lg);
  line-height: var(--leading-body);
}

/* ---- Reusable section spacing ---- */
/* Apply to <section> elements for consistent vertical rhythm across pages */

.section-pad {
  padding-block: var(--space-section-y);
}

.section-pad-sm {
  padding-block: var(--space-section-y-sm);
}

.section-pad-top {
  padding-top: var(--space-section-y);
}

.section-pad-bottom {
  padding-bottom: var(--space-section-y);
}

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