/* ==========================================================================
   Divyang Seva — Design Tokens (Modern Minimalist Nonprofit Design System)
   Target: WCAG 2.2 AA contrast across all surface/text pairings
   ========================================================================== */

:root {
  /* Palette: Warm editorial neutrals, deep navy ink, hope-green accents */
  --color-bg: #ffffff;
  --color-bg-warm: #faf9f6;
  --color-surface: #f3f1ec;
  --color-surface-alt: #ebe7df;

  --color-ink: #10243e;        /* Deep Navy — contrast > 14:1 on white */
  --color-ink-body: #2c3540;   /* Charcoal — contrast > 11:1 on white */
  --color-ink-muted: #505e6d;  /* Slate — contrast ~ 6.4:1 on white */
  --color-ink-subtle: #5f6d7c; /* Secondary caption — contrast ~ 5.0:1 on white */

  --color-accent: #1b6b4a;       /* Hope Green — contrast 6.4:1 with white text */
  --color-accent-hover: #145238; /* Deep Forest Green */
  --color-accent-soft: #eaf4ef;  /* Soft Sage Wash */
  --color-accent-border: #b9dccb;

  --color-notice-bg: #fef7eb;
  --color-notice-border: #e7c68b;
  --color-notice-ink: #7a4408;   /* High contrast > 6.5:1 on notice-bg */

  --color-error-bg: #fdf2f2;
  --color-error-border: #e5a3a3;
  --color-error-ink: #991b1b;

  --color-border: #e2dfd8;
  --color-border-strong: #cdc8be;

  /* Typography */
  --font-serif: "Source Serif 4", "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Fluid Type Scale */
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --text-2xl: clamp(1.625rem, 1.35rem + 1.1vw, 2.25rem);
  --text-3xl: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  --text-hero: clamp(2rem, 1.45rem + 1.9vw, 2.85rem);

  /* Spacing & Layout */
  --container-max: 1180px;
  --container-narrow: 820px;
  --gutter: clamp(1rem, 3vw, 2rem);
  --section-py: clamp(3.5rem, 6vw, 5.75rem);
  --header-height: 78px;

  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(16, 36, 62, 0.05);
  --shadow-sm: 0 4px 16px rgba(16, 36, 62, 0.06);
  --shadow-md: 0 12px 32px rgba(16, 36, 62, 0.08);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 160ms;
  --duration-base: 260ms;
}
