/* Font Loading Strategy for AIesthetic */

/* Base font stack with system fonts as fallbacks */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  font-display: swap;
}

/* Great Vibes font with comprehensive fallbacks */
.great-vibes-regular {
  font-family: "Great Vibes", 'Brush Script MT', 'Lucida Handwriting', 'Apple Chancery', 'Bradley Hand', 'Comic Sans MS', cursive;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Ensure consistent rendering across browsers */
.great-vibes-regular {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Fallback for when Google Fonts fails to load */
@supports not (font-family: "Great Vibes") {
  .great-vibes-regular {
    font-family: 'Brush Script MT', 'Lucida Handwriting', 'Apple Chancery', cursive;
  }
}

/* Loading state to prevent FOUT */
.font-loading .great-vibes-regular {
  font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
  opacity: 0.8;
}

/* Ensure proper font loading detection */
.font-loaded .great-vibes-regular {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Fallback state styling */
.font-fallback .great-vibes-regular {
  font-family: 'Brush Script MT', 'Lucida Handwriting', 'Apple Chancery', cursive;
}

/* Performance optimizations */
.great-vibes-regular {
  will-change: font-family;
  contain: layout style;
}

/* Ensure text doesn't shift during font loading */
.great-vibes-regular {
  min-height: 1.2em;
  line-height: 1.2;
}
