/* flomi: THE token file for every owner and client page (Nov 20 2026, platform sweep lane B; the page-look decision in
   booking/HANDOFF-decisions.md, Nov 20 late morning). Before it, 10 stylesheets and 7 lib modules each carried their own
   :root; now a colour, a face, a step of the type scale or a reading width is written HERE once, and every page reads it.
   Three looks (HANDOFF-decisions.md, Nov 20 late morning):
     Paper         owner pages, team pages, the owner's texts, setup guides (the default :root below)
     Studio night  client spaces (<html data-skin="night">; the portal deploys a byte-identical copy, see below)
     Sky           flomi.co only (flomi/site/assets/css/azul-tokens.css; not here)
   Brand illustrations keep the brand cobalt (Nov 20).
   Copies: flomi/pipeline/portal/assets/css/tokens.css is this file byte for byte (`npm run tokens` copies it; lib/tokens.test.mjs
   fails while the two differ, and fails when a page module writes its own colour tokens again). flomi.co/b/ client pages read a
   third copy, flomi/site/assets/css/tokens.css (Nov 20 2026; the site is its own repo: commit the copy there). Every pair below was measured at
   4.5:1 or more (the numbers sit next to each pair); `npm run visual` re-checks the served pages with axe.
   Reverse: put a page's old :root block back (git history) and drop its <link> to this file. */

/* Faces: the site's own, self-hosted (the CSPs allow 'self' only). Figtree since Nov 23 2026 (Juan: "Yes, add it"), headlines at
   800 and body at 400, the lockup's wordmark face; flomi.co switched first (juanrnsto/flomi-site#187). The site's two files byte
   for byte (@fontsource-variable/figtree, wght 300-900), split by unicode-range: the latin file holds Spanish (á é í ó ú ñ ¿ ¡ ü),
   latin-ext downloads only for rarer letters. Never the Google CDN. Replaced Bricolage Grotesque (display) + Geologica (body),
   the Oct 9 2026 pick. Reverse: put the two old faces back (git history) and their names in --font-disp / --font-body. */
@font-face{font-family:"Figtree";font-style:normal;font-weight:300 900;font-display:swap;src:url("/assets/fonts/figtree-latin-ext-wght.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Figtree";font-style:normal;font-weight:300 900;font-display:swap;src:url("/assets/fonts/figtree-latin-wght.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* Jersey 10: flomi.co's pixel face (Oct 9 2026 pick: "pixel labels/numbers"), for a page's one eyebrow line above its title
   (the page refresh Juan picked, Nov 20 2026). OFL, the site's own 5KB Latin subset, byte for byte. */
@font-face{font-family:"Jersey 10";src:url("/assets/fonts/jersey10.woff2") format("woff2");font-weight:400;font-display:swap}

:root{
  /* ── Paper (light). Cobalt on #f4f4f1, the contact card's and the wordmark's paper. ── */
  --paper:#f4f4f1;          /* the ground */
  --card:#ffffff;           /* a raised surface */
  --sunk:#ebeae5;           /* a well, a track */
  --ink:#13204a;            /* 14.3:1 on paper */
  --muted:#5a6382;          /* 5.4:1 on paper, 5.9:1 on card, 4.9:1 on sunk */
  --line:#e3e2dc;
  --line-firm:#c6c9d2;
  --accent:#1f4fff;         /* cobalt: every action. 5.3:1 on paper */
  --accent-ink:#0f2fb8;     /* cobalt text on a cobalt tint, 8.5:1 on --tint */
  --on-accent:#ffffff;      /* 5.8:1 on cobalt */
  --tint:#e8eeff;
  --sky:#a9dcff;            /* brand sky + marigold: art and marks only, never text on paper */
  --marigold:#ffc21a;
  --them:#e9e9eb;           /* their bubble (13:1 with ink) */
  --us:#1f4fff;             /* our bubble, white words */
  --wait:#fff3c4;--wait-ink:#5c4400;   /* 8.3:1 */
  --warn:#b3261e;           /* 5.9:1 */
  --ok:#1b7f3b;             /* 4.6:1 */
  --coin:#8a5a00;--coin-soft:#fdf1dd;  /* costs money, 5.3:1 */
  --progress:#8a5a00;       /* in progress (the space's gold), 5.4:1 */
  --danger:#b3261e;         /* an error, 5.9:1 */
  /* printed objects (the space's milestone posters, receipts): the same ink in every look */
  --poster-gold:#6a4f0e;--poster-teal:#275a50;--poster-indigo:#3d52ac;--poster-ink:#f5efdd;--poster-sig:#f3cda1;
  /* status chips (team pages, Nov 16): bg / ink / dot */
  --st-us-bg:#fff0d4;--st-us-ink:#6e4300;--st-us-dot:#c77700;
  --st-them-bg:#e6ecff;--st-them-ink:#1838b0;--st-them-dot:#1f4fff;
  --st-ok-bg:#e1f3e6;--st-ok-ink:#135c2a;--st-ok-dot:#1b7f3b;
  --st-paused-bg:#ebebe8;--st-paused-ink:#4a4843;--st-paused-dot:#8a877f;
  /* the segmented switch (team pages) */
  --seg-track:rgba(19,32,74,.08);--seg-thumb:#ffffff;--seg-shadow:0 1px 2px rgba(0,0,0,.12),0 0 0 .5px rgba(0,0,0,.06);
  /* the pressed segment: the thumb with a hairline edge, drawn as a background (a pick may change colour and background only,
     never a shadow or border: lib/team-page.test.mjs), so it follows dark mode through --seg-thumb and --line-firm */
  --seg-on:linear-gradient(var(--seg-thumb),var(--seg-thumb)) padding-box,var(--line-firm) border-box;
  --lift:0 4px 0 rgba(19,32,74,.06),0 16px 28px -20px rgba(19,32,74,.34);
  --scrim:rgba(0,0,0,.4);

  /* ── Paper (dark): defined, never applied here. A page that follows the phone's dark mode maps these onto the names
     above (team.css does); the guides and the owner's texts stay light for every visitor, like flomi.co (s254). ── */
  --dk-paper:#121317;--dk-card:#1b1d23;--dk-sunk:#22252d;--dk-ink:#eef0f6;--dk-muted:#a3a9bb;--dk-line:#2b2f39;--dk-line-firm:#454b58;
  --dk-accent:#8fa8ff;--dk-accent-ink:#c3d0ff;--dk-on-accent:#0b1433;--dk-tint:#1a2348;--dk-them:#2c2c2e;--dk-us:#3d5afe;
  --dk-wait:#3a3216;--dk-wait-ink:#ffe08a;--dk-warn:#ff8a80;--dk-ok:#7fd69a;--dk-coin:#e0aa5a;--dk-coin-soft:#2e2312;--dk-progress:#e0aa5a;--dk-danger:#ff8a80;
  --dk-st-us-bg:#3a2a0c;--dk-st-us-ink:#ffd38a;--dk-st-us-dot:#f0a530;--dk-st-them-bg:#1b2550;--dk-st-them-ink:#bccbff;--dk-st-them-dot:#8aa4ff;
  --dk-st-ok-bg:#15301f;--dk-st-ok-ink:#97e2b0;--dk-st-ok-dot:#7fd69a;--dk-st-paused-bg:#2a2a2a;--dk-st-paused-ink:#cfccc5;--dk-st-paused-dot:#9a978f;
  --dk-seg-track:rgba(120,120,128,.24);--dk-seg-thumb:#5a5a5e;--dk-seg-shadow:0 1px 2px rgba(0,0,0,.35);
  --dk-lift:0 12px 28px -12px rgba(0,0,0,.45);

  /* ── Type ── */
  --font-disp:"Figtree",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-body:"Figtree",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --font-px:"Jersey 10",ui-monospace,monospace;   /* the eyebrow only; optically small, so ~18px reads like 13px caps */
  /* Utopia fluid type (utopia.fyi): 16px at 1.2 on a 320px screen → 18px at 1.25 on 1240px. */
  --step--2:clamp(0.6944rem, 0.6856rem + 0.0444vw, 0.72rem);
  --step--1:clamp(0.8333rem, 0.8101rem + 0.1159vw, 0.9rem);
  --step-0:clamp(1rem, 0.9565rem + 0.2174vw, 1.125rem);
  --step-1:clamp(1.2rem, 1.1283rem + 0.3587vw, 1.4063rem);
  --step-2:clamp(1.44rem, 1.3295rem + 0.5527vw, 1.7578rem);
  --step-3:clamp(1.728rem, 1.5648rem + 0.8161vw, 2.1973rem);
  --step-4:clamp(2.0736rem, 1.8395rem + 1.1704vw, 2.7466rem);
  --step-5:clamp(2.4883rem, 2.1597rem + 1.6433vw, 3.4332rem);
  /* Utopia fluid space, same two screens (16 → 18px base). */
  --space-3xs:clamp(0.25rem, 0.2391rem + 0.0543vw, 0.2813rem);
  --space-2xs:clamp(0.5rem, 0.4783rem + 0.1087vw, 0.5625rem);
  --space-xs:clamp(0.75rem, 0.7174rem + 0.163vw, 0.8438rem);
  --space-s:clamp(1rem, 0.9565rem + 0.2174vw, 1.125rem);
  --space-m:clamp(1.5rem, 1.4348rem + 0.3261vw, 1.6875rem);
  --space-l:clamp(2rem, 1.913rem + 0.4348vw, 2.25rem);
  --space-xl:clamp(3rem, 2.8696rem + 0.6522vw, 3.375rem);
  --space-2xl:clamp(4rem, 3.8261rem + 0.8696vw, 4.5rem);
  --space-3xl:clamp(6rem, 5.7391rem + 1.3043vw, 6.75rem);
  --space-s-l:clamp(1rem, 0.5652rem + 2.1739vw, 2.25rem);
  --gutter:16px;            /* the side gutter on a phone */

  /* ── The four widths (Nov 4 audit, proposal 4) ── */
  --w-read:640px;           /* a reading column (it holds ~84 characters of Figtree at 17px; the measure below caps the text) */
  /* The measure (Nov 20 2026, web-build.md "Every width, not one": body text 45-75 characters a line, capped in ch). Figtree's
     "0" is wide (0.641em against an average letter of 0.450em; a 1ch box holds ~1.42 characters), so 46ch ≈ 65 characters of
     text on average (fontTools on the sample guide's words, wght 400). It was 48ch in Geologica (also ≈ 68 on average); Figtree
     packs narrow letters (i l t ') tighter, so at 48ch a team-sends line reached 76 characters (visual:text, Nov 23 2026, when
     Figtree replaced Geologica). 46ch keeps the average near the classic 66 and the narrowest lines under 75. Checked at every
     width with `npm run visual:text`. A page caps p/li/dd with it; a centred one also needs margin-inline:auto. */
  --measure:46ch;
  --w-form:720px;           /* forms, guides, a single column of cards */
  --w-wide:1080px;          /* boards, grids, two columns */
  --w-full:100%;

  /* ── Motion (Nov 20 2026, the polish pass; web-build.md "Nothing pops: every show/hide animates in and out on the site's 2-3
     duration tokens"). NN/g "Executing UX Animations" puts UI motion at 100-500ms; Material 3 opens on an ease-out and closes a
     little faster on an ease-in. A fold opens on --dur-open and closes on --dur-close (assets/js/disclose.js reads both); a hover,
     a press or a colour change takes --dur-quick. Nothing a reader needs waits on one: a fold's words are there the moment it opens.
     Reduced motion sets all three to 0 below, so every rule written with them stops moving with no rule of its own. ── */
  --dur-quick:120ms;--dur-open:200ms;--dur-close:150ms;
  --ease-out:cubic-bezier(.22,.61,.36,1);--ease-in:cubic-bezier(.4,0,1,1);

  /* ── Shape ── */
  --r-sm:8px;--r-md:12px;--r-card:16px;--r-pill:999px;

  /* ── Soft fills (web-build.md, Nov 18: secondary controls are a quiet fill of the ink into the page, never an outline or a
     second hue; the accent fills only the one main action). Mixed from the names above, so they follow every look and dark. ── */
  --soft:color-mix(in srgb,var(--ink) 6%,transparent);      /* chips, jump pills, a choice */
  --soft-2:color-mix(in srgb,var(--ink) 11%,transparent);   /* a secondary button, a pressed choice */
  color-scheme:light;
}

@media (prefers-reduced-motion:reduce){:root{--dur-quick:0ms;--dur-open:0ms;--dur-close:0ms}}

/* Optical alignment (Nov 20 2026, part C of the polish pass; Juan: the "M" badge beside "Matt and Yaz: their pick on round 2" sat
   off the words' middle). A row that leads with a mark (an initial, a step number, a tick, a dot) sets --text-mid to half the
   height of its words' capitals (.5cap) or, for an all-lowercase label, its lowercase letters (.5ex). Registered as a length, it
   is worked out in the ROW's font and inherited as pixels, so the mark (in its own, smaller font) can read it. The mark sits on
   the row's first baseline (align-items:baseline: the first line, however the words wrap) and moves by `.5cap - var(--text-mid)`
   (a mark whose letter is trimmed to its capitals, text-box: cap alphabetic) or `50% - var(--text-mid)` (an empty mark, whose
   baseline is its bottom edge). Baseline + the font's own cap height, never the line box: Chrome rounds a font's ascent and
   descent to whole pixels, which put glyphs 0.5-0.9px off at small sizes. `npm run visual:text` fails a mark >0.5px off. */
@property --text-mid{syntax:"<length>";inherits:true;initial-value:0px}

/* ── Studio night: a client's space. Always dark (the work glows on dark); same names, so a page swaps looks with one
   attribute. #191919 + cyan is the studio's locked register (portal flomi-skin.css, Jul 17 2026). ── */
/* CHOSEN — how a picked option looks, one step below the main button (Nov 21 2026, Juan: "see if everything that's in that dark
   brown color … is best in that color, or if we should have like different shades depending on how important it is").
   Three levels, darkest to lightest: (1) the one main action fills with the accent; (2) a CHOSEN option (a size, Delivery,
   the hand-off, the tip, a day or time) is a light tint of the accent (mixed into the soft fill, so it stays the page's own warmth) with a 2px ring in the text-safe accent and ink words;
   (3) everything else is the soft fill. Before this a chosen option filled with INK, which on a one-hue palette (a coffee shop's look:
   ink #291405 vs accent #6c443c) is DARKER than the Pay button, so three picked options out-weighed the one action.
   Web-checked Nov 21 2026: Material 3 (filled = primary, tonal = secondary; a selected segment uses a tonal container, not
   primary), UX Movement "overusing accent colors" (a weaker shade of the accent for secondary emphasis). The ring carries the
   state at >= 3:1 (WCAG 1.4.11) where a pale accent's tint barely shows. Declared on every element so each page's own
   --accent is the one mixed (a shop look sets it on body). Reverse: point the users back at var(--ink) / var(--card). */
:where(*){--chosen-fill:color-mix(in srgb,var(--accent) 18%,var(--soft,var(--card)));--chosen-ink:var(--ink);--chosen-ring:inset 0 0 0 2px var(--accent-text,var(--accent))}

:root[data-skin="night"]{
  --paper:#191919;--card:#232323;--sunk:#2a2a2a;
  --ink:#fafafa;            /* 16.8:1 */
  --muted:#a1a1aa;          /* 6.9:1 on paper, 6.1:1 on card */
  --line:#333333;--line-firm:#4a4a4a;
  --accent:#92dce5;         /* cyan = "this needs you". 11.4:1 on paper */
  --accent-ink:#6ec1ce;
  --on-accent:#191919;      /* 11.4:1 on cyan */
  --tint:rgba(146,220,229,.12);
  --them:#2c2c2e;--us:#2b5cff;          /* our bubble, white words 5.2:1 */
  --wait:#2e2a17;--wait-ink:#ffe08a;    /* 11.2:1 */
  --warn:#ec8e8e;--ok:#7fd1a7;--coin:#e8be6b;--coin-soft:#2e2a17;
  --progress:#e8be6b;--danger:#ec8e8e;   /* 9.0:1 and 6.6:1 on card */
  --seg-track:rgba(250,250,250,.08);--seg-thumb:#3a3a3a;--seg-shadow:0 1px 2px rgba(0,0,0,.35);
  --lift:none;
  color-scheme:dark;
}
