/* Design tokens. One place for colour, type, spacing and elevation. */
:root {
  /* Neutrals — cool slate, the register modern financial software uses */
  --c-bg:            #f7f8fa;
  --c-surface:       #ffffff;
  --c-surface-2:     #fbfcfd;
  --c-surface-3:     #f2f4f7;
  --c-border:        #e3e7ed;
  --c-border-strong: #cdd4de;
  --c-text:          #101828;
  --c-text-2:        #475467;
  --c-text-3:        #737f92;
  --c-text-inv:      #ffffff;

  /* Brand — deep marine blue, appropriate to an aquatic business without being literal */
  --c-brand:         #10527a;
  --c-brand-2:       #1a6f9e;
  --c-brand-soft:    #e8f1f7;
  --c-brand-ink:     #0b3c5a;

  /* Semantic */
  --c-positive:      #067647;
  --c-positive-soft: #e7f6ee;
  --c-negative:      #b42318;
  --c-negative-soft: #fdeceb;
  --c-warning:       #b54708;
  --c-warning-soft:  #fdf3e7;
  --c-info:          #175cd3;
  --c-info-soft:     #eaf1fd;
  --c-opportunity:   #5925dc;
  --c-opportunity-soft: #f1ecfd;

  /* Type */
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --fs-xs: 0.6875rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.625rem;
  --fs-2xl: 2.125rem;
  --fs-3xl: 2.75rem;

  /* Space */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px;

  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 8px 24px rgba(16, 24, 40, .08), 0 2px 6px rgba(16, 24, 40, .04);

  --nav-w: 232px;
  --header-h: 60px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-bg:            #0c1117;
    --c-surface:       #131a22;
    --c-surface-2:     #171f28;
    --c-surface-3:     #1d2732;
    --c-border:        #253040;
    --c-border-strong: #35435a;
    --c-text:          #e9eef5;
    --c-text-2:        #a3b0c2;
    --c-text-3:        #7b8798;
    --c-brand:         #4ea3d8;
    --c-brand-2:       #6bb8e8;
    --c-brand-soft:    #14293a;
    --c-brand-ink:     #9fd0ec;
    --c-positive:      #47c98a;
    --c-positive-soft: #11291f;
    --c-negative:      #f27a72;
    --c-negative-soft: #2b1614;
    --c-warning:       #e2a04a;
    --c-warning-soft:  #2a1f11;
    --c-info:          #7aa8f0;
    --c-info-soft:     #151f33;
    --c-opportunity:   #a78bfa;
    --c-opportunity-soft: #1e1830;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 1px 3px rgba(0,0,0,.45);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.5);
  }
}
