/* ==========================================================================
   KMC DESIGN TOKENS
   Every colour, font, size, radius and motion value used on the site lives
   here. Change a token and the whole site follows. Never hard-code these
   values in main.css or in page HTML — reference the variable instead.
   ========================================================================== */

:root {
  /* ---- Brand colour (sampled from the college crest) ------------------- */
  --navy-900: #060f2e;   /* deepest — dark sections, footer */
  --navy-800: #0a1a4a;
  --navy-700: #0c2a6b;   /* crest ribbon blue — primary brand colour */
  --navy-500: #2c4c9a;
  --navy-100: #e3e9f7;
  --gold-700: #8a6a1c;   /* accessible gold for text on light */
  --gold-500: #b08d32;   /* crest laurel gold */
  --gold-300: #d9b961;   /* bright gold for dark backgrounds */
  --gold-100: #f4ecd4;
  --green-600: #0f5c36;  /* AJK flag green */
  --night: #03081c;      /* deepest sky, edge of the achievements galaxy */
  --orange-500: #f39a1e; /* AJK flag orange */

  /* ---- Semantic colour (use these in components) ------------------------ */
  --bg: #fbfaf6;            /* page background — warm paper */
  --bg-alt: #f3f1e9;        /* alternate band */
  --surface: #ffffff;       /* opaque surfaces (dialogs fall back to this) */
  --ink: #0b1533;           /* primary text */
  --ink-soft: #4b5670;      /* secondary text */
  --ink-faint: #8790a6;     /* captions, placeholders */
  --line: rgba(11, 21, 51, 0.12);
  --line-strong: rgba(11, 21, 51, 0.24);
  --accent: var(--navy-700);
  --accent-contrast: #ffffff;
  --highlight: var(--gold-500);
  --highlight-text: var(--gold-700);
  --focus: #2c6bed;

  /* Dark surfaces (sections with class .theme-dark) */
  --dark-bg: var(--navy-900);
  --dark-surface: rgba(255, 255, 255, 0.05);
  --dark-ink: #f4f1e6;
  --dark-ink-soft: rgba(244, 241, 230, 0.66);
  --dark-line: rgba(244, 241, 230, 0.14);
  --dark-glass-bg: rgba(255, 255, 255, 0.07);
  --dark-glass-border: rgba(255, 255, 255, 0.16);
  --dark-glass-rim: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.04) 36%, rgba(255, 255, 255, 0.02) 64%, rgba(255, 255, 255, 0.28));
  --dark-glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 18px 44px -18px rgba(0, 0, 0, 0.5);

  /* ---- Liquid glass ------------------------------------------------------
     One recipe for every translucent surface (header, cards, chips, menu,
     dialogs). Components use the .glass class or these variables directly. */
  --glass-bg: rgba(255, 255, 255, 0.52);          /* fill of a glass surface */
  --glass-bg-strong: rgba(255, 255, 255, 0.74);   /* for text-heavy or floating panels */
  --glass-border: rgba(255, 255, 255, 0.66);
  --glass-blur: 22px;
  --glass-filter: blur(var(--glass-blur)) saturate(175%);
  --glass-rim: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.18) 34%, rgba(255, 255, 255, 0.08) 62%, rgba(255, 255, 255, 0.7));
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 -1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(11, 21, 51, 0.04), 0 18px 44px -18px rgba(11, 21, 51, 0.22);
  --glass-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(255, 255, 255, 0.25), 0 2px 4px rgba(11, 21, 51, 0.05), 0 30px 60px -20px rgba(11, 21, 51, 0.3);
  /* Soft colour that drifts behind the page so the glass has something to refract */
  --ambient-1: rgba(44, 76, 154, 0.16);
  --ambient-2: rgba(217, 185, 97, 0.2);
  --ambient-3: rgba(15, 92, 54, 0.08);

  /* ---- Achievements galaxy -------------------------------------------------
     Star colours on the dark sky, and medal colours on light surfaces. */
  --star-gold: #ffd977;
  --star-silver: #e3ebff;
  --star-bronze: #f2a765;
  --star-plain: #b9cdff;
  --medal-gold: #c79a2b;
  --medal-silver: #9aa6bf;
  --medal-bronze: #b9733c;

  /* ---- Typography -------------------------------------------------------- */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;

  /* Fluid type scale: clamp(min, preferred, max) — scales phone → desktop */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --text-xl: clamp(1.375rem, 1.2rem + 0.9vw, 2rem);
  --text-2xl: clamp(1.75rem, 1.35rem + 2vw, 3rem);
  --text-3xl: clamp(2.25rem, 1.5rem + 3.6vw, 4.5rem);
  --text-hero: clamp(3rem, 1.2rem + 8.6vw, 9rem);

  --leading-tight: 1.02;
  --leading-snug: 1.2;
  --leading-body: 1.65;
  --tracking-display: -0.035em;
  --tracking-label: 0.14em;

  /* ---- Space & layout ---------------------------------------------------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --section-y: clamp(4.5rem, 3rem + 7vw, 9.5rem); /* vertical padding of a section */
  --gutter: clamp(1.125rem, 0.6rem + 2.6vw, 3rem); /* page side padding */
  --container: 82rem;
  --container-narrow: 54rem;
  --header-h: 4.5rem;

  /* ---- Shape -------------------------------------------------------------- */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.75rem;
  --radius-xl: clamp(1.75rem, 1rem + 2.4vw, 3rem);
  --radius-pill: 999px;

  /* ---- Elevation ---------------------------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(11, 21, 51, 0.06), 0 2px 8px rgba(11, 21, 51, 0.04);
  --shadow-md: 0 2px 6px rgba(11, 21, 51, 0.05), 0 14px 32px -8px rgba(11, 21, 51, 0.14);
  --shadow-lg: 0 4px 10px rgba(11, 21, 51, 0.05), 0 36px 70px -20px rgba(11, 21, 51, 0.28);

  /* ---- Motion ------------------------------------------------------------- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);     /* default: fast start, soft landing */
  --ease-apple: cubic-bezier(0.28, 0.11, 0.32, 1); /* calm, weighty moves (reveals, sheets) */
  --ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1); /* slight overshoot (hover, press release) */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur-med: 420ms;
  --dur-slow: 900ms;

  /* ---- Layers ------------------------------------------------------------- */
  --z-header: 100;
  --z-menu: 110;
  --z-modal: 200;
}
