/*
  Munshi Institute — design tokens
  Source of truth for colour, type, spacing and shape.
  Every Munshi web page (sales pages, WordPress theme) reads these.
  Change a value here, and it changes everywhere that uses it.

  BRAND COLOURS (Muhsin, 25 Nov 2026): ten colours, one job each. Nothing else on a web page.
  Never: pure white or black, blue, sand, amber, light orange, the business-card gradient.
  Fades: only Paper into White (top to bottom, or left to right behind a photo), an ink veil
  over a hero photo, and fading to see-through at the ends of moving rows. Full rules:
  munshi-institute/design-system CLAUDE.md, "Web brand rules".
*/

:root {
  /* ---------- The ten brand colours ---------- */
  --mi-white: #FDFCFA;         /* White: the main ground of every section */
  --mi-cream: #EFEAE1;         /* Paper: the start of every fade, the learning-path road, light text on the footer */
  --mi-paper: #F8F6F2;         /* Card: every card (questions, reviews, path cards) */
  --mi-orange: #F15A29;        /* Orange: buttons, dots, rings, the logo, orange words on photos and on the footer */
  --mi-orange-text: #A8360F;   /* Text orange: every title, orange words on light grounds */
  --mi-sun: #FBC048;           /* Sun: highlights only (audience band, word stickers, stars, map lines, finish dot) */
  --mi-green: #2E7148;         /* Green: success moments only (enrol confirmed, seats available) */
  --mi-ink: #171A1B;           /* Ink: text, the footer, outline buttons, the logo wordmark */
  --mi-ink-soft: #4B5052;      /* Soft ink: second-level text on light grounds */
  --mi-on-dark-soft: #CFC9BD;  /* Soft cream: second-level text on the ink footer */

  /* ---------- Support (not colours to design with) ---------- */
  --mi-line: #D7CFC1;          /* Hairlines where a component truly needs one (outline buttons use ink) */
  --mi-line-dark: #3A3936;     /* Hairlines on ink */
  --mi-focus: var(--mi-ink);   /* Keyboard focus ring on light grounds; white on dark */
  --mi-shadow-ink: rgba(23,26,27,.45);

/* ---------- Type ---------- */
  /* Montserrat matches the logo wordmark and the business card.
     The display face is for the "Malay for ..." style headline only. */
  --mi-font-sans: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mi-font-display: "Bree Serif", Georgia, serif;

  /* Scale (px at 16px root). Steps follow a classic 1.25 / 1.333 mix */
  --mi-text-xs: 0.8125rem;   /* 13 — legal, captions */
  --mi-text-sm: 0.9375rem;   /* 15 — small UI */
  --mi-text-md: 1.0625rem;   /* 17 — body */
  --mi-text-lg: 1.25rem;     /* 20 — lead paragraph, buttons */
  --mi-text-xl: 1.625rem;    /* 26 — card titles */
  --mi-text-2xl: 2.125rem;   /* 34 — section headings */
  --mi-text-3xl: clamp(2.25rem, 5vw, 3.25rem);   /* 36–52 — page headings */
  --mi-text-display: clamp(2.75rem, 8vw, 5rem);  /* 44–80 — hero "Malay for ..." */

  /* Web type scale: the ONLY five sizes on any Munshi web page (approved 7 Nov 2026).
     Desktop size, phone size. Headings, prices and figures use T1 to T3; text T4; small print T5.
     Bold or regular changes weight, never size. The --mi-text-* steps above are legacy: use these. */
  --mi-t1: clamp(2.5rem, 3.89vw, 3.5rem);     /* T1 Display  56 / 40: the hero title, once a page */
  --mi-t2: clamp(1.875rem, 2.64vw, 2.375rem); /* T2 Title    38 / 30: section titles, plan prices */
  --mi-t3: clamp(1.375rem, 1.81vw, 1.625rem); /* T3 Heading  26 / 22: card and item titles, big figures */
  --mi-t4: 1.0625rem;                         /* T4 Body     17: text, buttons, questions */
  --mi-t5: 0.875rem;                          /* T5 Caption  14: labels, tags, notes, small buttons */

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

  --mi-leading-tight: 1.1;
  --mi-leading-snug: 1.3;
  --mi-leading-body: 1.6;
  --mi-measure: 66ch;        /* max line length for paragraphs */

  /* ---------- Space (4px grid) ---------- */
  --mi-space-1: 0.25rem;
  --mi-space-2: 0.5rem;
  --mi-space-3: 0.75rem;
  --mi-space-4: 1rem;
  --mi-space-5: 1.5rem;
  --mi-space-6: 2rem;
  --mi-space-7: 3rem;
  --mi-space-8: 4rem;
  --mi-space-9: 6rem;
  --mi-space-10: 8rem;

  --mi-page-max: 72rem;      /* 1152px content width */
  --mi-gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* ---------- Shape ---------- */
  --mi-radius-sm: 6px;       /* tags, inputs */
  --mi-radius-md: 14px;      /* cards */
  --mi-radius-lg: 28px;      /* big panels */
  --mi-radius-pill: 999px;   /* buttons */

  --mi-shadow-photo: 0 1px 2px rgba(23, 26, 27, .08), 0 12px 28px -12px rgba(23, 26, 27, .28);
  --mi-shadow-raise: 0 2px 0 var(--mi-ink);   /* the "printed" button edge */
}
