/*
 * Tinfirm's look on the docs site: the web app's colours and typefaces (DESIGN.md), on
 * Zensical's theme. Agent Green leads; Needs-a-Human Orange is not used here, as it marks only
 * where a person must act in the app (the Scarce Orange Rule).
 */

/* Figtree for text and DM Mono for code, self-hosted (OFL-*.txt beside the files), from the
   same @fontsource releases as the web app. */
@font-face {
  font-family: "Figtree Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("../fonts/figtree-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: "Figtree Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("../fonts/figtree-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: "DM Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/dm-mono-latin-ext-400-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: "DM Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/dm-mono-latin-400-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: "DM Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/dm-mono-latin-ext-500-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: "DM Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/dm-mono-latin-500-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;
}

:root {
  --md-text-font: "Figtree Variable";
  --md-code-font: "DM Mono";
}

/* Light: Agent Green (agent-green), Logo Stem as its lighter tone, and a darker shade for hover. */
:root,
[data-md-color-scheme="default"] {
  --md-primary-fg-color: #1d6a4d;
  --md-primary-fg-color--light: #4fae86;
  --md-primary-fg-color--dark: #14503a;
  --md-primary-bg-color: #ffffff;
  --md-primary-bg-color--light: #ffffffb3;
  --md-accent-fg-color: #14503a;
  --md-accent-fg-color--transparent: #1d6a4d1a;
  --md-accent-bg-color: #ffffff;
  --md-accent-bg-color--light: #ffffffb3;
  --md-typeset-a-color: #1d6a4d;
}

/* Dark: night-agent-green, night-logo-stem as its darker tone, a lighter shade for hover, and
   night-agent-green-foreground on it. */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #72d3a8;
  --md-primary-fg-color--light: #9fe2c4;
  --md-primary-fg-color--dark: #3f8c6b;
  --md-primary-bg-color: #0b1f16;
  --md-primary-bg-color--light: #0b1f16b3;
  --md-accent-fg-color: #9fe2c4;
  --md-accent-fg-color--transparent: #72d3a81a;
  --md-accent-bg-color: #0b1f16;
  --md-accent-bg-color--light: #0b1f16b3;
  --md-typeset-a-color: #72d3a8;
}
