/* ============================================================
   MSIL Careers — shared design system
   Palette is the real Mohan Spintex brand:
     navy  #2E3192   green #00A54F   cream #FFEEC6
   Single source of truth. React apps link this via
   /static/css/tokens.css. Keep component CSS out of here.
   ============================================================ */
:root {
  /* — brand — */
  --brand-navy:  #2E3192;
  --navy-700:    #262A82;
  --navy-600:    #2E3192;
  --navy-500:    #3B3FB0;   /* hover / links */
  --navy-100:    #E5E6F5;
  --brand-green: #00A54F;
  --green-700:   #008A42;
  --green-600:   #00A54F;
  --green-100:   #DFF3E8;
  --brand-cream: #FFEEC6;
  --cream-soft:  #FBF3DE;

  /* — semantic (brand green doubles as success) — */
  --good-600: #00A54F;  --good-100: #DFF3E8;
  --warn-600: #8C6410;  --warn-100: #F5EDDA;
  --crit-600: #B23A3A;  --crit-100: #F4E1E1;

  /* — surfaces & ink (neutrals carry a faint indigo cast) — */
  --ground:    #F5F5F9;
  --surface:   #FFFFFF;
  --surface-2: #EEEEF4;
  --surface-3: #E3E3EE;
  --ink:       #1A1B33;
  --ink-2:     #4A4C63;
  --ink-3:     #767892;
  --line:      #DDDDE7;
  --line-2:    #C7C7D6;

  /* roles that flip per theme */
  --page-bg: var(--ground);
  --accent: var(--navy-600);
  --accent-hover: var(--navy-500);
  --on-accent: #FFFFFF;
  --spark: var(--brand-green);          /* the single highlight accent */
  --spark-ink: #FFFFFF;
  --hero-bg: #191B54;                    /* deep brand navy */
  --hero-ink: #F3F3FB;
  --hero-ink-2: #A9ACD8;
  --hero-line: rgba(255,255,255,.09);

  /* — type — */
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0:  0.96875rem;
  --step-1:  1.0625rem;
  --step-2:  1.375rem;
  --step-3:  1.75rem;
  --step-4:  2.25rem;
  --step-5:  2.9375rem;

  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4.5rem; --sp-9: 6.5rem;

  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(26,27,51,.06), 0 6px 16px rgba(26,27,51,.05);
  --shadow-lift: 0 2px 6px rgba(26,27,51,.08), 0 18px 40px rgba(26,27,51,.13);
  --ring: 0 0 0 3px rgba(46,49,146,.28);

  --ease: cubic-bezier(.22,.61,.36,1);
  color-scheme: light;
}

/* ---------- dark: system default ---------- */
:root:not([data-theme="light"]) {
  @media (prefers-color-scheme: dark) {
    --ground:    #0C0D1A;
    --surface:   #15162B;
    --surface-2: #1D1E38;
    --surface-3: #262745;
    --ink:       #EAEAF3;
    --ink-2:     #ABADC6;
    --ink-3:     #7E7F9C;
    --line:      #2A2B48;
    --line-2:    #3B3C5C;

    --page-bg: var(--ground);
    --accent: #8B8FE0;
    --accent-hover: #A5A8EC;
    --on-accent: #0C0D1A;
    --spark: #24C46E;
    --spark-ink: #04160C;
    --hero-bg: #121333;
    --hero-ink: #EDEDF7;
    --hero-ink-2: #9EA1CE;
    --hero-line: rgba(255,255,255,.07);

    --navy-100: #21234a;
    --green-100: #103524;
    --brand-cream: #33301f;
    --good-100:#103524; --warn-100:#33290f; --crit-100:#3a2020;
    --shadow-1: 0 1px 2px rgba(0,0,0,.42), 0 8px 22px rgba(0,0,0,.36);
    --shadow-lift: 0 2px 8px rgba(0,0,0,.5), 0 20px 44px rgba(0,0,0,.52);
    --ring: 0 0 0 3px rgba(139,143,224,.32);
    color-scheme: dark;
  }
}

/* ---------- dark: explicit toggle ---------- */
:root[data-theme="dark"] {
  --ground:    #0C0D1A;
  --surface:   #15162B;
  --surface-2: #1D1E38;
  --surface-3: #262745;
  --ink:       #EAEAF3;
  --ink-2:     #ABADC6;
  --ink-3:     #7E7F9C;
  --line:      #2A2B48;
  --line-2:    #3B3C5C;

  --page-bg: var(--ground);
  --accent: #8B8FE0;
  --accent-hover: #A5A8EC;
  --on-accent: #0C0D1A;
  --spark: #24C46E;
  --spark-ink: #04160C;
  --hero-bg: #121333;
  --hero-ink: #EDEDF7;
  --hero-ink-2: #9EA1CE;
  --hero-line: rgba(255,255,255,.07);

  --navy-100: #21234a;
  --green-100: #103524;
  --brand-cream: #33301f;
  --good-100:#103524; --warn-100:#33290f; --crit-100:#3a2020;
  --shadow-1: 0 1px 2px rgba(0,0,0,.42), 0 8px 22px rgba(0,0,0,.36);
  --shadow-lift: 0 2px 8px rgba(0,0,0,.5), 0 20px 44px rgba(0,0,0,.52);
  --ring: 0 0 0 3px rgba(139,143,224,.32);
  color-scheme: dark;
}

/* ---------- base reset shared by all surfaces ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

.u-mono { font-family: var(--font-mono); }
.u-eyebrow {
  font-family: var(--font-mono); font-size: var(--step--1);
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
