/* ==========================================================
   Cartoon people (tasks #258 and #262, the Store page): the colours of the cast, the line, the way a person arrives.
   Linked only by a page that carries people (includes/art-people.php, art_people_head_link()), on top of art.css (the drawing language: .a .w .o .g) and art-process.css.
   Every rule starts with .pp-p or sits inside a .pp-... scene, so no other page is touched. Over time only opacity and translate change; nothing loops; reduced motion
   shows every person complete and still (the movement below exists only under no-preference). Raise ART_PEOPLE_VERSION in includes/art-people.php when this file changes.
   ========================================================== */

.art {
  /* skin: four warm browns, from light wheatish to deep brown (the people who buy from us) */
  --pp-k-a: #E6B88C; --pp-k-b: #CD9468; --pp-k-c: #AB7148; --pp-k-d: #84532F;
  /* hair: a shade darker than the site's ink (--ink is the navy #22355D since task #259, and every line of the art follows it), so black hair is not a hole next to the navy line */
  --pp-h-ink: #172340; --pp-h-grey: #C3CAD6;
  /* clothes: the brand's blue and green washed out, a warm amber for customers, quiet neutrals */
  --pp-c-blue: #BBC9F0; --pp-c-green: #8FD6B8; --pp-c-amber: #F2D3A2; --pp-c-sand: #E7D9BC; --pp-c-cream: #F6F1E6; --pp-c-white: #FFFFFF;
  --pp-c-navy: #4A5E90; --pp-c-slate: #CBD3DF; --pp-c-denim: #7189BC; --pp-c-khaki: #CDBF9C; --pp-c-ink: #1E2B4A;   /* trousers lighter than the line so the line shows on them; shoes about the colour of the line */
}
/* the wash of each part: a person's colour classes (the wash itself is art.css's .w: no stroke, nudged 2 units) */
.art .w.k-a { fill: var(--pp-k-a); } .art .w.k-b { fill: var(--pp-k-b); } .art .w.k-c { fill: var(--pp-k-c); } .art .w.k-d { fill: var(--pp-k-d); }
.art .w.h-ink { fill: var(--pp-h-ink); } .art .w.h-grey { fill: var(--pp-h-grey); }
.art .w.c-blue { fill: var(--pp-c-blue); } .art .w.c-green { fill: var(--pp-c-green); } .art .w.c-amber { fill: var(--pp-c-amber); } .art .w.c-sand { fill: var(--pp-c-sand); }
.art .w.c-cream { fill: var(--pp-c-cream); } .art .w.c-white { fill: var(--pp-c-white); } .art .w.c-navy { fill: var(--pp-c-navy); } .art .w.c-slate { fill: var(--pp-c-slate); }
.art .w.c-denim { fill: var(--pp-c-denim); } .art .w.c-khaki { fill: var(--pp-c-khaki); } .art .w.c-ink { fill: var(--pp-c-ink); }
.pp-p { fill: none; }                                   /* the outline shapes: a line only (the container of a scene already says so; a lone drawing may not) */
.art .pp-p .w { translate: 1.5px 1.5px; }               /* a person's wash sits a little closer to its line than a pale icon's (the colours are strong) */
.art .w.pp-bg { fill: var(--art-bg); translate: 0 0; }  /* the opaque back of a counter: what stands behind the counter is hidden, not tinted */

/* a person from the chest up, in a small row of "What it is and who it is for": 84 x 72, cut at the bottom edge (everything else of the person lies inside the box) */
.pp-bust {
  display: block; flex: none; width: 84px; height: 72px; overflow: visible; clip-path: inset(-12px -12px 0 -12px);
  fill: none; stroke: var(--art-ink); stroke-linecap: round; stroke-linejoin: round; stroke-width: var(--art-weight);
}
.art .art-modes--people .art-mode-ic { gap: 4px; }

/* ---------- Movement: a person arrives once, when the drawing is seen (opacity and translate only; nothing loops) ----------
   art.js arms a drawing ([data-art]) with .art-wait and starts it with .art-go; the slides of "How it works" use the deck's own .mvu / .mvr groups (art-process.css). */
@media (prefers-reduced-motion: no-preference) {
  .art [data-art].art-wait .pp-p { opacity: 0; translate: 0 10px; }
  .art [data-art].art-go .pp-p {
    transition: opacity 360ms linear calc(var(--st, 0ms) + 160ms + var(--i, 0) * 140ms), translate 620ms var(--ease-out) calc(var(--st, 0ms) + 160ms + var(--i, 0) * 140ms);
  }
  .art [data-art].art-wait .pp-p :is(.o, .g) { opacity: 1; }          /* the eyes come with the face, not later (art.css fades dots in after the lines) */
  .art [data-art].art-go .pp-p :is(.o, .g) { transition: none; }
  /* in the slides of "How it works" the deck fades every dot in on its own; a person arrives as ONE group (.mvu), so the eyes and the green dots stay still inside it */
  .pr-anim:not(.pr-live) .pr-slide.is-on .pp-p :is(.o, .g), .pr-live .pr-slide.is-on .pp-p :is(.o, .g) { opacity: 1; animation: none; }
}

/* ---------- Windows high contrast ---------- */
@media (forced-colors: active) {
  .art .pp-p .w, .art .w.pp-bg { fill: Canvas; }
  .pp-bust { stroke: CanvasText; }
}
