/* Luca Monterastelli — brand tokens.
   Source of truth: the "Luca Monterastelli" design system (tokens.json).
   Served to the Pi apps at /shared/brand.css; copied to the website (css/brand.css) by deploy.sh.
   Load it BEFORE any app stylesheet. Apps may alias these names, not redefine their values. */

:root{
  color-scheme: light dark;

  /* Ground and ink */
  --paper:#f5f3ee;          /* page background */
  --ink:#0a0a0a;            /* primary text */
  --ash:#666666;            /* secondary text, 5.2:1 on paper */
  --mist:#f5f5f5;           /* image ground while loading */
  --shimmer:#eaeaea;        /* loading shimmer highlight over mist */
  --line:rgba(0,0,0,.1);    /* hairlines */

  /* Surfaces (app panels, cards, fields) */
  --surface:#faf9f6;
  --surface-2:#eeece7;
  --surface-3:#e5e3de;

  /* Danger: destructive actions and errors only */
  --danger:#b91c1c;
  --danger-hover:#ef4444;
  --danger-edge:#450a0a;
  --danger-edge-hover:#7f1d1d;
  --on-danger:#fecaca;
  --on-danger-hover:#fff1f2;

  /* Artwork status (dot on thumbnail, card accent). Sold is set apart by lightness, not hue only. */
  --status-available:#7eb77f;
  --status-consigned:#5b8fb4;
  --status-sold:#8f2f2a;
  --status-na:#d99c5a;      /* N/A and permanent */
  --status-archived:#666666;
  --status-default:#888888;

  /* Labels (export targets) */
  --label-sito:#1f7a74;
  --label-bio:#7a5a8c;

  /* Type */
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: Georgia, serif;
  --font-mono: ui-monospace, "Cascadia Code", Consolas, "Courier New", monospace;
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --paper:#0f0f10;
    --ink:#ededed;
    --ash:#aaaaaa;
    --mist:#1a1a1c;
    --shimmer:#222224;
    --line:rgba(255,255,255,.1);
    --surface:#161617;
    --surface-2:#1a1a1c;
    --surface-3:#1f1f1f;
    --status-sold:#b8453e;
    --status-archived:#777777;
    --label-sito:#4ecdc4;
    --label-bio:#c3a6d6;
  }
}
