/*
  Moko Industries — color palettes.
  Every color on the site comes from this file.

  Switch palette: change data-palette on <html> in index.html / scout.html / access.html
    <html data-palette="navy">   smart blue + prussian navy (default)
    <html data-palette="signal"> graphite + signal orange
    <html data-palette="blue">   steel blue
    <html data-palette="green">  field green
    <html data-palette="amber">  signal amber

  New palette: copy one block, rename it, change the hex values.
  --brand-*  accent scale (50 lightest → 900 darkest)
  --ink-*    tinted neutrals used for backgrounds, lines and text
*/

[data-palette="navy"] {
  --brand-50:  #edf4fd;
  --brand-100: #d6e7fb;
  --brand-200: #a9cdf6;
  --brand-300: #6aa8ee;
  --brand-400: #2f86e0;
  --brand-500: #0466c8;  /* smart blue */
  --brand-600: #0353a4;  /* sapphire */
  --brand-700: #023e7d;  /* regal navy */
  --brand-800: #002855;  /* prussian blue */
  --brand-900: #001845;

  --ink-0:   #ffffff;
  --ink-50:  #f3f5f9;
  --ink-100: #e6eaf1;
  --ink-200: #cfd5e0;
  --ink-300: #979dac;  /* lavender grey */
  --ink-400: #7d8597;  /* slate grey */
  --ink-500: #5c677d;  /* blue slate */
  --ink-600: #33415c;  /* twilight indigo */
  --ink-700: #1a2a4a;
  --ink-800: #0a1f40;
  --ink-900: #001845;  /* prussian blue 2 */
  --ink-950: #001233;  /* prussian blue 3 */
}

[data-palette="signal"] {
  --brand-50:  #fff4ec;
  --brand-100: #ffe3cf;
  --brand-200: #ffc39c;
  --brand-300: #ff9d63;
  --brand-400: #ff7a33;
  --brand-500: #ff5f0f;
  --brand-600: #e04a00;
  --brand-700: #b33a02;
  --brand-800: #852c06;
  --brand-900: #4d1a05;

  --ink-0:   #ffffff;
  --ink-50:  #eef1f3;
  --ink-100: #dde2e6;
  --ink-200: #bcc4cb;
  --ink-300: #949ea8;
  --ink-400: #707b86;
  --ink-500: #525c66;
  --ink-600: #353d46;
  --ink-700: #222930;
  --ink-800: #151a1f;
  --ink-900: #0c1014;
  --ink-950: #06080a;
}

[data-palette="blue"] {
  --brand-50:  #eef4ff;
  --brand-100: #d9e6ff;
  --brand-200: #b3ccff;
  --brand-300: #84abff;
  --brand-400: #5a8cff;
  --brand-500: #3d7eff;
  --brand-600: #2a63e6;
  --brand-700: #1e4fd6;
  --brand-800: #183c9e;
  --brand-900: #0f2660;

  --ink-0:   #ffffff;
  --ink-50:  #f3f5f8;
  --ink-100: #e4e8ee;
  --ink-200: #c9d0db;
  --ink-300: #a3adbc;
  --ink-400: #7c8798;
  --ink-500: #5b6575;
  --ink-600: #3a4251;
  --ink-700: #232a36;
  --ink-800: #141922;
  --ink-900: #0a0d13;
  --ink-950: #05070a;
}

[data-palette="green"] {
  --brand-50:  #edfbf3;
  --brand-100: #d2f5e1;
  --brand-200: #a5eac4;
  --brand-300: #6fd9a2;
  --brand-400: #3fc482;
  --brand-500: #22a96a;
  --brand-600: #188a56;
  --brand-700: #136d45;
  --brand-800: #0f5236;
  --brand-900: #093322;

  --ink-0:   #ffffff;
  --ink-50:  #f3f6f4;
  --ink-100: #e3e9e5;
  --ink-200: #c8d2cb;
  --ink-300: #a2b0a7;
  --ink-400: #7b8a80;
  --ink-500: #5a675f;
  --ink-600: #3a443e;
  --ink-700: #232b26;
  --ink-800: #141a16;
  --ink-900: #0a0e0b;
  --ink-950: #050806;
}

[data-palette="amber"] {
  --brand-50:  #fff8eb;
  --brand-100: #ffedc7;
  --brand-200: #ffd98a;
  --brand-300: #ffc24d;
  --brand-400: #ffad1f;
  --brand-500: #f29100;
  --brand-600: #cc7300;
  --brand-700: #a35a02;
  --brand-800: #7a4306;
  --brand-900: #4a2905;

  --ink-0:   #ffffff;
  --ink-50:  #f7f5f2;
  --ink-100: #ebe7e1;
  --ink-200: #d4cdc3;
  --ink-300: #b2a99c;
  --ink-400: #8c8274;
  --ink-500: #6a6155;
  --ink-600: #443e36;
  --ink-700: #2a2620;
  --ink-800: #191612;
  --ink-900: #0d0b09;
  --ink-950: #070605;
}

/* Semantic tokens — the rest of the site only uses these. */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--ink-950);
  --bg-2: var(--ink-900);
  --bg-3: var(--ink-800);
  --fg: var(--ink-50);
  --fg-2: var(--ink-200);
  --fg-3: var(--ink-400);
  --fg-4: var(--ink-600);
  --line: color-mix(in srgb, var(--ink-0) 10%, transparent);
  --line-2: color-mix(in srgb, var(--ink-0) 18%, transparent);
  --accent: var(--brand-500);
  --accent-strong: var(--brand-400);
  --accent-ink: var(--ink-0);
  --accent-soft: color-mix(in srgb, var(--brand-500) 16%, transparent);
  --accent-glow: color-mix(in srgb, var(--brand-500) 38%, transparent);
  --nav-bg: color-mix(in srgb, var(--ink-950) 72%, transparent);
  --scrim: color-mix(in srgb, var(--ink-950) 70%, transparent);
  --stage: var(--ink-900);
  --map-free: var(--ink-800);
  --map-wall: var(--ink-100);
  --map-unknown: var(--ink-950);
  --panel: color-mix(in srgb, var(--ink-0) 2.5%, transparent);
  --panel-2: color-mix(in srgb, var(--ink-0) 5%, transparent);
  --bracket: color-mix(in srgb, var(--ink-0) 38%, transparent);
  --cta-bg: var(--ink-50);
  --cta-fg: var(--ink-950);
  --cta-bg-hover: var(--ink-0);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: var(--ink-50);
  --bg-2: var(--ink-0);
  --bg-3: var(--ink-100);
  --fg: var(--ink-900);
  --fg-2: var(--ink-700);
  --fg-3: var(--ink-500);
  --fg-4: var(--ink-300);
  --line: color-mix(in srgb, var(--ink-900) 10%, transparent);
  --line-2: color-mix(in srgb, var(--ink-900) 18%, transparent);
  --accent: var(--brand-500);
  --accent-strong: var(--brand-600);
  --accent-ink: var(--ink-0);
  --accent-soft: color-mix(in srgb, var(--brand-600) 12%, transparent);
  --accent-glow: color-mix(in srgb, var(--brand-500) 28%, transparent);
  --nav-bg: color-mix(in srgb, var(--ink-50) 80%, transparent);
  --scrim: color-mix(in srgb, var(--ink-950) 62%, transparent);
  --stage: var(--ink-100);
  --map-free: var(--ink-0);
  --map-wall: var(--ink-900);
  --map-unknown: var(--ink-100);
  --panel: color-mix(in srgb, var(--ink-0) 70%, transparent);
  --panel-2: var(--ink-0);
  --bracket: color-mix(in srgb, var(--ink-900) 40%, transparent);
  --cta-bg: var(--ink-950);
  --cta-fg: var(--ink-0);
  --cta-bg-hover: var(--ink-800);
}
