/* Design tokens: the single :root source for the whole site.
   Imported first by styles.css?v=muheij9e (Home), research-writing.css?v=muheij9e (every inner
   page reaches it through that file) and not-found.css?v=muheij9e (404).
   linkedin-dashboard.css keeps its own scoped --ld-* tokens on purpose.

   Breakpoints. Custom properties cannot be used inside @media, so media
   queries repeat the literal value with a comment naming the token:
     --bp-nav  1279px  nav collapses to "MENU +" at or below this, on every page
     --bp-lg   1100px  layout: wide -> tablet
     --bp-sm    760px  layout: tablet -> single column
   Home (styles.css?v=muheij9e) keeps its locked 900/600 layout queries; its nav already
   collapses at --bp-nav. About keeps its locked 1050 layout query. */
:root {
  color-scheme: dark;

  /* Brand */
  --navy: #071522;
  --ink: #0b0f14;
  --blue: #1686c9;
  --cyan: #55d7f2;
  --cyan-soft: #9eecfc;
  --on-cyan: #062033;
  --amber: #f2ae5b;
  --ivory: #f4f0e8;
  --linkedin: #0a66c2;
  --linkedin-hover: #004182;
  --accent: var(--cyan);
  --accent-hover: var(--amber);

  /* Text on dark surfaces (consolidates about 20 near-duplicate greys) */
  --text-1: var(--ivory);
  --text-2: #d3dce3;
  --text-3: #a6b5c3;
  --muted: var(--text-3);
  --text-faint: #68798f; /* decorative separators only, never running text */

  /* Surfaces */
  --surface-0: #06111b;
  --surface-1: #0d1e2b;
  --surface-2: #09141e;
  --surface-overlay: #071522f5;
  --surface-badge: #071522db;

  /* Light sections (About). Every value is AA on --surface-light:
     text 13.4:1, text-2 5.2:1, text-3 5.1:1, accent (burnt amber) 5.2:1.
     Brand amber and cyan are dark-surface colours only (1.6:1 and 1.4:1 here). */
  --surface-light: #e9e8e2;
  --text-on-light: #13212a;
  --text-2-on-light: #536269;
  --text-3-on-light: #56626a;
  --accent-on-light: #8f4f10;

  /* Lines */
  --line: #ffffff24;
  --line-subtle: #ffffff1c;
  --line-strong: #ffffff3d;

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --fs-meta: 12px; /* site-wide minimum: eyebrows, dates, labels, footers */
  --fs-small: 14px;
  --fs-body-sm: 15px;
  --fs-body: 16px;
  --fs-lead: clamp(16px, 1.4vw, 19px);
  --fs-h3: clamp(24px, 1vw + 16px, 30px);
  --fs-h2: clamp(40px, 4.2vw, 68px);
  --fs-h1: clamp(40px, 6.6vw + 23.5px, 138px); /* 320: 44.6px fits "ACHIEVEMENTS"; 1440: 118.5px as before */
  --fs-stat: clamp(40px, 5vw, 72px);
  --lh-h1: .88;
  --lh-h2: 1.04;
  --lh-h3: 1.1;
  --lh-body: 1.7;

  /* Radius */
  --radius-chip: 4px;
  --radius-card: 6px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-1: 0 3px 20px #020c1440; /* floating controls, badges, avatars */
  --shadow-2: 0 18px 35px #020c1426; /* raised cards */
  --shadow-3: 0 18px 50px #020c142e; /* panels and forms */

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --gutter: clamp(24px, 6.2vw, 110px);

  /* Breakpoints, readable from JS via getComputedStyle (see note above) */
  --bp-nav: 1279px;
  --bp-lg: 1100px;
  --bp-sm: 760px;

  font-family: var(--font-body);
  color: var(--text-1);
  background: var(--navy);
  font-synthesis: none;
}
