/*
 * NexumPilot brand tokens.
 *
 * The single source for colour, type and shape. The app imports this file;
 * anything else carrying the brand (website, emails, documents) should too,
 * or copy the values from brand/README.md.
 *
 * Fonts: Archivo (variable, with the width axis) and B612 Mono. Both are free
 * under the SIL Open Font Licence. The app self-hosts them from the
 * @fontsource-variable/archivo and @fontsource/b612-mono packages.
 */

:root {
  /* ---- Palette -------------------------------------------------------- */
  --np-ink: #18171f;         /* text, primary buttons, the header bar */
  --np-graphite: #2e2d38;    /* hover on ink */
  --np-slate: #5f5d6b;       /* secondary text */
  --np-haze: #c7c5ce;        /* strong rules, input borders */
  --np-rule: #e0dee4;        /* hairlines and dividers */
  --np-paper: #f5f4f6;       /* page background */
  --np-white: #ffffff;       /* surfaces that hold content */
  --np-route: #a21c7f;       /* the magenta line: links, focus, current step */
  --np-route-light: #f27bc9; /* the magenta line on ink */

  /* ---- Type ----------------------------------------------------------- */
  --np-font-sans: "Archivo Variable", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --np-font-mono: "B612 Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --np-stretch-display: 90%;  /* headings */
  --np-stretch-label: 85%;    /* uppercase labels and tags */

  /* ---- Shape ---------------------------------------------------------- */
  --radius: 4px;
  --radius-sm: 2px;

  /* ---- Semantic tokens, light ---------------------------------------- */
  --bg: var(--np-paper);
  --surface: var(--np-white);
  --sunk: #efeef2;
  --text: var(--np-ink);
  --muted: var(--np-slate);
  --border: var(--np-rule);
  --border-strong: var(--np-haze);
  --accent: var(--np-route);
  --accent-soft: #f7e5f1;
  --primary: var(--np-ink);
  --primary-hover: var(--np-graphite);
  --on-primary: var(--np-paper);

  --bar: var(--np-ink);
  --bar-text: #f0eff3;
  --bar-muted: #a8a6b4;
  --bar-border: #3a3944;
  --bar-accent: var(--np-route-light);

  --ok: #1e7a4a;
  --ok-soft: #e2f1e8;
  --warn: #8a5a00;
  --warn-soft: #faefd8;
  --danger: #b3261e;
  --danger-soft: #fbe9e7;
  --info: var(--np-graphite);
  --info-soft: #ebeaf0;
  --attention-row: #fdf8ee;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15141a;
    --surface: #1d1c23;
    --sunk: #18171d;
    --text: #edecf1;
    --muted: #a3a1af;
    --border: #2e2c36;
    --border-strong: #46444f;
    --accent: var(--np-route-light);
    --accent-soft: #3a1a31;
    --primary: #edecf1;
    --primary-hover: #ffffff;
    --on-primary: var(--np-ink);

    --bar: #0d0c11;
    --bar-border: #2a2931;

    --ok: #63cd92;
    --ok-soft: #15301f;
    --warn: #f0b75e;
    --warn-soft: #34270f;
    --danger: #f28b82;
    --danger-soft: #3a1714;
    --info: #d6d4de;
    --info-soft: #25242c;
    --attention-row: #241f14;

    color-scheme: dark;
  }
}
