/* The Lucid theme. For Lucid Computing's own site, decks and demos only.
   A project that is "led by Lucid" does not load this file: it takes taste/ and its own theme (see themes/_template).
   Load order: taste/tokens.css, taste/base.css, then this file. Scripts: taste/engine/soft.js, taste/engine/taste.js, brand/lucid-mark.js.

   It fills the accent slot with cobalt (the one colour) and periwinkle (cobalt as light on night), and adds what only Lucid has:
   the dawn light, which is only ever light on the solid mark, never a background. */

:root, :root[data-theme="lucid"], [data-theme="lucid"] {
  /* the accent slot */
  --accent: #1b3bff;              /* cobalt: the one colour */
  --on-accent: #ffffff;
  --accent-light: #93a5ff;        /* periwinkle: cobalt as the light of a wave on night */
  --accent-night: #1b3bff;        /* cobalt stays cobalt as a fill on night */
  --on-accent-night: #ffffff;
  --mist-accent: #dbe0ff;         /* labels on cobalt */
  --line-accent: #ffffff3d;
  --cipher-accent: #c9d1ff;
  --cipher-dim-accent: #8496ff;

  /* Lucid only */
  --lucid-cobalt: #1b3bff;
  --lucid-periwinkle: #93a5ff;
  --lucid-peach: #ffd3a8;         /* the warm seam at the end of the dawn */
  /* the dawn: light on the solid mark, from deep blue through cobalt and pale blue to a warm peach seam. Never a background */
  --dawn-1: #0a1fa8;
  --dawn-2: #1b3bff;
  --dawn-3: #3f6ef5;
  --dawn-4: #a9c4ff;
  --dawn-5: #f1e6e0;
  --dawn-6: #ffd3a8;
  --dawn: linear-gradient(180deg, var(--dawn-1) 0%, var(--dawn-2) 30%, var(--dawn-3) 56%, var(--dawn-4) 78%, var(--dawn-5) 92%, var(--dawn-6) 100%);
}

/* the mark and the lockup, filled by lucid-mark.js into any element carrying data-lucid-mark or data-lucid-lockup.
   The fill is currentColor unless the attribute names a colour, so the ground's text colour is the mark's colour */
[data-lucid-mark] { display: inline-block; width: var(--mark-size, 1em); line-height: 0; vertical-align: middle; }
[data-lucid-mark] > svg { display: block; width: 100%; height: auto; }
[data-lucid-lockup] { display: inline-block; line-height: 0; vertical-align: middle; }
[data-lucid-lockup] > svg { display: block; height: var(--lockup-size, 26px); width: auto; }

/* the band that holds two huge petals (LucidMark.figures.petals): the petals sit between the band's ground and its words */
.lucid-band { position: relative; overflow: hidden; isolation: isolate; }
.lucid-petals { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lucid-petal { position: absolute; left: 0; top: 0; width: 100px; height: 100px; max-width: none; max-height: none; overflow: visible; visibility: hidden; will-change: transform; }
/* on upright screens the petals come up from below the words: the band keeps room for them under its content */
@media (max-aspect-ratio: 11/10) { .lucid-band { padding-bottom: max(70vw, 36svh); } }
