/* ==========================================================================
   Clipboard Manager — design tokens
   Light: cream, slate and lime. Dark: near-black with neon lime.
   Shared by the popup (styles.css) and the documentation / privacy pages
   (pages.css). Every colour is a semantic token with a light and a dark
   value. The theme follows the system unless <html data-theme> pins it.
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* Surfaces */
  --bg: light-dark(#fefdf7, #04080b);
  --surface: light-dark(#ffffff, #080d10);
  --surface-2: light-dark(#f8f7ee, #0f1214);
  --surface-3: light-dark(#efeee3, #1b1f21);
  --border: light-dark(#dae3e8, #1b1e21);
  --border-strong: light-dark(#b9c7cd, #363a3b);

  /* Text */
  --text: light-dark(#152126, #eeeff1);
  --text-2: light-dark(#39515d, #a1a3a5);
  --text-3: light-dark(#4f7180, #77797b);

  /* Accent. --accent is for fills only (with --on-accent text): in light
     mode it is a pale lime that does not read against the page. Focus rings,
     checked controls and meters use --accent-strong (with
     --on-accent-strong on top). */
  --accent: light-dark(#bdee67, #d3fd50);
  --accent-hover: light-dark(#acdf52, #dcfd7b);
  --on-accent: light-dark(#152126, #04080b);
  --accent-strong: light-dark(#4f7b23, #d3fd50);
  --on-accent-strong: light-dark(#ffffff, #04080b);
  --accent-text: light-dark(#41691a, #d3fd50);
  --accent-soft: light-dark(rgb(189 238 103 / 0.32), rgb(211 253 80 / 0.13));
  --accent-ring: light-dark(rgb(79 123 35 / 0.28), rgb(211 253 80 / 0.34));
  --selected: light-dark(#eef8d6, #151b12);
  /* Primary buttons are a two-stop lime gradient with a soft glow.
     --accent-line outlines selected chips and the focused search field;
     --accent-vivid is the saturated green of the empty-state artwork. */
  --accent-hi: light-dark(#d2f784, #e2ff86);
  --accent-lo: light-dark(#a8e548, #c4f23a);
  --accent-glow: light-dark(rgb(134 206 44 / 0.42), rgb(211 253 80 / 0.2));
  --accent-line: light-dark(#a6da68, rgb(211 253 80 / 0.5));
  --accent-vivid: light-dark(#69b925, #d3fd50);

  /* Status */
  --danger: light-dark(#cf3341, #ffa0ad);
  --on-danger: light-dark(#ffffff, #04080b);
  --danger-soft: light-dark(rgb(207 51 65 / 0.1), rgb(255 160 173 / 0.14));
  --success: light-dark(#3d7a2a, #5fe9b5);
  --star: light-dark(#b97a0c, #ffd230);
  --mark: light-dark(rgb(253 202 115 / 0.6), rgb(255 210 48 / 0.3));

  /* Inverse (toasts) */
  --inverse-bg: light-dark(#152126, #eeeff1);
  --inverse-text: light-dark(#fefdf7, #04080b);
  --inverse-accent: light-dark(#bdee67, #41691a);

  /* Elevation */
  --shadow-pop: light-dark(
    0 8px 28px rgb(21 33 38 / 0.14),
    0 10px 32px rgb(0 0 0 / 0.5)
  );
  --shadow-sm: light-dark(0 1px 2px rgb(21 33 38 / 0.08), 0 1px 2px rgb(0 0 0 / 0.4));
  --backdrop: light-dark(rgb(21 33 38 / 0.32), rgb(0 0 0 / 0.55));

  /* Shape */
  --radius-xs: 5px;
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  /* Motion */
  --dur-1: 120ms;
  --dur-2: 180ms;
  --dur-3: 260ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
