/* SpatOS by Cultch: the app's look, as tokens. Spat Today mockup, 18 Nov.
   Every colour, ground, line and shadow the app uses is named here and only
   here; app.css lays them out and names none of its own. Change the look by
   changing a token. appShellEval measures every text colour against every
   ground it sits on, in both modes, at 4.5:1 or better.

   The marks keep their own inks: the Spat mark is pink and amber, Cultch's
   wordmark is the locked art file. The fonts are served by the box. */

@font-face{font-family:'Archivo';font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/archivo-latin.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/plexmono-400-latin.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/plexmono-500-latin.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/plexmono-600-latin.woff2) format('woff2')}

:root{
  color-scheme:dark;
  --display:'Archivo',system-ui,sans-serif;
  --mono:'IBM Plex Mono',ui-monospace,monospace;

  /* grounds, darkest first */
  --ground:#0A0E13;
  --ground-2:#121921;
  --ground-3:#18212C;
  --tile:#141B24;
  --sheet:#1B2430;
  --bar:rgba(7,10,14,.96);

  /* text */
  --text:#E8EEF2;
  --text-2:#C9D4DC;
  --text-3:#8A9AA7;

  /* the accent is SpatOS's teal; the primary button is SpatOS's orange */
  --accent:#5BE0D6;
  --on-accent:#0A0E13;
  --primary:#EE602C;
  --on-primary:#0A0E13;

  /* state: now, soon, on track */
  --now:#FF5DA2;
  --soon:#E8A33D;
  --ok:#5BE0D6;

  /* marks */
  --spat-pink:#F01858;
  --spat-sun:#F8B000;

  /* lines */
  --edge:rgba(255,255,255,.08);
  --rule:rgba(255,255,255,.06);
  --grid:rgba(255,255,255,.028);
  --scrim:rgba(0,0,0,.6);
  --hover:rgba(255,255,255,.07);

  /* raised: a card sits above a panel, a menu above both */
  --card:linear-gradient(180deg,#18212C 0%,#121921 100%);
  --panel:linear-gradient(180deg,rgba(24,32,42,.96),rgba(17,24,33,.96));
  --lift-card:0 1px 0 rgba(255,255,255,.08) inset,0 0 0 1px rgba(0,0,0,.5),0 2px 4px rgba(0,0,0,.5),0 14px 32px -6px rgba(0,0,0,.7),0 28px 60px -20px rgba(0,0,0,.6);
  --lift-panel:0 1px 0 rgba(255,255,255,.07) inset,0 0 0 1px rgba(0,0,0,.45),0 2px 4px rgba(0,0,0,.45),0 12px 28px -8px rgba(0,0,0,.65);
  --lift-menu:0 1px 0 rgba(255,255,255,.08) inset,0 0 0 1px rgba(0,0,0,.55),0 18px 40px -8px rgba(0,0,0,.85);
  --lift-bar:0 -1px 0 rgba(255,255,255,.07),0 -12px 30px -12px rgba(0,0,0,.8);
  --lift-side:1px 0 0 rgba(255,255,255,.06),12px 0 30px -18px rgba(0,0,0,.8);
}

@media (prefers-color-scheme:light){:root{
  color-scheme:light;
  --ground:#F4F6F8;
  --ground-2:#FFFFFF;
  --ground-3:#FFFFFF;
  --tile:#FFFFFF;
  --sheet:#FFFFFF;
  --bar:rgba(255,255,255,.96);

  --text:#0A0E13;
  --text-2:#33404B;
  --text-3:#56636F;

  --accent:#08706A;
  --on-accent:#FFFFFF;
  --primary:#EE602C;
  --on-primary:#0A0E13;

  --now:#B8125A;
  --soon:#8A5200;
  --ok:#08706A;

  --edge:rgba(10,14,19,.10);
  --rule:rgba(10,14,19,.08);
  --grid:rgba(10,14,19,.035);
  --scrim:rgba(10,14,19,.35);
  --hover:rgba(10,14,19,.05);

  --card:linear-gradient(180deg,#FFFFFF 0%,#FAFBFC 100%);
  --panel:linear-gradient(180deg,#FFFFFF,#FBFCFD);
  --lift-card:0 1px 0 rgba(255,255,255,.9) inset,0 0 0 1px rgba(10,14,19,.06),0 1px 2px rgba(10,14,19,.06),0 10px 24px -8px rgba(10,14,19,.12),0 24px 48px -24px rgba(10,14,19,.14);
  --lift-panel:0 0 0 1px rgba(10,14,19,.06),0 1px 2px rgba(10,14,19,.05),0 8px 20px -10px rgba(10,14,19,.12);
  --lift-menu:0 0 0 1px rgba(10,14,19,.08),0 18px 40px -10px rgba(10,14,19,.25);
  --lift-bar:0 -1px 0 rgba(10,14,19,.08),0 -10px 24px -14px rgba(10,14,19,.15);
  --lift-side:1px 0 0 rgba(10,14,19,.08),10px 0 24px -18px rgba(10,14,19,.15);
}}
