/*
 * The infrared.city website look for the SDK docs.
 *
 * Three files style the parts in website/public/overrides/:
 *   site-fonts.css   the website fonts and the body typography (this file);
 *   site-header.css  the website header and the docs bar;
 *   site-footer.css  the website footer, the sidebar hierarchy of the guide
 *                    and the Markdown actions.
 *
 * The values come from the website (repo website-docs, src/assets/styles/
 * global.css and typography.css, and the live CSS of https://infrared.city/):
 *   --color-primary               #2b7c85  links, hover, active item
 *   --color-primary-dark          #093939  nav text, headings
 *   --color-primary-gray          #eaeaea  borders, menu hover
 *   --color-primary-background-gray #f8f8f8
 *   --color-button-gradient-from  #64d9a6  primary button
 *   --color-button-gradient-to    #23e5e5
 *   --color-tertiary-cyan         #23e5e5  primary button hover
 *   --color-text-gradient-to      #23e5bbe3
 * The website loads its fonts from Google Fonts. The docs do not make a
 * third-party request (GDPR), so the same fonts are self-hosted here
 * (assets/fonts/, SIL Open Font License, see the OFL-*.txt files).
 * The website has no dark mode. The website header and footer keep their
 * colours in the dark scheme; only the docs area changes.
 * Lengths are in px, because Material changes the root font size with the
 * window width and the website does not.
 */

/* --- Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../assets/fonts/work-sans-latin-wght-normal.woff2") format("woff2");
  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: "Work Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../assets/fonts/work-sans-latin-ext-wght-normal.woff2") format("woff2");
  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: "Encode Sans Semi Expanded";
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url("../assets/fonts/encode-sans-semi-expanded-latin-300-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Encode Sans Semi Expanded";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../assets/fonts/encode-sans-semi-expanded-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Encode Sans Semi Expanded";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("../assets/fonts/encode-sans-semi-expanded-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Encode Sans Semi Expanded";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../assets/fonts/encode-sans-semi-expanded-latin-700-normal.woff2") format("woff2");
}

:root {
  --md-text-font: "Work Sans";
  --irw-heading-font: "Encode Sans Semi Expanded", "Work Sans", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --irw-font: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --irw-primary: #2b7c85;
  --irw-primary-dark: #093939;
  --irw-gray: #eaeaea;
  --irw-bg-gray: #f8f8f8;
}

/* Body typography: the website text colour in light mode, its heading font. */
[data-md-color-scheme="default"] {
  --md-typeset-color: #222222;
  --md-default-fg-color: #093939de;
  --md-default-fg-color--light: #5a5a5a;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  font-family: var(--irw-heading-font);
  font-weight: 300;
  letter-spacing: 0;
}

.md-typeset h3 {
  font-weight: 400;
}

[data-md-color-scheme="default"] .md-typeset h1,
[data-md-color-scheme="default"] .md-typeset h2,
[data-md-color-scheme="default"] .md-typeset h3 {
  color: var(--irw-primary-dark);
}

