/* Load Phetsarath OT font securely with multiple fallbacks */
@font-face {
  font-family: 'Phetsarath OT';
  src: url('/fonts/phetsarath_ot.woff2') format('woff2'),
       url('/fonts/phetsarath_ot.woff') format('woff'),
       url('/fonts/phetsarath_ot.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Font-display: swap ensures fast rendering with fallback */
/* No eot or svg — these are outdated and not needed for modern browsers */
/* Responsive clamp() ensures Lao text is readable on all screen sizes */
/* Scoped lang="lo" support allows automatic styling for Lao-language pages */

/* Base Lao text style — responsive and accessible */
.laotext {
  font-family: 'Phetsarath OT', sans-serif;
  font-size: clamp(14px, 1.2vw, 18px); /* Responsive scaling */
  line-height: 1.5;
  color: #212529;
}

/* Variants */
.laotext-bold {
  font-weight: bold;
}

.laotext-italic {
  font-style: italic;
}

.laotext-italic-bold {
  font-style: italic;
  font-weight: bold;
}

/* Optional: apply Lao font automatically to Lao-language content */
html[lang="lo"] body {
  font-family: 'Phetsarath OT', sans-serif;
}
