/* Valt 2.0 tokens. Canonical: docs/design/kit/DESIGN.md and the Figma component board
 * (VOwh1tNyt7cHIj8zk6LjRV) bind to these names. Night is the default; day is the same
 * system at other values, never a different palette. Signal green #8BC34A is settled;
 * every other value is the current one and is reopened by a sweep, not by hand.
 * Change deliberately, in its own commit. */
:root {
  /* colour */
  --canvas: #121214;
  --surface: #1E1E23;
  --raised: #27272D;
  --sunken: #0E0E11;
  --border: rgba(255, 255, 255, .07);
  --text: #FAFAFA;
  --text-2: #A1A1AA;
  --signal: #8BC34A;          /* action, verified tunnel */
  --signal-ink: #102000;      /* label on signal; never white on dark */
  --node: #ABC7FF;            /* a live point on the map, not success */
  --focus: #4ECDC4;           /* selection, open control; not success */
  --focus-ink: #03201E;
  --attention: #F2B66B;
  --attention-ink: #231300;
  --error: #FF5449;
  /* A favourited star, and only that. Mustard gold,
     yellower than attention (oklch hue 89 against 71) so a starred exit never reads as connecting.
     10.3:1 on the hero glass. */
  --favourite: #E9BD3C;

  /* glass: floating panels over the map field. Opacity and blur from the sweep. */
  --glass-panel: rgba(30, 30, 35, .88);
  --glass-control: rgba(255, 255, 255, .06);
  --glass-control-line: rgba(255, 255, 255, .12);
  --glass-cap: rgba(255, 255, 255, .09);
  --glass-blur: 14px;

  /* map field */
  --land: #262630;
  --grat: rgba(255, 255, 255, .08);
  --rim: rgba(171, 199, 255, .22);

  /* menu button: the constant chip. Mode-invariant by design. */
  --chip: #16161A;
  --chip-ink: #FAFAFA;
  --chip-ring: rgba(255, 255, 255, .10);
  --chip-veil: rgba(255, 255, 255, .12);
  --chip-spec: rgba(255, 255, 255, .20);
  --panel: #16161A;
  --panel-ink: #FAFAFA;
  --panel-icon: #4ECDC4;
  --panel-hair: rgba(78, 205, 196, .2);
  --panel-hover: rgba(250, 250, 250, .07);
  --panel-edge: #4ECDC4;

  /* nav dock */
  --dock-chrome: rgba(30, 30, 35, .72);
  --dock-line: rgba(255, 255, 255, .08);
  --dock-blur: 12px;
  --dock-cap: rgba(250, 250, 250, .95);
  --dock-cap-ink: #0A0A0C;
  --dock-cap-glow: 0 2px 12px rgba(255, 255, 255, .2);
  --dock-shadow: 0 20px 40px -15px rgba(0, 0, 0, .7);

  /* type: one face */
  --font: 'Familjen Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* geometry */
  --r-pill: 9999px;
  --r-card: 16px;
  --r-control: 12px;
  --r-chip: 6px;
  --gutter: 16px;
  --pad: 16px;
  --stack: 14px;
  --tap: 44px;

  /* motion */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --travel: cubic-bezier(.42, .02, .24, 1);
  --t-feedback: 140ms;
  --t-move: 240ms;

  /* elevation */
  --shadow-panel: 0 10px 28px -12px rgba(0, 0, 0, .6);
  --shadow-drawer: 10px 0 30px -18px rgba(0, 0, 0, .8);
  --shadow-control: 0 6px 18px -8px rgba(0, 0, 0, .7);
  --shadow-sheet: 0 18px 40px -18px rgba(0, 0, 0, .85);
  --shadow-menu: 0 12px 32px rgba(0, 0, 0, .34);

  color-scheme: dark;
}

:root[data-theme="day"] {
  /* Day is warm paper, matte: off-whites leaning to
     the green's side of the wheel instead of pure white on a cool grey, no blue halo on the globe, a
     node blue quieter than the action green, and the four accents at one lightness (L 0.52-0.55) so
     each passes as text. */
  --canvas: #F3F2EE;
  --surface: #FBFBF8;
  --raised: #EEEDE8;
  --sunken: #E6E5DF;
  --border: rgba(10, 10, 12, .08);
  --text: #0A0A0C;
  --text-2: #524F48;          /* 7.88:1 on surface, 4.72 on land */
  --signal: #4E7A22;
  --signal-ink: #FFFFFF;      /* dark enough green that white is the correct ink */
  --node: #3A66B8;            /* quieter than --signal by day, 5.37:1 on surface */
  --focus: #177F76;           /* 4.85:1 with white ink */
  --focus-ink: #FFFFFF;
  --attention: #9A6410;       /* 4.99:1 with white ink */
  --attention-ink: #FFFFFF;
  --error: #C8372C;
  --favourite: #8C6D00;       /* old gold at the accents' lightness (L 0.55), 4.71:1 on glass */

  --glass-panel: rgba(251, 251, 248, .90);
  --glass-control: rgba(10, 10, 12, .05);
  --glass-control-line: rgba(10, 10, 12, .12);
  --glass-cap: rgba(10, 10, 12, .07);

  --land: #C6C5BD;
  --grat: rgba(10, 10, 12, .10);
  --rim: rgba(60, 60, 52, .14);   /* a soft neutral limb; the blue halo read as shine */

  /* The panel is the constant chip and its accent goes with it: icons, hairlines and edge stay
     the board's accent-on-chip teal (#4ECDC4) by day. */

  --dock-chrome: rgba(251, 251, 248, .74);
  --dock-line: rgba(10, 10, 12, .08);
  --dock-cap: #0A0A0C;
  --dock-cap-ink: #FAFAFA;
  --dock-cap-glow: 0 2px 12px rgba(10, 10, 12, .18);
  --dock-shadow: 0 14px 34px -18px rgba(10, 10, 20, .35);

  --shadow-panel: 0 10px 28px -14px rgba(10, 10, 20, .28);
  --shadow-drawer: 10px 0 30px -18px rgba(10, 10, 20, .3);
  --shadow-control: 0 6px 18px -8px rgba(10, 10, 20, .3);
  --shadow-sheet: 0 18px 40px -18px rgba(10, 10, 20, .35);

  color-scheme: light;
}
