/* brem: Runwell in brem.io's look.
   Light: white and slate greys with a navy cast, brem navy (#1c325b) for buttons, links and focus.
   Dark: brem's navy-black (slate-950 page, slate-900 panels) with its sky blue (#79c4eb).
   Inter, regular and semibold weights, nearly square corners.
   Paste into Settings › Appearance › Custom CSS, with Colors left on Indigo. */

:root {
  --font-sans: Inter, "Inter Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  --weight: 400;
  --weight-strong: 600;

  /* Slate, as brem.io uses it: text slate-900, muted slate-500, borders slate-300 and -200. */
  --lch-canvas: 100% 0 0;
  --lch-ink-darkest: 20.8% 0.042 265.8;
  --lch-ink-darker: 37.2% 0.044 257.3;
  --lch-ink-dark: 55.4% 0.046 257.4;
  --lch-ink-medium: 70.4% 0.04 256.8;
  --lch-ink-light: 86.9% 0.022 252.9;
  --lch-ink-lighter: 92.9% 0.013 255.5;
  --lch-ink-lightest: 96.8% 0.007 247.9;
  --lch-ink-inverted: 100% 0 0;

  /* brem navy, with faint sky-leaning tints for selection. */
  --lch-accent: 32.2% 0.078 261.7;
  --lch-accent-light: 82% 0.045 250;
  --lch-accent-lighter: 92.5% 0.022 248;
  --lch-accent-lightest: 96.8% 0.012 245;

  /* The green of brem.io's checks. */
  --lch-green-dark: 52.7% 0.154 150.1;

  /* Square, as brem.io's buttons and badges are; containers keep a slight round. */
  --radius-scale: 0.4;
  --radius-control: 0.25rem;
  --radius-pill: 0.3rem;
}

html[data-theme="dark"] {
  --lch-canvas: 12.9% 0.041 264.7;
  --lch-ink-lightest: 20.8% 0.04 265.8;
  --lch-ink-lighter: 27.9% 0.041 260;
  --lch-ink-light: 37.2% 0.044 257.3;
  --lch-ink-medium: 55.4% 0.046 257.4;
  --lch-ink-dark: 70.4% 0.04 256.8;
  --lch-ink-darker: 86.9% 0.022 252.9;
  --lch-ink-darkest: 98.4% 0.003 247.9;
  --lch-ink-inverted: 20.8% 0.042 265.8;

  --lch-accent: 78.6% 0.093 232.3;
  --lch-accent-light: 42% 0.07 240;
  --lch-accent-lighter: 31% 0.05 245;
  --lch-accent-lightest: 25% 0.035 250;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    --lch-canvas: 12.9% 0.041 264.7;
    --lch-ink-lightest: 20.8% 0.04 265.8;
    --lch-ink-lighter: 27.9% 0.041 260;
    --lch-ink-light: 37.2% 0.044 257.3;
    --lch-ink-medium: 55.4% 0.046 257.4;
    --lch-ink-dark: 70.4% 0.04 256.8;
    --lch-ink-darker: 86.9% 0.022 252.9;
    --lch-ink-darkest: 98.4% 0.003 247.9;
    --lch-ink-inverted: 20.8% 0.042 265.8;

    --lch-accent: 78.6% 0.093 232.3;
    --lch-accent-light: 42% 0.07 240;
    --lch-accent-lighter: 31% 0.05 245;
    --lch-accent-lightest: 25% 0.035 250;
  }
}

/* One touch beyond tokens: primary buttons in brem navy (sky in dark), as on brem.io, rather than
   Runwell's ink. A class, so a future release may need this rule adjusted. */
.btn--primary,
.btn--primary:hover {
  background: oklch(var(--lch-accent));
  color: oklch(var(--lch-ink-inverted));
}