/* The footer paints its wall (paint.js): a click or tap on the black band washes it in the next wall paint, out from
   where she pressed, and after the last paint back to black. The paints are the brand's deep inks
   (brand/tokens/tokens.json), each measured with white on it: 7.0 to 8.6 to 1, and 4.6 to 6.4 for the paler links and
   the legal line. The colour is not saved. */
.foot {
  --paint-0: #0B0B0C;                                        /* the footer's own black (base.css .foot) */
  --paint-1: #2558A0;                                        /* Sky's accent */
  --paint-2: #5B44B0;                                        /* Sprite's accent */
  --paint-3: #A3263A;                                        /* Rose's accent */
  --paint-4: #6B4226;                                        /* Walnut's accent */
  --paint-5: color-mix(in srgb, #3F7D52 70%, #151514);       /* the status "good" green, deepened by 30 % ink: #325E3F */
  --paint-ink: #FFFFFF;
  --paint-shade: #000000;
  --wall: var(--paint-0);
  position: relative; isolation: isolate;
}
.foot > .wrap { position: relative; z-index: 1; }
.wash[data-wall="0"] { --wall: var(--paint-0); }
.foot[data-wall="1"], .wash[data-wall="1"] { --wall: var(--paint-1); }
.foot[data-wall="2"], .wash[data-wall="2"] { --wall: var(--paint-2); }
.foot[data-wall="3"], .wash[data-wall="3"] { --wall: var(--paint-3); }
.foot[data-wall="4"], .wash[data-wall="4"] { --wall: var(--paint-4); }
.foot[data-wall="5"], .wash[data-wall="5"] { --wall: var(--paint-5); }
.foot[data-wall] { background: var(--wall); }

/* On a paint the words are white, and the paler ones white at 82 % and 76 % (see-through, so they stay right over the
   old colour while the new one washes in). Set from the start of the wash (data-tone), cleared at the end of the
   wash back to black. */
.foot[data-tone] { color: var(--paint-ink); }
.foot[data-tone] nav a { color: color-mix(in srgb, var(--paint-ink) 82%, transparent); }
.foot[data-tone] nav a:hover, .foot[data-tone] nav a:active { color: var(--paint-ink); }
.foot[data-tone] .legal { color: color-mix(in srgb, var(--paint-ink) 76%, transparent); }
/* The wordmark's pixel shadow follows the wall: the wall's own colour, 45 % darker (letters and sun alike). */
.foot[data-wall] .giant .base { fill: color-mix(in srgb, var(--wall) 55%, var(--paint-shade)); }
.foot[data-wall] #giant-shadow feFlood { flood-color: color-mix(in srgb, var(--wall) 55%, var(--paint-shade)); }

/* The wash: a layer of the new paint under the words, revealed by a growing circle (clip-path only), then removed. */
.foot .wash { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--wall); }

/* The home's bar sun (eggs.js barSun): it turns about its own middle, and .lit shows its twinkle frame, as base.css
   does for the old bar (.top .sun). */
.fr-mark .sun { transform-box: fill-box; transform-origin: center; }
.fr-mark .sun.lit .sun-a { opacity: 0 !important; }
.fr-mark .sun.lit .sun-b { opacity: 1 !important; }
