/* Local fonts placeholder
   Place your .woff2 files in this folder (e.g., Inter-Regular.woff2, SpaceGrotesk-Bold.woff2)
   and update the src URLs below if needed. */

/* Local font-face with local() fallbacks and improved font-display to avoid FOIT */
@font-face {
  font-family: 'InterLocal';
  src: local('Inter'), local('Inter Regular'), url('Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'InterLocal';
  src: local('Inter Italic'), url('Inter-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'SpaceGroteskLocal';
  src: local('Space Grotesk'), url('SpaceGrotesk-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* CSS variables for fallbacks. These ensure quick fallback rendering while local fonts load */
:root {
  --font-main: 'InterLocal', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-title: 'SpaceGroteskLocal', 'Georgia', 'Times New Roman', serif;
}

/* Minimal classes to reduce layout-shift: reserve font metrics with sensible line-height */
body { font-family: var(--font-main); line-height:1.7; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-title); line-height:1.15; }
