/* Single source of truth for the ADAMS web UI typeface.
   Both halves belong here on purpose:

     - the @font-face rules that self-host Dosis out of ~/fonts
     - the --adams-font-sans token, which every other stylesheet uses instead
       of naming 'Dosis' again

   Font URLs are relative to this file (Content/ -> ../fonts/), so they keep
   resolving when the app is deployed under an IIS virtual directory. Do not
   change them to root-absolute /fonts/... paths -- that is the bug this file
   replaced.

   font-display: swap trades the browser's default ~3s of invisible text while
   the .ttf downloads for a brief flash of the fallback face instead.

   Link this from every master page / layout ahead of the other stylesheets:
   Views/Shared/Site.Master, Views/Shared/Login.Master, Views/Shared/_Layout.cshtml.
   A page that misses it renders in the fallback face, since --adams-font-sans
   is then undefined. */

@font-face {
    font-family: 'Dosis';
    src: url('../fonts/Dosis-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dosis';
    src: url('../fonts/Dosis-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dosis';
    src: url('../fonts/Dosis-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dosis';
    src: url('../fonts/Dosis-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dosis';
    src: url('../fonts/Dosis-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dosis';
    src: url('../fonts/Dosis-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dosis';
    src: url('../fonts/Dosis-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --adams-font-sans: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,'Fira Sans','Droid Sans','Helvetica Neue',sans-serif;
}
