/* Live On! Summit — Color tokens
   Source of truth: Brand Style Guide §4 (Colors) + Logo Pack.
   Palette balances organic vitality (Sage, Deep Green) with refined
   neutrals and a warm Sunlight accent. Values transcribed exactly. */

:root {
  /* ---- Base brand ---- */
  --sage: #71957e;            /* rgb(113,149,126) — primary anchor, from logo symbol */
  --sage-alt: #70947d;        /* rgb(112,148,125) — palette swatch value */
  --deep-green: #002f17;      /* rgb(0,47,23)  — deep forest green anchor */
  --sunlight: #f7f7c8;        /* rgb(247,247,200) — pale warm accent */
  --sunlight-deep: #e9e9bd;   /* rgb(233,233,189) — richer sunlight accent */
  --forest: #144a28;          /* rgb(20,74,40)  — rich green: numerals, filled buttons */
  --sage-deep: #5f866d;       /* rgb(95,134,109) — muted sage, captions on light */
  --ink-green: #37423d;       /* rgb(55,66,61)  — dark green-grey, button label on white */

  /* ---- Neutrals ---- */
  --ink: #1e1e1e;             /* rgb(30,30,30) — near-black text / "Dark Grey" 100% */
  --black: #000000;
  --white: #ffffff;
  --cream: #eae1d6;           /* rgb(234,225,214) — warm greige surface (cards) */
  --mist: #eeedf5;            /* rgb(238,237,245) — cool off-white, lavender undertone */
  --light-grey: #efefef;      /* rgb(239,239,239) */

  /* ---- Sage tint ramp (over white) ---- */
  --sage-100: #71957e;
  --sage-75: #94b09f;
  --sage-50: #b8cabf;
  --sage-25: #dbe5df;
  --sage-10: #f1f4f2;

  /* ---- Deep-green tint ramp ---- */
  --deep-green-100: #002f17;
  --deep-green-75: #405d4d;
  --deep-green-50: #808a83;
  --deep-green-25: #bfc4c1;

  /* ---- Grey ramp (ink over white) ---- */
  --grey-100: #1e1e1e;
  --grey-80: #4b4b4b;
  --grey-60: #787878;
  --grey-40: #a5a5a5;
  --grey-20: #d2d2d2;
  --grey-10: #e9e9e9;
  --grey-5: #f4f4f4;

  /* ---- Alpha overlays (from guide) ---- */
  --overlay-05: rgba(30,30,30,0.05);
  --overlay-08: rgba(0,0,0,0.08);
  --overlay-10: rgba(30,30,30,0.1);
  --line-white-20: rgba(255,255,255,0.2);
  --line-white-40: rgba(255,255,255,0.4);

  /* ---- Semantic aliases ---- */
  --bg-page: var(--white);
  --bg-canvas: var(--mist);
  --surface-card: var(--white);
  --surface-cream: var(--cream);
  --surface-dark: var(--deep-green);
  --surface-ink: var(--ink);

  --text-primary: var(--ink);
  --text-secondary: var(--grey-60);
  --text-muted: var(--grey-40);
  --text-on-dark: var(--white);
  --text-on-sage: var(--white);
  --text-accent: var(--sage);

  --border-subtle: var(--grey-10);
  --border-default: var(--grey-20);
  --border-strong: var(--ink);
  --border-on-dark: var(--line-white-20);

  --accent: var(--sage);
  --accent-strong: var(--deep-green);
  --accent-warm: var(--sunlight);

  --focus-ring: var(--sage);
}

/* Dark surface scope — apply .on-dark to a container placed on Deep Green / Ink */
.on-dark {
  --text-primary: var(--white);
  --text-secondary: rgba(255,255,255,0.72);
  --text-muted: rgba(255,255,255,0.5);
  --surface-card: rgba(255,255,255,0.06);
  --border-subtle: rgba(255,255,255,0.12);
  --border-default: var(--line-white-20);
  color: var(--white);
}
