@import url('mozeq-petr.css');   /* Petr's tuned readability values (MOZEQ Čitelnost), var(--mz-petr-*) - must stay the first rule */
/* =====================================================================
   MOZEQ DESIGN TOKENS  (v1 · 2026-10-28 · Petr Mihle)
   One source for colour, type, space, radius, shadow and motion.
   Every MOZEQ page and app loads this file:
     <link rel="stylesheet" href="http://localhost:50000/assets/mozeq-tokens.css">
   Rules and examples: ~/MOZEQ/system/DESIGN-SYSTEM.md · live: http://localhost:50000/design
   ===================================================================== */
@font-face { font-family: Outfit; src: url('outfit.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Doto; src: url('doto.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  /* ---- brand ---- */
  --mz-lime: #c6ff1a;            /* the one accent. Text ON lime is always --mz-on-lime */
  --mz-on-lime: #0a0a0a;
  --mz-lime-soft: rgba(198, 255, 26, .10);   /* selected row, hover wash */
  --mz-lime-line: rgba(198, 255, 26, .28);   /* selected outline */
  --mz-lime-glow: 0 0 22px rgba(198, 255, 26, .28);
  --mz-olive: #4d6b00;           /* lime's stand-in for SMALL text on light backgrounds only */
  --mz-accent-text: #c6ff1a;     /* accent used AS TEXT: lime on dark, olive on light (switches below) */

  /* ---- surfaces (dark is the default) ---- */
  --mz-bg: #050504;              /* page */
  --mz-panel: #0d0c09;           /* sunk areas, inputs, thumbnails */
  --mz-card: #24221c;            /* popups, skill cards */
  --mz-glass: rgba(24, 23, 19, .72);         /* floating: dock, tray, search */
  --mz-glass-blur: blur(22px) saturate(160%);
  --mz-scrim: rgba(5, 5, 4, .62);            /* behind a popup */

  /* ---- text ---- */
  --mz-text: #e8e2d2;            /* cream: headings, values */
  --mz-text-2: #b9b19c;          /* warm: secondary values */
  --mz-mute: #8d8775;            /* labels, captions, meta */
  --mz-faint: #615c50;           /* placeholders, disabled */

  /* ---- lines ---- */
  --mz-line: rgba(232, 226, 210, .13);       /* card and dock borders */
  --mz-line-2: rgba(232, 226, 210, .22);     /* outline buttons, dividers you should see */
  --mz-rule: #e8e2d2;            /* the 2px cream rule on top of every homepage widget */

  /* ---- status + markets ---- */
  --mz-ok: #c6ff1a;  --mz-warn: #ffb020;  --mz-bad: #ff5a4f;
  --mz-cz: #c6ff1a;  --mz-sk: #e8e2d2;  --mz-pl: #ffb020;   /* Krówka market colours */

  /* ---- type ---- */
  --mz-font: Outfit, system-ui, -apple-system, sans-serif;
  --mz-font-pixel: Doto, ui-monospace, monospace;  /* ONLY the MOZEQ home dashboard + presentations (Petr 31. 10.); apps use --mz-font */
  --mz-fs-label: 11px;    /* UPPERCASE labels, 1.6px tracking - the smallest size allowed */
  --mz-fs-sm: 12.5px;     /* meta, captions */
  --mz-fs-base: 14px;     /* body, rows, inputs */
  --mz-fs-md: 16px;       /* card titles */
  --mz-fs-lg: 20px;       /* popup titles */
  --mz-fs-xl: 28px;       /* page titles */
  --mz-fs-display: 44px;  /* hero numbers (Doto) */
  --mz-track-label: 1.6px;
  --mz-track-head: 3.6px; /* widget headers: MICRO APPS */
  --mz-lh: 1.45;

  /* ---- space (4-point) ---- */
  --mz-s1: 4px; --mz-s2: 8px; --mz-s3: 12px; --mz-s4: 16px; --mz-s5: 24px; --mz-s6: 32px; --mz-s7: 48px;

  /* ---- radius ---- */
  --mz-r-xs: 6px;    /* kbd, kind tags */
  --mz-r-sm: 10px;   /* buttons, rows, inputs */
  --mz-r-md: 14px;   /* thumbnails, cards */
  --mz-r-lg: 18px;   /* dock, tray, search */
  --mz-r-pill: 999px;
  /* homepage widgets keep radius 0 + the cream top rule: that is the MOZEQ signature */

  /* ---- shadow ---- */
  --mz-sh-float: 0 12px 34px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
  --mz-sh-hard: 10px 10px 0 var(--mz-lime);   /* popups: the hard lime offset */

  /* ---- motion ---- */
  --mz-fast: 150ms; --mz-mid: 280ms; --mz-slow: 500ms;
  --mz-ease: cubic-bezier(.2, .8, .3, 1);
  --mz-spring: cubic-bezier(.3, 1.5, .4, 1);

  /* ---- layers ---- */
  --mz-z-widget: 10; --mz-z-dock: 60; --mz-z-popup: 90; --mz-z-tray: 2147483500; --mz-z-capture: 2147483600;
}

/* ---- light pages: lime never as text; it lives inside a dark chip; small accents go olive ---- */
:root[data-theme="light"] {
  --mz-bg: #f4f1ea; --mz-panel: #ebe6da; --mz-card: #ffffff;
  --mz-glass: rgba(255, 255, 255, .78); --mz-scrim: rgba(20, 19, 15, .35);
  --mz-text: #1a1914; --mz-text-2: #3d3a31; --mz-mute: #6b665a; --mz-faint: #9a9484;
  --mz-line: rgba(26, 25, 20, .12); --mz-line-2: rgba(26, 25, 20, .22); --mz-rule: #1a1914;
  --mz-accent-text: #4d6b00;
  --mz-lime-soft: rgba(77, 107, 0, .08); --mz-lime-line: rgba(77, 107, 0, .35);
  --mz-sh-float: 0 12px 30px rgba(20, 19, 15, .14), inset 0 1px 0 rgba(255, 255, 255, .7);
  --mz-sh-hard: 10px 10px 0 #1a1914;
}

@media (prefers-reduced-motion: reduce) {
  :root { --mz-fast: 0ms; --mz-mid: 0ms; --mz-slow: 0ms; }
}
