/* Light/dark theme tokens. Hand-written; scripts/import-design.py does NOT overwrite this file.
   The importer swaps the design's colour literals for these variables:
   #000→--ink  #fff→--paper  #F2F2F2→--card  #EAEAEA→--card-2  brand tints→--tint-*.
   The theme follows the device setting. For review, ?theme=dark or ?theme=light forces one for the visit.
   Light values are the design's originals, so light mode is unchanged. */

:root {
  color-scheme: light;
  --ink: #000;
  --paper: #fff;
  --card: #F2F2F2;
  --card-2: #EAEAEA;
  --tint-aurva: #EDF0F6;
  --tint-maatrum: #E9E4DD;
  --tint-privado: #EEEFF5;
  --tint-privado-2: #EEEFF3;
  --sticker: #fff;      /* logo pills: always light so the dark wordmarks read */
  --on-accent: #000;    /* text on the #7CFF3A green */
}

/* Dark: warm near-black paper, warm off-white ink. Hard shadows turn light (a "sticker on a dark desk" look),
   black marquee bands become light bands so the light/dark rhythm survives, and the brand tints become deep tinted greys. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #F3F0E8;
    --paper: #0F0F0E;
    --card: #1C1C1A;
    --card-2: #252522;
    --tint-aurva: #161A23;
    --tint-maatrum: #211D18;
    --tint-privado: #191A23;
    --tint-privado-2: #1B1C26;
    --sticker: #F3F0E8;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #F3F0E8;
  --paper: #0F0F0E;
  --card: #1C1C1A;
  --card-2: #252522;
  --tint-aurva: #161A23;
  --tint-maatrum: #211D18;
  --tint-privado: #191A23;
  --tint-privado-2: #1B1C26;
  --sticker: #F3F0E8;
}

/* SVG fill/stroke attributes can't use var(), so CSS overrides them (CSS beats presentation attributes). */
[fill="#000"], [fill="#000000"] { fill: var(--ink); }
[stroke="#000"], [stroke="#000000"] { stroke: var(--ink); }
[fill="#fff"], [fill="#FFF"], [fill="#ffffff"] { fill: var(--paper); }
[stroke="#fff"], [stroke="#FFF"], [stroke="#ffffff"] { stroke: var(--paper); }

/* Bright product screenshots: take the glare off a touch in dark mode. Media labels are unaffected. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) img:not([src*="/logos/"]) { filter: brightness(.92); }
}
:root[data-theme="dark"] img:not([src*="/logos/"]) { filter: brightness(.92); }
