/**
 * Khmer OS Siemreap — project-wide Khmer typeface.
 *
 * The font ships a single Regular master and its cmap covers only the Khmer
 * block (U+1780-17DB), Khmer digits (U+17E0-17E9) and ASCII digits/punctuation.
 * It has NO Latin letters, so it is scoped with unicode-range to the Khmer
 * block: Khmer text renders in Siemreap while Latin text keeps Inter and the
 * monospace stacks keep their aligned figures. Put --font-ui / --font-mono
 * (or 'Khmer OS Siemreap' first in a stack) anywhere text may contain Khmer.
 */

@font-face {
    font-family: 'Khmer OS Siemreap';
    font-style: normal;
    /* Single Regular master. Declared as a single weight, NOT a 400-700 range:
       a range descriptor would claim this face already covers 700, and the
       browser would then stop synthesising bold for every Khmer string. */
    font-weight: normal;
    font-display: swap;
    src: url('../font/KhmerOSSiemreap.woff2') format('woff2'),
         url('../font/KhmerOSSiemreap.ttf') format('truetype');
    unicode-range: U+1780-17FF, U+19E0-19FF, U+200B, U+25CC;
}

:root {
    --font-khmer: 'Khmer OS Siemreap';
    --font-ui: 'Khmer OS Siemreap', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Khmer OS Siemreap', 'SF Mono', Monaco, Inconsolata, 'Courier New', monospace;
}

html,
body {
    font-family: var(--font-ui);
}

/* Form controls do not inherit the document font by default. */
input,
select,
textarea,
button,
optgroup,
option {
    font-family: inherit;
}
