/* ==========================================================
   LOOPI THEME. Every colour on the site comes from here.
   Source of truth: the Loopi Visual Identity Sheet
   (docs/brand/loopi-visual-identity-sheet.pdf). Values mirror
   mobile/src/theme/index.ts; keep the two in step.

   The five brand colours, then tokens derived from them.
   Approved text pairings (WCAG contrast):
     burgundy on cream 9.2:1, burgundy on lemon 6.5:1,
     cream on burgundy 9.2:1, plum on cream 16.1:1,
     lemon on plum 11.4:1.
   Never set lemon or pink text on cream. Pink is for small
   accents and image placeholders only, never text.
   ========================================================== */

:root {
  /* Brand colours */
  --color-burgundy: #860543;     /* primary: buttons, headings, large brand panels */
  --color-lemon: #FACA7A;        /* highlights, tags, tabs, promo panels, secondary buttons */
  --color-cream: #FFF6DF;        /* page background, text on burgundy */
  --color-pink: #F4B6C2;         /* small accents only, never text */
  --color-plum: #3A0220;         /* body text */

  /* Page and surfaces (colourway 1: cream page) */
  --color-paper: var(--color-cream);
  --color-surface: #F7EAD0;      /* inputs and quiet panels */

  /* Text */
  --color-ink: var(--color-plum);
  --color-text-secondary: #5C3A4A; /* lede and long answers */
  --color-muted: #6E5560;        /* meta text; 6.2:1 on cream, 5.6:1 on surface */
  --color-line: #EAD7B8;         /* hairlines and dividers */
  --color-border-strong: #D9C09B;

  /* Primary brand colour (buttons, links, headings) */
  --color-brand: var(--color-burgundy);
  --color-brand-hover: #6E0437;
  --color-on-brand: var(--color-cream);

  /* Lemon tags and promo panel (colourway 2: lemon bg, burgundy text) */
  --color-tag: var(--color-lemon);
  --color-on-tag: var(--color-burgundy);
  --color-on-lemon-body: var(--color-plum);

  /* Feedback */
  --color-success: #2F6B4F;      /* success / buyer protection green */
  --color-error: #B42318;        /* app: danger */
  --color-error-on-lemon: #8A1A10; /* errors on the lemon panel (#B42318 is too low there) */

  /* Focus ring */
  --color-focus: var(--color-burgundy);
}
