/* ==========================================================================
   PALETTE: every colour on mindagap.com lives in this file, nowhere else.
   site.css only uses these variables, so a new palette = new values here.

   Two families:
   - --color-*  Mindagap, the studio (warm off-white, ink, one indigo accent)
   - --al-*     AutoLang's own brand (owned by Design: Design/brand/kit/guidelines.md)

   Proportions (60-30-10): page background 60%, surfaces 30%, accent 10%.
   Light is the default. Dark applies when the system is dark (unless the
   visitor picked light), or when the visitor picked dark. The dark values
   appear twice on purpose; keep the two blocks identical.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Mindagap neutrals */
  --color-bg:             #F7F6F2;  /* 60%: page */
  --color-surface:        #FDFCFA;  /* 30%: cards, inputs */
  --color-surface-2:      #EFEDE7;  /* quiet panels */
  --color-text:           #17181C;
  --color-text-muted:     #5C5E66;  /* 6.2:1 on bg */
  --color-text-faint:     #8A8C93;  /* placeholders, decorative only */
  --color-line:           #E2DFD7;
  --color-line-strong:    #CBC8BF;  /* input borders */

  /* Mindagap accent: indigo (the caret, links, primary buttons) */
  --color-accent:         #4F46E5;  /* 6.0:1 on bg */
  --color-accent-hover:   #4338CA;
  --color-accent-soft:    #ECEAFD;
  --color-accent-on-soft: #3730A3;
  --color-on-accent:      #FDFCFA;

  /* Feedback */
  --color-success:        #17663F;
  --color-success-soft:   #E2F3E9;
  --color-error:          #B42318;
  --color-error-soft:     #FDECEA;
  --color-focus:          #4F46E5;
  --color-shadow:         rgba(23, 24, 28, .08);
  --color-overlay-blur:   rgba(247, 246, 242, .82);  /* sticky bars */

  /* Placeholders still waiting for Tomer (visible on purpose) */
  --color-todo:           #C2410C;

  /* AutoLang brand */
  --al-ink:               #15171E;
  --al-yellow:            #FFD21F;
  --al-paper:             #F6F4EE;
  --al-on-yellow:         #15171E;  /* text on yellow: always Ink */
  --al-on-yellow-muted:   #3A3C45;
  --al-chip:              #FFFFFF;  /* chips on the yellow (Design's app white) */
  --al-chip-text:         #15171E;
  --al-panel-on-yellow:   rgba(255, 255, 255, .45);
  --al-line-on-yellow:    rgba(21, 23, 30, .22);
  --al-band-bg:           #15171E;  /* dark privacy band */
  --al-band-text:         #F6F4EE;
  --al-band-muted:        #B8BAC2;
  --al-band-line:         transparent;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --color-bg:             #0F1115;
    --color-surface:        #171A20;
    --color-surface-2:      #1F232B;
    --color-text:           #ECEDEF;
    --color-text-muted:     #A3A7B1;
    --color-text-faint:     #6C717C;
    --color-line:           rgba(255, 255, 255, .09);
    --color-line-strong:    rgba(255, 255, 255, .18);
    --color-accent:         #8E87FF;
    --color-accent-hover:   #A7A1FF;
    --color-accent-soft:    #23214A;
    --color-accent-on-soft: #C9C6FF;
    --color-on-accent:      #0F1115;
    --color-success:        #6FD69F;
    --color-success-soft:   #13291C;
    --color-error:          #FF8A80;
    --color-error-soft:     #3A1715;
    --color-focus:          #A7A1FF;
    --color-shadow:         rgba(0, 0, 0, .4);
    --color-overlay-blur:   rgba(15, 17, 21, .8);
    --color-todo:           #FB923C;
    --al-band-bg:           #171A20;
    --al-band-text:         #ECEDEF;
    --al-band-muted:        #A3A7B1;
    --al-band-line:         rgba(255, 255, 255, .09);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --color-bg:             #0F1115;
  --color-surface:        #171A20;
  --color-surface-2:      #1F232B;
  --color-text:           #ECEDEF;
  --color-text-muted:     #A3A7B1;
  --color-text-faint:     #6C717C;
  --color-line:           rgba(255, 255, 255, .09);
  --color-line-strong:    rgba(255, 255, 255, .18);
  --color-accent:         #8E87FF;
  --color-accent-hover:   #A7A1FF;
  --color-accent-soft:    #23214A;
  --color-accent-on-soft: #C9C6FF;
  --color-on-accent:      #0F1115;
  --color-success:        #6FD69F;
  --color-success-soft:   #13291C;
  --color-error:          #FF8A80;
  --color-error-soft:     #3A1715;
  --color-focus:          #A7A1FF;
  --color-shadow:         rgba(0, 0, 0, .4);
  --color-overlay-blur:   rgba(15, 17, 21, .8);
  --color-todo:           #FB923C;
  --al-band-bg:           #171A20;
  --al-band-text:         #ECEDEF;
  --al-band-muted:        #A3A7B1;
  --al-band-line:         rgba(255, 255, 255, .09);
}
