/* ==========================================================================
   NSDA design tokens — the single source of every locked value.
   Rules and reasoning: design-system/README.md. Visual reference: design-system/index.html.
   Pages use the JOB names (second block of each group), never raw values.
   ========================================================================== */

:root {
  /* ---------- Colour: the ladders (12 Nov 2026) ----------
     Each main colour has numbered steps, 50 (lightest) to 900 (darkest), as Carbon and Atlassian do. The same number is the
     same lightness in every family, so Gold 200 and Peacock 200 sit at the same level. Light-heavy on purpose (Raj): 50 to 400
     are all clearly light, then the steps darken faster, because pages use many more light shades (rows, hover, panels) than
     dark ones. Tints keep their hue (clear pastels, not grey). The named colours below are pinned exactly on their steps, so
     nothing on the site changes. Neutral runs on to 950 (Ash) and 1000 (House).
     Text: House text passes AA (4.5:1) on steps 50 to 600; Ivory text passes on 700 and darker (Gold 700 = Gold ink, 5.2:1). */
  --neutral-50: #FDF9F1;  --neutral-100: #F4EFE6; --neutral-200: #E4E2DE; --neutral-300: #DAD7D1; --neutral-400: #C9C4BC;
  --neutral-500: #A69E92; --neutral-600: #8A8379; --neutral-700: #5C554D; --neutral-800: #4C4843; --neutral-900: #2F2E2B;
  --neutral-950: #1A1A1A; --neutral-1000: #0B0A09;
  --gold-50: #FEF9EE;     --gold-100: #F9F0DE;    --gold-200: #F1E4C9;    --gold-300: #E8D5B0;    --gold-400: #D9B872;
  --gold-500: #C7A05B;    --gold-600: #A87C38;    --gold-700: #8A5A12;    --gold-800: #674106;    --gold-900: #432902;
  --sindoor-50: #FFF8F7;  --sindoor-100: #FFEDEA; --sindoor-200: #FEDEDA; --sindoor-300: #F8CDC7; --sindoor-400: #EFBAB2;
  --sindoor-500: #D6968D; --sindoor-600: #B77168; --sindoor-700: #95534B; --sindoor-800: #753630; --sindoor-900: #5A1E19;
  --peacock-50: #F0FCFC;  --peacock-100: #E1F4F5; --peacock-200: #CEEBEC; --peacock-300: #B6DFE0; --peacock-400: #9DCFD1;
  --peacock-500: #76B0B2; --peacock-600: #548D8F; --peacock-700: #356E70; --peacock-800: #0B4547; --peacock-900: #023436;

  /* ---------- Colour: the named colours, each a step on its ladder ---------- */
  --house: var(--neutral-1000);    /* brand neutral: the dark. Replaces all black */
  --ash: var(--neutral-950);       /* raised dark panel */
  --soft: var(--neutral-700);      /* quiet text on light. 6.4:1 on ivory */
  --muted: var(--neutral-500);     /* quiet text on dark. 7.5:1 on house */
  --stone: var(--neutral-400);     /* lines and borders on dark */
  --linen: var(--neutral-200);     /* dividers on light */
  --ivory: var(--neutral-100);     /* brand neutral: the light. Replaces all white */
  --gold: var(--gold-400);         /* primary */
  --gold-ink: var(--gold-700);     /* primary, deep step: gold text on light */
  --sindoor: var(--sindoor-900);   /* secondary: section ground */
  --peacock: var(--peacock-800);   /* secondary: section ground and linework */
  --marigold: #E8962E;   /* accent: decoration only, never text. No ladder */
  --vermilion: #C8452F;  /* accent: decoration only, never text. No ladder */
  --error: #A12B1F;      /* functional: errors only, always with icon + words. On light grounds; on dark, an error is Ivory words with a gold "!" (contrast) */

  /* Page grounds: one section each, never reused. (Garba, Lamps and the two Hero grounds were never used: retired 12 Nov 2026) */
  --ground-lessons: #17203A;
  --ground-honors: #2B1830;

  /* Overlays */
  --veil-20: rgba(11, 10, 9, 0.2);
  --veil-40: rgba(11, 10, 9, 0.4);
  --veil-55: rgba(11, 10, 9, 0.55);
  --veil-75: rgba(11, 10, 9, 0.75);
  --veil-85: rgba(11, 10, 9, 0.85);
  --ivory-40: rgba(244, 239, 230, 0.4);
  --ivory-85: rgba(244, 239, 230, 0.85);
  --ivory-92: rgba(244, 239, 230, 0.92);
  --gold-ink-40: rgba(138, 90, 18, 0.4);

  /* Colour: jobs */
  --surface-light: var(--ivory);
  --surface-dark: var(--house);
  --surface-raised-dark: var(--ash);
  --text-on-light: var(--house);
  --text-on-dark: var(--ivory);
  --text-quiet-on-light: var(--soft);
  --text-quiet-on-dark: var(--muted);
  --line-on-light: var(--linen);
  --line-on-dark: var(--stone);
  --caption-on-light: var(--soft);
  --caption-on-dark: var(--muted);

  /* ---------- Focus and fields ---------- */
  --focus-ring: 0 0 0 2px var(--ivory), 0 0 0 4px var(--house);   /* links, buttons, menu items */
  --field-line: var(--soft);          /* resting: 1px */
  --field-line-active: var(--house);  /* hover 1px, focus 2px. No glow, label stays House */
  --field-fill: var(--ivory);
  --field-fill-disabled: var(--linen);
  --field-valid: var(--gold-ink);     /* the tick */

  /* ---------- Type ---------- */
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  /* desktop values; tablet and phone below */
  --display-size: 168px;  --display-line: 160px;
  --h1-size: 84px;  --h1-line: 84px;
  --h2-size: 64px;  --h2-line: 64px;
  --h3-size: 44px;  --h3-line: 48px;
  --h4-size: 32px;  --h4-line: 36px;
  --h5-size: 22px;  --h5-line: 28px;
  --h6-size: 14px;  --h6-line: 20px;   /* H6 is the eyebrow */
  --lead-size: 21px;  --lead-line: 32px;
  --body-size: 18px;  --body-line: 28px;
  --small-size: 15px; --small-line: 24px;   /* also captions */

  /* ---------- Space: 4px grid, 17 steps ---------- */
  --space-4: 4px;   --space-8: 8px;   --space-12: 12px;  --space-16: 16px;
  --space-20: 20px; --space-24: 24px; --space-32: 32px;  --space-40: 40px;
  --space-48: 48px; --space-56: 56px; --space-64: 64px;  --space-80: 80px;
  --space-96: 96px; --space-120: 120px; --space-144: 144px; --space-160: 160px; --space-200: 200px;

  /* Space: jobs (desktop; tablet and phone below) */
  --gutter: 40px;               /* page margin */
  --section-pad: 160px;         /* section top and bottom */
  --section-pad-set: 200px;     /* set-piece sections */
  --content-gap: 120px;         /* between pieces of content in a section */
  --content-gap-lg: 160px;
  --content-gap-set: 200px;     /* inside set pieces */
  --column-gap: 96px;
  --heading-gap: 24px;          /* heading to the copy under it */
  --hero-bottom: 80px;          /* hero text above the bottom edge */
  --target: 44px;               /* smallest tappable size */
  --btn-h: 44px; --btn-pad: 24px; --btn-size: 13px; --btn-line-h: 20px; --btn-track: 0.12em;   /* THE button (21 Nov 2026, Raj chose Medium): every pill uses these, so one change here reaches them all */

  /* ---------- Layout widths ---------- */
  --w-wide: 1280px;
  --w-content: 1120px;
  --w-reading: 720px;
  --w-narrow: 560px;
  --w-hero-line: 500px;

  /* ---------- Corners ---------- */
  --r-pill: 999px;
  --stroke-button: 2px;   /* the line around an outlined (secondary) button: one value, so a change here reaches every one */
  --r-photo: 14px;
  --r-control: 12px;
  --r-small: 8px;

  /* ---------- Motion ---------- */
  --t-quick: 200ms;     /* hover colour, underline */
  --t-short: 300ms;     /* small moves, ticks */
  --t-medium: 500ms;    /* panels, menus */
  --t-long: 700ms;      /* scroll reveals */
  --t-ambient: 1800ms;  /* slow loops */
  --ease-glide: cubic-bezier(0.22, 1, 0.36, 1);   /* arriving */
  --ease-sway: cubic-bezier(0.65, 0, 0.35, 1);    /* between two states */
  --ease-standard: ease;                          /* colour and fades */
  --ease-steady: linear;                          /* loops and progress only */
}

/* Tablet: 768–1199px */
@media (max-width: 1199px) {
  :root {
    --display-size: 96px;  --display-line: 96px;
    --h1-size: 60px;  --h1-line: 60px;
    --h2-size: 48px;  --h2-line: 52px;
    --h3-size: 36px;  --h3-line: 40px;
    --h4-size: 28px;  --h4-line: 32px;
    --h5-size: 20px;  --h5-line: 28px;
    --h6-size: 13px;  --h6-line: 20px;
    --lead-size: 19px;  --lead-line: 28px;
    --body-size: 17px;  --body-line: 28px;

    --section-pad: 120px;
    --section-pad-set: 144px;
    --content-gap: 96px;
    --content-gap-lg: 120px;
    --content-gap-set: 120px;
    --column-gap: 64px;
  }
}

/* Phone: up to 767px */
@media (max-width: 767px) {
  :root {
    --display-size: 48px;  --display-line: 48px;
    --h1-size: 36px;  --h1-line: 40px;
    --h2-size: 30px;  --h2-line: 36px;
    --h3-size: 26px;  --h3-line: 32px;
    --h4-size: 22px;  --h4-line: 28px;
    --h5-size: 18px;  --h5-line: 24px;
    --h6-size: 13px;  --h6-line: 20px;
    --lead-size: 17px;  --lead-line: 28px;
    --body-size: 16px;  --body-line: 28px;

    --gutter: 20px;
    --section-pad: 96px;
    --section-pad-set: 96px;
    --content-gap: 64px;
    --content-gap-lg: 96px;
    --content-gap-set: 96px;
    --heading-gap: 20px;
  }
}

/* Reduced motion: nothing slides, scales or loops; fades 150ms or less */
@media (prefers-reduced-motion: reduce) {
  :root {
    --t-short: 150ms; --t-medium: 150ms; --t-long: 150ms; --t-ambient: 0ms;
  }
}
