/* findinternship.ai design tokens. Source of truth: DESIGN.md
   Import once at app root. Components must only use var(--...) values.
   The app serves a byte-identical copy, pilot/ui/tokens.css, at /tokens.css (tests/test_web.py checks they match). */

/* Fonts, self-hosted in pilot/ui/fonts/ (SIL OFL 1.1) so no visitor's address goes to Google.
   Variable fonts: one file per subset covers every weight DESIGN.md uses. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/inter-tight-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* brand + action */
  --color-primary: #111111;
  --color-primary-active: #2a2a2a;
  --color-primary-disabled: #e5e7eb;
  --color-accent: #2f4cf5;
  --color-accent-active: #2239c9;
  --color-accent-soft: #eef1ff;

  /* text */
  --color-ink: #111111;
  --color-body: #374151;
  --color-muted: #6b7280;
  --color-muted-soft: #9ca3af;
  --color-on-primary: #ffffff;
  --color-on-accent: #ffffff;
  --color-on-dark: #ffffff;
  --color-on-dark-soft: #a1a1aa;

  /* surfaces */
  --color-canvas: #ffffff;
  --color-surface-soft: #f8f9fa;
  --color-surface-card: #f5f5f5;
  --color-surface-strong: #e5e7eb;
  --color-surface-dark: #0f1115;
  --color-surface-dark-elevated: #191c22;
  --color-hairline: #e5e7eb;
  --color-hairline-soft: #f1f2f4;

  /* semantic: the base colours for dots, borders and icons; the -text ones for words (they pass AA) */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-success-text: #047857;
  --color-warning-text: #b45309;
  --color-error-text: #b91c1c;

  /* overlays and logos */
  --color-scrim: rgba(0, 0, 0, 0.4);
  --color-logo-tile: #ffffff;

  /* lead status */
  --status-new-fg: #1d4ed8;        --status-new-bg: #eff6ff;
  --status-saved-fg: #6d28d9;      --status-saved-bg: #f5f3ff;
  --status-contacted-fg: #b45309;  --status-contacted-bg: #fffbeb;
  --status-applied-fg: #0e7490;    --status-applied-bg: #ecfeff;
  --status-interview-fg: #c2410c;  --status-interview-bg: #fff7ed;
  --status-offer-fg: #047857;      --status-offer-bg: #ecfdf5;
  --status-rejected-fg: #b91c1c;   --status-rejected-bg: #fef2f2;
  --status-closed-fg: #4b5563;     --status-closed-bg: #f3f4f6;

  /* type */
  --font-display: "Inter Tight", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* type scale (DESIGN.md typography) as font shorthands: font: var(--text-table). Pair with --tracking-* */
  --text-display-xl: 600 64px/1.05 var(--font-display);
  --text-display-lg: 600 48px/1.1 var(--font-display);
  --text-display-md: 600 36px/1.15 var(--font-display);
  --text-display-sm: 600 28px/1.2 var(--font-display);
  --text-title-lg: 600 22px/1.3 var(--font-sans);
  --text-title-md: 600 18px/1.4 var(--font-sans);
  --text-title-sm: 600 16px/1.4 var(--font-sans);
  --text-body-md: 400 16px/1.5 var(--font-sans);
  --text-body-sm: 400 14px/1.5 var(--font-sans);
  --text-table: 400 13px/1.4 var(--font-sans);
  --text-table-header: 500 12px/1.3 var(--font-sans);
  --text-caption: 500 13px/1.4 var(--font-sans);
  --text-eyebrow: 600 12px/1.3 var(--font-sans);
  --text-kbd: 500 11px/1 var(--font-mono);
  --text-code: 400 14px/1.5 var(--font-mono);
  --text-button: 600 14px/1 var(--font-sans);
  --text-nav: 500 14px/1.4 var(--font-sans);
  --tracking-display-xl: -2px;
  --tracking-display-lg: -1.5px;
  --tracking-display-md: -1px;
  --tracking-display-sm: -0.5px;
  --tracking-title-lg: -0.3px;
  --tracking-table-header: 0.2px;
  --tracking-eyebrow: 0.6px;

  /* radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
  --radius-full: 9999px;

  /* spacing */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-section: 96px;

  /* elevation */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-focus: 0 0 0 3px var(--color-accent-soft), 0 0 0 1px var(--color-accent);

  /* motion */
  --motion-fast: 120ms;
  --motion-base: 180ms;
  --motion-easing: cubic-bezier(0.2, 0, 0, 1);

  /* app layout */
  --sidebar-width: 232px;
  --rail-width: 56px;
  --drawer-width: 480px;
  --row-height: 44px;
  --row-height-touch: 56px;
  --header-height: 56px;
  --filterbar-height: 48px;
  --topnav-height: 64px;
  --tabbar-height: 64px;
  --content-max: 1200px;
}

/* Dark mode: app shell only. Put data-theme="dark" on the app root, not on marketing pages. */
[data-theme="dark"] {
  --color-canvas: #0f1115;
  --color-surface-soft: #14171c;
  --color-surface-card: #191c22;
  --color-surface-strong: #242830;
  --color-hairline: #262a31;
  --color-hairline-soft: #1d2026;
  --color-ink: #f3f4f6;
  --color-body: #d1d5db;
  --color-muted: #9ca3af;
  --color-muted-soft: #6b7280;
  --color-primary: #f3f4f6;
  --color-primary-active: #d1d5db;
  --color-on-primary: #0f1115;
  --color-accent: #7a8fff;
  --color-accent-active: #95a6ff;
  --color-accent-soft: #161b3d;
  --color-on-accent: #0f1115;
  --color-primary-disabled: #242830;
  --color-success-text: #6ee7b7;
  --color-warning-text: #fcd34d;
  --color-error-text: #fca5a5;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);

  --status-new-bg: #172554;        --status-new-fg: #93c5fd;
  --status-saved-bg: #2e1065;      --status-saved-fg: #c4b5fd;
  --status-contacted-bg: #451a03;  --status-contacted-fg: #fcd34d;
  --status-applied-bg: #083344;    --status-applied-fg: #67e8f9;
  --status-interview-bg: #431407;  --status-interview-fg: #fdba74;
  --status-offer-bg: #022c22;      --status-offer-fg: #6ee7b7;
  --status-rejected-bg: #450a0a;   --status-rejected-fg: #fca5a5;
  --status-closed-bg: #1f2937;     --status-closed-fg: #d1d5db;
}

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