/* ==========================================================================
   Typography — Self-hosted fonts + type scale
   ========================================================================== */

/* Montserrat — Headings (700, 800) */
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Inter — Body (400, 500) */
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Base */
body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--ink-700);
  background-color: var(--white);
}

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--ink-900);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

h1 {
  font-size: var(--text-h1);
  font-weight: 800;
}

h2 {
  font-size: var(--text-h2);
  font-weight: 700;
}

h3 {
  font-size: var(--text-h3);
  font-weight: 700;
}

/* Body text */
p {
  margin-bottom: var(--space-16);
  line-height: var(--leading-relaxed);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

small, .text-small {
  font-size: var(--text-small);
}

.text-micro {
  font-size: var(--text-micro);
}

/* Links */
a {
  color: var(--cci-blue-500);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--cci-blue-700);
}

a:focus-visible {
  outline: 2px solid var(--cci-blue-500);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Section headlines */
.section-headline {
  text-align: center;
  margin-bottom: var(--space-48);
}

.section-headline h2 {
  margin-bottom: var(--space-16);
}

.section-headline p {
  font-size: var(--text-body);
  color: var(--ink-500);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Subhead bar (visual_identity.md §8.3) */
.subhead-bar {
  display: inline-block;
  background: rgba(134, 195, 230, 0.4);
  padding: var(--space-4) var(--space-16);
  border-radius: var(--radius-sm);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--ink-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-16);
}
