/* ==========================================================================
   Ambientech web fonts — Degular for Latin, Anuphan for Thai
   --------------------------------------------------------------------------
   Self-hosted from /font. Replaces the Google Fonts request the layout used to
   make for Poppins, Lora, Handlee and Noto Sans Thai, so the page now loads no
   third-party assets at all.

   The two families work as one stack: `Degular, Anuphan, Arial, sans-serif`.
   Degular has no Thai glyphs, so the browser falls through per character —
   Latin renders in Degular, Thai in Anuphan, even inside the same sentence
   ("ด้วย Smart Lean ที่วัดผลได้จริง"). This is the same mechanism the previous
   Poppins / Noto Sans Thai pairing relied on.

   Every face is served as woff2, converted from the .otf / .ttf originals that
   sit beside it in /font (roughly half the bytes, and universally supported).
   The originals are kept as a second src so the sheet still resolves if a woff2
   is ever missing.

   font-display: swap everywhere — text paints immediately in the fallback and
   re-renders when the face arrives, rather than sitting invisible.
   ========================================================================== */

/* --- Degular (Latin) ------------------------------------------------------
   All seven weights ship, so each is declared at its real value and the
   browser never has to synthesise one. */

@font-face {
	font-family: 'Degular';
	src: url('/font/Degular-Thin.woff2') format('woff2'),
	     url('/font/Degular-Thin.otf') format('opentype');
	font-weight: 100;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Degular';
	src: url('/font/Degular-ThinItalic.woff2') format('woff2'),
	     url('/font/Degular-ThinItalic.otf') format('opentype');
	font-weight: 100;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Degular';
	src: url('/font/Degular-Light.woff2') format('woff2'),
	     url('/font/Degular-Light.otf') format('opentype');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Degular';
	src: url('/font/Degular-LightItalic.woff2') format('woff2'),
	     url('/font/Degular-LightItalic.otf') format('opentype');
	font-weight: 300;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Degular';
	src: url('/font/Degular-Regular.woff2') format('woff2'),
	     url('/font/Degular-Regular.otf') format('opentype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Degular';
	src: url('/font/Degular-RegularItalic.woff2') format('woff2'),
	     url('/font/Degular-RegularItalic.otf') format('opentype');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Degular';
	src: url('/font/Degular-Medium.woff2') format('woff2'),
	     url('/font/Degular-Medium.otf') format('opentype');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Degular';
	src: url('/font/Degular-MediumItalic.woff2') format('woff2'),
	     url('/font/Degular-MediumItalic.otf') format('opentype');
	font-weight: 500;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Degular';
	src: url('/font/Degular-Semibold.woff2') format('woff2'),
	     url('/font/Degular-Semibold.otf') format('opentype');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Degular';
	src: url('/font/Degular-SemiboldItalic.woff2') format('woff2'),
	     url('/font/Degular-SemiboldItalic.otf') format('opentype');
	font-weight: 600;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Degular';
	src: url('/font/Degular-Bold.woff2') format('woff2'),
	     url('/font/Degular-Bold.otf') format('opentype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Degular';
	src: url('/font/Degular-BoldItalic.woff2') format('woff2'),
	     url('/font/Degular-BoldItalic.otf') format('opentype');
	font-weight: 700;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Degular';
	src: url('/font/Degular-Black.woff2') format('woff2'),
	     url('/font/Degular-Black.otf') format('opentype');
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Degular';
	src: url('/font/Degular-BlackItalic.woff2') format('woff2'),
	     url('/font/Degular-BlackItalic.otf') format('opentype');
	font-weight: 900;
	font-style: italic;
	font-display: swap;
}

/* --- Anuphan (Thai) -------------------------------------------------------
   Only three weights ship, so each is declared over a RANGE rather than a
   single value. Without the ranges a request for 500 or 600 — which this theme
   makes constantly, via .font-weight-medium and .font-weight-semibold — would
   be left to the browser to synthesise, and faux-bolding smears Thai tone marks
   into the glyphs they sit above. The ranges land 500 on Regular and 600 on
   Bold, both real drawn weights.

   unicode-range confines Anuphan to the Thai block, so an English visitor never
   downloads it: Latin codepoints are all satisfied by Degular. U+200B is the
   zero-width space Thai uses for line-break opportunities. */

@font-face {
	font-family: 'Anuphan';
	src: url('/font/Anuphan-Light.woff2') format('woff2'),
	     url('/font/Anuphan-Light.ttf') format('truetype');
	font-weight: 100 350;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0E00-0E7F, U+200B;
}

@font-face {
	font-family: 'Anuphan';
	src: url('/font/Anuphan-Regular.woff2') format('woff2'),
	     url('/font/Anuphan-Regular.ttf') format('truetype');
	font-weight: 351 550;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0E00-0E7F, U+200B;
}

@font-face {
	font-family: 'Anuphan';
	src: url('/font/Anuphan-Bold.woff2') format('woff2'),
	     url('/font/Anuphan-Bold.ttf') format('truetype');
	font-weight: 551 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0E00-0E7F, U+200B;
}
