/* ==========================================================================
   PALETTE — the brand ramps, from Colours.pdf.
   --------------------------------------------------------------------------
   Eight ramps, ten stops each, from the updated Colours.pdf (11 Oct).
   Authoritative: these values are transcribed from the PDF, not sampled from
   a screenshot. Primary = Sage green (B), plus Ember orange, Complementary,
   two Analogous greens, two Triadics, and Grey.

   The named picks:
     B700  primary brand      C900  complementary
     L800  analogous light    D600  analogous dark
     T800  triadic teal       P800  triadic purple

   The family is constructed, not assembled: B700 #288B3D, D600 #288B6F,
   T800 #28768B and P800 #3D288B are the same 28/8B component pair rotated
   through hue. Keep that relationship when adding anything.

   SOURCE PALETTE, NOT A THEME. Pick stops and bind them to roles in tokens.css.
   Never wire a component to a ramp name, or the token swap stops working.

   The figure after each value is its contrast on the cream ground #F4EFE3.
   Under 4.5 cannot carry body text.
   ========================================================================== */

:root {

  /* Primary · Sage green (B). B300 #3FCB8E is the brand colour. */
  --sage-900:  #006027;
  --sage-800:  #00803C;
  --sage-700:  #009148;
  --sage-600:  #00A355;
  --sage-500:  #00B35F;
  --sage-400:  #00BF76;
  --sage-300:  #3FCB8E;
  --sage-200:  #83D9AF;
  --sage-100:  #B6E8CE;
  --sage-50:   #E1F6EB;

  /* Ember orange (E). E400 #F1A14B is the accent. */
  --ember-900:  #CD562D;
  --ember-800:  #D86D34;
  --ember-700:  #E07A37;
  --ember-600:  #E8883B;
  --ember-500:  #ED923E;
  --ember-400:  #F1A14B;
  --ember-300:  #F4B164;
  --ember-200:  #F7C78E;
  --ember-100:  #FADDB9;
  --ember-50:   #FDF2E3;

  /* Complementary (C). C600 is the named pick. */
  --comp-900:  #77315D;
  --comp-800:  #9E386C;
  --comp-700:  #B43B73;
  --comp-600:  #CB3F7C;
  --comp-500:  #DD4281;
  --comp-400:  #DE5795;
  --comp-300:  #E272A8;
  --comp-200:  #E898C1;
  --comp-100:  #F0C0DA;
  --comp-50:   #F8E6F0;

  /* Analogous light green (L). L400 is the named pick; L100 #C3ECC1 is Mint green. */
  --lgreen-900:  #006D00;
  --lgreen-800:  #008D00;
  --lgreen-700:  #009E00;
  --lgreen-600:  #00B10B;
  --lgreen-500:  #00C119;
  --lgreen-400:  #3FCB48;
  --lgreen-300:  #6BD56D;
  --lgreen-200:  #9AE199;
  --lgreen-100:  #C3ECC1;
  --lgreen-50:   #E6F8E6;

  /* Analogous dark green (D). D400 is the named pick. */
  --dgreen-900:  #1F5B5A;
  --dgreen-800:  #287E82;
  --dgreen-700:  #2B9299;
  --dgreen-600:  #2EA7B2;
  --dgreen-500:  #31B7C4;
  --dgreen-400:  #3FC2CB;
  --dgreen-300:  #59CCD3;
  --dgreen-200:  #85DBDF;
  --dgreen-100:  #B4E9EB;
  --dgreen-50:   #E0F6F7;

  /* Triadic teal (T). T700 is the named pick. */
  --teal-900:  #2E4D99;
  --teal-800:  #396BB9;
  --teal-700:  #3F7CCB;
  --teal-600:  #478EDE;
  --teal-500:  #4D9CEC;
  --teal-400:  #5EAAEF;
  --teal-300:  #77B9F1;
  --teal-200:  #9BCDF6;
  --teal-100:  #C0E0F9;
  --teal-50:   #E5F3FC;

  /* Triadic purple (P). P400 is the named pick. */
  --purple-900:  #42009F;
  --purple-800:  #5600AD;
  --purple-700:  #6300B3;
  --purple-600:  #7000BB;
  --purple-500:  #7A06C1;
  --purple-400:  #8E3FCB;
  --purple-300:  #A265D4;
  --purple-200:  #BC93E0;
  --purple-100:  #D7BEEC;
  --purple-50:   #F0E5F7;

  /* grey — from "Brand Grey.pdf" (24 Sep). Contrast on B50 #E7F5E9 / B100 band #C4E5C9. */
  --grey-900: #15141C;        /* 16.22 / 13.40 · text ok — headings */
  --grey-800: #35343C;        /* 10.91 /  9.02 · text ok   */
  --grey-700: #53525B;        /*  6.84 /  5.65 · text ok — body */
  --grey-600: #66656F;        /*  5.10 /  4.21 · text on B50 only */
  --grey-500: #8E8C97;        /*  2.94 /  2.43 · fill only  */
  --grey-400: #AEADB8;        /*  fill only  */
  --grey-300: #D3D1DD;        /*  fill only  */
  --grey-200: #E4E3EE;        /*  fill only  */
  --grey-100: #EFEEF9;        /*  fill only  */
  --grey-50:  #F8F6FF;        /*  fill only  */

  /* ---------------------------------------------------------------------
     Unlock PRODUCT THEMES (shared 29 Sep). The two colour themes the Unlock
     product itself ships. Each drives one homepage version (v2, v3).
     Values sampled from the swatch images. Order kept as supplied.
     --------------------------------------------------------------------- */

  /* ember: warm near-blacks, stone, cream, one orange.
     Contrast: first figure on --ember-black, second on --ember-cream. */
  --ember-black:  #131210;    /*  1.00 / 16.13 */
  --ember-coal:   #221D19;    /*  1.12 / 14.38 */
  --ember-bark:   #3C332C;    /*  1.52 / 10.63 · text on cream */
  --ember-stone:  #C0B6AA;    /*  9.37 /  1.72 · text on dark only */
  --ember-cream:  #F4EDE5;    /* 16.13 /  1.00 */
  --ember-orange: var(--ember-400); /* #F1A14B · accent on dark; dark text on it 8.8 */

  /* sage: cool pale greens, one deep forest, one brand green.
     Contrast: first figure on --sage-mist, second on --sage-forest. */
  --sage-mist:    #EDF2EE;    /*  1.00 / 14.82 */
  --sage-fog:     #E3E8E4;    /*  1.09 / 13.54 */
  --sage-lichen:  #B7C3B7;    /*  1.61 /  9.20 · fill / line on light */
  --sage-moss:    #3D4A40;    /*  8.23 /  1.80 · text on light */
  --sage-forest:  #0B2210;    /* 14.82 /  1.00 */
  /* 11 Oct: #1F6D38 retired. The light-ground green is now Sage B900. */
  --sage-ink:     var(--sage-900); /* #006027 · green text/icons on light · 7.27 on paper, 6.41 on sand */

  /* ---------------------------------------------------------------------
     v1 surfaces (supplied 29 Sep, ref developers.databricks.com).
     --------------------------------------------------------------------- */
  --paper:       #F9F7F4;     /* warm off-white section · grey-900 on it 17.10 */
  /* The light bands' grounds (29 Nov, user: option A — the light sections read
     washed out, a white card 2% off its band): paper with 5% and 10% of ember
     black, about #EEECE9 and #E2E0DD, so white surfaces stand clear of them.
     Paper itself stays for surfaces, the menus and the brand guide. */
  --paper-band:  color-mix(in srgb, var(--ember-black) 5%, var(--paper));
  --sand-band:   color-mix(in srgb, var(--ember-black) 10%, var(--paper));
  --mint-green:  var(--lgreen-100); /* #C3ECC1 · Mint green (11 Oct) · 13.5 on night */
  --logo-mint:   var(--mint-green);  /* the mark's core on dark grounds */
  --logo-forest: var(--sage-900);    /* the mark's core on light grounds (was #003F12) */
  --pixel-green: var(--sage-900); /* pixel (v1) accent; #003F12 retired 11 Oct · on paper 7.27 · paper on it 7.27 */
  --deep-teal:   #1A2E2F;     /* closing + footer ground · paper on it 13.31 */
  --ember-orange-ink: #8F4E12;  /* orange darkened for TEXT on light grounds · 5.54 on cream */

  /* v2 surfaces (supplied 29 Sep). */
  --how-teal:    #031A23;     /* structured How it works band (6 Oct, supplied) · cream on it 16.0 */
  --mint:        #E4F1EB;     /* pale sage section · forest on it 14.46, moss 8.03 */
  --night:       #18191C;     /* v2 base dark · cream on it 15.14, stone 8.80 */
  --sage-muted:  #55645A;     /* muted text on mint · 5.39 */
  --ember-muted: #6B6157;     /* muted text on cream / paper · 5.21 / 5.66 */
  --night-2:     #17181C;     /* 5 Nov: lightened from #121317 (supplied) so the band step from night-deep reads (OKLCH L 0.21 vs 0.155, after modal/oxide) · cream 15.28, stone 8.88 */
  --night-deep:  #0A0D0B;     /* 5 Nov: a faint Sage tint (hue 156°, same lightness as #0B0C0F) · cream 16.82, stone 9.78 */
  --graphite:    #222228;     /* 4 Nov: Problems band, after voiceflow.com's developer panel · grey-800 55% into night-deep · cream 13.6, stone 7.9, sage 7.6 */

  /* Illustration colours (29 Sep; mapped to the nearest ramp shades 11 Oct): the ember + sage family pushed brighter,
     after polarsignals.com's feature-card art. FILLS ONLY: icon tiles, chart
     strokes, glows, diff marks. Never text or controls. The grain glows in
     assets/img/glow-*.png are rendered from these same hexes
     (tools/grainglow.py). */
  --white:       #FFFFFF;
  --ill-ember:   var(--ember-400);   /* #F1A14B (was #F1A04B) */
  --ill-flame:   var(--ember-800);   /* #D86D34 (was #E8703A) */
  --ill-butter:  var(--ember-200);   /* #F7C78E (was #F4D57A; no yellow ramp, nearest) */
  --ill-lime:    var(--lgreen-200);  /* #9AE199 (was #C6E26A; nearest) */
  --ill-sage:    var(--sage-300);    /* #3FCB8E (was #6CC08C) */
  --ill-jade:    var(--sage-600);    /* #00A355 (was #2F9E73) */
  --ill-teal:    var(--dgreen-300);  /* #59CCD3 (was #4CC3B5) */
  --sage-green:  var(--sage-300); /* #3FCB8E · PRIMARY (11 Oct: named Sage green) · on #031A23 9.2 */
  --emerald:     var(--sage-green);  /* old name for the primary, kept so existing rules hold */

  /* Interface mockups (29 Sep): the real colours of the operating system
     and third-party apps drawn in the Interfaces tabs — macOS window
     controls, Terminal, Slack. ONLY for those mockups; never site UI. */
  --mac-close:        #FF5F57;
  --mac-min:          #FEBC2E;
  --mac-zoom:         #28C840;
  --term-bg:          #1E1E1E;
  --term-bar:         #323232;
  --term-text:        #E6E6E6;
  --term-dim:         #8C8C8C;
  --slack-aubergine:  #4A154B;
  --slack-aubergine-2:#3F0E40;
  --slack-active:     #1164A3;
  --slack-green:      #007A5A;
  --slack-text:       #131313;   /* regular text in the Slack mockup (15 Nov, user; #1D1C1D before) */
  --slack-muted:      #616061;
  --slack-line:       #DDDDDD;
  --slack-badge:      #DFDFDF;   /* the APP badge's fill (15 Nov, user) */
  --slack-badge-text: #2E2E2E;   /* and its label */
}
