/* CTS Speciality Hospital — design tokens
 * Palette harmonised around the existing logo (purple cts, red cross, orange baby, tree-of-Asclepius).
 * Forest green and aubergine descended from the logo; coral lifted from the medical cross.
 */

:root {
  /* Brand palette */
  --aubergine: #3C1E5C;          /* primary; refined from logo violet */
  --aubergine-deep: #2A1442;     /* darker for hover / depth */
  --aubergine-soft: #6B4B8F;     /* lighter for accents */

  --forest: #2F5D3F;             /* secondary; lifted from tree leaves */
  --forest-soft: #588A6A;        /* lighter forest for subtle cues */

  --coral: #C56B4F;              /* accent; lifted from medical cross */
  --coral-deep: #A65238;         /* hover */

  /* Surfaces */
  --cream: #F5F0E6;              /* page background */
  --ivory: #FAF7F0;              /* card surfaces */
  --white: #FFFFFF;              /* sparse pure white */
  --bone: #EDE5D3;               /* warm divider */

  /* Text */
  --ink: #1F1A14;                /* body text */
  --ink-soft: #5A5048;           /* secondary text */
  --ink-faint: #8A8077;          /* meta, captions */

  /* Semantic */
  --emergency: #C56B4F;          /* emergency / urgent CTA */
  --success: #2F5D3F;            /* in-network, confirmed states */
  --warning: #C4923D;            /* attention without alarm */

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'Courier New', monospace;

  /* Type scale — fluid where it matters */
  --fs-xs: 0.75rem;              /* 12px — meta, fine print */
  --fs-sm: 0.875rem;             /* 14px — captions */
  --fs-base: 1rem;               /* 16px — body */
  --fs-md: 1.125rem;             /* 18px — large body, leads */
  --fs-lg: 1.25rem;              /* 20px — small subheads */
  --fs-xl: 1.5rem;               /* 24px — H4 */
  --fs-2xl: clamp(1.625rem, 2vw + 1rem, 2rem);     /* H3 */
  --fs-3xl: clamp(2rem, 3vw + 1rem, 2.75rem);      /* H2 */
  --fs-4xl: clamp(2.5rem, 5vw + 1rem, 4rem);       /* H1 — hero scale */
  --fs-5xl: clamp(3rem, 7vw + 1rem, 5.5rem);       /* display, sparingly */

  /* Line heights */
  --lh-tight: 1.05;              /* display */
  --lh-snug: 1.2;                /* headings */
  --lh-normal: 1.5;              /* body */
  --lh-relaxed: 1.7;             /* long-form prose */

  /* Letter spacing */
  --ls-tight: -0.02em;           /* display */
  --ls-snug: -0.01em;            /* headings */
  --ls-normal: 0;
  --ls-wide: 0.04em;             /* small caps, eyebrows */
  --ls-wider: 0.12em;            /* spaced labels */

  /* Spacing scale */
  --space-1: 0.25rem;            /* 4px */
  --space-2: 0.5rem;             /* 8px */
  --space-3: 0.75rem;            /* 12px */
  --space-4: 1rem;               /* 16px */
  --space-5: 1.5rem;             /* 24px */
  --space-6: 2rem;               /* 32px */
  --space-7: 3rem;               /* 48px */
  --space-8: 4rem;               /* 64px */
  --space-9: 6rem;               /* 96px */
  --space-10: 8rem;              /* 128px */

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --container-prose: 680px;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows — soft and warm, never harsh */
  --shadow-sm: 0 1px 2px rgba(31, 26, 20, 0.06);
  --shadow-md: 0 4px 16px rgba(31, 26, 20, 0.08);
  --shadow-lg: 0 12px 40px rgba(31, 26, 20, 0.12);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 120ms;
  --duration: 200ms;
  --duration-slow: 400ms;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
