/* Blot design tokens: Material 3 color roles, type, shape, elevation and
   motion. Every color app.css uses is one of these. The 27 roles above the
   fixed block may be replaced inline on <html> by the phone's own palette
   (js/shell.js); error, ok, warn and scrim never are, and neither is --ink:
   the export is black whatever the app looks like. */

:root {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Roboto Mono", "Droid Sans Mono", Menlo, Consolas, monospace;

  --type-headline-medium: 400 1.75rem/2.25rem var(--font);
  --type-headline-small: 400 1.5rem/2rem var(--font);
  --type-title-large: 400 1.375rem/1.75rem var(--font);
  --type-title-medium: 500 1rem/1.5rem var(--font);
  --type-title-small: 500 0.875rem/1.25rem var(--font);
  --type-body-large: 400 1rem/1.5rem var(--font);
  --type-body-medium: 400 0.875rem/1.25rem var(--font);
  --type-body-small: 400 0.75rem/1rem var(--font);
  --type-label-large: 500 0.875rem/1.25rem var(--font);
  --type-label-medium: 500 0.75rem/1rem var(--font);

  --track-title-medium: 0.009em;
  --track-title-small: 0.007em;
  --track-body-large: 0.031em;
  --track-body-medium: 0.018em;
  --track-body-small: 0.033em;
  --track-label-large: 0.007em;
  --track-label-medium: 0.042em;

  --shape-xs: 4px;
  --shape-sm: 8px;
  --shape-md: 12px;
  --shape-lg: 16px;
  --shape-xl: 28px;
  --shape-full: 9999px;

  --elev-1: 0 1px 2px rgb(0 0 0 / 0.3), 0 1px 3px 1px rgb(0 0 0 / 0.15);
  --elev-2: 0 1px 2px rgb(0 0 0 / 0.3), 0 2px 6px 2px rgb(0 0 0 / 0.15);
  --elev-3: 0 1px 3px rgb(0 0 0 / 0.3), 0 4px 8px 3px rgb(0 0 0 / 0.15);

  --ease-emphasized: cubic-bezier(0.2, 0, 0, 1);
  --ease-emphasized-decel: cubic-bezier(0.05, 0.7, 0.1, 1);
  --dur-short2: 100ms;
  --dur-short3: 150ms;
  --dur-short4: 200ms;
  --dur-medium2: 300ms;

  --state-hover: 0.08;
  --state-press: 0.1;

  /* The Android app sends --blot-inset-* (js/shell.js); a browser and iOS fall back to env(). */
  --safe-top: var(--blot-inset-top, env(safe-area-inset-top, 0px));
  --safe-right: var(--blot-inset-right, env(safe-area-inset-right, 0px));
  --safe-bottom: var(--blot-inset-bottom, env(safe-area-inset-bottom, 0px));
  --safe-left: var(--blot-inset-left, env(safe-area-inset-left, 0px));

  --ink: #0e0c0a;

  /* Light: the fallback palette, seeded from Blot violet. */
  color-scheme: light;

  --md-primary: #634fad;
  --md-on-primary: #ffffff;
  --md-primary-container: #e2dfff;
  --md-on-primary-container: #24005a;
  --md-secondary: #5e5c70;
  --md-on-secondary: #ffffff;
  --md-secondary-container: #e2e0f8;
  --md-on-secondary-container: #1c192a;
  --md-tertiary: #814f67;
  --md-on-tertiary: #ffffff;
  --md-tertiary-container: #fed8e9;
  --md-on-tertiary-container: #360a23;
  --md-surface: #f9f9ff;
  --md-surface-dim: #dad9e2;
  --md-surface-bright: #f9f9ff;
  --md-surface-container-lowest: #ffffff;
  --md-surface-container-low: #f3f3fc;
  --md-surface-container: #eeedf6;
  --md-surface-container-high: #e8e7f0;
  --md-surface-container-highest: #e2e2ea;
  --md-on-surface: #1b1b21;
  --md-on-surface-variant: #474552;
  --md-outline: #777684;
  --md-outline-variant: #c6c5d5;
  --md-inverse-surface: #303036;
  --md-inverse-on-surface: #f0f0f9;
  --md-inverse-primary: #c7bffe;

  --md-error: #ba1a1a;
  --md-on-error: #ffffff;
  --md-error-container: #ffdad6;
  --md-on-error-container: #410002;
  --md-ok: #1b6c3a;
  --md-on-ok: #ffffff;
  --md-ok-container: #a3f5b8;
  --md-on-ok-container: #00210c;
  --md-warn: #7a5900;
  --md-on-warn: #ffffff;
  --md-warn-container: #ffdf9e;
  --md-on-warn-container: #261a00;
  --scrim: rgb(0 0 0 / 0.32);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --md-primary: #c7bffe;
    --md-on-primary: #371c78;
    --md-primary-container: #4c3692;
    --md-on-primary-container: #e2dfff;
    --md-secondary: #c6c4db;
    --md-on-secondary: #302e40;
    --md-secondary-container: #474558;
    --md-on-secondary-container: #e2e0f8;
    --md-tertiary: #f0b6d1;
    --md-on-tertiary: #4e2138;
    --md-tertiary-container: #67374f;
    --md-on-tertiary-container: #fed8e9;
    --md-surface: #131319;
    --md-surface-dim: #131319;
    --md-surface-bright: #39383f;
    --md-surface-container-lowest: #0e0e13;
    --md-surface-container-low: #1b1b21;
    --md-surface-container: #1f1f25;
    --md-surface-container-high: #2a2930;
    --md-surface-container-highest: #35343b;
    --md-on-surface: #e2e2ea;
    --md-on-surface-variant: #c6c5d5;
    --md-outline: #908f9e;
    --md-outline-variant: #474552;
    --md-inverse-surface: #e2e2ea;
    --md-inverse-on-surface: #303036;
    --md-inverse-primary: #634fad;

    --md-error: #ffb4ab;
    --md-on-error: #690005;
    --md-error-container: #93000a;
    --md-on-error-container: #ffdad6;
    --md-ok: #7fda9a;
    --md-on-ok: #00391a;
    --md-ok-container: #00522a;
    --md-on-ok-container: #a3f5b8;
    --md-warn: #f2c04a;
    --md-on-warn: #402d00;
    --md-warn-container: #5c4300;
    --md-on-warn-container: #ffdf9e;
  }
}
