/* Design tokens from the University of Cologne branding handbook (Sept. 2023).
   See docs/design.md for how they are applied. */

@font-face {
  font-family: "Albert Sans";
  src: url("../fonts/albert-sans-latin.woff2") format("woff2");
  font-weight: 100 900;
  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";
  src: url("../fonts/albert-sans-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  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: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 200 900;
  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: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-ext.woff2") format("woff2");
  font-weight: 200 900;
  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: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Primary colours (handbook 1.2) */
  --blue: #005176;
  --turquoise: #009dcc;
  --coral: #ea564f;

  /* Tints: the handbook allows 10 % steps of each colour. */
  --blue-80: color-mix(in srgb, var(--blue) 80%, white);
  --blue-60: color-mix(in srgb, var(--blue) 60%, white);
  --blue-40: color-mix(in srgb, var(--blue) 40%, white);
  --blue-20: color-mix(in srgb, var(--blue) 20%, white);
  --blue-10: color-mix(in srgb, var(--blue) 10%, white);
  --blue-05: color-mix(in srgb, var(--blue) 5%, white);
  --turquoise-30: color-mix(in srgb, var(--turquoise) 30%, white);
  --turquoise-10: color-mix(in srgb, var(--turquoise) 10%, white);
  --coral-20: color-mix(in srgb, var(--coral) 20%, white);
  --coral-10: color-mix(in srgb, var(--coral) 10%, white);

  /* Darker accents for small text: the pure accents fail WCAG AA on white. */
  --coral-text: #c8372f;
  --turquoise-text: #00779b;

  /* Status colours. Not in the handbook; always paired with an icon or label. */
  --ok: #2e7d4f;
  --warn: #9a5b00;

  --ink: #10222b;
  --ink-soft: #4a5b64;
  --surface: #ffffff;
  --on-dark: #ffffff;
  --page: #ffffff;
  --line: var(--blue-20);

  /* Typography (handbook 1.3): Albert Sans and Source Serif, Arial as fallback. */
  --font-sans: "Albert Sans", Arial, Helvetica, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;

  --radius: 2px;
  --width: 72rem;
  --focus: 3px solid var(--turquoise);
}
