/* =============================================================================
   Samad-ul-Qur'an Academy — design tokens
   Deep Islamic green + gold on warm ivory. Navy appears only inside the crest.
   ========================================================================== */

/* ------------------------------------------------------------------ fonts -- */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../assets/fonts/playfair-display-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../assets/fonts/playfair-display-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/amiri-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
  /* ------------------------------------------------------------ palette -- */
  --green-950: #04231a;
  --green-900: #063d2b;
  --green-800: #0a5138;
  --green-700: #0e6b49;
  --green-600: #14875c;
  --green-500: #24a071;
  --green-200: #b9dfcd;
  --green-100: #dcefe5;
  --green-50: #f1f8f4;

  --gold-800: #8a640d;
  --gold-700: #a97c12;
  --gold-600: #c89a1c;
  --gold-500: #d9ae38;
  --gold-400: #e3c260;
  --gold-300: #ebcf84;
  --gold-100: #f8eed3;

  --navy-900: #0b1d4d;

  --ink-900: #14120e;
  --ink-800: #26231d;
  --ink-700: #3d3930;
  --ink-600: #565046;
  --ink-500: #6f685c;
  --ink-400: #918a7c;
  --ink-300: #b9b2a4;

  --paper: #ffffff;
  --ivory: #faf7f0;
  --ivory-2: #f4efe4;
  --line: #e6dfd1;
  --line-strong: #d5cbb6;

  --success-700: #0f7a4f;
  --success-100: #dbf3e6;
  --warning-700: #a35a06;
  --warning-100: #fdeccd;
  --danger-700: #b3261e;
  --danger-100: #fbe3e1;
  --info-700: #1a56c4;
  --info-100: #e0e9fd;

  /* --------------------------------------------------------- semantics -- */
  --bg: var(--ivory);
  --bg-alt: var(--ivory-2);
  --surface: var(--paper);
  --surface-sunken: var(--green-50);
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --text-soft: var(--ink-400);
  --text-invert: #fdfcf8;
  --primary: var(--green-700);
  --primary-strong: var(--green-800);
  --primary-deep: var(--green-900);
  --accent: var(--gold-600);
  --accent-strong: var(--gold-700);
  --border: var(--line);
  --focus: var(--gold-500);

  /* ------------------------------------------------------------- type ---- */
  --font-display: 'Playfair Display', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', 'Times New Roman', serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 2.875rem;
  --text-hero: clamp(2.35rem, 1.4rem + 3.4vw, 4.15rem);
  --text-section: clamp(1.7rem, 1.2rem + 1.7vw, 2.6rem);

  --leading-tight: 1.14;
  --leading-snug: 1.3;
  --leading-normal: 1.62;
  --tracking-wide: 0.16em;

  /* ------------------------------------------------------------ space ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-9: 4rem;
  --space-10: 5.5rem;
  --space-11: 7rem;
  --section-y: clamp(3.5rem, 2rem + 5vw, 6.5rem);
  --container: 1200px;
  --container-narrow: 860px;

  /* ------------------------------------------------------------ shape ---- */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(20, 35, 26, 0.06);
  --shadow-sm: 0 2px 8px rgba(20, 35, 26, 0.07);
  --shadow-md: 0 10px 26px -12px rgba(10, 45, 32, 0.22), 0 2px 6px rgba(10, 45, 32, 0.06);
  --shadow-lg: 0 26px 60px -28px rgba(6, 40, 28, 0.34), 0 4px 12px rgba(6, 40, 28, 0.07);
  --shadow-gold: 0 12px 30px -14px rgba(169, 124, 18, 0.45);

  --ring: 0 0 0 3px rgba(217, 174, 56, 0.42);

  /* ----------------------------------------------------------- motion ---- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 140ms;
  --dur: 240ms;
  --dur-slow: 460ms;

  /* ------------------------------------------------------------ charts --- */
  --blue-500: #4a80e0;
  --red-600: #d0473d;
  --chart-fill-top: rgba(20, 135, 92, 0.24);
  --chart-fill-bottom: rgba(20, 135, 92, 0.02);
  --chart-track: #e9e2d3;
  --chart-line: var(--green-700);
  --chart-grid: #ece5d7;

  --header-h: 76px;
  --z-header: 60;
  --z-drawer: 80;
  --z-modal: 100;
  --z-toast: 120;
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur: 0ms; --dur-slow: 0ms; }
}
