@font-face {
    font-family: 'Thmanyah Serif Display';
    src: url('../fonts/thmanyahserifdisplay-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Thmanyah Serif Text';
    src: url('../fonts/thmanyahseriftext-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-heading: 'Thmanyah Serif Display', serif !important;
    --font-body: 'Thmanyah Serif Text', serif !important;
    --font-latin: 'Thmanyah Serif Text', serif !important;
}

/* Force global overrides to ensure clean code and avoid exceptions */
*, *::before, *::after {
    --font-heading: 'Thmanyah Serif Display', serif !important;
    --font-body: 'Thmanyah Serif Text', serif !important;
    --font-latin: 'Thmanyah Serif Text', serif !important;
}

h1, h2, h3, h4, h5, h6, .heading-font, .brand, .hero-title, .feature-title, .pub-name, .author-card-name {
    font-family: var(--font-heading) !important;
}

body, p, span, div, a, button, input, textarea, label, .feature-tag, .feat-num {
    font-family: var(--font-body);
}

/* Specific elements that might be strictly trying to use english/latin specific fonts */
.authors-count-badge, .g-badge strong, .nav-link, .submit-btn, .header-cta {
    font-family: var(--font-body) !important;
}
