/* SNAPSHOT of the Founder Engine design pack tokens.
   Source: /home/rudedog/founder-engine/fe-design-pack/2-components/tokens.css, copied 2026-11-22 after the components step was signed
   (2-components/SIGNED.md; small text white 85%, his pick). Only change from the source: the ground picture URL is site-absolute.
   To refresh: copy the source over this file and re-apply that one URL change. */
/* Founder Engine tokens. Step 3 of the design pack, built from the signed style sheet.
   Dusk is the main theme and the default. Paper is the second theme: put data-theme="paper" on <html>.
   Every colour has one job. Colour is only ever a state:
   gold = done, a win, or the one thing next. blue = working, people. coral = needs you, stalled. pale blue = info.
   Nothing in the components types a colour, size or timing twice: they all read these variables. */

:root {
  color-scheme: dark;

  /* ---------- the six brand hues (fixed) ---------- */
  --brand-ink: #161C34;
  --brand-ink-deep: #0E1326;
  --brand-blue: #4878A8;
  --brand-blue-lift: #8DB2D6;   /* blue on dark */
  --brand-gold: #F5CD75;
  --brand-pale: #CBDDED;
  --brand-coral: #D5603F;
  --brand-coral-lift: #F2A48D;  /* coral on dark */
  --brand-paper: #F4ECDA;
  --brand-tile: #FFFDF8;

  /* ---------- type ---------- */
  --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --w-light: 300;    /* big numbers and the greeting */
  --w-body: 400;
  --w-label: 500;
  --w-strong: 600;   /* labels, buttons, titles */
  --fs-body: 14px;
  --fs-small: 13px;
  --fs-label: 12px;  /* the floor for any word on screen */
  --fs-title: 18px;
  --fs-greeting: 30px;
  --fs-number: 128px;

  /* ---------- ground: FE's engine picture, with the dusk gradient as the load fallback ---------- */
  --bg: #0E1326;
  /* FE's own exploded engine picture, locked 22 Nov 2026. A light ink veil top and bottom lets glass and text read.
     The dusk gradient is only the colour shown while the picture loads. To swap the ground, change --ground-image. */
  --ground-fallback: linear-gradient(180deg, #0E1326 0%, #141A33 35%, #2A2238 70%, #4A2E35 100%);
  --ground-image: linear-gradient(180deg, rgba(14, 19, 38, .58) 0%, rgba(14, 19, 38, .46) 30%, rgba(14, 19, 38, .46) 62%, rgba(14, 19, 38, .62) 100%), url("/assets/fe-brand/ground-engine-exploded.jpg");
  --ground-position: center 62%;
  --sky: transparent;           /* the pale band behind the paper header */

  /* ---------- text ---------- */
  --text: #FFFFFF;
  --text-2: rgba(255, 255, 255, .85);   /* small text: white 85%, his pick 22 Nov */
  --text-3: rgba(255, 255, 255, .64);   /* faintest lines, one grade below */

  /* ---------- the state colours, as ink, fill and tint ---------- */
  --blue: #8DB2D6;
  --blue-ink: #8DB2D6;
  --blue-tint: rgba(141, 178, 214, .18);
  --blue-soft: rgba(141, 178, 214, .34);
  --gold: #F5CD75;
  --gold-ink: #F5CD75;
  --gold-tint: rgba(245, 205, 117, .18);
  --coral: #F2A48D;
  --coral-ink: #F2A48D;
  --coral-tint: rgba(242, 164, 141, .18);
  --coral-soft: rgba(242, 164, 141, .30);
  --pale: #CBDDED;
  --pale-tint: rgba(203, 221, 237, .10);
  --pale-soft: rgba(203, 221, 237, .16);
  --focus: #8DB2D6;

  /* ---------- the one solid button ---------- */
  --btn-bg: #F5CD75;
  --btn-fg: #161C34;
  --btn-hover: #F8D98C;
  --btn-tick-off: rgba(22, 28, 52, .28);
  --press-veil: rgba(22, 28, 52, .10);
  --on-fill: #161C34;           /* a tick or dot drawn on a blue or gold fill */
  --gold-card-fg: #161C34;
  --knob: #FFFFFF;
  --tab-on: rgba(255, 255, 255, .12);     /* the raised tile under the open tab */

  /* ---------- surfaces: raised, flat, pressed in ---------- */
  --tile: rgba(22, 28, 52, .56);           /* raised glass */
  --tile-flat: rgba(255, 255, 255, .04);   /* flat */
  --tile-sunk: rgba(10, 14, 28, .55);      /* pressed in */
  --tile-float: rgba(22, 28, 52, .72);     /* the frosted card that floats */
  --tile-solid: #161C34;                   /* menus, tooltips and dialogs: never see-through */
  --tile-hover: rgba(255, 255, 255, .10);
  --tile-glass-btn: rgba(255, 255, 255, .06);
  --blur: blur(22px) saturate(1.2);       /* used live by parts that float over content: the pending card, the dialog veil */
  --blur-float: blur(22px) saturate(1.2);
  --line: rgba(255, 255, 255, .13);        /* the hairline */
  --hair: rgba(255, 255, 255, .10);
  --off: rgba(203, 221, 237, .16);         /* a tick that is not filled */
  --chip-ring: rgba(255, 255, 255, .13);
  --shadow-ink: rgba(0, 0, 0, .55);        /* the drawn shadow under a slab */
  --sh-raised: 0 0 0 1px rgba(255, 255, 255, .13), inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 40px rgba(0, 0, 0, .25);
  --sh-raised-s: 0 0 0 1px rgba(255, 255, 255, .13), inset 0 1px 0 rgba(255, 255, 255, .06), 0 8px 18px rgba(0, 0, 0, .22);
  --sh-raised-tight: 0 0 0 1px rgba(255, 255, 255, .13), inset 0 1px 0 rgba(255, 255, 255, .06), 0 2px 5px rgba(0, 0, 0, .28);
  --sh-flat: 0 0 0 1px rgba(255, 255, 255, .13);
  --sh-sunk: inset 0 2px 6px rgba(0, 0, 0, .4), inset 0 -1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(255, 255, 255, .07);
  --sh-sunk-s: inset 0 1.5px 3px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(255, 255, 255, .09);
  --sh-pop: 0 0 0 1px rgba(255, 255, 255, .16), 0 22px 40px rgba(0, 0, 0, .45);
  --sh-float: 0 0 0 1px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .08), 0 22px 40px rgba(0, 0, 0, .35);
  --veil: rgba(14, 19, 38, .62);           /* behind a dialog */

  /* hatching means not available, and nothing else */
  --hatch: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='8'><path d='M-2 2l4-4M0 8l8 -8M6 10l4 -4' stroke='%23FFFFFF' stroke-opacity='0.2' stroke-width='1' fill='none'/></svg>");
  --hatch-coral: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='8'><path d='M-2 2l4-4M0 8l8 -8M6 10l4 -4' stroke='%23F2A48D' stroke-opacity='0.5' stroke-width='1' fill='none'/></svg>");
  --wall-coral: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='6' height='10'><rect x='1' y='1' width='2' height='8' rx='1' fill='%23F2A48D' fill-opacity='0.65'/></svg>");

  /* icon masks (tick, dash, chevron) so a tick can take any colour */
  --mask-tick: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5.5 12.5l4.2 4.2 8.8-9.4' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  --mask-dash: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 12h12' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/></svg>");
  --mask-chev: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 9.500l6 6 6-6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");

  /* ---------- line weights, radius ---------- */
  --lw-hair: 1px;
  --lw-icon: 1.5px;
  --lw-focus: 2px;
  --lw-tick: 3px;
  --r-chip: 6px;
  --r-btn: 10px;
  --r-field: 12px;
  --r-card: 16px;
  --r-tile: 24px;
  --r-full: 999px;

  /* ---------- spacing: open, with air before borders ---------- */
  --s1: 4px;    /* between ticks, 2 */
  --s2: 8px;    /* icon to label */
  --s3: 12px;   /* inside a card, rows */
  --s4: 16px;   /* card padding */
  --s5: 24px;   /* between tiles */
  --s6: 32px;   /* band to band */
  --s7: 48px;   /* hero air */
  --hit: 40px;  /* the smallest thing you press; 44 on a phone */
  --hit-sm: 32px;

  /* ---------- motion: four moves from the sheet, five worked out from them ---------- */
  --t-enter: 180ms;   --e-enter: ease-out;    /* rises 8 px, fades in */
  --t-press: 90ms;    --e-press: ease-in;     /* sinks 2 px, shadow tightens */
  --t-tick: 40ms;                             /* load: one tick at a time */
  --t-leave: 120ms;   --e-leave: ease-in;     /* fades, drops 5 px */
  --t-hover: 120ms;   --e-hover: ease-out;    /* hover: lifts 2 px, shadow widens */
  --t-type: 40ms;     /* type: a tick lands per character, and the answer rises in */
  --t-drag: 0ms;      /* drag: the value follows the hand with no easing */
  --t-scroll: 600ms;  /* scroll: the bar stays lit this long after the last move */
  --t-break: 40ms;    /* break: ticks turn coral one at a time. Nothing shakes */
  --t-done: 180ms;    /* done: the gold tick lands */
  --rise: 8px;
  --drop: 5px;
  --lift: 2px;
  --sink: 2px;
  --e-in: ease-in;
  --e-out: ease-out;

}

/* ================= second theme: warm paper, white tiles, ink text ================= */
[data-theme="paper"] {
  color-scheme: light;

  --bg: #F4ECDA;
  --ground-fallback: linear-gradient(#F4ECDA, #F4ECDA);
  --ground-image: none;
  --ground-position: center;
  --sky: #CBDDED;

  --text: #161C34;
  --text-2: #535667;
  --text-3: #6C6F7D;

  --blue: #4878A8;
  --blue-ink: #385B83;
  --blue-tint: #E4E9EC;
  --blue-soft: #C4D2DE;
  --gold: #F5CD75;
  --gold-ink: #544E46;
  --gold-tint: #FBEBC6;
  --coral: #D5603F;
  --coral-ink: #A04D3C;
  --coral-tint: #FAE9E0;
  --coral-soft: #F2CBBD;
  --pale: #CBDDED;
  --pale-tint: #E5EDF2;
  --pale-soft: #D5E3EF;
  --focus: #4878A8;

  --btn-bg: #161C34;
  --btn-fg: #FFFDF8;
  --btn-hover: #1F2D49;
  --btn-tick-off: rgba(255, 253, 248, .30);
  --press-veil: rgba(255, 253, 248, .10);
  --on-fill: #FFFDF8;
  --gold-card-fg: #161C34;
  --knob: #FFFDF8;
  --tab-on: #FFFDF8;

  --tile: #FFFDF8;
  --tile-flat: #FFFDF8;
  --tile-sunk: #E4DDCE;
  --tile-float: rgba(255, 253, 248, .84);
  --tile-solid: #FFFDF8;
  --tile-hover: #FFFFFF;
  --tile-glass-btn: #FFFDF8;
  --blur: none;
  --blur-float: blur(8px);
  --line: #D0CBBF;
  --hair: #E8E7E4;
  --off: #E1E0DF;
  --chip-ring: rgba(22, 28, 52, .10);
  --shadow-ink: rgba(22, 28, 52, .38);
  --sh-raised: 0 0 0 1px rgba(22, 28, 52, .07), 0 1px 2px rgba(22, 28, 52, .05), 0 12px 26px -14px rgba(22, 28, 52, .20);
  --sh-raised-s: 0 0 0 1px rgba(22, 28, 52, .07), 0 1px 2px rgba(22, 28, 52, .05), 0 5px 12px -7px rgba(22, 28, 52, .20);
  --sh-raised-tight: 0 0 0 1px rgba(22, 28, 52, .07), 0 1px 1px rgba(22, 28, 52, .10);
  --sh-flat: 0 0 0 1px rgba(22, 28, 52, .09);
  --sh-sunk: inset 0 2px 5px rgba(22, 28, 52, .11), inset 0 -1px 0 #FFFDF8, inset 0 0 0 1px rgba(22, 28, 52, .05);
  --sh-sunk-s: inset 0 1.5px 3px rgba(22, 28, 52, .14), inset 0 0 0 1px rgba(22, 28, 52, .05);
  --sh-pop: 0 0 0 1px rgba(22, 28, 52, .10), 0 18px 34px -12px rgba(22, 28, 52, .30);
  --sh-float: 0 0 0 1px rgba(22, 28, 52, .09), 0 2px 4px rgba(22, 28, 52, .06), 0 26px 34px -16px rgba(22, 28, 52, .40);
  --veil: rgba(22, 28, 52, .45);

  --hatch: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='8'><path d='M-2 2l4-4M0 8l8 -8M6 10l4 -4' stroke='%23161C34' stroke-opacity='0.2' stroke-width='1' fill='none'/></svg>");
  --hatch-coral: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='8'><path d='M-2 2l4-4M0 8l8 -8M6 10l4 -4' stroke='%23D5603F' stroke-opacity='0.5' stroke-width='1' fill='none'/></svg>");
  --wall-coral: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='6' height='10'><rect x='1' y='1' width='2' height='8' rx='1' fill='%23D5603F' fill-opacity='0.6'/></svg>");
}

/* phone and touch: every control is at least 44 by 44 */
@media (max-width: 820px), (pointer: coarse) {
  :root { --hit: 44px; --hit-sm: 44px; }
}
