/* css/art.css: colours and switches for the inline-SVG art made by scripts/render/art.mjs (owner: art).
   Only .a-*, .nib* and .obj* selectors. Every colour is a SPEC §2.2 token from :root (base.css); nothing is hard-coded.
   Two tones and a line: paper + lavender shade + ink outline, pink only as small accents, tape yellow only on evidence tents. */

/* every art root */
.a-art { vertical-align: middle; flex: none; }

/* fills */
.a-f-ink { fill: var(--ink); }
.a-f-paper { fill: var(--paper); }
.a-f-soft { fill: var(--soft); }
.a-f-tone { fill: var(--tone); }
.a-f-line { fill: var(--line); }
.a-f-pink { fill: var(--pink); }
.a-f-tape { fill: var(--tape); }
.a-f-wash { fill: var(--wash); }
.a-f-none { fill: none; }

/* strokes */
.a-s-ink { stroke: var(--ink); }
.a-s-paper { stroke: var(--paper); }
.a-s-soft { stroke: var(--soft); }
.a-s-tone { stroke: var(--tone); }
.a-s-line { stroke: var(--line); }
.a-s-pink { stroke: var(--pink); }
.a-s-none { stroke: none; }

/* lettering inside SVG (diorama labels, tent digits) */
.a-t-mono { font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; font-weight: 700; font-variant-numeric: tabular-nums; }
.a-t-disp { font-family: "Dela Gothic One", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif; font-weight: 400; }

/* Nib: only the expression named by data-face shows; JS switches faces with svg.dataset.face = 'squint' etc.
   A missing or unknown data-face shows the neutral face. */
.nib [data-expr] { display: none; }
.nib[data-face="squint"] [data-expr="squint"],
.nib[data-face="surprised"] [data-expr="surprised"],
.nib[data-face="pleased"] [data-expr="pleased"],
.nib:not([data-face="squint"]):not([data-face="surprised"]):not([data-face="pleased"]) [data-expr="neutral"] { display: inline; }

/* full-bleed decorative layers: the caller sizes the box (usually position:absolute; inset:0 behind content) */
.a-web, .a-focus, .a-speed { display: block; width: 100%; height: 100%; pointer-events: none; }

/* the cover diorama scales with its column (viewBox keeps the proportions) */
.a-diorama { display: block; width: 100%; height: auto; }

/* opt-in: put both variants inside a div with class "a-diorama-pair" and the right one shows (wide from 700px up) */
.a-diorama-pair > .a-diorama--wide { display: none; }
@media (min-width: 700px) {
  .a-diorama-pair > .a-diorama--wide { display: block; }
  .a-diorama-pair > .a-diorama--tall { display: none; }
}
