/* Copied from vix-home-lab/system/tokens.css by design-lab/vix-inner-lock2/render.mjs, less its texture tokens: the inner pages are flat (11/12). */
/* Vix identity tokens, Lock 2 (locked 2026-11-02). The cover look (lab direction B) refined with
   David's reference file v2. The why behind every value is in docs/vix-site/DESIGN.md.
   Every token carries a one-line usage note. Parts built in Lock 3 read these and nothing else,
   so turning a value here changes every part at once (the token faders, COMPOSER-KIT.md 4).
   Loaded after the page's own styles by look 7 and the cover in motion (design-lab/build-looks.sh). */

:root {
  /* ---- color, light (the default until Zoe's first pass; build both, David file 08.2) ---- */
  --bg: #f8f6f1;            /* page paper: off-white, printed not screen white (Anthropic shell) */
  --ink: #121212;           /* the one ink: headlines, body, rules, the button */
  --muted: #5c5a55;         /* source lines, captions, secondary labels; 6.4:1 on paper */
  --line: #e0dbd0;          /* thin rules between items; never a card border */
  --surface: #efebe2;       /* quiet fills behind photos and slots before they load */
  --orb: #5b2fe6;           /* the only saturated color: the orb, the eyebrow, rising marks on sourced numbers */
  --accent: var(--orb);     /* alias kept for template rules; never use it for anything the orb would not be */
  --accent-ink: #fff;       /* text on the orb color, if it ever carries text */
  --cover-paper: #ece6f7;   /* the cover frame's stock: a tint of the orb, so art reads as one print run */
  --cover-ink: #1d1640;     /* masthead, issue number and cover line printed on the cover */
  --deep: #1d1640;          /* the inverted band (It all reports back) and the spread backdrop */
  --deep-ink: #f3f0ff;      /* text on the deep band */
  --deep-surface: #2a2256;  /* the dashboard panel inside the deep band */
  --btn-fill: var(--deep);  /* the fill that slides into the button on hover */

  /* ---- type: two families, no italics (#81 love Gloock, #82 no italic subhead, #89 too many fonts) ---- */
  --display: "Gloock", "Gloock text fallback", Georgia, serif;   /* headlines, masthead, issue numbers, big sourced numbers */
  --body: "Figtree", "Figtree fallback", system-ui, sans-serif; /* everything you read: ledes, labels, source lines, buttons */
  /* (the two fallbacks are Georgia and Helvetica cut to the web fonts' measure, fonts.css: a late font moves nothing) */
  --mono: var(--body);      /* no third family: labels that were mono set in Figtree caps instead */
  --dw: 400;                /* display weight: Gloock has one weight, contrast does the work */
  --track: 0;               /* display tracking: the serif needs none */
  --lead: .95;              /* display leading for h1 */
  --h1: clamp(46px, 6.2vw, 92px);   /* hero headline, uppercase, one per page */
  --h2: clamp(34px, 4.8vw, 62px);   /* chapter headlines (Know why they buy.) */
  --h3: clamp(22px, 2.2vw, 28px);   /* case titles and sub-heads inside a chapter */
  --num: clamp(64px, 12vw, 168px);  /* the stat slam: one sourced number per chapter at most */
  --text: 17px;             /* body size; 1.55 leading */
  --small: 14px;            /* source lines and captions; never smaller */
  --label: 13px;            /* small-caps labels on thin rules (letter-spacing .08em, uppercase) */

  /* ---- space and layout ---- */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; /* spacing steps; nothing off this scale inside a part */
  --gut: clamp(16px, 4vw, 56px);    /* page gutter; 16px on a phone (no sideways scroll) */
  --sy: clamp(72px, 10vw, 136px);   /* section spacing: roomy, one job per screen */
  --max: 1240px;            /* content width */
  --measure: 52ch;          /* reading measure for ledes and story text */

  /* ---- shape: sharp, ruled, printed (the cover, not a rounded bento) ---- */
  --r: 2px;                 /* tiles, photos, mockups: just off square, like trimmed paper */
  --btn-r: 3px;             /* buttons */
  --rule: 2px;              /* the heavy rule above a group (cases, cards) */
  --spine: 10px;            /* the ink spine down the left of a cover; 6px on small covers */


  /* ---- motion: one language. The orb moves only with a job: on load, on results (David file 02) ---- */
  --ease: cubic-bezier(.2, .7, .2, 1);  /* every move eases out: things arrive, they do not bounce */
  --t-quick: .2s;           /* hover and press feedback */
  --t-move: .45s;           /* cards lifting, the button fill, the spread opening */
  --t-reveal: .7s;          /* words and sections rising in, once */
  --t-orb-load: 1.6s;       /* the orb assembling from scattered dots on load */
  --t-orb-wake: 1.4s;       /* the orb turning once while a sourced number counts up */

  color-scheme: light;
}

:root[data-theme="dark"] {
  /* ---- color, dark: "dark mode is the swagger" (Palantir: the orb as the one light in an empty frame) ---- */
  --bg: #0f0d13;            /* night paper */
  --ink: #efe9df;           /* paper-white ink */
  --muted: #a8a2b4;         /* source lines and captions; 7.8:1 on night paper */
  --line: #2b2733;          /* thin rules */
  --surface: #1a1720;       /* fills behind photos and slots */
  --orb: #8a6dff;           /* the orb, lifted so it glows; 5.2:1 on night paper, so the eyebrow reads at any size */
  --cover-paper: #17121f;   /* the cover frame at night: the orb is the only light on it */
  --cover-ink: #efe9df;     /* masthead and cover line at night */
  --deep: #1d1640;          /* the inverted band stays violet-black: a step up from night paper */
  --deep-ink: #f3f0ff;
  --deep-surface: #2a2256;
  --btn-fill: #2a2256;      /* button hover fill at night */
  color-scheme: dark;
}

/* ---- added by the site build (design-lab/vix-inner-lock2/render.mjs flatTokens), not in the lab's file ---- */
:root { --gain: #12754a; --gain-lift: #58c98a; } /* a result that went the right way: its small marks; AA for small text on paper and band. --gain-lift is the same green for a dark surface inside a light page (a night figure) */
:root[data-theme="dark"] { --gain: #58c98a; } /* the same green lifted for night paper */
.sec.deep { --gain: #58c98a; }                /* and on the deep band, which is dark in both themes (8.2 to 1 on it) */
