/**
 * Kolaras Hulchal - Typography & Self-Hosted Fonts
 *
 * @package Kolaras_Hulchal
 * @version 1.0.0
 */

/* 1. Self-Hosted @font-face Declarations */

/* Noto Sans Devanagari - Regular 400 */
@font-face {
    font-family: 'Noto Sans Devanagari';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/noto-sans-devanagari-400.woff2') format('woff2');
}

/* Noto Sans Devanagari - Bold 700 */
@font-face {
    font-family: 'Noto Sans Devanagari';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/noto-sans-devanagari-700.woff2') format('woff2');
}

/* Tiro Devanagari Hindi - Regular 400 */
@font-face {
    font-family: 'Tiro Devanagari Hindi';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/tiro-devanagari-hindi-400.woff2') format('woff2');
}

/* 2. Global Base Typography */
body {
    font-family: var(--kh-font-body, 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); /* ~16px to ~18px responsive scale */
    line-height: 1.7; /* Devanagari optimal line height */
    color: var(--kh-text-main, #0F172A);
    background-color: var(--kh-bg-body, #F8FAFC);
}

/* 3. Heading Scale */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--kh-font-heading, 'Tiro Devanagari Hindi', 'Noto Sans Devanagari', Georgia, serif);
    font-weight: 700;
    line-height: 1.4;
    color: var(--kh-text-main, #0F172A);
    margin-bottom: 0.5em;
}

h1 {
    font-size: clamp(1.875rem, 1.5rem + 1.25vw, 2.5rem); /* 30px to 40px */
}

h2 {
    font-size: clamp(1.5rem, 1.25rem + 0.83vw, 2rem); /* 24px to 32px */
}

h3 {
    font-size: clamp(1rem, 1.1rem + 0.5vw, 1.5rem); /* 20px to 24px */
}

h4 {
    font-size: clamp(1.125rem, 1rem + 0.35vw, 1.25rem); /* 18px to 20px */
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 4. Text Utilities & Elements */
p {
    margin-bottom: 1.25em;
}

b, strong {
    font-weight: 700;
}

small {
    font-size: 0.875em;
}

blockquote {
    border-left: 4px solid var(--kh-red-primary, #D90429);
    padding-left: 1rem;
    font-style: italic;
    color: var(--kh-text-muted, #64748B);
    margin: 1.5rem 0;
}

.posted-on,
.byline,
.entry-meta {
    font-size: 0.875rem;
    color: var(--kh-text-muted, #64748B);
}
