/*
  Unimeat brand tokens (pilot).
  Light values sit on :root. Dark values sit on [data-bs-theme="dark"].
  Later packages should use these variables. Do not treat the colour-reference
  image or the client PDF mark as the logo. The pilot logo is the word Unimeat.
  Colour roles: Unimeat Red (--um-primary) is for the main action on a page
  and the brand mark only. Links, selection, focus, active menu items and
  tints use ink and soft greys (--um-primary-content, -light, -soft, -mid
  hold those neutral values), so red stands out where it is used.
  Inter is licensed under the SIL Open Font License.
  See assets/fonts/inter/OFL.txt.
*/

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/InterVariable.woff2") format("woff2-variations"), url("../fonts/inter/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root,
[data-bs-theme="light"] {
  --um-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-font-family: var(--um-font);

  /* Brand. These stay the same in both modes. */
  --um-primary: #7D160D;
  --um-primary-dark: #5A1009;
  --um-on-primary: #FFFFFF;
  --um-accent: #B8863A;
  --um-accent-dark: #8A6020;

  /* Light surfaces and text */
  --um-primary-mid: #D3CEC9;
  --um-primary-content: #1C1817;
  --um-primary-light: #F1EFEC;
  --um-primary-soft: #F6F5F3;
  --um-secondary: #1C1817;
  --um-secondary-muted: #37302E;
  --um-accent-light: #F5E8CC;
  --um-cream: #FFFAF6;
  --um-surface: #F6F5F3;
  --um-border: #E6E3E0;
  --um-text: #1C1817;
  --um-text-muted: #6B625F;
  --um-disabled: #A89E9A;
  --um-success: #2D7A48;
  --um-warning: #B8781C;
  --um-error: #A62424;
  --um-info: #3A6080;
}

[data-bs-theme="dark"] {
  --um-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-font-family: var(--um-font);

  --um-primary: #7D160D;
  --um-primary-dark: #5A1009;
  --um-on-primary: #FFFFFF;
  --um-accent: #B8863A;
  --um-accent-dark: #F5E8CC;

  /* Dark surfaces. Links use a lighter red so they stay readable. */
  --um-primary-mid: #5C5450;
  --um-primary-content: #FFFAF6;
  --um-primary-light: #2B2523;
  --um-primary-soft: #241F1D;
  --um-secondary: #FFFAF6;
  --um-secondary-muted: #E8E2DF;
  --um-accent-light: #3A3020;
  --um-cream: #1C1817;
  --um-surface: #2A2422;
  --um-border: #4A433F;
  --um-text: #FFFAF6;
  --um-text-muted: #C4BBB7;
  --um-disabled: #8A817D;
  --um-success: #6FBF8A;
  --um-warning: #E0A85C;
  --um-error: #F0A0A0;
  --um-info: #8FB4D0;
}

body {
  font-family: var(--um-font);
}

#theme-mode {
  cursor: pointer;
}

html[data-bs-theme="dark"] #theme-mode .um-theme-icon-dark {
  display: none;
}

html[data-bs-theme="light"] #theme-mode .um-theme-icon-light {
  display: none;
}
