/* Armada design tokens, from the Armada Brand Book v0.6. */
/* Brand colors are Carbon, Paper, Cherenkov (with 600 and 700), Graphite and Mist. */
/* The status colors at the end are functional (state only, never decoration) and sit outside the brand palette. */

@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/host-grotesk-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Host Grotesk";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/host-grotesk-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/host-grotesk-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/host-grotesk-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/host-grotesk-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-600-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Fragment Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fragment-mono-latin-400-normal.woff2") format("woff2");
}

:root {
  /* Brand palette */
  --carbon: #222222;
  --paper: #ffffff;
  --cherenkov: #0fc8f6;
  --cherenkov-600: #0888a8;
  --cherenkov-700: #066a82;
  --graphite: #6e6e6e;
  --mist: #e5e5e5;

  /* Type: Host Grotesk for display and labels, Source Serif 4 for reading, Fragment Mono for data (never bold) */
  --font-ui: "Host Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-read: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-data: "Fragment Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Scale */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --gap: 12px;
  --row: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Light theme (Paper): the reading theme */
  --bg: #f4f4f3;
  --surface: #ffffff;
  --surface-2: #f8f8f7;
  --surface-3: #efefee;
  --line: #e5e5e5;
  --line-strong: #cfcfcf;
  --text: #222222;
  --text-2: #4a4a4a;
  --muted: #6e6e6e;
  --accent: #066a82; /* Cherenkov 700 for small accent type on Paper */
  --accent-large: #0888a8; /* Cherenkov 600 for large figures on Paper */
  --accent-fill: #0fc8f6;
  --accent-ink: #222222; /* text placed on a Cherenkov fill */
  --focus: #0888a8;
  --shadow: 0 1px 2px rgba(34, 34, 34, 0.06), 0 6px 24px rgba(34, 34, 34, 0.06);
  --shadow-lift: 0 2px 6px rgba(34, 34, 34, 0.1), 0 18px 48px rgba(34, 34, 34, 0.14);

  /* Functional status colors (state only) */
  --up: #0888a8;
  --down: #c4462b;
  --warn: #a86a00;
  --ok: #0888a8;
  --up-bg: rgba(8, 136, 168, 0.1);
  --down-bg: rgba(196, 70, 43, 0.1);
  --warn-bg: rgba(168, 106, 0, 0.12);
  color-scheme: light;
}

/* Dark theme (Carbon): the trading theme. Applied by system preference unless the viewer picked light. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1a1a;
    --surface: #222222;
    --surface-2: #282828;
    --surface-3: #303030;
    --line: #353535;
    --line-strong: #474747;
    --text: #ffffff;
    --text-2: #d6d6d6;
    --muted: #a3a3a3;
    --accent: #0fc8f6; /* Cherenkov itself on Carbon */
    --accent-large: #0fc8f6;
    --accent-fill: #0fc8f6;
    --accent-ink: #222222;
    --focus: #0fc8f6;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 28px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 4px 10px rgba(0, 0, 0, 0.5), 0 24px 60px rgba(0, 0, 0, 0.55);
    --up: #0fc8f6;
    --down: #ff8a6b;
    --warn: #f2b544;
    --ok: #0fc8f6;
    --up-bg: rgba(15, 200, 246, 0.12);
    --down-bg: rgba(255, 138, 107, 0.12);
    --warn-bg: rgba(242, 181, 68, 0.14);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1a1a1a;
  --surface: #222222;
  --surface-2: #282828;
  --surface-3: #303030;
  --line: #353535;
  --line-strong: #474747;
  --text: #ffffff;
  --text-2: #d6d6d6;
  --muted: #a3a3a3;
  --accent: #0fc8f6;
  --accent-large: #0fc8f6;
  --accent-fill: #0fc8f6;
  --accent-ink: #222222;
  --focus: #0fc8f6;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 28px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 4px 10px rgba(0, 0, 0, 0.5), 0 24px 60px rgba(0, 0, 0, 0.55);
  --up: #0fc8f6;
  --down: #ff8a6b;
  --warn: #f2b544;
  --ok: #0fc8f6;
  --up-bg: rgba(15, 200, 246, 0.12);
  --down-bg: rgba(255, 138, 107, 0.12);
  --warn-bg: rgba(242, 181, 68, 0.14);
  color-scheme: dark;
}
