/* Shipped with the theme rather than pulled from a CDN: Adobe Fonts saw every
   visitor's IP before they reached the privacy notice on the same page, and
   static.storl.de sends no Access-Control-Allow-Origin, which webfonts require. */

@font-face {
  font-family: "arek";
  src: url("../fonts/arek-22756-webfont.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "arek";
  src: url("../fonts/arek-22546-webfont.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "arek";
  src: url("../fonts/arek-22541-webfont.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "arek";
  src: url("../fonts/arek-22539-webfont.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Mulish is a variable font, one file for the whole weight range. Licence in
   mulish-OFL.txt next to it. */
@font-face {
  font-family: "Mulish";
  src: url("../fonts/mulish-latin.woff2") format("woff2");
  font-weight: 300 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: "Mulish";
  src: url("../fonts/mulish-latin-ext.woff2") format("woff2");
  font-weight: 300 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;
}

:root {
  --storl-font-serif: "arek", "Georgia", serif;
  --storl-font-sans: "Mulish", system-ui, "Segoe UI", "Helvetica Neue", arial, sans-serif;

  --storl-moss: #496f56;
  --storl-moss-dark: #33503d;
  --storl-olive: #92ac7b;
  --storl-leaf: #abcf84;
  --storl-mustard: #d9d37f;
  --storl-cherry: #cc666a;
  --storl-yellow: #f0f0c9;
  --storl-peach: #e7bc9c;
  --storl-slate: #484543;

  /* The pairing storl-akademie.de uses: Arek for headings and buttons, Mulish
     for body copy. */
  --pf-v5-global--FontFamily--text: var(--storl-font-sans);
  --pf-v5-global--FontFamily--text--vf: var(--storl-font-sans);
  --pf-v5-global--FontFamily--heading: var(--storl-font-serif);
  --pf-v5-global--FontFamily--heading--vf: var(--storl-font-serif);

  --pf-v5-global--Color--100: var(--storl-slate);
  --pf-v5-global--Color--200: var(--storl-slate);
}

/* Components redeclare the accent colours on themselves — the input's focus
   underline and the secondary button's border keep PatternFly blue otherwise.
   Matching their specificity from a stylesheet that loads later wins, and
   catches the components we have not looked at yet. */
:root,
[class*="pf-v5-c-"] {
  --pf-v5-global--link--Color: var(--storl-moss);
  --pf-v5-global--link--Color--hover: var(--storl-olive);
  --pf-v5-global--primary-color--100: var(--storl-moss);
  --pf-v5-global--primary-color--200: var(--storl-moss-dark);
  --pf-v5-global--active-color--100: var(--storl-moss);
  --pf-v5-global--danger-color--100: var(--storl-cherry);
  --pf-v5-global--danger-color--200: var(--storl-cherry);
}

.pf-v5-c-form-control {
  --pf-v5-c-form-control--focus--after--BorderBottomWidth: var(--pf-v5-global--BorderWidth--sm);
}

.pf-v5-c-button {
  font-family: var(--storl-font-serif);
}
