/* Mooro design tokens: the one place the product's brand lives (DESIGN-MOORO.md).
   Loaded before edge.css, public_site.css and the other product stylesheets, which read these
   --mooro-* values through their own tokens (--primary, --accent, --p-accent, --font-sans ...).
   Change a colour or the font here, not in the pages. */

/* Gabarito, self-hosted (SIL OFL, static/fonts/gabarito/OFL.txt). One variable file covers 400-900. */
@font-face {
  font-family: "Gabarito";
  src: url("../fonts/gabarito/Gabarito-wght.ttf") format("truetype-variations"),
       url("../fonts/gabarito/Gabarito-wght.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* greens, from the logo */
  --mooro-green: #4CB487;        /* primary: fills, the accent, focus on dark */
  --mooro-green-deep: #3A9D73;   /* hover on a green fill, borders */
  --mooro-green-light: #8FE0B8;  /* green text and links on dark */
  --mooro-mint: #C9FBE0;         /* highlight, soft fills */
  --mooro-forest: #12402F;       /* text on light, the wordmark, primary buttons on light */
  --mooro-pale-mint: #EAFFF5;    /* text on dark and on forest */
  --mooro-shadow: #1D5F43;       /* darkest green: green text on light, hover on forest */

  /* neutrals */
  --mooro-bg: #FAFAFA;           /* page background */
  --mooro-surface-dark: #0F1F19; /* dark surface: replaces Arcadian Black on Mooro surfaces */
  --mooro-surface-dark-2: #18302A;

  /* type */
  --mooro-font: "Gabarito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mooro-font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* The product's own logo lock-ups. Light logo on light grounds, dark logo on dark grounds. */
.mooro-logo { display: inline-flex; align-items: center; line-height: 0; }
.mooro-logo img { display: block; height: 28px; width: auto; }
.mooro-icon { display: inline-block; flex: none; width: 32px; height: 32px; }
.mooro-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mooro-logo .mooro-logo--dark, .mooro-icon .mooro-logo--dark { display: none; }
[data-theme="dark"] .mooro-logo .mooro-logo--light, [data-theme="dark"] .mooro-icon .mooro-logo--light { display: none; }
[data-theme="dark"] .mooro-logo .mooro-logo--dark, [data-theme="dark"] .mooro-icon .mooro-logo--dark { display: block; }
.mooro-on-dark .mooro-logo--light { display: none !important; }
.mooro-on-dark .mooro-logo--dark { display: block !important; }

/* The app's body text in Gabarito (Bootstrap pages read --bs-body-font-family). */
:root { --bs-body-font-family: var(--mooro-font); }
body { font-family: var(--mooro-font); }
