/*
 * The product's design tokens, copied verbatim from spaces v0.14.0 (commit a2f21b5be930),
 * core/src/app/ui/styles.css, the --wf-* custom properties: colours light and dark, the two font stacks, the radii,
 * the shadow and the canvas's grid lines. Never edited here: to follow a newer spaces release, copy the same block
 * from it again (README "The product's look") and name that release here.
 */

:root {
  color-scheme: light dark;
  --wf-bg: #f7f7f5;
  --wf-surface: #ffffff;
  --wf-surface-muted: #f0f0ec;
  --wf-border: #e3e3de;
  --wf-border-strong: #c8c8c1;
  --wf-text: #1f2328;
  --wf-text-muted: #5b6270;
  --wf-accent: #2f5d8a;
  --wf-accent-hover: #264d73;
  --wf-accent-soft: #e7edf4;
  --wf-on-accent: #ffffff;
  --wf-danger: #b42318;
  --wf-danger-soft: #fbecea;
  --wf-success: #2e7d4f;
  --wf-success-soft: #e8f3ec;
  --wf-warning: #835600;
  --wf-warning-soft: #fbf3e1;
  --wf-focus: #2f5d8a;
  --wf-external: #7a6a3a;
  --wf-shadow: 0 4px 16px rgb(20 24 28 / 10%);
  --wf-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wf-font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --wf-radius: 6px;
  --wf-radius-large: 8px;
  --wf-grid-minor: rgb(20 24 28 / 5%);
  --wf-grid-major: rgb(20 24 28 / 10%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --wf-bg: #16181b;
    --wf-surface: #1d2024;
    --wf-surface-muted: #262a2f;
    --wf-border: #30353b;
    --wf-border-strong: #474e57;
    --wf-text: #e6e6e3;
    --wf-text-muted: #a3a9b1;
    --wf-accent: #86abd2;
    --wf-accent-hover: #a2bfde;
    --wf-accent-soft: #233140;
    --wf-on-accent: #10161d;
    --wf-danger: #f19084;
    --wf-danger-soft: #3a201d;
    --wf-success: #7fc89c;
    --wf-success-soft: #1d3326;
    --wf-warning: #e2b765;
    --wf-warning-soft: #352c18;
    --wf-focus: #86abd2;
    --wf-external: #c9b67a;
    --wf-shadow: 0 4px 16px rgb(0 0 0 / 40%);
    --wf-grid-minor: rgb(255 255 255 / 4%);
    --wf-grid-major: rgb(255 255 255 / 8%);
  }
}

:root[data-theme="dark"] {
  --wf-bg: #16181b;
  --wf-surface: #1d2024;
  --wf-surface-muted: #262a2f;
  --wf-border: #30353b;
  --wf-border-strong: #474e57;
  --wf-text: #e6e6e3;
  --wf-text-muted: #a3a9b1;
  --wf-accent: #86abd2;
  --wf-accent-hover: #a2bfde;
  --wf-accent-soft: #233140;
  --wf-on-accent: #10161d;
  --wf-danger: #f19084;
  --wf-danger-soft: #3a201d;
  --wf-success: #7fc89c;
  --wf-success-soft: #1d3326;
  --wf-warning: #e2b765;
  --wf-warning-soft: #352c18;
  --wf-focus: #86abd2;
  --wf-external: #c9b67a;
  --wf-shadow: 0 4px 16px rgb(0 0 0 / 40%);
  --wf-grid-minor: rgb(255 255 255 / 4%);
  --wf-grid-major: rgb(255 255 255 / 8%);
}
