/* ── G1Careers Typography System ── */
/* Lexend (headings) + Source Sans 3 (body) — optimised for Windows ClearType readability */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&family=Source+Sans+3:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Base reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ── Headings — Lexend ── */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5em;
}

h1 { font-size: var(--text-4xl); font-weight: 700; }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); font-weight: 500; }

/* ── Utility classes ── */
.text-hero {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 600;
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
}

.text-h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: var(--leading-snug);
}

.text-body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

.text-body-lg {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

.text-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-dark .text-eyebrow {
  color: var(--accent);
}

.text-stat {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
}

.text-stat-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.text-mono {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.text-accent {
  color: var(--accent);
}

/* ── Dark section text overrides ── */
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark .text-hero,
.section-dark .text-h2,
.section-dark .text-h3 {
  color: var(--text-on-dark);
}

.section-dark p,
.section-dark .text-body,
.section-dark .text-body-lg {
  color: var(--text-on-dark-2);
}

.section-dark .text-stat {
  color: var(--accent);
}

.section-dark .text-stat-label {
  color: var(--text-on-dark-2);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  body { font-size: 16px; }
  h1 { font-size: clamp(28px, 7vw, 36px); }
  h2 { font-size: clamp(24px, 5vw, 30px); }
  h3 { font-size: 20px; }
  .text-hero { font-size: clamp(30px, 8vw, 42px); }
}

/* ── Links ── */
a {
  color: inherit;
  text-decoration-skip-ink: auto;
}

/* ── Touch action — removes 300ms tap delay ── */
a, button, [role="button"] {
  touch-action: manipulation;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
