/* Ubuntu Sans Variable Font - Local Self-Hosted Version */
/* Original: https://github.com/canonical/Ubuntu-Sans-fonts (Ubuntu Font Licence 1.0),
   taken from the fonts-ubuntu package (Ubuntu Sans 1.006). */
/* Instanced at normal width (wdth=100, weight axis kept) and subset to
   latin + latin-ext + punctuation + arrows (fontTools instancer + pyftsubset,
   all layout features kept). Regenerate from the upstream variable font when
   the character inventory grows beyond the declared unicode-range. */

@font-face {
    font-family: 'Ubuntu Sans';
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: local('Ubuntu Sans'), url('UbuntuSans-latin.woff2') format('woff2');
    unicode-range: U+0000-017F, U+0192, U+2000-206F, U+20AC, U+2122, U+2190-21FF, U+2212, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Ubuntu Sans';
    font-style: italic;
    font-weight: 100 800;
    font-display: swap;
    src: local('Ubuntu Sans Italic'), url('UbuntuSans-Italic-latin.woff2') format('woff2');
    unicode-range: U+0000-017F, U+0192, U+2000-206F, U+20AC, U+2122, U+2190-21FF, U+2212, U+FEFF, U+FFFD;
}

/* Metric-compatible fallback: while Ubuntu Sans loads (font-display: swap)
   text renders in Arial / Liberation Sans adjusted to Ubuntu Sans' metrics
   (ascent 940, descent 260, avg width 593 per 1000 upem vs. Arial's 580),
   so the swap causes no layout shift. */
@font-face {
    font-family: 'Ubuntu Sans Fallback';
    src: local('Arial'), local('Liberation Sans');
    ascent-override: 91.9%;
    descent-override: 25.4%;
    line-gap-override: 0%;
    size-adjust: 102.3%;
}
