/*
   Shared foundation loaded first on every page.

   The app uses one bundled font so text looks the same on Windows,
   Mac, iPhone and Android. Without it, each device falls back to its
   own system font (Segoe UI, San Francisco, Roboto or Arial), which
   changes sizes and line breaks. The unique family name means a copy
   of Inter installed on the device is never used instead.
*/

@font-face {
    font-family: "Nabrin Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/static/fonts/inter-latin-variable.woff2") format("woff2");
}

:root {
    --font-sans:
        "Nabrin Inter",
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

/* Form controls don't inherit the page font by default, and each
   browser picks its own. */
button,
input,
select,
textarea {
    font-family: inherit;
}

/* Safari on iPhone zooms the whole page into any text box smaller
   than 16px and doesn't zoom back out. Applies to iOS only. */
@supports (-webkit-touch-callout: none) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Thin, matching scrollbars, so Windows doesn't show wide grey bars
   that a Mac doesn't. */
* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}
