/* Ali Dibaj — generated from tokens.json */
:root, [data-theme="light"] {
  --bg: #f6f7f6; /* Page background behind every section. */
  --surface: #ffffff; /* Cards, nav bar, hero graphic panel. Sits on bg. */
  --surface-sunken: #eef1ef; /* Inset areas: code, metadata strips, hover row on lists. */
  --ink: #111614; /* Headings and body text on bg, surface and surface-sunken (15:1+ in both themes). */
  --ink-muted: #4c5753; /* Secondary text: intros, card descriptions, authors. 6.4:1+ on every surface in both themes. */
  --ink-subtle: #66716d; /* Meta text only: dates, axis labels, mono captions. 4.7:1+ on bg and surface; not for use on accent-soft. */
  --line: #e1e5e3; /* Hairline dividers, card borders, graphic grid dots. Decorative only. */
  --line-strong: #9aa5a1; /* Control borders (buttons, chips, inputs) and the timeline spine. 3:1 against bg. */
  --accent: #0a756d; /* The one accent: links, primary button fill, active nav, signal traces in graphics. Text-safe on bg and surface (5.1:1 light, 9.4:1 dark). */
  --accent-strong: #075a54; /* Hover and pressed state of accent links and the primary button. */
  --on-accent: #ffffff; /* Text and icons on an accent fill (5.6:1 light, 8.8:1 dark). Never plain white in dark mode. */
  --accent-soft: #e4f1ef; /* Selected filter chip background, tag fill. Text on it is ink or accent. */
  --focus-ring: var(--accent); /* Keyboard focus: 2px solid ring, 2px offset, on every interactive element. */
  --shadow-card: 0 1px 2px rgba(17,22,20,0.05), 0 8px 24px rgba(17,22,20,0.05); /* Card hover only. At rest, cards use a line border and no shadow. */
}
[data-theme="dark"] {
  --bg: #0b0e0d;
  --surface: #121615;
  --surface-sunken: #0f1312;
  --ink: #e6ebe9;
  --ink-muted: #a0aba7;
  --ink-subtle: #85918d;
  --line: #222a28;
  --line-strong: #4d5a56;
  --accent: #3fcfc0;
  --accent-strong: #7fe3d8;
  --on-accent: #04211e;
  --accent-soft: #0f2a27;
  --focus-ring: var(--accent);
  --shadow-card: 0 1px 2px rgba(0,0,0,0.5);
}
:root {
  --space-1: 4px; /* Icon to label gap. */
  --space-2: 8px; /* Between chips; label to heading. */
  --space-3: 12px; /* Button vertical padding x 1; list row gap. */
  --space-4: 16px; /* Mobile page gutter; small card padding. */
  --space-6: 24px; /* Card padding; grid gap. */
  --space-8: 32px; /* Desktop page gutter; heading to content. */
  --space-12: 48px; /* Between blocks inside a section. */
  --space-20: 80px; /* Between page sections on mobile. */
  --space-32: 128px; /* Between page sections on desktop. */
  --radius-sm: 4px; /* Tags, chips, inputs. */
  --radius-md: 8px; /* Buttons, small panels. */
  --radius-lg: 14px; /* Cards and the hero graphic panel. */
  --radius-pill: 999px; /* Theme toggle, status dot. */
  --content-max: 1160px; /* Max width of the page container. */
  --measure: 680px; /* Max width of running text. */
  --nav-height: 64px; /* Sticky top navigation height. */
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --text-display-xl: 500 64px/68px var(--font-sans); /* Home hero name only. 40px/44px under 640px. */
  --text-display: 500 44px/50px var(--font-sans); /* Page titles on CV, Publications, Projects, Media, Contact. */
  --text-h2: 500 28px/36px var(--font-sans); /* Section headings. */
  --text-h3: 600 19px/28px var(--font-sans); /* Card titles, job titles, publication titles. */
  --text-body-lg: 400 19px/31px var(--font-sans); /* Hero intro and page lead paragraphs. Max width 640px. */
  --text-body: 400 16px/26px var(--font-sans); /* Default running text. */
  --text-small: 400 14px/22px var(--font-sans); /* Authors, card descriptions, footer. */
  --text-label: 500 12px/16px var(--font-mono); /* Eyebrows, section labels, nav meta. Set uppercase in CSS. */
  --text-data: 400 13px/20px var(--font-mono); /* Dates, venues, tags, figures in timelines and lists. */
}
.display-xl {
  font-family: var(--font-sans);
  font-size: 64px;
  line-height: 68px;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.display {
  font-family: var(--font-sans);
  font-size: 44px;
  line-height: 50px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--font-sans);
  font-size: 28px;
  line-height: 36px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.h3 {
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: 0;
}
.body-lg {
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 31px;
  font-weight: 400;
  letter-spacing: 0;
}
.body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
  letter-spacing: 0;
}
.small {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
  letter-spacing: 0;
}
.label {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.data {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: 0;
}
