/* The artwork behind the headline: the bath of light it lies in, the drawing that
 * assets/js/artwork.js builds into #artwork, and the colour each part of that drawing is
 * painted in. Every colour here is a token from tokens.css; the script writes class
 * names, widths and opacities, and never a colour.
 *
 * THE BATH is holding-site's .glow (site.css), widened into the three pools the
 * reference shows -- one under the figure, a band above it and a band below it -- with
 * the same two tokens. The vignette that closes the edges is drawn in artwork.js
 * (ground()), in --surface-ground. */

.backdrop { pointer-events: none; }

/* The bath is painted on a layer of its own so it can be held below the token's full
 * strength: the reference's pools are about half as bright over the ground as the bath
 * token lays down, and an opacity is the one way to halve it without a second value. */
.backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background:
    radial-gradient(34vmax 11vmax at 50% 6%, var(--bath-core), var(--bath-far) 100%),
    radial-gradient(32vmax 10vmax at 50% 95%, var(--bath-core), var(--bath-far) 100%),
    radial-gradient(30vmax 18vmax at 52% 46%, var(--bath-core), var(--bath-far) 100%);
}

.artwork {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Stroke roles. */
.aw-k-dim    { stroke: var(--text-dim); }
.aw-k-bright { stroke: var(--text-primary); }
.aw-k-strong { stroke: var(--accent-strong); }
.aw-k-accent { stroke: var(--accent); }
.aw-k-leaf   { stroke: var(--leaf-mid); }

/* Fill roles. */
.aw-f-strong { fill: var(--accent-strong); }

/* Gradient stop roles. */
.aw-s-dim        { stop-color: var(--text-dim); }
.aw-s-bright     { stop-color: var(--text-primary); }
.aw-s-strong     { stop-color: var(--accent-strong); }
.aw-s-accent     { stop-color: var(--accent); }
.aw-s-leaf       { stop-color: var(--leaf-mid); }
.aw-s-leaf-deep  { stop-color: var(--leaf-deep); }
.aw-s-leaf-lit   { stop-color: var(--leaf-lit); }
.aw-s-bloom-deep { stop-color: var(--bloom-deep); }
.aw-s-tide       { stop-color: var(--tide); }
.aw-s-ember      { stop-color: var(--ember); }
.aw-s-ground     { stop-color: var(--surface-ground); }
