/**
 * Usrah International Institute - Design Tokens
 * Built with Upper Hand UI freshness, clean stone surfaces, and solid warm gold accents.
 */

:root {
  /* ---- Warm Neutrals (Stone Palette) ------------------------------------- */
  --stone-0:   #ffffff;
  --stone-25:  #fcfbf9;
  --stone-50:  #faf8f5;
  --stone-100: #f3f0eb;
  --stone-150: #ece8e1;
  --stone-200: #e3ded5;
  --stone-300: #cfc8bd;
  --stone-400: #a39c91;
  --stone-500: #7c766d;
  --stone-600: #5c5750;
  --stone-700: #423e39;
  --stone-800: #2a2825;
  --stone-900: #1a1917;
  --stone-950: #100f0e;

  /* ---- Brand Dark Slate (Primary Authority) ------------------------------ */
  --brand-50:  #f4f5f6;
  --brand-100: #e5e7ea;
  --brand-200: #cbced4;
  --brand-500: #4a515a;
  --brand-700: #2b3036;
  --brand-800: #22262a;
  --brand-900: #171a1d;
  --brand-950: #0f1113;

  /* ---- Brand Gold / Amber Accent (Solid, Clean, Non-gradient) ------------ */
  --gold-50:  #fbf8f3;
  --gold-100: #f5eee2;
  --gold-200: #e9d9bd;
  --gold-300: #d6bc91;
  --gold-400: #b48a46;
  --gold-500: #b48a46;
  --gold-600: #b48a46;
  --gold-700: #9b7438;
  --gold-800: #795b2c;
  --gold-900: #513d1d;
  --gold-ink: #2c2112;

  /* ---- Semantic Roles (Light Mode Freshness) ----------------------------- */
  --color-bg:            var(--stone-50);
  --color-bg-sunken:     var(--stone-100);
  --color-surface:       var(--stone-0);
  --color-surface-2:     var(--stone-25);
  --color-surface-hover: var(--stone-100);
  --color-border:        var(--stone-200);
  --color-border-strong: var(--stone-300);
  --color-text:          var(--stone-900);
  --color-text-muted:    var(--stone-600);
  --color-text-subtle:   var(--stone-500);
  --color-text-inverse:  #ffffff;

  --color-primary:        var(--brand-800);
  --color-primary-hover:  var(--brand-950);
  --color-primary-soft:   var(--brand-100);
  --color-primary-ink:    var(--brand-900);
  --color-on-primary:     #ffffff;

  --color-accent:         var(--gold-600);
  --color-accent-hover:   var(--gold-700);
  --color-accent-soft:    var(--gold-100);
  --color-accent-border:  var(--gold-300);
  --color-on-accent:      #ffffff;

  --color-success:      #1f8f52;
  --color-success-soft: #e7f5ec;

  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--color-accent) 35%, transparent);

  /* ---- Typography (Kripa display + Inter body) --------------------------- */
  --font-display: "Kripa", system-ui, -apple-system, sans-serif;
  --font-sans:    "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-button:  var(--font-sans);

  --text-display: clamp(2.25rem, 1.4rem + 3.2vw, 3.8rem);
  --lh-display: 1.1;   --tr-display: -0.02em;

  --text-h1: clamp(1.85rem, 1.25rem + 2vw, 2.75rem);
  --lh-h1: 1.15;       --tr-h1: -0.015em;

  --text-h2: clamp(1.45rem, 1.1rem + 1.2vw, 2.15rem);
  --lh-h2: 1.2;        --tr-h2: -0.01em;

  --text-h3: clamp(1.2rem, 1.05rem + 0.5vw, 1.5rem);
  --lh-h3: 1.25;       --tr-h3: -0.005em;

  --text-h4: 1.15rem;   --lh-h4: 1.35;
  --text-lg: 1.125rem;  --lh-lg: 1.65;
  --text-md: 1rem;      --lh-md: 1.65;
  --text-sm: 0.875rem;  --lh-sm: 1.5;
  --text-xs: 0.75rem;   --lh-xs: 1.4;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* ---- Spacing ----------------------------------------------------------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --section-y: clamp(3.5rem, 2.5rem + 4.5vw, 6.5rem);

  --container: 74rem;
  --container-narrow: 48rem;
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);

  /* ---- Shape & Radii ----------------------------------------------------- */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-full: 999px;
  --radius-button: 8px;
  --radius-card: var(--radius-lg);

  /* ---- Soft, Crisp Shadows (Upper Hand style) ---------------------------- */
  --shadow-xs: 0 1px 2px rgba(26, 25, 23, 0.04);
  --shadow-sm: 0 1px 3px rgba(26, 25, 23, 0.05), 0 2px 6px rgba(26, 25, 23, 0.04);
  --shadow-md: 0 2px 4px rgba(26, 25, 23, 0.03), 0 8px 20px rgba(26, 25, 23, 0.06);
  --shadow-lg: 0 4px 8px rgba(26, 25, 23, 0.03), 0 20px 44px rgba(26, 25, 23, 0.09);

  /* ---- Materials --------------------------------------------------------- */
  --material-bar: rgba(250, 248, 245, 0.82);
  --material-blur: blur(18px) saturate(180%);

  /* ---- Motion ------------------------------------------------------------ */
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur-base: 280ms;
  --text-eyebrow: 0.75rem;
  --tr-eyebrow: 0.07em;
}
