/* Farol Systems theme for Zulip 13.2 at chat.farolsys.com (#392; Will 2026-11-16 10:54 PM ET:
   "color and font change is enough. use farol systems branding/typeface").

   COLOURS AND TYPEFACE ONLY. Declared in pods/farol/chat.conf [theme]; served by the chat server
   itself from /loom-theme/ and linked into Zulip's pages by nginx (bin/loom-chat). `loom chat`
   REFUSES this file if it sets any property other than a CSS variable or font-family, uses
   @import, loads a url() outside /loom-theme/, or names a variable Zulip 13.2 does not define.

   Mechanism (read from the installed bundles, not guessed): Zulip 13.2 defines its colours as
   variables on :root, almost all as light-dark(<light>, <dark>), and dark mode only sets
   `color-scheme: dark` on .dark-theme:root. So each variable below is light-dark(<Farol light>,
   <Farol dark>) and one block covers both modes. The selector html:root:root (specificity 0,2,1)
   outranks Zulip's :root and .dark-theme:root, whatever order the bundles load in.

   Ratified palette: Night #07111F · Navy #0B1F3A · Atlantic #14508F · Tide #2E7CC2 ·
   Shallows #CFE3F4 · Beam #FFC83D · Signal #F5A524 · Ember #9A5B00 · Bone #F7F5F0 ·
   Slate #55637A · Mist #9DACC2 · Line #DDD8CC. Typeface Inter (OFL 1.1, served from this
   server with its licence: /loom-theme/Inter-OFL-LICENSE.txt). Contrast is computed in
   tests/verbs/test_chat.py (ThemeContrast), not eyeballed. */

@font-face {
  font-family: "Inter Farol";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/loom-theme/InterVariable.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Farol";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/loom-theme/InterVariable-Italic.woff2") format("woff2");
}

html:root:root {
  /* typeface: Zulip's own font variables */
  --font-ss3: "Inter Farol", "Source Sans 3 VF", sans-serif;
  --font-ops: "Inter Farol", "Open Sans Variable", sans-serif;

  /* surfaces */
  --color-background: light-dark(#F7F5F0, #07111F);
  --color-background-navbar: light-dark(#F7F5F0, #0B1F3A);
  --color-navbar-bottom-border: light-dark(#DDD8CC, #07111F);
  --color-navbar-icon: light-dark(#55637A, #9DACC2);
  --color-background-private-message-header: light-dark(color-mix(in srgb, #FFC83D 22%, #F7F5F0), color-mix(in srgb, #F5A524 18%, #0B1F3A));

  /* text */
  --color-text-default: light-dark(#0B1F3A, #F7F5F0);
  --color-text-message-default: light-dark(#07111F, #F7F5F0);
  --color-text-message-header: light-dark(#0B1F3A, #F7F5F0);
  --color-text-message-view-header: light-dark(#0B1F3A, #F7F5F0);

  /* links */
  --color-text-link: light-dark(#14508F, #CFE3F4);
  --color-text-link-hover: light-dark(#0B1F3A, #FFC83D);
  --color-text-link-active: light-dark(#07111F, #FFC83D);
  --color-text-generic-link: light-dark(#14508F, #CFE3F4);
  --color-text-url: light-dark(#14508F, #CFE3F4);
  --color-text-url-hover: light-dark(#0B1F3A, #FFC83D);
  --color-markdown-link: light-dark(#14508F, #CFE3F4);
  --color-markdown-link-hover: light-dark(#0B1F3A, #FFC83D);
  --color-markdown-link-active: light-dark(#07111F, #FFC83D);

  /* unread: the marker bar and the counters */
  --color-unread-marker: light-dark(#2E7CC2, #FFC83D);
  --color-background-unread-counter-prominent: light-dark(#14508F, #14508F);
  --color-unread-counter-prominent: #F7F5F0;
  --color-background-unread-counter-normal: light-dark(#CFE3F4, #0B1F3A);
  --color-unread-counter-normal: light-dark(#0B1F3A, #F7F5F0);

  /* mentions: the message row, the pill, the "you were mentioned" text */
  --color-background-direct-mention: light-dark(color-mix(in srgb, #FFC83D 18%, #F7F5F0), color-mix(in srgb, #FFC83D 12%, #07111F));
  --color-background-text-direct-mention: light-dark(color-mix(in srgb, #FFC83D 30%, #F7F5F0), color-mix(in srgb, #FFC83D 30%, #07111F));
  --color-text-self-direct-mention: light-dark(color-mix(in srgb, #9A5B00 80%, #07111F), #FFC83D);
  --color-background-group-mention: light-dark(color-mix(in srgb, #CFE3F4 45%, #F7F5F0), color-mix(in srgb, #2E7CC2 18%, #07111F));
  --color-background-text-group-mention: light-dark(#CFE3F4, color-mix(in srgb, #2E7CC2 35%, #07111F));
  --color-text-self-group-mention: light-dark(#14508F, #CFE3F4);

  /* focus and selection */
  --color-outline-focus: light-dark(#2E7CC2, #FFC83D);
  --color-selected-message-outline: light-dark(#2E7CC2, #FFC83D);
}

/* Zulip sets the body typeface directly (font-family: "Source Sans 3 VF" on these selectors in
   its 13.2 bundles), not through --font-ss3, so the same selectors get the same single property.
   font-family only; nothing else. */
body,
[data-tippy-root],
.error_page,
.new-style button,
.new-style .input-box input {
  font-family: var(--font-ss3);
}
