/*
 * Brand tokens — the one file to change when the palette or type changes.
 * Where a value also exists in core/src/brand.rs (name, URLs, theme colour), keep the two
 * in step: brand.rs holds the values, this file holds the colours.
 */

:root {
  color-scheme: light dark;

  /* Surfaces */
  --bg: #ffffff;
  --surface: #f7f9fc;
  --surface-2: #eef3fa;

  /* Text */
  --ink: #0b1f3a;
  --ink-muted: #55637a;

  /* Lines */
  --border: #e2e8f2;

  /* The one accent */
  --accent: #2f6fed;
  --accent-ink: #ffffff;
  --accent-soft: #eaf1fe;

  /* Status */
  --good: #1e8e52;
  --good-soft: #e8f6ef;
  --warn: #955f00;
  --warn-soft: #fdf3e0;
  --bad: #c4342b;
  --bad-soft: #fdeceb;
  --info: #55637a;
  --info-soft: #eef1f6;

  /* Type: system only, no webfonts, no CDNs */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  /* Shape */
  --radius: 12px;
  --radius-sm: 8px;
  --page-width: 60rem;
  --shadow-card: 0 1px 2px rgba(11, 31, 58, 0.05), 0 10px 30px rgba(11, 31, 58, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #111b2e;
    --surface-2: #16233a;

    --ink: #e8eef9;
    --ink-muted: #94a4bc;

    --border: #22304a;

    --accent: #6e9bff;
    --accent-ink: #06122a;
    --accent-soft: #16294c;

    --good: #4ed08a;
    --good-soft: #102e1f;
    --warn: #f0b44c;
    --warn-soft: #322509;
    --bad: #ff7a6e;
    --bad-soft: #3a1414;
    --info: #94a4bc;
    --info-soft: #18202f;

    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}
