/* Sluse design tokens: one source for every surface (the web app, the pages
   slused serves, the desktop app's window). The colours come from the logo:
   a mist background, ink letters, and a stream that runs yellow, coral,
   magenta, purple, sky, blue. web/ copies this file at build time and the Go
   pages embed it (internal/brand), so edit it here and nowhere else. */
:root {
  color-scheme: light dark;

  /* The logo's own colours. These never change with the theme. */
  --mist: #bfcdcd;
  --ink: #0c1114;
  --yellow: #ecc94a;
  --coral: #e47167;
  --magenta: #c1349c;
  --purple: #8a45ae;
  --sky: #5cc0df;
  --aqua: #84d2dc;
  --blue: #4491e1;

  /* What the interface is painted with. */
  --bg: #bfcdcd;
  --surface: #ffffff;
  --surface-2: #edf2f2;
  --line: #d5dede;
  --line-strong: #94a6a6;
  --text: #0c1114;
  --text-2: #46565b;
  --accent: #1c64c4;
  --solid: #0c1114;
  --on-solid: #ffffff;
  --solid-hover: #243238;
  --ok: #0b6e5f;
  --ok-bg: #dcf1ec;
  --warn: #6f5200;
  --warn-bg: #fbf1c9;
  --danger: #b3261e;
  --danger-bg: #fbe7e4;
  --info-bg: #e2f1f8;
  --scrim: rgba(12, 17, 20, 0.45);

  --radius: 10px;
  --radius-s: 6px;
  --shadow: 0 1px 0 rgba(12, 17, 20, 0.05), 0 14px 30px -18px rgba(12, 17, 20, 0.4);
  --shadow-pop: 0 2px 0 rgba(12, 17, 20, 0.06), 0 18px 40px -12px rgba(12, 17, 20, 0.45);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* The stream as six hard-edged bands, for progress bars and accents. */
  --stream: linear-gradient(
    90deg,
    var(--yellow) 0 16.67%,
    var(--coral) 16.67% 33.33%,
    var(--magenta) 33.33% 50%,
    var(--purple) 50% 66.67%,
    var(--sky) 66.67% 83.33%,
    var(--blue) 83.33% 100%
  );
  /* The same six colours as 16px pixels, one colour per pixel, repeating. */
  --stream-pixels: repeating-linear-gradient(
    90deg,
    var(--yellow) 0 16px,
    var(--coral) 16px 32px,
    var(--magenta) 32px 48px,
    var(--purple) 48px 64px,
    var(--sky) 64px 80px,
    var(--blue) 80px 96px
  );
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1316;
    --surface: #161e22;
    --surface-2: #1f2a2f;
    --line: #27343a;
    --line-strong: #52656d;
    --text: #e9f0f0;
    --text-2: #9db0b5;
    --accent: #8ccbf5;
    --solid: #e9f0f0;
    --on-solid: #0c1114;
    --solid-hover: #ffffff;
    --ok: #7fd8c4;
    --ok-bg: #12332d;
    --warn: #f0d67a;
    --warn-bg: #3a3212;
    --danger: #ff9d94;
    --danger-bg: #3d1a17;
    --info-bg: #14303d;
    --scrim: rgba(0, 0, 0, 0.6);
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 14px 30px -18px rgba(0, 0, 0, 0.8);
    --shadow-pop: 0 2px 0 rgba(0, 0, 0, 0.3), 0 18px 40px -12px rgba(0, 0, 0, 0.85);
  }
}
