/* Ostrich Prop — the palettes.
   css/site.css is written with a handful of tokens; a palette is one set of their values. The firm picks one in the
   site settings (core/palettes.py lists them); the page carries it as <html data-palette="…">. "gold" is the set
   site.css itself starts with, so it has no block here.

   What each token is for, in every palette:
     --ink, --ink-2, --ink-3   the page, a raised panel, a pressed or chosen one
     --line, --line-2          hairlines: quiet, and a little stronger
     --bone, --bone-2, --muted the words: main, second, small print
     --brand …                 the firm's accent: the main button and little else (it is used sparingly on purpose)
     --sage, --red, --sand     meaning only: a target or a profit, a limit or a loss, "close to a limit" and focus
     --sc-…                    the light the 3D scenes draw with (js/scene.js reads them)
   A light palette also says so (color-scheme, and data-scheme on the page): form controls follow, and the scenes
   draw in ink on paper instead of light on dark.

   Each block also answers to .pal[data-palette="…"]: a box on a preview's page of palettes (templates/palettes.html)
   that shows a palette's colours whatever the page around it wears. */

/* ------------------------------------------------------------------ night and silver: the gold page, silver light */
html[data-palette="silver"], .pal[data-palette="silver"] {
  --sc-accent: #ccd6e3; --sc-accent-hi: #ffffff; --sc-accent-ink: #0e1115;
  --sc-core: #edeff5; --sc-data: #9ea8b5; --sc-grid: #667385;
}

/* ------------------------------------------------------------------ night and red
   A neutral black, so the firm's red is the only warm thing on the page: the main button, the mark's arrow, the
   line under the open menu item. The scenes keep to white light; their red stays what it means, a limit. */
html[data-palette="crimson"], .pal[data-palette="crimson"] {
  --ink: #0e0e10; --ink-2: #161619; --ink-3: #1f1f24; --line: #2a2a30; --line-2: #404049;
  --bone: #f4f2f0; --bone-2: #c6c3bf; --muted: #918e8a;
  --brand: #e4002b; --brand-hi: #ff1f4b; --brand-ink: #ffffff; --brand-text: #ff5a72;
  --red: #e4002b; --red-text: #ff6b7d; --sage: #43cf93; --sage-ink: #0b2a1c; --sand: #edb04c;
  --sc-accent: #e9e6e2; --sc-accent-hi: #ffffff; --sc-accent-ink: #101012;
  --sc-core: #f1eeeb; --sc-data: #a5a19d; --sc-grid: #6d6a72;
  --sc-gain: #4fd69c; --sc-loss: #ff4664; --sc-sand: #f0b656;
}

/* ------------------------------------------------------------------ black and red
   The firm's choice (November 2026): black itself, white words, and its red where the eye should land and nowhere
   else ("so that it is there and does not hurt"): the buttons that start a challenge (.btn-cta), the line under the
   open menu item, a dot here and there. Every other button is white, and a limit's number in a table is not painted
   red. Nothing warm in the ground, so panels are told from the page by a hairline more than by their shade. The
   ostrich and the scenes are white light; in the scenes red stays what it means, a limit. */
html[data-palette="black"], .pal[data-palette="black"] {
  --ink: #000000; --ink-2: #0b0b0c; --ink-3: #151517; --line: #1f1f23; --line-2: #37373d;
  --bone: #ffffff; --bone-2: #c4c4c9; --muted: #8e8e95;
  --brand: #e4002b; --brand-hi: #ff1f4b; --brand-ink: #ffffff; --brand-text: #ff5a72;
  --btn: #ffffff; --btn-hi: #d9d9de; --btn-ink: #000000;
  --announce: #151517; --announce-ink: #ffffff;
  --red: #e4002b; --red-text: #ff6b7d; --sage: #43cf93; --sage-ink: #0b2a1c; --sand: #edb04c;
  --limit-text: var(--bone);
  --shadow: rgba(0, 0, 0, 0.9); --shadow-soft: rgba(0, 0, 0, 0.6);
  --sc-accent: #ffffff; --sc-accent-hi: #ffffff; --sc-accent-ink: #000000;
  --sc-core: #ffffff; --sc-data: #a3a3a9; --sc-grid: #5c5c64;
  --sc-gain: #4fd69c; --sc-loss: #ff4664; --sc-sand: #f0b656;
}
/* black is black: the page's two faint pools of colour (green above, red below) are left out */
html[data-palette="black"] body::before { display: none; }
/* the line above the menu: a dark band with one red dot, not a band of red */
html[data-palette="black"] .announce { border-bottom: 1px solid var(--line); }
html[data-palette="black"] .announce .wrap::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 10px;
  border-radius: 50%; background: var(--brand); vertical-align: 0.08em; }

/* ------------------------------------------------------------------ midnight blue and red
   The designer's suggestion beside the firm's black, on the same plan: white words, white buttons, and the firm's
   red only where a challenge starts. The ground is a night blue instead of black. Blue gives a page depth that
   black cannot: panels and hairlines are steps of the same blue, one faint light falls from the top of the page,
   and the red sits on it more calmly than on black. Green and sand keep their meanings. */
html[data-palette="navy"], .pal[data-palette="navy"] {
  --ink: #060b16; --ink-2: #0b1222; --ink-3: #131c31; --line: #1b2640; --line-2: #2f3d60;
  --bone: #f5f7fc; --bone-2: #bcc6dc; --muted: #8592b0;
  --brand: #e4002b; --brand-hi: #ff1f4b; --brand-ink: #ffffff; --brand-text: #ff6b81;
  --btn: #f5f7fc; --btn-hi: #d5dcec; --btn-ink: #060b16;
  --announce: #131c31; --announce-ink: #f5f7fc;
  --red: #e4002b; --red-text: #ff7186; --sage: #45d39b; --sage-ink: #0a2a1e; --sand: #f0b556;
  --limit-text: var(--bone);
  --shadow: rgba(1, 4, 12, 0.85); --shadow-soft: rgba(1, 4, 12, 0.55);
  --sc-accent: #ffffff; --sc-accent-hi: #ffffff; --sc-accent-ink: #060b16;
  --sc-core: #ffffff; --sc-data: #a5b3d4; --sc-grid: #55648c;
  --sc-gain: #4fd69c; --sc-loss: #ff4664; --sc-sand: #f0b656;
}
/* one light from above, in the ground's own blue, instead of the two pools of colour */
html[data-palette="navy"] body::before { background: radial-gradient(130vmax 64vmax at 50% -22vmax, rgba(74, 122, 255, 0.15), transparent 64%); }
/* the line above the menu, as on black: a dark band with one red dot */
html[data-palette="navy"] .announce { border-bottom: 1px solid var(--line); }
html[data-palette="navy"] .announce .wrap::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 10px;
  border-radius: 50%; background: var(--brand); vertical-align: 0.08em; }

/* ------------------------------------------------------------------ graphite and red
   The grey of the firm's earlier site, a step lighter than night, with the same red. */
html[data-palette="graphite"], .pal[data-palette="graphite"] {
  --ink: #1e1e21; --ink-2: #27272b; --ink-3: #323237; --line: #3b3b41; --line-2: #52525a;
  --bone: #f3f3f4; --bone-2: #ccccd1; --muted: #9c9ca4;
  --brand: #f0193f; --brand-hi: #ff4062; --brand-ink: #ffffff; --brand-text: #ff6f86;
  --red: #f0193f; --red-text: #ff7d8f; --sage: #4ed39a; --sage-ink: #10301f; --sand: #f0b656;
  --sc-accent: #e6e6ea; --sc-accent-hi: #ffffff; --sc-accent-ink: #141416;
  --sc-core: #efeff2; --sc-data: #a9a9b1; --sc-grid: #74747e;
  --sc-gain: #58d8a2; --sc-loss: #ff5672; --sc-sand: #f2bb60;
}

/* ------------------------------------------------------------------ day and red
   Warm paper and near-black words. The red is a shade deeper than at night, so it holds on white the way it holds
   on black; green, sand and the small print are darkened too, enough to read as words on every ground of the
   palette (4.5 to 1 or better). */
html[data-palette="day"], .pal[data-palette="day"] {
  --ink: #f7f5f2; --ink-2: #ffffff; --ink-3: #eeeae5; --line: #e4dfd8; --line-2: #cbc4ba;
  --bone: #17120f; --bone-2: #4c453e; --muted: #6e665d;
  --brand: #d3002a; --brand-hi: #b00023; --brand-ink: #ffffff; --brand-text: #c20027;
  --red: #d3002a; --red-text: #bf1637; --sage: #0a7a4c; --sage-ink: #e1f4e9; --sand: #985900;
  --shadow: rgba(70, 45, 20, 0.2); --shadow-soft: rgba(70, 45, 20, 0.1);
  --sc-accent: #17120f; --sc-accent-hi: #000000; --sc-accent-ink: #ffffff;
  --sc-core: #2a221c; --sc-data: #6f665d; --sc-grid: #a0968a;
  --sc-gain: #0b8553; --sc-loss: #d3002a; --sc-sand: #b56d00;
  color-scheme: light;
}

/* ------------------------------------------------------------------ white, black and a little red
   The plainest: white, black buttons, and red only where the eye should land once (a price, a link, the mark). */
html[data-palette="paper"], .pal[data-palette="paper"] {
  --ink: #ffffff; --ink-2: #f6f5f3; --ink-3: #ebeae7; --line: #e6e4e0; --line-2: #cdcac4;
  --bone: #0e0e10; --bone-2: #45454b; --muted: #69696f;
  --brand: #0e0e10; --brand-hi: #2c2c31; --brand-ink: #ffffff; --brand-text: #d3002a;
  --red: #d3002a; --red-text: #bf1637; --sage: #0a7a4c; --sage-ink: #e1f4e9; --sand: #985900;
  --shadow: rgba(20, 20, 30, 0.18); --shadow-soft: rgba(20, 20, 30, 0.08);
  --sc-accent: #0e0e10; --sc-accent-hi: #000000; --sc-accent-ink: #ffffff;
  --sc-core: #26262b; --sc-data: #6c6c74; --sc-grid: #a2a2aa;
  --sc-gain: #0b8553; --sc-loss: #d3002a; --sc-sand: #b56d00;
  color-scheme: light;
}

/* ------------------------------------------------------------------ what a light page changes beyond its tokens */
/* a panel on paper is plain paper: no shade toward its corner, no line of light on its edge */
html[data-scheme="light"] { --panel: var(--ink-2); --edge: 0 0 0 0 transparent; }
/* the page's two pools of colour are for a dark page; on paper they would read as stains */
html[data-scheme="light"] body::before { opacity: 0.55; }
/* pictures of the dashboard are dark screens: on paper they get a quiet frame instead of a glow */
html[data-scheme="light"] .shot::after { display: none; }
html[data-scheme="light"] .shot img { box-shadow: 0 40px 70px -34px var(--shadow), 0 0 0 1px var(--line); }
/* the header: paper needs a hairline sooner than night does */
html[data-scheme="light"] .site-header { border-bottom-color: var(--line); }
