/* Tillics Loyalty tokens (brand guide v1.0). Ratios are WCAG contrast of this colour as text. */
:root {
  /* The one main call to action; follows the business colour on tenant pages. */
  --action: var(--primary);
  --action-text: var(--surface);
  --primary: #c60127; /* Tillics Red. 6.1 on surface, 5.7 on paper, 5.3 on panel, 5.1 on primary-soft */
  --primary-strong: #9e0020;
  --primary-soft: #fae6e9;
  --second: #8a0f25; /* Wine: where the red cards overlap. 9.7 under surface */
  --accent: #edbac1; /* Blush. 5.7 on second */
  --accent-strong: #a3324a; /* 6.0 on accent-soft, 6.7 on surface */
  --accent-soft: #fbeff1;
  --rose: #dd7083; /* the middle card and points highlights; never small text */
  --panel: #f4eee9;
  --ink: #1c1a1a; /* 10.2 on accent, 16.2 on paper, 15.1 on panel */
  --ink-soft: #5f5757; /* 7.0 on surface, 6.6 on paper, 6.1 on panel, 5.9 on primary-soft */
  --ink-faint: #bdb4b0; /* borders and icons only, never text */
  --line: #e9e1dc;
  --paper: #faf7f4;
  --surface: #ffffff; /* 6.1 on primary, 8.5 on primary-strong, 9.7 on second */
  --success: #1c7a4a; /* 4.6 on success-soft, 5.3 on surface */
  --success-soft: #e2f3ea;
  --warning: #8f5b00; /* 5.0 on warning-soft, 5.7 on surface */
  --warning-soft: #fbeed3;
  --danger: #b42318; /* 5.7 on danger-soft, 6.6 on surface */
  --danger-soft: #fdebe8;
  --font-display: 'Alexandria', system-ui, sans-serif; /* headlines and point numbers, ExtraBold 800 */
  --font-body: 'Readex Pro', system-ui, sans-serif; /* body, 400 and 600 */

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;
  --shadow: 0 8px 24px rgb(28 26 26 / 0.12);

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
}

/* Business pages. The layout sets --tenant-primary and --tenant-primary-text.
   Business colour fills the page wash, card and button; page text stays on --ink, so any colour stays readable. */
[data-tenant] {
  --action: var(--tenant-primary);
  --action-text: var(--tenant-primary-text);
  --tenant-soft: color-mix(in srgb, var(--tenant-primary) 14%, var(--surface));
  --tenant-deep: color-mix(in srgb, var(--tenant-primary) 78%, var(--ink));
  /* Keeps a near-white business colour visible against the page. */
  --tenant-edge: color-mix(in srgb, var(--tenant-primary) 70%, var(--ink));
}
