/* ══════════════════════════════════════════
   svbk.dev · themes
   Ten palettes, one per browser tab. /assets/js/theme.js picks one before
   first paint and sets html[data-palette]; Flight Suit is :root, so it is
   also what visitors without JS get. Fonts, layout and motifs never change;
   colour is the variable.
   Every block sets the full token set, including the r, g, b triplets
   (comma-separated, so they work in CSS rgba() and in the hero canvas).
   Adding or removing a palette: edit this file AND the list in theme.js.
   ══════════════════════════════════════════ */

/* FLIGHT SUIT (default): graphite, silver, international orange */
:root {
  color-scheme: dark;  /* native scrollbars and form controls; light palettes override */
  --graphite: #16171a;
  --panel: #1d1f23;
  --well: #0e0f11;
  --rule: #2a2c31;
  --rule-2: #3a3d44;
  --silver: #c4c7cc;
  --bright: #e6e7e9;
  --dim: #8b8f96;
  --acc: #ff4f00;
  --ok: #5fd394;
  --wait: #f0b44c;

  --paper: #e6e7e9;
  --ink: #16171a;
  --ink-2: #3d4046;
  --ink-mute: #55595f;
  --acc-ink: #b33600;

  /* the same colours as r, g, b triplets, for rgba() in CSS and the hero canvas */
  --graphite-rgb: 22, 23, 26;
  --well-rgb: 14, 15, 17;
  --silver-rgb: 196, 199, 204;
  --bright-rgb: 230, 231, 233;
  --dim-rgb: 139, 143, 150;
  --acc-rgb: 255, 79, 0;
  --ink-rgb: 22, 23, 26;
  --acc-ink-rgb: 179, 54, 0;
  --on-acc: #16171a;  /* text on an accent fill */
  --ls-rule: #a9acb2; /* dashed rule in the paper table */
  --ph: #6e727a;      /* input placeholder */
  --err: #ff8070;
}

/* MISSION CONTROL: midnight navy, cool steel, signal red (flight-ops consoles) */
html[data-palette="mission"] {
  --graphite: #0d1220;  --graphite-rgb: 13, 18, 32;
  --panel: #141b2c;
  --well: #080c16;      --well-rgb: 8, 12, 22;
  --rule: #222b3e;
  --rule-2: #323d55;
  --silver: #b8c1d2;    --silver-rgb: 184, 193, 210;
  --bright: #e9eef6;    --bright-rgb: 233, 238, 246;
  --dim: #7d89a1;       --dim-rgb: 125, 137, 161;
  --acc: #ff3b4e;       --acc-rgb: 255, 59, 78;
  --ok: #4fd1a5;
  --wait: #f5c451;
  --paper: #e9edf3;
  --ink: #0d1220;       --ink-rgb: 13, 18, 32;
  --ink-2: #333c50;
  --ink-mute: #4e586c;
  --acc-ink: #c4102b;   --acc-ink-rgb: 196, 16, 43;
  --on-acc: #0d1220;
  --ls-rule: #a6aec0;
  --ph: #6b7690;
  --err: #ffa08a;       /* warm, so errors stay distinct from the red accent */
}

/* DRAFTING TABLE: light. Bone paper, graphite ink, survey teal; the career
   log flips to the dark section (the inverse of the dark palettes). */
html[data-palette="drafting"] {
  --graphite: #eceae4;  --graphite-rgb: 236, 234, 228;  /* page background */
  --panel: #e3e0d8;
  --well: #f7f6f2;      --well-rgb: 247, 246, 242;
  --rule: #d2cec4;
  --rule-2: #b9b4a8;
  --silver: #3a3e44;    --silver-rgb: 58, 62, 68;       /* body text */
  --bright: #121417;    --bright-rgb: 18, 20, 23;       /* headings */
  --dim: #696d73;       --dim-rgb: 105, 109, 115;
  --acc: #006e6a;       --acc-rgb: 0, 110, 106;
  --ok: #1a7f44;
  --wait: #9a5f00;
  --paper: #15181b;                                      /* career log: dark */
  --ink: #eceae4;       --ink-rgb: 236, 234, 228;
  --ink-2: #b7bbc0;
  --ink-mute: #959aa1;
  --acc-ink: #5cc8c0;   --acc-ink-rgb: 92, 200, 192;
  --on-acc: #f7f6f2;
  --ls-rule: #3a3e44;
  --ph: #8a8e94;
  --err: #c0392b;
}

/* AIRMAIL (from the Yully Lacerda board): light. Cream #FEF1D5 page, navy #0C324A
   ink, livery red #C11720 accent; the career log is a navy block with sky #679CBC
   highlights (lifted slightly to #7FB0CE so small text stays readable on navy). */
html[data-palette="airmail"] {
  --graphite: #fef1d5;  --graphite-rgb: 254, 241, 213;
  --panel: #f6e6c3;
  --well: #fff8e8;      --well-rgb: 255, 248, 232;
  --rule: #e6d5b0;
  --rule-2: #cdbb93;
  --silver: #2e4556;    --silver-rgb: 46, 69, 86;
  --bright: #0c324a;    --bright-rgb: 12, 50, 74;
  --dim: #5f6f78;       --dim-rgb: 95, 111, 120;
  --acc: #c11720;       --acc-rgb: 193, 23, 32;
  --ok: #1e7a46;
  --wait: #a35f00;
  --paper: #0c324a;
  --ink: #fef1d5;       --ink-rgb: 254, 241, 213;
  --ink-2: #c9d6de;
  --ink-mute: #9fb4c2;
  --acc-ink: #7fb0ce;   --acc-ink-rgb: 127, 176, 206;
  --on-acc: #fef1d5;
  --ls-rule: #3e6077;
  --ph: #8a8f88;
  --err: #9c1b4a;
}

/* NEON NOIR: black #000 terminals on near-black, violet #C82BFF accent, neon green
   #2CFF05 kept for "OK" states and the career log, which becomes a #2D2D2D block. */
html[data-palette="neonnoir"] {
  --graphite: #0a0a0b;  --graphite-rgb: 10, 10, 11;
  --panel: #161617;
  --well: #000000;      --well-rgb: 0, 0, 0;
  --rule: #2d2d2d;
  --rule-2: #404040;
  --silver: #c9c9cc;    --silver-rgb: 201, 201, 204;
  --bright: #f2f2f3;    --bright-rgb: 242, 242, 243;
  --dim: #8c8c91;       --dim-rgb: 140, 140, 145;
  --acc: #c82bff;       --acc-rgb: 200, 43, 255; /* #BF00FF lifted for small text on black */
  --ok: #2cff05;
  --wait: #ffc21a;
  --paper: #2d2d2d;
  --ink: #f2f2f3;       --ink-rgb: 242, 242, 243;
  --ink-2: #bdbdc2;
  --ink-mute: #9a9aa0;
  --acc-ink: #2cff05;   --acc-ink-rgb: 44, 255, 5;
  --on-acc: #ffffff;
  --ls-rule: #4a4a4a;
  --ph: #6e6e73;
  --err: #ff6b8a;
}

/* COBALT SKY: deep indigo (from #000080) page, sky #82C8E5 accent, slate #6D8196
   for quiet text; the career log is a cobalt #0047AB block with white ink. */
html[data-palette="cobaltsky"] {
  --graphite: #060a26;  --graphite-rgb: 6, 10, 38;
  --panel: #0d1440;
  --well: #03061a;      --well-rgb: 3, 6, 26;
  --rule: #1b2456;
  --rule-2: #2a3670;
  --silver: #b9c6d8;    --silver-rgb: 185, 198, 216;
  --bright: #eef4fa;    --bright-rgb: 238, 244, 250;
  --dim: #6d8196;       --dim-rgb: 109, 129, 150;
  --acc: #82c8e5;       --acc-rgb: 130, 200, 229;
  --ok: #5fd3a0;
  --wait: #f2c14e;
  --paper: #0047ab;
  --ink: #ffffff;       --ink-rgb: 255, 255, 255;
  --ink-2: #d3e2f5;
  --ink-mute: #b5cbea;
  --acc-ink: #82c8e5;   --acc-ink-rgb: 130, 200, 229;
  --on-acc: #000080;
  --ls-rule: #4f7fc6;
  --ph: #5e6e8a;
  --err: #ff8a80;
}

/* BLACKBOX (from the "No. 04" board): pure black #000 page, white #FEFEFE type,
   signal blue #55ACEE accent, slate #66757F for rules and quiet text; the career
   log sits on the board's own warm grey #E6E5DD. Black and white like a flight recorder. */
html[data-palette="blackbox"] {
  --graphite: #000000;  --graphite-rgb: 0, 0, 0;
  --panel: #101214;
  --well: #0a0b0c;      --well-rgb: 10, 11, 12;
  --rule: #24282b;
  --rule-2: #3a4247;
  --silver: #c9d0d5;    --silver-rgb: 201, 208, 213;
  --bright: #fefefe;    --bright-rgb: 254, 254, 254;
  --dim: #7d8c96;       --dim-rgb: 125, 140, 150;   /* slate #66757F, lifted for small text on black */
  --acc: #55acee;       --acc-rgb: 85, 172, 238;
  --ok: #4fd18b;
  --wait: #f2c14e;
  --paper: #e6e5dd;
  --ink: #000000;       --ink-rgb: 0, 0, 0;
  --ink-2: #33393e;
  --ink-mute: #4f5a62;
  --acc-ink: #155e9c;   --acc-ink-rgb: 21, 94, 156; /* the blue, deepened to read on warm grey */
  --on-acc: #000000;
  --ls-rule: #a8ada8;
  --ph: #5c6770;
  --err: #ff7a70;
}

/* DAYLIGHT: light. The Flight Suit in daylight: off-white page, near-black ink,
   orange deepened to #C93A00 so it reads as text; the career log is the
   original graphite Flight Suit, with international orange back at full strength. */
html[data-palette="daylight"] {
  --graphite: #f7f7f5;  --graphite-rgb: 247, 247, 245;
  --panel: #eeeeeb;
  --well: #ffffff;      --well-rgb: 255, 255, 255;
  --rule: #ddddd8;
  --rule-2: #c4c4be;
  --silver: #33363b;    --silver-rgb: 51, 54, 59;
  --bright: #0f1012;    --bright-rgb: 15, 16, 18;
  --dim: #686b70;       --dim-rgb: 104, 107, 112;
  --acc: #c93a00;       --acc-rgb: 201, 58, 0;
  --ok: #1a7f44;
  --wait: #9a5f00;
  --paper: #16171a;
  --ink: #e6e7e9;       --ink-rgb: 230, 231, 233;
  --ink-2: #b4b7bc;
  --ink-mute: #8b8f96;
  --acc-ink: #ff4f00;   --acc-ink-rgb: 255, 79, 0;
  --on-acc: #ffffff;
  --ls-rule: #3a3d44;
  --ph: #8a8d92;
  --err: #b3261e;
}

/* FIELD NOTEBOOK: light. Sage paper, forest ink, rust accent; the career log is
   a forest-green block with peach highlights. Earthy and calm. */
html[data-palette="fieldnotebook"] {
  --graphite: #e9ede4;  --graphite-rgb: 233, 237, 228;
  --panel: #dfe4d9;
  --well: #f4f6f0;      --well-rgb: 244, 246, 240;
  --rule: #cdd4c5;
  --rule-2: #b3bcaa;
  --silver: #2f3a31;    --silver-rgb: 47, 58, 49;
  --bright: #142019;    --bright-rgb: 20, 32, 25;
  --dim: #5e6b61;       --dim-rgb: 94, 107, 97;
  --acc: #a8401f;       --acc-rgb: 168, 64, 31;
  --ok: #2e7d32;
  --wait: #9a5f00;
  --paper: #1e3a2c;
  --ink: #e9ede4;       --ink-rgb: 233, 237, 228;
  --ink-2: #bfcbbf;
  --ink-mute: #9db0a2;
  --acc-ink: #e8a27c;   --acc-ink-rgb: 232, 162, 124;
  --on-acc: #f4f6f0;
  --ls-rule: #4d6a5a;
  --ph: #7c887e;
  --err: #b3261e;
}

/* BLUEPRINT: light. Pale blueprint paper, prussian-blue ink, drafting blue accent
   (blue on blue, like a real print); the career log is a classic dark blueprint
   block with white lines and cyan highlights. The hero honeycomb reads as a drafting grid. */
html[data-palette="blueprint"] {
  --graphite: #e8f1f8;  --graphite-rgb: 232, 241, 248;
  --panel: #dce8f2;
  --well: #f5f9fc;      --well-rgb: 245, 249, 252;
  --rule: #c8d9e8;
  --rule-2: #a9c2d8;
  --silver: #22384f;    --silver-rgb: 34, 56, 79;
  --bright: #0b2545;    --bright-rgb: 11, 37, 69;
  --dim: #4e6680;       --dim-rgb: 78, 102, 128;
  --acc: #1d5fb4;       --acc-rgb: 29, 95, 180;
  --ok: #1a7f44;
  --wait: #9a5f00;
  --paper: #0f3b6e;
  --ink: #eaf3fb;       --ink-rgb: 234, 243, 251;
  --ink-2: #bfd3e8;
  --ink-mute: #9db8d6;
  --acc-ink: #8fd3ff;   --acc-ink-rgb: 143, 211, 255;
  --on-acc: #f5f9fc;
  --ls-rule: #3e6a9e;
  --ph: #7f93a8;
  --err: #b3261e;
}

/* light palettes: a softer command-bar shadow */
html[data-palette="drafting"] .cmdbar,
html[data-palette="airmail"] .cmdbar,
html[data-palette="daylight"] .cmdbar,
html[data-palette="fieldnotebook"] .cmdbar,
html[data-palette="blueprint"] .cmdbar { box-shadow: 0 24px 60px rgba(var(--bright-rgb), 0.18); }
html[data-palette="drafting"], html[data-palette="airmail"], html[data-palette="daylight"],
html[data-palette="fieldnotebook"], html[data-palette="blueprint"] { color-scheme: light; }
