/* ============================================================
   Cadence · Color
   "A cool, clinical base. One calm accent."
   Cool neutrals do the work; the muted teal accent appears only
   where it carries meaning. Caution is a desaturated amber, used
   sparingly, never dominant. Nothing is alarmist — destructive is
   a muted clay, never red.

   Two themes:
   :root              -> Light
   [data-theme=dark]  -> Dark · "overcast night" (deep blue-charcoal,
                          never pure black; same calm mood, lights down)
   ============================================================ */

:root {
  /* ---- Raw neutral ramp (light) ---- */
  --c-bg:            #F4F6F7;   /* app canvas / overcast field base */
  --c-surface:       #FFFFFF;   /* cards, sheets, rows — the data material */
  --c-surface-sunk:  #F7F9FA;   /* secondary tiles inside a card */
  --c-surface-hover: #FAFBFC;   /* subtle row / control hover */
  --c-chip:          #ECEFF2;   /* segmented track, neutral chips */
  --c-tag:           #EBEEF1;   /* quiet mono tags */

  --c-ink:           #16191C;   /* primary text · headings · values */
  --c-ink-secondary: #5A636B;   /* labels · meta · body-secondary */
  --c-ink-tertiary:  #8A929A;   /* mono micro-labels · captions */
  --c-ink-quaternary:#A6AEB5;   /* axis labels · inactive tab */
  --c-ink-faint:     #C4CBD1;   /* chevrons · disabled dots */

  --c-line:          #E1E5E8;   /* default border / divider */
  --c-line-soft:     #EDF0F2;   /* interior hairline */
  --c-line-strong:   #CDD4D9;   /* input / control border */

  /* ---- Accent · muted teal-slate ---- */
  --c-accent:        #3A6B7E;   /* primary action · selected · tracked value */
  --c-accent-press:  #335E6E;   /* pressed / hover-darken */
  --c-accent-strong: #234E5C;   /* accent ink on glass chrome */
  --c-accent-deep:   #33506F;   /* "now" marker — a touch bluer */
  --c-accent-tint:   rgba(58,107,126,0.10);  /* badge / selected fill */
  --c-accent-tint-2: rgba(58,107,126,0.14);  /* chart area fill */
  --c-accent-rgb:    58,107,126;             /* @kind other */

  /* ---- Semantic status (all desaturated, never loud) ---- */
  --c-success:       #4F7D6A;   /* on schedule · desaturated sage */
  --c-success-tint:  rgba(79,125,106,0.12);
  --c-caution:       #B0853E;   /* used sparingly · muted amber */
  --c-caution-tint:  rgba(176,133,62,0.12);
  --c-danger:        #9A5A4E;   /* destructive · muted clay, NEVER red */
  --c-danger-border: #E0CBC6;
  --c-danger-tint:   #FAF3F1;

  /* ---- On-accent ---- */
  --c-on-accent:     #FFFFFF;
}

/* ============================================================
   Dark · overcast night
   Deep blue-charcoal neutrals; accent lifts to a lighter teal so
   it still reads on the dark field.
   ============================================================ */
[data-theme="dark"] {
  --c-bg:            #12171E;
  --c-surface:       #1B222C;
  --c-surface-sunk:  #202935;
  --c-surface-hover: #232D39;
  --c-chip:          #232D39;
  --c-tag:           #232D39;

  --c-ink:           #EAEEF2;
  --c-ink-secondary: #94A0AD;
  --c-ink-tertiary:  #6E7A87;
  --c-ink-quaternary:#5C6873;
  --c-ink-faint:     #46515C;

  --c-line:          #29323E;
  --c-line-soft:     #222B36;
  --c-line-strong:   #3A4654;

  --c-accent:        #6BA6B8;
  --c-accent-press:  #5C95A6;
  --c-accent-strong: #8FC0CF;
  --c-accent-deep:   #7FA8C2;
  --c-accent-tint:   rgba(107,166,184,0.14);
  --c-accent-tint-2: rgba(107,166,184,0.18);
  --c-accent-rgb:    107,166,184; /* @kind other */

  --c-success:       #7DB89F;
  --c-success-tint:  rgba(125,184,159,0.16);
  --c-caution:       #C9A765;
  --c-caution-tint:  rgba(201,167,101,0.16);
  --c-danger:        #C28E82;
  --c-danger-border: #4A3A36;
  --c-danger-tint:   #2A211F;

  --c-on-accent:     #0E1217;
}
