/* MindBridge moss + sage theme, shared with Mira. Source of truth: C:\CLAUDE\design\palettes.md
   (GitHub mkumar1992/design-palettes).
   Follows the browser's light/dark setting by default. theme.js sets data-theme="light" or
   "dark" on <html> when the user picks one in the side panel. */
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

/* Light: Mira's warm cream background with deep moss accents. */
:root {
  color-scheme: light;
  --bg:        #f5f0e8;  /* Mira light background */
  --card:      #fffdf9;
  --chip:      #ece5d8;
  --line:      #ddd5c6;
  --text:      #1d2b26;
  --muted:     #5f6f69;
  --moss:      #2a4d41;  /* Mira logo fill */
  --moss-line: #4e8c78;  /* Mira logo border */
  --on-moss:   #f5f0e8;
  --tint:      #e2ebe6;  /* soft sage surface (welcome card) */
  --sage:      #3f7a67;  /* links, focus, headings: sage deepened for contrast on cream */
  --accent:    #2a4d41;  /* primary buttons */
  --on-accent: #ffffff;
  --a:         #4e8c78;  /* title A: sage, deepened for light backgrounds */
  --b:         #b9824f;  /* title B: sand, deepened for light backgrounds */
  --ok:        #3f7a67;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Dark: Mira's moss-black. Used when the browser is dark (unless the user picked light),
   or when the user picked dark. The two blocks must stay identical. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0f0e; --card: #141b19; --chip: #1c2623; --line: #24302c;
    --text: #e8ede9; --muted: #93a39d;
    --moss: #2a4d41; --moss-line: #4e8c78; --on-moss: #e8ede9; --tint: #1d3a30;
    --sage: #7aa899; --accent: #7aa899; --on-accent: #0b0f0e;
    --a: #7aa899; --b: #d4a373; --ok: #7aa899;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0f0e; --card: #141b19; --chip: #1c2623; --line: #24302c;
  --text: #e8ede9; --muted: #93a39d;
  --moss: #2a4d41; --moss-line: #4e8c78; --on-moss: #e8ede9; --tint: #1d3a30;
  --sage: #7aa899; --accent: #7aa899; --on-accent: #0b0f0e;
  --a: #7aa899; --b: #d4a373; --ok: #7aa899;
}
