/*
 * Material Design 3 design tokens.
 *
 * Colors use the M3 baseline scheme. The active scheme is chosen by
 * assets/js/theme-init.js, which sets <html data-theme="light|dark">.
 * Without JavaScript the light scheme is used.
 */

:root,
:root[data-theme="light"] {
  color-scheme: light;

  --md-primary: #6750a4;
  --md-on-primary: #ffffff;
  --md-primary-container: #eaddff;
  --md-on-primary-container: #21005d;
  --md-secondary: #625b71;
  --md-secondary-container: #e8def8;
  --md-on-secondary-container: #1d192b;
  --md-tertiary-container: #ffd8e4;
  --md-on-tertiary-container: #31111d;
  --md-error: #b3261e;
  --md-error-container: #f9dedc;
  --md-on-error-container: #410e0b;

  --md-surface: #fef7ff;
  --md-on-surface: #1d1b20;
  --md-on-surface-variant: #49454f;
  --md-surface-container-lowest: #ffffff;
  --md-surface-container-low: #f7f2fa;
  --md-surface-container: #f3edf7;
  --md-surface-container-high: #ece6f0;
  --md-surface-container-highest: #e6e0e9;
  --md-outline: #79747e;
  --md-outline-variant: #cac4d0;

  --md-inverse-surface: #322f35;
  --md-inverse-on-surface: #f5eff7;
  --md-inverse-primary: #d0bcff;

  /* RGB triplet of on-surface, used for disabled states (12% / 38%). */
  --md-on-surface-rgb: 29, 27, 32;
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --md-primary: #d0bcff;
  --md-on-primary: #381e72;
  --md-primary-container: #4f378b;
  --md-on-primary-container: #eaddff;
  --md-secondary: #ccc2dc;
  --md-secondary-container: #4a4458;
  --md-on-secondary-container: #e8def8;
  --md-tertiary-container: #633b48;
  --md-on-tertiary-container: #ffd8e4;
  --md-error: #f2b8b5;
  --md-error-container: #8c1d18;
  --md-on-error-container: #f9dedc;

  --md-surface: #141218;
  --md-on-surface: #e6e0e9;
  --md-on-surface-variant: #cac4d0;
  --md-surface-container-lowest: #0f0d13;
  --md-surface-container-low: #1d1b20;
  --md-surface-container: #211f26;
  --md-surface-container-high: #2b2930;
  --md-surface-container-highest: #36343b;
  --md-outline: #938f99;
  --md-outline-variant: #49454f;

  --md-inverse-surface: #e6e0e9;
  --md-inverse-on-surface: #322f35;
  --md-inverse-primary: #6750a4;

  --md-on-surface-rgb: 230, 224, 233;
}

:root {
  /* Typeface */
  --md-font-plain: Roboto, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --md-font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;

  /* Shape (corner radius) */
  --md-shape-xs: 4px;
  --md-shape-sm: 8px;
  --md-shape-md: 12px;
  --md-shape-lg: 16px;
  --md-shape-xl: 28px;
  --md-shape-full: 9999px;

  /* Elevation */
  --md-elevation-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
  --md-elevation-2: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 6px 2px rgba(0, 0, 0, 0.15);
  --md-elevation-3: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 8px 3px rgba(0, 0, 0, 0.15);

  /* State layer opacity */
  --md-state-hover: 0.08;
  --md-state-focus: 0.1;
  --md-state-pressed: 0.1;

  /* Motion */
  --md-easing-standard: cubic-bezier(0.2, 0, 0, 1);
  --md-easing-emphasized-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1);
  --md-duration-short: 150ms;
  --md-duration-medium: 300ms;

  /* Layout */
  --nav-bar-height: 80px;
  --nav-rail-width: 80px;
  --top-app-bar-height: 64px;
  --content-max-width: 1040px;
}
