/* ==========================================================================
   Vissuteraapia — Design Tokens (Warm Estonian Meadow Pastel-Botanical)
   WCAG AA contrast verified via style-tile/scripts/contrast.mjs
   ========================================================================== */

:root {
  /* Surfaces */
  --bg-cream: #FAF7F0;
  --bg-sage: #E3EBDC;
  --bg-blush: #FDF0ED;
  --surface-card: #FFFFFF;

  /* Brand Greens */
  --forest-deep: #2D4732;
  --forest-mid: #3E5F44;
  --forest-hover: #233827;

  /* Typography Ink */
  --ink-primary: #223026;
  --ink-muted: #526356;
  --ink-on-dark: #FAF7F0;
  --ink-on-dark-muted: #E3EBDC;

  /* Accents (see role restrictions in /stiil/) */
  --blush-accent: #E89A9A;   /* Decorative / non-text on light; AA text on --forest-deep only */
  --blush-ink: #8C3B43;      /* AA/AAA blush text on cream, white, and --bg-blush */
  --butter-accent: #F4DE96;  /* Highlight pill bg with dark ink, or text on --forest-deep only */

  /* Borders */
  --border-soft: #D6DFD0;    /* Decorative card & section borders */
  --border-input: #7A8C7D;   /* >= 3:1 UI contrast on cream & white */
  --border-dark: rgba(250, 247, 240, 0.24);

  /* Semantic Status (never colour-only — always paired with text label/icon) */
  --ok-ink: #22543D;
  --ok-bg: #E6F4EA;
  --warn-ink: #7A5200;
  --warn-bg: #FFF8E1;
  --error-ink: #9B2C2C;
  --error-bg: #FDECEC;
  --info-ink: #2D4732;
  --info-bg: #E3EBDC;

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Type Scale */
  --text-xs: 0.8125rem;   /* 13px */
  --text-sm: 0.9375rem;   /* 15px */
  --text-base: 1.0625rem; /* 17px */
  --text-lead: 1.2rem;
  --text-h3: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  --text-h2: clamp(1.75rem, 1.4rem + 1.5vw, 2.55rem);
  --text-h1: clamp(2.25rem, 1.65rem + 2.6vw, 3.6rem);

  /* Radii — extra-extra cute & pillowy */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Shadows — warm moss-tinted softness */
  --shadow-xs: 0 2px 8px rgba(34, 48, 38, 0.05);
  --shadow-sm: 0 6px 20px rgba(45, 71, 50, 0.07);
  --shadow-md: 0 12px 32px rgba(45, 71, 50, 0.10);
  --shadow-lg: 0 20px 48px rgba(34, 48, 38, 0.16);

  /* Layout & Spacing */
  --container-max: 1140px;
  --container-pad: clamp(1rem, 3vw, 2rem);
  --section-py: clamp(3.5rem, 6vw, 5.75rem);
  --header-h: 76px;

  /* Motion */
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 160ms;
  --dur-med: 260ms;
}
