/* ==========================================================================
   Schichten als Platten in schräger Aufsicht, passend zur Liste {% layers %}
   (.stack). Hier steht nur, wie eine Platte aussieht; angeordnet und bewegt
   werden sie von der Seite, plates.js verbindet sie mit der Liste.

   .plate        eine Platte, .plate--core die hervorgehobene
   .plate-top    Oberseite, .plate-side und .plate-far die beiden Kanten
   .plate-glyph  Zeichnung auf der Oberseite
   Die Farben sind Variablen, damit sie auch Flächen erreichen, die per <use>
   eingesetzt sind.
   ========================================================================== */

.plate {
  --p-top: var(--c-surface);
  --p-side: color-mix(in srgb, var(--c-ink) 16%, var(--c-surface));
  --p-far: color-mix(in srgb, var(--c-ink) 28%, var(--c-surface));
  --p-line: var(--c-ink-3);
  --p-edge: var(--p-line);
  --p-edge-width: 1.25;
  --p-glyph: var(--c-ink-3);
}
.plate--core {
  --p-top: var(--c-accent);
  --p-side: color-mix(in srgb, var(--c-accent) 70%, #000);
  --p-far: var(--p-side);
  --p-line: var(--c-accent);
  --p-glyph: var(--c-accent-ink);
}
.plate.is-on { --p-edge: var(--c-accent); --p-edge-width: 2.5; }
.plate.is-on:not(.plate--core) { --p-glyph: var(--c-accent); }

.plate-top, .plate-side, .plate-far { stroke: var(--p-line); stroke-width: 1.25; stroke-linejoin: round; }
.plate-top { fill: var(--p-top); stroke: var(--p-edge); stroke-width: var(--p-edge-width); }
.plate-side { fill: var(--p-side); }
.plate-far { fill: var(--p-far); }
.plate-glyph { fill: none; stroke: var(--p-glyph); stroke-width: 3; }
.plate-top, .plate-side, .plate-far, .plate-glyph { transition: fill 0.3s var(--ease), stroke 0.3s var(--ease); }

.stack li { transition: background 0.3s var(--ease); }
.stack li.is-on { background: var(--c-accent-soft); }
