/* ENDOYAR design tokens. Loaded BEFORE styles.css; glass.css / styles.css map these onto the --md-* roles the rest of the CSS uses.
   Do not invent product colours elsewhere: add a token here instead.
   v1.2 contrast pass (2026-11-10, owner: "everything is one colour, it tires the eye"):
   - the plum brand colour is kept, but ONLY for brand/actions/selection. Surfaces and text are near-neutral (a faint plum bias),
     so cards, page and text separate by lightness instead of all being lavender;
   - every text colour reaches WCAG AA on the page background (primary ≈ 15:1, secondary ≈ 8:1, tertiary ≈ 4.9:1);
   - cycle phases get four different HUES (rose / teal / amber / violet) instead of four pinks, and the pain scale is a real
     light-to-dark sequence (cream → peach → coral → crimson) that never collides with the plum brand. */
:root {
  /* Brand */
  --color-primary: #6D3F73;
  --color-primary-hover: #593260;
  --color-primary-active: #482650;
  --color-primary-soft: #EBDDF0;
  --color-accent: #9C6FB0;
  --color-accent-soft: #F3EBF6;

  /* Backgrounds: neutral page, white cards, a clearly darker second tier */
  --color-background: #F3F1F5;
  --color-background-secondary: #E8E4EC;
  --color-surface: #FFFFFF;
  --color-surface-elevated: #FFFFFF;
  --color-surface-selected: #EADCF0;

  /* Borders: visible hairline + a strong edge for inputs */
  --color-border: #DCD5E1;
  --color-border-strong: #B4A9BC;

  /* Typography */
  --color-text-primary: #1D1621;
  --color-text-secondary: #4E4354;
  --color-text-tertiary: #6C6172;
  --color-text-disabled: #A69CAB;
  --color-text-on-primary: #FFFFFF;

  /* Cycle phases: four hues, each with a soft background and a readable text colour for that background */
  --color-period: #D14D72;
  --color-period-bg: #FCE4EC;
  --color-on-period: #6B1A36;

  --color-follicular: #3E9C8F;
  --color-follicular-bg: #DDF1ED;
  --color-on-follicular: #164F47;

  --color-ovulation: #E39B2D;
  --color-ovulation-bg: #FCEFD9;
  --color-on-ovulation: #6A4210;

  --color-luteal: #7E5BB5;
  --color-luteal-bg: #ECE4F7;
  --color-on-luteal: #3A2463;

  --color-fertile-window: #3E9C8F;
  --color-fertile-window-bg: #DDF1ED;

  /* Status */
  --color-success: #2F7D5B;
  --color-success-bg: #E1F2E8;

  --color-warning: #A86A17;
  --color-warning-bg: #FBEFD9;

  --color-error: #B3304A;
  --color-error-bg: #FBE3E7;
  --color-on-error: #5E1424;

  --color-info: #4F62A8;
  --color-info-bg: #E5E9F7;

  /* Pain scale (data colours, never used for UI chrome). 0 = none … 4 = severe; 4 carries white text (≈ 6:1). */
  --color-heat-0: #E8E4EC;
  --color-heat-1: #FCE3C4;
  --color-heat-2: #F4A97B;
  --color-heat-3: #E06A5A;
  --color-heat-4: #B3304A;

  /* rgb triplets for rgba() shadows and tints */
  --shadow-tint: 29, 22, 33;   /* = --color-text-primary */
  --brand-tint: 109, 63, 115;  /* = --color-primary */
  --border-tint: 220, 213, 225; /* = --color-border */
  --heat-tint: 179, 48, 74;     /* = --color-heat-4 */
}
