/**
 * Font CSS Variables and Utilities
 * Used with Next.js font optimization
 */

:root {
  /* Font family variables */
  --font-dm-sans:
    'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --font-syne:
    'Syne', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --font-yantramanav:
    'Yantramanav', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Font utility classes */
.font-dm-sans {
  font-family: var(--font-dm-sans);
}

.font-syne {
  font-family: var(--font-syne);
}

.font-yantramanav {
  font-family: var(--font-yantramanav);
}

/* Typography scale with optimized fonts */
.text-display {
  font-family: var(--font-syne);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-heading {
  font-family: var(--font-syne);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.text-body {
  font-family: var(--font-dm-sans);
  font-weight: 400;
  line-height: 1.6;
}

.text-caption {
  font-family: var(--font-yantramanav);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

/* Font loading optimization */
.font-loading {
  font-display: swap;
}

/* Prevent layout shift during font loading */
.font-smoothing {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
