/* LIFEBOARD design tokens. Every colour, size and radius in the app comes from here.
   Colour rules (see design-system.html):
   1. Hue = category. Always shown with its icon and name, never colour alone.
   2. Priority = position + label + flag. Urgent coral, Important electric blue, Can wait grey.
   3. Status = icon shape (empty ring, half ring, tick). Fresh green = completion only (ticks, progress ring, done count); Personal leaf green always carries its icon + label.
   4. Scheduled = solid fill. Flexible = dashed outline. Break = soft hatch. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/jakarta.woff2') format('woff2-variations'), url('/fonts/jakarta.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* surfaces */
  --bg: #FAF7F2;          /* warm off-white */
  --surface: #FFFFFF;
  --surface-2: #F4EFE7;
  --line: #ECE5DA;
  --line-2: #DDD4C6;

  /* ink */
  --ink: #1B1A22;
  --ink-2: #55525F;
  --ink-3: #8C8895;
  --ink-inverse: #FFFFFF;

  /* core */
  --primary: #2F5BFF;     /* electric blue: actions, focus, Important */
  --primary-ink: #1F43D6;
  --primary-soft: #E9EEFF;
  --success: #12B76A;     /* fresh green: completion only, always with a tick */
  --success-ink: #0B8A4F;
  --success-soft: #E2F6EB;
  --urgent: #F2554A;      /* coral red */
  --urgent-ink: #C93A30;
  --urgent-soft: #FFEDEA;
  --later: #8C8895;
  --later-soft: #F1EDE8;
  --caution: #E8A317;
  --caution-soft: #FFF5DC;

  /* categories: base / text-safe ink / pastel */
  --re: #1B78D0;  --re-ink: #11599E;  --re-soft: #E3EFFB;   /* Real Estate: ocean blue */
  --ho: #F08A24;  --ho-ink: #AD5A0A;  --ho-soft: #FEEFDF;   /* Hospitality: warm orange */
  --pe: #2E9D57;  --pe-ink: #1D7440;  --pe-soft: #E3F3E8;   /* Personal: leaf green */
  --go: #8B5CF6;  --go-ink: #6537D6;  --go-soft: #EFE8FE;   /* Goals & Growth: purple */
  /* one extra colour for areas Gero adds himself. Checked with the palette validator: it adds no
     pair closer than the four above already have. Beyond five areas, colours repeat and the
     icon and name (always shown) tell areas apart. */
  --mg: #C2389E;  --mg-ink: #962A7A;  --mg-soft: #FBE5F4;   /* magenta */
  /* events copied from Google Calendar: neutral, never an area colour */
  --ext: #6B7280; --ext-ink: #3F4652; --ext-soft: #EEF0F4;

  /* type scale */
  --fs-display: 32px;
  --fs-h1: 24px;
  --fs-h2: 18px;
  --fs-h3: 16px;
  --fs-body: 15px;
  --fs-sm: 13px;
  --fs-xs: 11.5px;
  --lh-tight: 1.2;
  --lh: 1.5;

  /* spacing (4px grid) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px;

  /* radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;   /* cards */
  --r-lg: 20px;   /* hero, panels */
  --r-pill: 999px;

  /* elevation */
  --shadow-1: 0 1px 2px rgba(40, 30, 15, .05), 0 0 0 1px rgba(40, 30, 15, .03);
  --shadow-2: 0 8px 24px -12px rgba(40, 30, 15, .18), 0 2px 4px rgba(40, 30, 15, .04);
  --shadow-hero: 0 22px 44px -20px rgba(47, 91, 255, .65);

  /* motion */
  --t-fast: 140ms;
  --t-med: 260ms;
  --t-slow: 700ms;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);

  /* layout */
  --sidebar-w: 248px;
  --content-max: 1180px;
  --bottom-nav-h: 68px;
}

@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0ms; --t-med: 0ms; --t-slow: 0ms; }
}
