/*
 * After Dark palette
 * dark-first
 *
 * TOKENS ONLY. If you are adding a rule that is not a custom property,
 * it belongs in style.css, not here. The base stylesheet never names a
 * colour, which is what lets dark mode, the brand picker and the season
 * engine all work from one codebase.
 *
 * Generated from the validated source theme. Every pair measured at
 * WCAG AA or better in light and dark, desktop and phone.
 */

/* Base = the DARK palette (After Dark is dark-first), lifted verbatim from
   handoff/themes/theme-08-afterdark.html. The light overrides follow. */
:root{
  --ink:#F3F4F8;
  --blue:#5B8DEF;
  --blue-dk:#83A9F5;
  --blue-lt:#161B29;
  --orange:#FF4D6D;
  --orange-dk:#FF7389;
  --sun:#FFD166;
  --mist:#090A0E;
  --line:#222634;
  --muted:#8A90A4;
  --on-deep-dim:rgba(233,236,243,.72);
  --accent-on-deep:#F33B57;

  --paper:#11131B;
  --header-bg:rgba(9,10,14,.82);
  --deep:#050609;
  --on-deep:#F3F4F8;
  --on-primary:#090A0E;

  --glow-a:rgba(255,77,109,.30);
  --glow-b:rgba(91,141,239,.26);
  --cta-glow:rgba(243,244,248,.6);
  --fx:0; --tint:.30;

  --disp:'Syne',ui-sans-serif,system-ui,sans-serif;
  --body:'Inter',ui-sans-serif,system-ui,-apple-system,sans-serif;

  --wrap:1180px;
  --r-sm:10px; --r-md:18px; --r-lg:26px; --r-pill:999px;
  --sh-1:0 2px 10px rgba(0,0,0,.4);
  --sh-2:0 18px 50px rgba(0,0,0,.55);
  --head-h:76px;
  /* Ink for our plugins' white cards (BookFlow's item calendar stays white in both
     looks): the light look's muted and deep pink, fixed, so they read on white in dark too. */
  --on-card-muted:#686F81;
  --on-card-link:#B81638;
}


@media (prefers-color-scheme:light){
  :root:not([data-theme="dark"]){
    --ink:#131620;
    --blue:#2E5FD4;
    --blue-dk:#1E46A8;
    --blue-lt:#E9EFFC;
    --orange:#DA1943;
    --orange-dk:#B81638;
    --sun:#B26A00;
    --mist:#FAFAFC;
    --line:#E3E5EC;
    --muted:#686F81;
    --on-deep-dim:rgba(233,236,243,.76);
    --accent-on-deep:#F33B57;
    --paper:#FFFFFF;
    --header-bg:rgba(250,250,252,.9);
    --deep:#131620;
    --on-deep:#F3F4F8;
    --on-primary:#FFFFFF;
    --glow-a:rgba(224,35,72,.10);
    --glow-b:rgba(46,95,212,.09);
    --cta-glow:rgba(19,22,32,.22);
  }
}

:root[data-theme="light"]{
  --ink:#131620;
  --blue:#2E5FD4;
  --blue-dk:#1E46A8;
  --blue-lt:#E9EFFC;
  --orange:#DA1943;
  --orange-dk:#B81638;
  --sun:#B26A00;
  --mist:#FAFAFC;
  --line:#E3E5EC;
  --muted:#686F81;
  --on-deep-dim:rgba(233,236,243,.76);
  --accent-on-deep:#F33B57;
  --paper:#FFFFFF;
  --header-bg:rgba(250,250,252,.9);
  --deep:#131620;
  --on-deep:#F3F4F8;
  --on-primary:#FFFFFF;
  --glow-a:rgba(224,35,72,.10);
  --glow-b:rgba(46,95,212,.09);
  --cta-glow:rgba(19,22,32,.22);
}
