/* Life by Design — SHARED THEME TOKENS (v1, 2026-11-15)
   One palette for the app AND the dashboards, in light and dark.
   Every name is prefixed --lbd- so this file can be dropped into any page
   (the dashboards own --bg / --line / --good, the app owns --ink-* / --paper)
   without colliding. Each surface maps its OWN variable names onto these:
     app        -> styles.css :root
     dashboards -> dash-theme.css :root
   The mode is the data-theme attribute on <html>, set before first paint by
   theme.js ("auto" follows the phone; the user can force light or dark).
   Change a colour HERE and it changes everywhere. Never hard-code a hex in a page. */

:root {
  color-scheme: light;

  /* surfaces */
  --lbd-bg:#F3F5FA;            /* page */
  --lbd-bg-2:#E9EDF5;          /* page, one step down (rails, wells) */
  --lbd-surface:#FFFFFF;       /* cards, sheets, bars */
  --lbd-surface-2:#EEF1F7;     /* hover, chips, track of a progress bar */
  --lbd-raised:#FFFFFF;        /* inputs sitting on a card */
  --lbd-inverse:#0F172A;       /* the rare dark panel on a light page */
  --lbd-inverse-ink:#F1F4F9;

  /* text */
  --lbd-text:#0F172A;          /* headings, numbers */
  --lbd-text-2:#334155;        /* body */
  --lbd-text-3:#475569;        /* secondary body */
  --lbd-muted:#64748B;         /* captions */
  --lbd-faint:#7A869C;         /* labels, placeholders */
  --lbd-disabled:#C3CBD9;

  /* lines */
  --lbd-line:#E3E8F1;
  --lbd-line-soft:#ECEFF5;
  --lbd-line-strong:#CBD3E0;

  /* the one accent */
  --lbd-accent:#3A66FA;        /* links, icons, active states */
  --lbd-accent-bg:#3A66FA;     /* filled buttons (white text passes 4.5:1) */
  --lbd-accent-ink:#FFFFFF;
  --lbd-accent-soft:#E5ECFF;

  /* status — colour only ever means status */
  --lbd-good:#12976A;  --lbd-good-soft:#DCF3EA;
  --lbd-warn:#B9790A;  --lbd-warn-soft:#FFF2D4;
  --lbd-bad:#DC3F45;   --lbd-bad-soft:#FDE5E6;  --lbd-bad-line:#F3C2C5;

  /* soft per-area tints (icon tiles, dots — never text on white) */
  --lbd-violet:#7C5CFC; --lbd-teal:#0E9F9F; --lbd-orange:#EE7430; --lbd-pink:#E0508A; --lbd-green:#3F9142;

  /* type: one sans everywhere; the serif is for the Daily Text and scripture only */
  --lbd-font:'Inter',system-ui,-apple-system,'Segoe UI',Helvetica,Arial,sans-serif;
  --lbd-font-quote:'Newsreader','Iowan Old Style',Georgia,serif;

  /* shape */
  --lbd-radius:16px; --lbd-radius-sm:12px; --lbd-radius-xs:8px;
  --lbd-shadow:0 1px 2px rgba(15,23,42,.05), 0 10px 26px -16px rgba(15,23,42,.20);
  --lbd-shadow-modal:0 30px 74px -20px rgba(15,23,42,.40);
  --lbd-scrim:rgba(11,16,30,.44);
}

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

  --lbd-bg:#090D15;
  --lbd-bg-2:#0E131D;
  --lbd-surface:#131925;
  --lbd-surface-2:#1B2231;
  --lbd-raised:#1B2231;
  --lbd-inverse:#1B2231;
  --lbd-inverse-ink:#F1F4F9;

  --lbd-text:#F1F4F9;
  --lbd-text-2:#D5DBE6;
  --lbd-text-3:#B4BDCE;
  --lbd-muted:#8D97AC;
  --lbd-faint:#7A859C;
  --lbd-disabled:#3A4458;

  --lbd-line:#232B3A;
  --lbd-line-soft:#1C2331;
  --lbd-line-strong:#354054;

  --lbd-accent:#7FA0FF;
  --lbd-accent-bg:#3F6BF5;
  --lbd-accent-ink:#FFFFFF;
  --lbd-accent-soft:#1B2850;

  --lbd-good:#2DC78C;  --lbd-good-soft:#10302A;
  --lbd-warn:#F0B429;  --lbd-warn-soft:#2D2411;
  --lbd-bad:#FF6B70;   --lbd-bad-soft:#371A1F;  --lbd-bad-line:#5A2A30;

  --lbd-violet:#9B83FF; --lbd-teal:#2CC3C3; --lbd-orange:#FF9254; --lbd-pink:#F472A8; --lbd-green:#6CC070;

  --lbd-shadow:0 1px 0 rgba(255,255,255,.03);
  --lbd-shadow-modal:0 30px 74px -20px rgba(0,0,0,.70);
  --lbd-scrim:rgba(0,0,0,.60);
}
