/* Quiyet App Font Definitions */

/* Local font fallback for Quando */
@font-face {
  font-family: "Quando-Local";
  src: url("assets/Quando-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Primary font stack with Google Fonts and local fallback */
.quando-regular {
  font-family: "Quando", "Quando-Local", "Times New Roman", serif;
  font-weight: 400;
  font-style: normal;
}

/* Brand typography classes */
.quiyet-heading {
  font-family: "Quando", "Quando-Local", "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.2;
}

.quiyet-subheading {
  font-family: "Quando", "Quando-Local", "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.3;
  font-size: 1.25rem;
}

.quiyet-button {
  font-family: "Quando", "Quando-Local", "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0.025em;
}

.quiyet-label {
  font-family: "Quando", "Quando-Local", "Times New Roman", serif;
  font-weight: 400;
  font-size: 1rem;
}

/* Fallback detection and loading states */
.fonts-loading .quando-regular {
  font-family: "Times New Roman", serif;
  visibility: hidden;
}

.fonts-loaded .quando-regular {
  visibility: visible;
}

/* Alternative serif stack if Quando fails completely */
.serif-fallback {
  font-family: "Georgia", "Times New Roman", "Times", serif;
  font-weight: 400;
}

/* Font loading optimization */
@supports (font-display: optional) {
  @font-face {
    font-family: "Quando-Local";
    src: url("assets/Quando-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: optional;
  }
}

/* Critical font loading for above-the-fold content */
.critical-text {
  font-family: "Quando", "Quando-Local", "Georgia", serif;
}

/* Responsive font sizing for brand elements */
@media (max-width: 768px) {
  .quiyet-heading {
    font-size: 1.5rem;
  }

  .quiyet-subheading {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .quiyet-heading {
    font-size: 1.25rem;
  }

  .quiyet-subheading {
    font-size: 1rem;
  }
}
