/* KH Design System · vendored tokens
 * ---------------------------------------------------------------------------
 * Source: Claude Design project "Redesinging the CV Agent Interface",
 *         _ds/kh-design-system-96b8632b-cdd4-4b6e-8b2e-ceed11a59f52/tokens/
 * Version: KH DL v1.1 (personal site), extending KH Design Language v1.0.
 *
 * This is a verbatim concatenation of the design system's token files, in the
 * order the design links them: fonts, colors, typography, spacing, motion,
 * base, utilities. Do not hand-edit. To take a design system update, replace
 * this file wholesale from the source project.
 * ---------------------------------------------------------------------------
 */

/* ── tokens/fonts.css ───────────────────────────────────────────────────── */
/* Three faces, three jobs:
 *   Archivo (variable wdth+wght) .... Display: headlines, titles, KPI values
 *   Instrument Sans ................. Body: running prose, buttons, nav
 *   IBM Plex Mono ................... Data: every factual string
 */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62.5..125,100..900&family=IBM+Plex+Mono:wght@400;500&family=Instrument+Sans:wght@400..700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── tokens/colors.css ──────────────────────────────────────────────────── */
/* Cobalt is the identity, with a violet companion for the gradient.
 * Green / amber / red carry state only, and never take a gradient.
 */
:root {
  /* --- Base neutrals: bright, warm, less gray --- */
  --bg: #FBFBFD;
  --surface: #FFFFFF;
  --surface-2: #F3F4FB;
  --ink: #0F1424;
  --ink-2: #2B3145;
  --muted: #626B7C;
  --hairline: #E7E9F1;

  /* --- Brand: cobalt identity + violet companion --- */
  --brand: #1F3BE6;
  --brand-hover: #1730C4;
  --brand-2: #7C5CFF;
  --brand-soft: #E9ECFF;
  --brand-2-soft: #F0EBFF;
  --brand-gradient: linear-gradient(120deg, #1F3BE6 0%, #7C5CFF 100%);
  --gradient: linear-gradient(120deg, #1F3BE6 0%, #7C5CFF 100%);
  --gradient-vivid: linear-gradient(120deg, #2A4BFF 0%, #7C5CFF 52%, #B57BFF 100%);
  --gradient-ink: linear-gradient(160deg, #141A32 0%, #0F1424 60%, #1A1440 100%);

  /* --- Warm pop: one highlight only --- */
  --pop: #FF6B4A;
  --pop-soft: #FFEAE3;

  /* --- Status --- */
  --ok: #12A15A;
  --ok-tint: #E6F6EC;
  --ok-bright: #37C983;
  --warn: #C77F00;
  --warn-tint: #FBF1DE;
  --warn-bright: #F0A82D;
  --down: #E0453A;
  --down-tint: #FCE9E7;
  --down-bright: #F06A5E;
  --idle: #6B7480;
  --idle-tint: #EDEFF3;
  --idle-bright: #9AA3B0;

  /* --- Text on ink / gradient surfaces --- */
  --on-ink: #FFFFFF;
  --on-ink-muted: #A6ADBD;

  /* --- Semantic aliases --- */
  --text-body: var(--ink);
  --text-muted: var(--muted);
  --text-label: var(--muted);
  --surface-page: var(--bg);
  --surface-card: var(--surface);
  --surface-inverse: var(--ink);
  --border: var(--hairline);
  --focus-ring: var(--brand);
  --link: var(--brand);
}

/* ── tokens/typography.css ──────────────────────────────────────────────── */
:root {
  --font-display: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --font-brand: 'Space Grotesk', system-ui, -apple-system, sans-serif;

  --display-weight: 800;
  --display-wdth: 112;
  --display-tracking: -0.025em;
  --display-leading: 1;
  --display-leading-hero: 0.95;

  --fs-hero: clamp(48px, 8vw, 96px);
  --fs-section-title: clamp(28px, 4vw, 44px);
  --fs-h1: clamp(34px, 5vw, 52px);
  --fs-kpi: 28px;
  --fs-card-title: 16.5px;
  --fs-body: 16px;
  --fs-body-base: 15px;
  --fs-body-sm: 13.5px;
  --fs-mono: 12px;
  --fs-mono-label: 11px;
  --fs-mono-sm: 10px;

  --mono-tracking: 0.08em;
  --mono-tracking-wide: 0.1em;
  --mono-weight: 500;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  --leading-body: 1.5;
  --leading-tight: 1.2;

  --type-display: var(--font-display);
  --type-prose: var(--font-body);
  --type-data: var(--font-mono);
}

/* ── tokens/spacing.css ─────────────────────────────────────────────────── */
:root {
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 12px;
  --space-4: 14px;
  --space-5: 18px;
  --space-6: 22px;
  --space-7: 28px;
  --space-8: 36px;
  --space-9: 40px;

  --section-gap: 140px;
  --section-gap-min: 96px;
  --section-gap-mobile: 80px;

  --content-max: 1180px;
  --page-pad: 28px;
  --measure: 680px;

  --radius: 16px;
  --radius-lg: 22px;
  --radius-button: 12px;
  --radius-input: 10px;
  --radius-pill: 99px;
  --radius-dialog: 20px;
  --radius-monogram: 12px;
  --radius-monogram-lg: 16px;

  --border-width: 1px;
  --border-dashed: 1.5px;

  --shadow-sm: 0 1px 2px rgba(16, 19, 34, .04), 0 3px 10px rgba(16, 19, 34, .05);
  --shadow-md: 0 8px 24px rgba(16, 19, 34, .08);
  --shadow-lg: 0 24px 60px rgba(16, 19, 34, .16);
  --shadow-glow: 0 18px 50px rgba(124, 92, 255, .30);
  --shadow-hover: var(--shadow-md);
  --shadow-modal: 0 30px 80px rgba(16, 19, 34, .32);
  --scrim: rgba(16, 19, 34, .5);
  --lift-y: -3px;

  --grid-min: 320px;
  --grid-gap: 18px;

  --focus-width: 2px;
  --focus-offset: 2px;
}

/* ── tokens/motion.css ──────────────────────────────────────────────────── */
:root {
  --motion-hover: 150ms;
  --ease: cubic-bezier(.2, .6, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --pulse-duration: 2.4s;
  --draw-duration: 1.4s;
}

@keyframes kh-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

.kh-pulse { animation: kh-pulse var(--pulse-duration) ease-in-out infinite; }

@keyframes kh-drift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.kh-drift { background-size: 220% 220%; animation: kh-drift 16s ease-in-out infinite; }

@keyframes kh-float {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(0, -16px); }
}
.kh-float { animation: kh-float 9s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .kh-pulse { animation: none; }
  .kh-drift { animation: none; }
  .kh-float { animation: none; }
  .kh-lift:hover { transform: none; }
}

/* ── tokens/base.css ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--leading-body);
  font-weight: var(--weight-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

:focus-visible {
  outline: var(--focus-width) solid var(--brand);
  outline-offset: var(--focus-offset);
  border-radius: 3px;
}

::selection { background: var(--brand-soft); color: var(--ink); }

a { color: var(--link); text-decoration: none; }

/* ── tokens/utilities.css ───────────────────────────────────────────────── */
.kh-display {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 110, 'wght' 800;
  letter-spacing: -0.028em;
  line-height: 1.0;
  margin: 0;
}
.kh-display-xl {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 112, 'wght' 850;
  letter-spacing: -0.035em;
  line-height: 0.96;
  margin: 0;
}

.kh-caps { text-transform: uppercase; letter-spacing: -0.02em; }

.kh-gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kh-eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.kh-num {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 108, 'wght' 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.kh-prose {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-body);
}

.kh-mono {
  font-family: var(--font-mono);
  font-variant-ligatures: none;
}

.kh-label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-label);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.kh-lift {
  transition: transform var(--motion-hover) var(--ease),
              box-shadow var(--motion-hover) var(--ease),
              border-color var(--motion-hover) var(--ease);
}
.kh-lift:hover {
  transform: translateY(var(--lift-y));
  box-shadow: var(--shadow-md);
  border-color: #DADEEA;
}
