/* Copyright © 2022 Ory Corp
 * SPDX-License-Identifier: Apache-2.0
 *
 * The three brand faces, from the same @fontsource-variable packages
 * ../allauth-ui loads in its main.tsx — including its family names, so a stack
 * reads the same on both sides of the sign-in handoff.
 *
 * Kept as a standalone stylesheet rather than folded into web/styles.css
 * because both page families need them: the React screens (layouts/react.hbs)
 * and the welcome page still rendered by @ory/elements-markup
 * (partials/standard_headers.hbs). One copy, one set of files to cache.
 *
 * The declarations are lifted from each package's own index.css, with the URLs
 * repointed at the mounts registered in src/routes/static.ts — the packages
 * reference ./files/… relative to themselves, which does not survive being
 * served from elsewhere. Only the latin and latin-ext subsets are declared;
 * `latin` alone covers both locales this app serves, since Swedish needs nothing
 * outside U+00FF. Regenerate these blocks from index.css after a version bump.
 *
 *   @fontsource-variable/albert-sans  5.3.0
 *   @fontsource-variable/bitter       5.3.0
 *   @fontsource-variable/fira-code    5.3.0
 *
 * Deliberately not the .ttf files the styles package ships. All three of those
 * are truncated — each declares a final table ending past the end of the file
 * (AlbertSans gvar by 33 bytes, Bitter GPOS by 7, FiraCode glyf by 4) and the
 * whole-file sfnt checksum in `head` does not match either. Chrome's sanitiser
 * rejects them outright, so the package's own faces silently fall back to the
 * system stack wherever it is used. Worth fixing at the source; these packages
 * are the same OFL families, versioned, and are what ../allauth-ui already uses.
 */

@font-face {
  font-family: "Albert Sans Variable";
  src: url("assets/fonts/albert-sans/albert-sans-latin-wght-normal.woff2")
    format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Albert Sans Variable";
  src: url("assets/fonts/albert-sans/albert-sans-latin-ext-wght-normal.woff2")
    format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bitter Variable";
  src: url("assets/fonts/bitter/bitter-latin-wght-normal.woff2")
    format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bitter Variable";
  src: url("assets/fonts/bitter/bitter-latin-ext-wght-normal.woff2")
    format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Fira Code Variable";
  src: url("assets/fonts/fira-code/fira-code-latin-wght-normal.woff2")
    format("woff2-variations");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Fira Code Variable";
  src: url("assets/fonts/fira-code/fira-code-latin-ext-wght-normal.woff2")
    format("woff2-variations");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
