/*
 * Open Image Cloud look for the documentation, matching openimages.cloud
 * (oic-website/src/styles/global.css). Fonts are self-hosted (SIL OFL 1.1,
 * see assets/fonts/LICENSE-*.txt): no request leaves openimages.cloud.
 */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  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: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  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: "JetBrains Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("../assets/fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2-variations");
  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: "JetBrains Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("../assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  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;
}

:root {
  --md-text-font: "Inter Variable";
  --md-code-font: "JetBrains Mono Variable";
}

/* Light scheme: brand blue of the logo and badges (#2459c4). */
[data-md-color-scheme="default"] {
  --md-primary-fg-color: #2459c4;
  --md-primary-fg-color--light: #4f8ef0;
  --md-primary-fg-color--dark: #1d4699;
  --md-primary-bg-color: #ffffff;
  --md-primary-bg-color--light: rgba(255, 255, 255, 0.7);
  --md-accent-fg-color: #2459c4;
  --md-accent-fg-color--transparent: rgba(36, 89, 196, 0.1);
  --md-typeset-a-color: #2459c4;
}

/* Dark scheme: navy surfaces of the website (navy-950, navy-900). */
[data-md-color-scheme="slate"] {
  --md-hue: 222;
  --md-default-bg-color: oklch(0.155 0.035 252);
  --md-code-bg-color: oklch(0.19 0.04 252);
  --md-primary-fg-color: oklch(0.19 0.04 252);
  --md-primary-fg-color--light: oklch(0.25 0.04 252);
  --md-primary-fg-color--dark: oklch(0.155 0.035 252);
  --md-primary-bg-color: oklch(0.96 0.01 252);
  --md-primary-bg-color--light: oklch(0.78 0.02 252);
  --md-accent-fg-color: oklch(0.71 0.13 252);
  --md-accent-fg-color--transparent: oklch(0.71 0.13 252 / 0.1);
  --md-typeset-a-color: oklch(0.78 0.1 252);
}
