/* Fit & Calm — design tokens. Default theme: Blush Pink.
   Compact, grown-up sizing (small text, tight cards) in the Wed & Calm family;
   soft "pilates girl" pinks in the Glow & Calm family.
   Lilac and Sage (css/themes.css) override the colour properties only.
   Text/background pairs are checked in tests/contrast.test.js. */

:root {
  color-scheme: light;

  /* ---- colour: Blush Pink ---- */
  --bg: #FFF6F8;             /* blush white page */
  --surface: #FFFFFF;        /* cards */
  --surface-2: #FCE7EE;      /* soft pink fills, chips, active nav */
  --surface-3: #FFF0F4;      /* hover / sunk rows */
  --primary: #EE8FB0;        /* rings, bars, ticks (not text) */
  --primary-strong: #C9487A; /* icons, active tab, large accents */
  --primary-soft: #F9D3E0;   /* ring tracks, light fills */
  --accent: #F5B8CB;         /* second chart series */
  --accent-2: #C7B3E0;       /* lilac, third series */
  --gold: #E0B36E;           /* badges, milestones */
  --gold-ink: #8A5F1E;       /* gold text */
  --text: #3B2530;           /* plum-brown, never pure black */
  --text-muted: #77566A;
  --line: #F3DCE5;
  --line-strong: #E8BFCF;
  --success: #86C9A8;
  --success-ink: #2F7553;
  --danger: #B0394D;         /* only for "delete" buttons — never "failed" states */
  --danger-soft: #FBE4E8;
  --focus: #7F45A8;

  --button-bg: #B93D6C;      /* white text on this is 5.3:1 */
  --button-bg-hover: #A13460;
  --on-button: #FFFFFF;
  --link: #A8386A;

  --overlay: rgba(59, 37, 48, .36);
  --shadow: 0 1px 2px rgba(201, 72, 122, .05), 0 4px 14px rgba(201, 72, 122, .06);
  --shadow-lift: 0 12px 34px -10px rgba(201, 72, 122, .30);

  --confetti-1: #EE8FB0;
  --confetti-2: #F5B8CB;
  --confetti-3: #C9487A;
  --confetti-4: #E0B36E;
  --confetti-5: #C7B3E0;
  --heat-0: #F8EAEF;
  --heat-1: #F9D3E0;
  --heat-2: #F5B8CB;
  --heat-3: #EE8FB0;
  --heat-4: #C9487A;

  /* share card / certificate canvas colours */
  --card-a: #FCE7EE;
  --card-b: #F5B8CB;
  --card-c: #EE8FB0;
  --card-ink: #3B2530;

  /* ---- type ---- */
  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --fs-2xs: 10.5px;
  --fs-xs: 11.5px;
  --fs-sm: 12.5px;
  --fs-md: 14px;
  --fs-lg: 15.5px;
  --fs-xl: 18px;
  --fs-title: 22px;
  --fs-stat: 22px;
  --fs-hero: 30px;
  --fs-input: 16px;          /* 16px stops iPhone zooming on focus */
  --lh: 1.45;

  /* ---- space ---- */
  --s-1: 4px;
  --s-2: 6px;
  --s-3: 8px;
  --s-4: 10px;
  --s-5: 12px;
  --s-6: 16px;
  --s-7: 20px;
  --s-8: 24px;
  --s-10: 32px;
  --gutter: 12px;
  --card-pad: 12px;
  --gap: 10px;

  /* ---- sizes ---- */
  --ctl-h: 38px;
  --row-h: 36px;
  --tap: 44px;
  --icon: 16px;
  --icon-nav: 21px;

  /* ---- shape ---- */
  --r-sm: 8px;
  --r-md: 12px;
  --r-card: 14px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* ---- motion ---- */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: 150ms;
  --t-med: 280ms;

  /* ---- layout ---- */
  --tabbar-h: 56px;
  --sidebar-w: 212px;
  --content-max: 1080px;
  --demo-h: 0px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0ms; --t-med: 0ms; }
}
