/* DB Heavent Original v3.2.2 — the licensed corporate typeface, self-hosted.
 *
 * Self-hosted rather than loaded from a CDN because fonts may not be fetched from an external
 * CDN in this application (Google Fonts was removed on 2026-09-21 for that reason). These files
 * ship inside the image from public/assets/fonts/.
 *
 * WHY EACH WEIGHT IS ITS OWN FILE UNDER ONE FAMILY NAME
 * The package names every weight as a separate family ("DB Heavent Bold", "DB Heavent Med", …),
 * which is how Thai foundries have always shipped. Declaring them that way would force every
 * rule in the application to name the exact file it wants, and font-weight would stop working.
 * Mapping them all onto one family with the right font-weight instead means `font-weight: 700`
 * behaves the way CSS expects, everywhere.
 *
 * WEIGHTS CHOSEN, AND WHAT THE CSS IN THIS PROJECT ACTUALLY ASKS FOR
 *   300  Light    — used 4 times
 *   400  Regular  — body text
 *   500  Medium   — used 3 times
 *   700  Bold     — also serves the 45 rules asking for 600, which has no face in this family;
 *                   the CSS weight-matching algorithm resolves 600 upward to 700
 *   900  Black    — likewise serves the 6 rules asking for 800
 *   400 italic    — 13 places, all small muted placeholder text ("— not collected —"). One face
 *                   is enough; the other italics would be download for no visible gain.
 * The remaining faces in the package (Thin, UltraLight, and the other italics) are deliberately
 * not shipped. They are in Docs/OneDrive_2026-09-22 if a design ever calls for them.
 *
 * COVERAGE, verified from the files themselves rather than the foundry's description:
 * 240 glyphs — 88 Thai codepoints and 95 of basic Latin, so Thai and English both render in this
 * one family and no second font is needed for Thai.
 *
 * Three characters the UI uses are NOT in it: MIDDLE DOT (U+00B7), RIGHT ARROW (U+2192) and
 * CHECK MARK (U+2713). The browser falls back per-character for those, so they still appear —
 * just in the fallback face. Nothing is lost, but that is why they look slightly different.
 *
 * font-display: swap — text paints immediately in the fallback and re-renders when the file
 * arrives, rather than hiding content while the font loads.
 *
 * size-adjust: 145% — NOT a taste decision, and not optional. Measured from the font files:
 *
 *     DB Heavent  x-height / em = 0.355   (1454 / 4096 units)
 *     Arial       x-height / em = 0.519   (1062 / 2048 units)
 *
 * At the same font-size DB Heavent therefore renders about a third smaller than the Arial this
 * project used before, which made the interface genuinely hard to read. 145% brings its x-height
 * back in line with Arial's, so every existing font-size rule keeps meaning what its author
 * intended and not one of them had to be touched.
 *
 * size-adjust scales the glyphs only. Padding, margins and box sizes are untouched, which is why
 * it was chosen over raising the root font-size — that would have scaled every rem in the
 * application, spacing included, and re-laid out every page.
 *
 * It applies to this @font-face alone, so the Arial fallback keeps its own natural metrics and
 * the two look the same size as each other.
 *
 * Browser support: Chrome/Edge/Firefox 92+, Safari 17+. Anything older ignores the descriptor and
 * renders the font small, as it did before this line existed — degraded, not broken.
 */

@font-face {
    font-family: 'DB Heavent';
    src: url('../fonts/db-heavent-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    size-adjust: 145%;
}

@font-face {
    font-family: 'DB Heavent';
    src: url('../fonts/db-heavent-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    size-adjust: 145%;
}

@font-face {
    font-family: 'DB Heavent';
    src: url('../fonts/db-heavent-400-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
    size-adjust: 145%;
}

@font-face {
    font-family: 'DB Heavent';
    src: url('../fonts/db-heavent-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    size-adjust: 145%;
}

@font-face {
    font-family: 'DB Heavent';
    src: url('../fonts/db-heavent-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    size-adjust: 145%;
}

@font-face {
    font-family: 'DB Heavent';
    src: url('../fonts/db-heavent-900.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
    size-adjust: 145%;
}
