/* diffalarm design tokens: light on :root, dark on [data-theme="dark"] */

:root {
  /* surfaces */
  --bg:        #FBFAF7;
  --bg-2:      #F3F1EC;
  --surface:   #FFFFFF;
  --line:      #E6E2DA;
  --line-2:    #D3CEC4;

  /* text — every level passes 4.5:1 on --bg and --surface */
  --ink:       #1C2230;
  --ink-2:     #424958;
  --ink-3:     #626979;

  /* brand accent (from the logo) */
  --accent:      #F4A261;   /* fills: primary CTA, progress, focus */
  --accent-2:    #E76F51;   /* hover / pressed fill */
  --accent-ink:  #1C2230;   /* text on accent fills (both themes) */
  --accent-text: #AD4A2C;   /* accent used as text/links on light */
  --accent-soft: #FDEBDC;

  /* status — text-safe colours + soft tints */
  --ok:   #1F7A50;  --ok-soft:   #E3F3EA;
  --warn: #8F5C0E;  --warn-soft: #FBEFD6;
  --err:  #B3362A;  --err-soft:  #FBE5E1;
  --info: #3A5BA8;  --info-soft: #E7EDF8;

  --focus-ring: 0 0 0 3px rgba(231, 111, 81, .38);
  --shadow-1: 0 1px 2px rgba(28, 34, 48, .06);
  --shadow-2: 0 10px 30px -12px rgba(28, 34, 48, .18), 0 2px 6px -2px rgba(28, 34, 48, .06);

  /* type */
  --font-sans: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --fs-xs: 12px;  --fs-s: 13.5px; --fs-m: 15px; --fs-l: 18px;
  --fs-xl: 24px;  --fs-2xl: 32px; --fs-3xl: 48px;

  /* spacing (4-pt) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px;

  /* radii */
  --r-s: 6px; --r-m: 10px; --r-l: 14px; --r-pill: 999px;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg:        #111419;
  --bg-2:      #171B22;
  --surface:   #1B2029;
  --line:      #2A303B;
  --line-2:    #3A414E;

  --ink:       #EDEEF0;
  --ink-2:     #C2C7CF;
  --ink-3:     #969DA9;

  --accent-text: #F4A261;
  --accent-soft: rgba(244, 162, 97, .14);

  --ok:   #5BC48F;  --ok-soft:   rgba(91, 196, 143, .13);
  --warn: #E2A94F;  --warn-soft: rgba(226, 169, 79, .13);
  --err:  #F08473;  --err-soft:  rgba(240, 132, 115, .13);
  --info: #8BA7EC;  --info-soft: rgba(139, 167, 236, .13);

  --focus-ring: 0 0 0 3px rgba(244, 162, 97, .45);
  --shadow-1: 0 1px 0 rgba(0, 0, 0, .35);
  --shadow-2: 0 18px 40px -16px rgba(0, 0, 0, .6);

  color-scheme: dark;
}
