/* Design tokens. Every colour, size and shadow lives here and nowhere else,
   so a rebrand or a dark-mode fix is an edit to this one file. */

:root {
  color-scheme: light;

  /* Surfaces. Soft sage-mint backdrop with crisp white cards. */
 /* Surfaces. Crisp white background with soft sage-mint secondary surfaces. */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #edf4ef;
  --line: #dce9e1;

  /* Text. Deep forest-charcoal ink for crisp legibility. */
  --ink: #121a16;
  --on-ink: #ffffff;
  --ink-2: #43544b;
  --ink-3: #64756c;

  /* Emerald-mint brand & hero card tokens. */
  --accent: #139f72;
  --accent-wash: #dcf3ea;
  --hero-bg: linear-gradient(145deg, #16a87a 0%, #108a63 100%);
  --hero-foot: rgb(8 54 39 / 0.34);
  --hero-ink: #ffffff;
  --hero-sub: rgb(255 255 255 / 0.84);
  --hero-tile: #ffffff;
  --hero-tile-ink: #108a63;

  /* Money direction. */
  --pos: #16a34a;
  --pos-ink: #0b7a3c;
  --pos-wash: #dcf3e6;
  --neg: #e5484d;
  --neg-ink: #c42b31;
  --neg-wash: #fdeaea;
  --warn: #d99a1b;
  --warn-ink: #7a5200;
  --warn-wash: #fff3d6;

  --track: #cfe0d6;

  /* Shape */
  --r-card: 24px;
  --r-tile: 14px;
  --r-pill: 999px;

  /* Depth */
  --shadow-card: 0 1px 2px rgb(16 24 20 / 0.03), 0 10px 26px rgb(16 24 20 / 0.05);
  --shadow-hero: 0 14px 32px rgb(16 138 99 / 0.22), 0 2px 6px rgb(16 24 20 / 0.06);
  --shadow-tile: 0 1px 2px rgb(16 24 20 / 0.05), 0 3px 10px rgb(16 24 20 / 0.04);
  --shadow-nav: 0 4px 12px rgb(16 24 20 / 0.06), 0 14px 32px rgb(16 24 20 / 0.1);

  /* Type */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.9375rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2.25rem;

  /* Space, in 4px steps */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-8: 2rem;

  --nav-h: 64px;
}

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

  --bg: #0c120f;
  --surface: #141d18;
  --surface-2: #1c2721;
  --line: #27362e;

  --ink: #eef5f1;
  --on-ink: #0f1713;
  --ink-2: #b8c9bf;
  --ink-3: #8fa398;

  --accent: #2cc793;
  --accent-wash: #163328;
  --hero-bg: linear-gradient(145deg, #158f68 0%, #0e684b 100%);
  --hero-foot: rgb(5 32 23 / 0.48);
  --hero-ink: #ffffff;
  --hero-sub: rgb(255 255 255 / 0.82);
  --hero-tile: #141d18;
  --hero-tile-ink: #34d399;

  --pos: #34d07a;
  --pos-ink: #5fe39a;
  --pos-wash: #12301f;
  --neg: #f0686d;
  --neg-ink: #ff8c90;
  --neg-wash: #3a1a1c;
  --warn: #e8b13c;
  --warn-ink: #f0c668;
  --warn-wash: #33290f;

  --track: #26352d;

  --shadow-card: 0 0 0 1px rgb(255 255 255 / 0.05);
  --shadow-hero: 0 14px 32px rgb(0 0 0 / 0.45), 0 0 0 1px rgb(255 255 255 / 0.07);
  --shadow-tile: 0 0 0 1px rgb(255 255 255 / 0.07);
  --shadow-nav: 0 12px 32px rgb(0 0 0 / 0.55), 0 0 0 1px rgb(255 255 255 / 0.07);
}