/* src/web/static/ui/tokens.css — the only file that knows raw values. */
@layer tokens, base, components, utilities;

@layer tokens {
:root {
  /* Warm paper, app-wide. This was `.paper-scope` — a class All Jobs, the
     Board and a job wore so they could look like the landing page while the
     rest of the app kept a cool dashboard ramp. Two grounds in one product is
     a fork, not a migration, so the paper values moved here and the scope
     classes were deleted. The old cool `--n0…--n11` ramp went with them: it
     existed only to feed these aliases and nothing else ever read it.

     Semantic aliases — templates/components use ONLY these. */
  --canvas:hsl(40 33% 96%); --surface:hsl(43 45% 99%); --surface-raised:hsl(40 40% 100%);
  --border-subtle:hsl(40 24% 90%); --border:hsl(38 22% 85%);
  --text-1:hsl(35 16% 12%); --text-2:hsl(35 9% 40%); --text-3:hsl(35 9% 43%);
  /* --text-3 sat at 59% lightness ≈ 2.6:1 on canvas — timestamps, hints and
     the mobile data-labels all failed WCAG AA. 43% clears 4.5:1 in both
     themes without flattening the hierarchy: --text-2 stays a step calmer. */
  /* an inset well — search fields, table heads, anything that reads as recessed */
  --sunk:hsl(40 26% 93%);

  --accent:hsl(235 70% 55%); --on-accent:#fff; --accent-soft:hsl(235 70% 55% / .1); --scrim:hsl(220 20% 10% / .4);
  --ok:hsl(150 60% 34%);  --ok-bg:hsl(150 55% 94%);
  --warn:hsl(38 90% 38%); --warn-bg:hsl(42 95% 93%);
  --danger:hsl(0 65% 46%); --danger-bg:hsl(0 70% 96%);
  --info:hsl(210 80% 42%); --info-bg:hsl(210 80% 95%);

  --score-high:var(--ok); --score-mid:var(--warn); --score-low:var(--danger);

  /* Atlas page-type categorical set (badges = funnel = graph nodes) */
  --atlas-skill:hsl(210 70% 46%);   --atlas-company:hsl(262 55% 52%);
  --atlas-role:hsl(190 65% 38%);    --atlas-contact:hsl(330 55% 48%);
  --atlas-project:hsl(150 50% 36%); --atlas-experience:hsl(25 75% 44%);
  --atlas-concept:hsl(48 85% 38%);  --atlas-synthesis:hsl(235 60% 56%);
  --atlas-trail:hsl(170 55% 34%);

  /* Identity categorical set — deterministic avatar hues (company/contact id % 8) */
  --id-0:hsl(231 55% 50%); --id-1:hsl(354 60% 48%);
  --id-2:hsl(160 50% 32%); --id-3:hsl(30 80% 42%);
  --id-4:hsl(272 50% 46%); --id-5:hsl(322 55% 46%);
  --id-6:hsl(184 50% 32%); --id-7:hsl(210 60% 38%);

  /* space: 4px grid */
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:20px;
  --space-6:24px; --space-8:32px; --space-10:40px; --space-12:48px;

  --radius-ctl:6px; --radius-card:14px; --radius-pill:999px;
  /* Anything you type into. Taken from the Orbit chat composer (.dk-box),
     which is the shape the whole app is measured against now — a field should
     look like the one place people already trust to be typed in. A single-line
     38px control at this radius reads as a pill, which is what drop-lists and
     buttons already are, so the family closes. */
  --radius-field:20px;
  --shadow-float:0 4px 16px hsl(220 20% 10% / .12), 0 1px 3px hsl(220 20% 10% / .08);
  /* Elevation, warm-tinted: rest, hover, floating. `--shadow-float` predates
     these and survives as the neutral fallback a few older components still
     name directly. */
  --lift-1:0 1px 2px hsl(35 30% 12% / .05);
  --lift-2:0 2px 6px hsl(35 30% 12% / .07), 0 1px 2px hsl(35 30% 12% / .05);
  --lift-3:0 12px 32px hsl(35 30% 12% / .13), 0 2px 6px hsl(35 30% 12% / .07);
  --ease:cubic-bezier(.25,.1,.25,1); --dur-1:120ms; --dur-2:200ms;

  /* One control height across the app. Buttons had drifted to four sizes —
     25px for .btn-sm, 29px for a bare .btn, 37px for a pill group and 38px for
     the search field — and the pill group is the one that looks right. */
  --ctl-h:38px;

  /* A list you scan for minutes at a time needs more than a dashboard's 13px,
     so the jobs surfaces' reading scale is now everyone's. */
  /* A 10px step, used only by the sidebar's activity feed: its mono eyebrow
     and day dividers sit under a 12.5px name in a 244px column, and at 11px
     the two lines competed instead of ranking. */
  --text-2xs:10px; --text-xs:11px; --text-sm:12.5px; --text-base:14px; --text-lg:16px;
  --text-xl:18px; --text-2xl:24px;
  /* Every top-bar title (job, company, profile, page names) — Fraunces at this size. */
  --text-bar-title:20px;
  --font-ui:'Inter',system-ui,sans-serif;
  --font-mono:ui-monospace,'SF Mono',Menlo,monospace;
  --font-display:'Fraunces',Georgia,'Times New Roman',serif;
  /* indigo text-on-light + amber second accent (milestones/strengths) */
  --accent-ink:hsl(243 58% 49%);
  --amber:hsl(38 90% 41%); --amber-soft:hsl(40 80% 91%); --amber-ink:hsl(35 88% 32%);
  --track:hsl(35 25% 88%); --gap-neutral:hsl(38 12% 74%);

  --sidebar-w:272px; --sidebar-rail:56px; --tabbar-h:56px; --header-h:52px;
}

[data-theme="dark"] {
  --canvas:hsl(35 12% 11%); --surface:hsl(35 10% 14%); --surface-raised:hsl(35 10% 17%);
  --border-subtle:hsl(35 10% 20%); --border:hsl(35 9% 26%);
  --text-1:hsl(40 22% 94%); --text-2:hsl(38 9% 68%); --text-3:hsl(35 8% 58%);
  /* dark --text-3 was ≈4.2:1 on surface; 58% clears AA with the same step
     below --text-2 as the light theme keeps. */
  --sunk:hsl(35 11% 12%);
  --lift-1:0 1px 2px hsl(0 0% 0% / .3);
  --lift-2:0 2px 6px hsl(0 0% 0% / .38), 0 1px 2px hsl(0 0% 0% / .3);
  --lift-3:0 12px 32px hsl(0 0% 0% / .5), 0 2px 6px hsl(0 0% 0% / .35);
  --accent:hsl(235 80% 68%); --accent-soft:hsl(235 80% 68% / .14);
  --ok:hsl(150 55% 55%);  --ok-bg:hsl(150 40% 16%);
  --warn:hsl(42 85% 60%); --warn-bg:hsl(40 50% 16%);
  --danger:hsl(0 70% 62%); --danger-bg:hsl(0 45% 17%);
  --info:hsl(210 85% 62%); --info-bg:hsl(210 55% 16%);
  --scrim:hsl(220 40% 2% / .6);
  --shadow-float:0 4px 16px hsl(220 40% 2% / .5), 0 1px 3px hsl(220 40% 2% / .4);
  --accent-ink:hsl(235 80% 74%);
  --amber:hsl(40 80% 60%); --amber-soft:hsl(38 40% 18%); --amber-ink:hsl(40 80% 66%);
  --track:hsl(35 10% 26%); --gap-neutral:hsl(35 8% 42%);
}

/* Marketing scope — the landing page wears Editorial Ascent at full size.
   The app's type scale tops out at 24px because it is an application; a hero
   needs display sizes, so the scope adds them rather than inflating the app.
   The palette is no longer restated here: warm paper is :root now, so the
   product mockups on this page sit in exactly the surface they sit in inside
   the app, for free. What remains is the *only* thing marketing adds — size. */
.marketing-scope {
  /* body scale, one step up from the app's reading size */
  --text-sm:13px; --text-base:15px; --text-lg:17px; --text-xl:19px;
  --lede:clamp(17px, 1.15rem + .35vw, 21px);

  /* display scale — fluid, no breakpoint jumps */
  --display-1:clamp(42px, 6.4vw, 82px);
  --display-2:clamp(30px, 3.9vw, 50px);
  --display-3:clamp(22px, 2.4vw, 30px);
  --leading-display:1.04;
  --leading-lede:1.5;

  /* the ascent rail: neutral where you are, amber where you're going */
  --rail-w:1px;
  --rail-from:hsl(38 12% 78%);
  --rail-to:var(--amber);

  --section-y:clamp(56px, 6.6vw, 96px);
  --measure:66ch;
}
[data-theme="dark"] .marketing-scope {
  /* Palette comes from :root now. The rail is marketing's own device, and it
     is the one thing here dark has to re-light. */
  --rail-from:hsl(35 8% 30%);
}
}
