/* ==========================================================================
   Raisers India — Design Tokens
   The single source of truth for colour, type, space, radius, elevation
   and motion. Every other stylesheet consumes these variables.
   ========================================================================== */

:root {
  /* ---- Brand ------------------------------------------------------------
     Sampled from the Raisers India mark: a cobalt blue figure rising over a
     crimson arc. Blue carries the brand; red is reserved for action. */
  --ri-blue-900: #06355c;
  --ri-blue-800: #0a5490;
  --ri-blue-700: #0b6fb8;
  --ri-blue-600: #0f7fd0;
  --ri-blue-500: #1a92e6;
  --ri-blue-300: #7cc4f4;
  --ri-blue-100: #dcefff;
  --ri-blue-50:  #f0f8ff;

  --ri-red-800: #a8121a;
  --ri-red-700: #c8171f;
  --ri-red-600: #e12028;
  --ri-red-500: #ef3b43;
  --ri-red-100: #ffe4e5;

  /* ---- Ink & neutrals ---------------------------------------------------
     A navy-tinted neutral ramp: warmer and less clinical than pure grey. */
  --ri-ink:      #08192f;
  --ri-ink-2:    #0f2947;
  --ri-ink-3:    #1c3d63;
  --ri-slate:    #47607e;
  --ri-muted:    #64788f;
  --ri-line:     #e3e8ef;
  --ri-line-2:   #eef1f6;

  /* Warm paper tones keep large surfaces from feeling cold. */
  --ri-cream:    #fbf8f3;
  --ri-sand:     #f4efe7;
  --ri-white:    #ffffff;

  /* ---- Semantic ---------------------------------------------------------- */
  --ri-bg:            var(--ri-white);
  --ri-bg-alt:        var(--ri-cream);
  --ri-bg-dark:       var(--ri-ink);
  --ri-text:          var(--ri-ink);
  --ri-text-soft:     var(--ri-slate);
  --ri-text-invert:   #ffffff;
  --ri-text-invert-soft: rgba(255, 255, 255, 0.72);
  --ri-accent:        var(--ri-red-600);
  --ri-primary:       var(--ri-blue-700);
  --ri-border:        var(--ri-line);
  --ri-border-dark:   rgba(255, 255, 255, 0.14);

  /* ---- Gradients --------------------------------------------------------- */
  --ri-grad-brand: linear-gradient(115deg, var(--ri-blue-700) 0%, var(--ri-blue-500) 55%, var(--ri-blue-300) 100%);
  --ri-grad-accent: linear-gradient(115deg, var(--ri-red-700) 0%, var(--ri-red-500) 100%);
  --ri-grad-ink: linear-gradient(160deg, var(--ri-ink) 0%, var(--ri-ink-2) 60%, #123256 100%);
  /* Scrim used over photography so white type always clears AA contrast. */
  --ri-scrim: linear-gradient(90deg, rgba(6, 20, 38, 0.95) 0%, rgba(6, 20, 38, 0.86) 42%, rgba(6, 20, 38, 0.4) 74%, rgba(6, 20, 38, 0.18) 100%);
  --ri-scrim-v: linear-gradient(180deg, rgba(6, 20, 38, 0.15) 0%, rgba(6, 20, 38, 0.55) 55%, rgba(6, 20, 38, 0.9) 100%);

  /* ---- Typography --------------------------------------------------------
     Fraunces (variable serif) for display — its optical sizing and italic
     give the editorial voice. Plus Jakarta Sans carries all UI and body. */
  --ri-font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --ri-font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ri-font-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, monospace;

  /* Fluid type scale — min at 360px viewport, max at 1440px. */
  --ri-fs-display: clamp(2.75rem, 1.4rem + 6vw, 6rem);
  --ri-fs-h1: clamp(2.25rem, 1.3rem + 4.2vw, 4.25rem);
  --ri-fs-h2: clamp(1.85rem, 1.15rem + 2.9vw, 3.25rem);
  --ri-fs-h3: clamp(1.4rem, 1.1rem + 1.3vw, 2rem);
  --ri-fs-h4: clamp(1.15rem, 1rem + 0.6vw, 1.375rem);
  --ri-fs-lead: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  --ri-fs-body: 1rem;
  --ri-fs-sm: 0.9375rem;
  --ri-fs-xs: 0.8125rem;
  --ri-fs-eyebrow: 0.75rem;

  --ri-lh-tight: 1.06;
  --ri-lh-snug: 1.22;
  --ri-lh-body: 1.72;

  --ri-ls-tight: -0.03em;
  --ri-ls-eyebrow: 0.16em;

  /* ---- Space ------------------------------------------------------------- */
  --ri-space-1: 0.25rem;
  --ri-space-2: 0.5rem;
  --ri-space-3: 0.75rem;
  --ri-space-4: 1rem;
  --ri-space-5: 1.5rem;
  --ri-space-6: 2rem;
  --ri-space-7: 3rem;
  --ri-space-8: 4rem;
  --ri-space-9: 6rem;

  /* Vertical rhythm for full sections — shrinks gracefully on phones. */
  --ri-section-y: clamp(4rem, 2rem + 7vw, 8.5rem);
  --ri-section-y-sm: clamp(3rem, 1.75rem + 5vw, 5.5rem);

  /* ---- Layout ------------------------------------------------------------ */
  --ri-container: 1240px;
  --ri-container-wide: 1440px;
  --ri-container-narrow: 820px;
  --ri-gutter: clamp(1.25rem, 0.5rem + 3vw, 3rem);

  /* ---- Radius ------------------------------------------------------------ */
  --ri-r-xs: 6px;
  --ri-r-sm: 10px;
  --ri-r-md: 16px;
  --ri-r-lg: 24px;
  --ri-r-xl: 34px;
  --ri-r-pill: 999px;

  /* ---- Elevation ---------------------------------------------------------
     Layered navy-tinted shadows rather than flat black for a softer lift. */
  --ri-shadow-sm: 0 1px 2px rgba(8, 25, 47, 0.06), 0 2px 6px rgba(8, 25, 47, 0.05);
  --ri-shadow-md: 0 4px 12px rgba(8, 25, 47, 0.07), 0 12px 28px rgba(8, 25, 47, 0.07);
  --ri-shadow-lg: 0 10px 24px rgba(8, 25, 47, 0.08), 0 28px 60px rgba(8, 25, 47, 0.1);
  --ri-shadow-xl: 0 18px 40px rgba(8, 25, 47, 0.12), 0 48px 90px rgba(8, 25, 47, 0.14);
  --ri-shadow-brand: 0 10px 24px rgba(11, 111, 184, 0.25);
  --ri-shadow-accent: 0 10px 24px rgba(225, 32, 40, 0.28);

  /* ---- Motion ------------------------------------------------------------ */
  --ri-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ri-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ri-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ri-dur-fast: 160ms;
  --ri-dur: 320ms;
  --ri-dur-slow: 620ms;

  /* ---- Chrome ------------------------------------------------------------ */
  --ri-header-h: 76px;
  --ri-topbar-h: 40px;
  --ri-z-header: 900;
  --ri-z-drawer: 950;
  --ri-z-overlay: 940;
  --ri-z-top: 800;
}

@media (max-width: 991px) {
  :root {
    --ri-header-h: 68px;
    --ri-topbar-h: 0px;
  }
}
