/* ==============================================
   BASE: Global typography, body, links, and focus styles
   ============================================== */

body {
  font-family: var(--font-family-base);
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-primary);
  background-color: var(--color-clinical-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Heading scale — matches 08-brand-usage.md --- */

h1 {
  font-family: var(--font-family-base);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: var(--font-weight-extrabold);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-family-base);
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-weight: var(--font-weight-bold);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h3 {
  font-family: var(--font-family-base);
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl));
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h4 {
  font-family: var(--font-family-base);
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-semibold);
  line-height: 1.4;
}

h5 {
  font-family: var(--font-family-base);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  line-height: 1.4;
}

p {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* --- Links --- */

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

a:hover {
  color: var(--color-blue-dark);
}

/* --- Focus — visible for keyboard navigation --- */

:focus-visible {
  outline: 3px solid var(--color-vitality-orange);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* --- Brand name markup — see 08-brand-usage.md --- */

.brand-name__medh {
  color: var(--color-innovation-blue);
}

.brand-name__ankura {
  color: var(--color-vitality-orange);
}
