/* ============================================================
   WebDeps — visual system
   Light, spare product surface: near-black ink, white page,
   black pill actions. Dark theme is the same system inverted.
   No-JS safe: :root alone = light.
   ============================================================ */

/* ── Font: Outfit via <link> in HTML <head> ──── */

:root {
  color-scheme: light;

  /* ─── Typography ─────────────────────────────────── */
  --md-font-brand: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --md-font-plain: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --md-font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', Consolas, monospace;
  /* M3 type scale roles */
  --md-display-lg:  64px; --md-display-lg-lh: 1.08; --md-display-lg-ls: -1.2px; --md-display-lg-wt: 500;
  --md-display-md:  48px; --md-display-md-lh: 1.12; --md-display-md-ls: -0.6px;  --md-display-md-wt: 500;
  --md-display-sm:  40px; --md-display-sm-lh: 1.15; --md-display-sm-ls: -0.4px;  --md-display-sm-wt: 500;
  --md-headline-lg: 32px; --md-headline-lg-lh: 1.2;  --md-headline-lg-ls: -0.2px; --md-headline-lg-wt: 500;
  --md-headline-md: 28px; --md-headline-md-lh: 1.25; --md-headline-md-ls: 0px;   --md-headline-md-wt: 500;
  --md-headline-sm: 24px; --md-headline-sm-lh: 1.3;  --md-headline-sm-ls: 0px;   --md-headline-sm-wt: 500;
  --md-title-lg:    22px; --md-title-lg-lh: 1.27;    --md-title-lg-ls: 0px;      --md-title-lg-wt: 600;
  --md-title-md:    16px; --md-title-md-lh: 1.50;    --md-title-md-ls: 0.15px;   --md-title-md-wt: 500;
  --md-title-sm:    14px; --md-title-sm-lh: 1.43;    --md-title-sm-ls: 0.1px;    --md-title-sm-wt: 500;
  --md-body-lg:     16px; --md-body-lg-lh: 1.50;     --md-body-lg-ls: 0px;       --md-body-lg-wt: 400;
  --md-body-md:     14px; --md-body-md-lh: 1.43;     --md-body-md-ls: 0px;       --md-body-md-wt: 400;
  --md-body-sm:     12px; --md-body-sm-lh: 1.33;     --md-body-sm-ls: 0px;       --md-body-sm-wt: 400;
  --md-label-lg:    14px; --md-label-lg-lh: 1.43;    --md-label-lg-ls: 0px;      --md-label-lg-wt: 500;
  --md-label-md:    12px; --md-label-md-lh: 1.33;    --md-label-md-ls: 0.5px;    --md-label-md-wt: 500;
  --md-label-sm:    11px; --md-label-sm-lh: 1.45;    --md-label-sm-ls: 0.5px;    --md-label-sm-wt: 500;

  /* ─── Color roles (light) ───────────────────────── */
  --md-primary:                  #121317;
  --md-on-primary:               #ffffff;
  --md-primary-container:        #f4f5f7;
  --md-on-primary-container:     #121317;
  --md-secondary:                #121317;
  --md-on-secondary:             #ffffff;
  --md-secondary-container:      #f4f5f7;
  --md-on-secondary-container:   #121317;
  --md-tertiary:                 #121317;
  --md-on-tertiary:              #ffffff;
  --md-tertiary-container:       #f4f5f7;
  --md-on-tertiary-container:    #121317;
  --md-error:                    #b3261e;
  --md-on-error:                 #ffffff;
  --md-error-container:          #f9dedc;
  --md-on-error-container:       #410e0b;

  /* Surfaces */
  --md-surface:                  #ffffff;
  --md-surface-dim:              #f4f5f7;
  --md-surface-bright:           #ffffff;
  --md-on-surface:               #121317;
  --md-on-surface-variant:       #5c5f66;
  --md-surface-container-lowest: #ffffff;
  --md-surface-container-low:    #f7f8fa;
  --md-surface-container:        #f4f5f7;
  --md-surface-container-high:   #eeeef1;
  --md-surface-container-highest:#e7e8ec;

  /* Outlines */
  --md-outline:                  #c4c7cc;
  --md-outline-variant:          #e6e8ec;

  /* Inverse */
  --md-inverse-surface:          #121317;
  --md-inverse-on-surface:       #f5f6f7;
  --md-inverse-primary:          #ffffff;

  /* Fixed */
  --md-primary-fixed:            #f4f5f7;
  --md-primary-fixed-dim:        #e7e8ec;
  --md-on-primary-fixed:         #121317;
  --md-on-primary-fixed-variant: #121317;

  /* Scrim & shadow */
  --md-scrim:                    #000;
  --md-shadow:                   #000;

  /* ─── M3 Shape Scale ─────────────────────────────── */
  --md-shape-none: 0px;
  --md-shape-xs:   4px;
  --md-shape-sm:   8px;
  --md-shape-md:   12px;
  --md-shape-lg:   16px;
  --md-shape-xl:   28px;
  --md-shape-full: 999px;

  /* ─── M3 Elevation (tonal surface tint) ──────────── */
  --md-elevation-1: 0 0 0 0 transparent;
  --md-elevation-2: 0 0 0 0 transparent;
  --md-elevation-3: 0 0 0 0 transparent;
  --md-elevation-4: 0 0 0 0 transparent;
  --md-elevation-5: 0 0 0 0 transparent;

  /* ─── M3 Motion / Easing ─────────────────────────── */
  --md-ease:         cubic-bezier(.2, 0, 0, 1);
  --md-ease-decel:   cubic-bezier(0, 0, 0, 1);
  --md-ease-accel:   cubic-bezier(.3, 0, .8, .15);
  --md-ease-linear:  cubic-bezier(0, 0, 1, 1);
  --md-ease-spring:  cubic-bezier(.05, .7, .1, 1);
  --md-dur-short1:   50ms;
  --md-dur-short2:   100ms;
  --md-dur-short3:   150ms;
  --md-dur-short4:   200ms;
  --md-dur-med1:     250ms;
  --md-dur-med2:     300ms;
  --md-dur-med3:     350ms;
  --md-dur-med4:     400ms;
  --md-dur-long1:    450ms;
  --md-dur-long2:    500ms;
  --md-dur-long3:    550ms;
  --md-dur-long4:    600ms;
  --md-dur-xlong1:   700ms;
  --md-dur-xlong2:   800ms;

  /* ─── State layer opacities ──────────────────────── */
  --md-state-hover:   0.08;
  --md-state-focus:   0.10;
  --md-state-pressed: 0.10;
  --md-state-dragged: 0.16;
}

/* ── Dark theme: same system, inverted ──────────────────── */
:root[data-theme="dark"] {
  color-scheme: dark;

  --md-primary:                  #ffffff;
  --md-on-primary:               #121317;
  --md-primary-container:        #1c1d22;
  --md-on-primary-container:     #f5f6f7;
  --md-secondary:                #ffffff;
  --md-on-secondary:             #121317;
  --md-secondary-container:      #1c1d22;
  --md-on-secondary-container:   #f5f6f7;
  --md-tertiary:                 #ffffff;
  --md-on-tertiary:              #121317;
  --md-tertiary-container:       #1c1d22;
  --md-on-tertiary-container:    #f5f6f7;
  --md-error:                    #ffb4ab;
  --md-on-error:                 #690005;
  --md-error-container:          #93000a;
  --md-on-error-container:       #ffdad6;

  --md-surface:                  #121317;
  --md-surface-dim:              #121317;
  --md-surface-bright:           #2a2c33;
  --md-on-surface:               #f5f6f7;
  --md-on-surface-variant:       #b8bcc4;
  --md-surface-container-lowest: #0e0f13;
  --md-surface-container-low:    #1a1b20;
  --md-surface-container:        #1c1d22;
  --md-surface-container-high:   #23242a;
  --md-surface-container-highest:#2a2c33;

  --md-outline:                  #5c5f66;
  --md-outline-variant:          #2e3036;

  --md-inverse-surface:          #f5f6f7;
  --md-inverse-on-surface:       #121317;
  --md-inverse-primary:          #121317;

  --md-primary-fixed:            #f5f6f7;
  --md-primary-fixed-dim:        #e7e8ec;
  --md-on-primary-fixed:         #121317;
  --md-on-primary-fixed-variant: #121317;
}
