/* ============================================
   Base typography & utilities
   ============================================ */

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--color-dark);
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 0.95;
}

h1, .h1 {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.95;
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1;
}

h3, .h3 {
  font-size: var(--text-2xl);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h4, .h4 {
  font-size: var(--text-xl);
  font-weight: 600;
}

p { font-size: var(--text-base); }

.lead {
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-gray-700);
  max-width: 60ch;
}

a:hover { color: var(--color-primary); }

strong, b { font-weight: 700; }

/* Inline accent (use inside a heading to color a single word red) */
.accent {
  color: var(--color-primary);
}

/* ============================================
   Containers & layout helpers
   ============================================ */

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

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

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

.section {
  padding-block: var(--section-py);
  position: relative;
}

.section-tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

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

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--color-white);
}

.section-light {
  background: var(--color-light);
}

.section-red {
  background: var(--color-primary);
  color: var(--color-white);
}

.section-red h1, .section-red h2, .section-red h3, .section-red h4 {
  color: var(--color-white);
}

/* Eyebrow label */
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  position: relative;
  padding-left: 2.5rem;
}

.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 2px;
  background: var(--color-primary);
  transform: translateY(-50%);
}

.section-dark .eyebrow,
.section-red .eyebrow {
  color: var(--color-white);
}

.section-red .eyebrow::before {
  background: var(--color-white);
}

/* Skip-to-content */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-3) var(--space-5);
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
  transition: top var(--duration) var(--ease);
}
.skip-link:focus { top: 0; }

/* Utility classes */
.text-center { text-align: center; }
.text-balance { text-wrap: balance; }
.uppercase { text-transform: uppercase; letter-spacing: 0.05em; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Spacing utilities */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

/* Section header (eyebrow + title + lead) */
.section-header {
  margin-bottom: var(--space-12);
  max-width: 800px;
}

.section-header.center {
  margin-inline: auto;
  text-align: center;
}

.section-header.center .eyebrow {
  display: inline-block;
}

/* Section divider — small red line */
.divider-line {
  width: 60px;
  height: 4px;
  background: var(--color-primary);
  margin: var(--space-6) 0;
  border-radius: 2px;
}

.section-header.center .divider-line {
  margin-inline: auto;
}
