/* Tempo (tiredpapi) design tokens - one set of custom properties, five themes.
   Activate a theme with <html data-tempo-theme="original|mina|gym|halloween|funky">.
   Components only ever read these variables; theme character beyond colour lives in themes.css.
   Fonts: /fonts/ (bundled, OFL). Original is also the default when no theme attribute is set. */

/* mina (rev 4, coordinator decision C1): EXACTLY production's stacks (public/themes.css):
   body     Georgia,'Times New Roman',serif           -> Georgia,'Tempo Serif','Times New Roman',serif   (Lora only as fallback after Georgia)
   headings 'Bradley Hand','Segoe Print','Chalkboard SE',cursive -> + 'Tempo Hand' (Caveat, OFL) before cursive,
            so devices without those three fonts get a handwriting face that renders Czech (verified in checks/out/glyph-sheet.png)
   Lora: fonts/lora-OFL.txt. Caveat: fonts/caveat-OFL.txt (latin + latin-ext subsets, 500/700). */
@font-face{font-family:'Tempo Serif';src:url('/fonts/tempo-serif-lora-vf.ttf') format('truetype');font-weight:400 700;font-display:swap}
@font-face{font-family:'Tempo Hand';src:url('/fonts/tempo-hand-caveat-latin-500.woff2') format('woff2');font-weight:400 500;font-display:swap;size-adjust:118%;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}
@font-face{font-family:'Tempo Hand';src:url('/fonts/tempo-hand-caveat-latin-ext-500.woff2') format('woff2');font-weight:400 500;font-display:swap;size-adjust:118%;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:'Tempo Hand';src:url('/fonts/tempo-hand-caveat-latin-700.woff2') format('woff2');font-weight:600 700;font-display:swap;size-adjust:118%;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}
@font-face{font-family:'Tempo Hand';src:url('/fonts/tempo-hand-caveat-latin-ext-700.woff2') format('woff2');font-weight:600 700;font-display:swap;size-adjust:118%;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:'T4 Anton';src:url('/fonts/v4-anton-regular.ttf') format('truetype');font-display:swap}
@font-face{font-family:'T4 Oswald';src:url('/fonts/v4-oswald-vf.ttf') format('truetype');font-weight:200 700;font-display:swap}
@font-face{font-family:'T4 Chakra';src:url('/fonts/v4-chakrapetch-bold.ttf') format('truetype');font-weight:700;font-display:swap}
@font-face{font-family:'T4 BlackOps';src:url('/fonts/v4-blackopsone-regular.ttf') format('truetype');font-display:swap}
@font-face{font-family:'T4 Pirata';src:url('/fonts/v4-pirataone-regular.ttf') format('truetype');font-display:swap}
@font-face{font-family:'T4 Rubik';src:url('/fonts/v4-rubik-vf.ttf') format('truetype');font-weight:300 900;font-display:swap}
@font-face{font-family:'T4 Shrikhand';src:url('/fonts/v4-shrikhand-regular.ttf') format('truetype');font-display:swap}
@font-face{font-family:'T4 Righteous';src:url('/fonts/v4-righteous-regular.ttf') format('truetype');font-display:swap}

/* ---------- Theme-independent scales ---------- */
:root{
  /* spacing (4 px base) */
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-5:20px; --s-6:24px; --s-7:32px; --s-8:40px; --s-9:56px;
  /* type scale (px / line-height) - mobile; desktop bumps display only */
  --t-cap:.75rem;   --lh-cap:1.35;   /* kicker, labels (uppercase allowed) */
  --t-sm:.84375rem;  --lh-sm:1.4;     /* meta, helper text */
  --t-body:.9375rem;  --lh-body:1.45;  /* lists, rows */
  --t-read:1rem;  --lh-read:1.6;   /* long reading text (exercise detail, how-to) - S5.5 >= 16 px */
  --t-h3:1rem;    --t-h2:1.375rem;  --t-h1:1.75rem;  --t-display:2.5rem;
  /* targets */
  --tap:44px; --tap-l:56px; --tap-xl:64px;
  /* motion */
  --ease:cubic-bezier(.2,.7,.2,1); --dur:140ms;
  --z-bar:30; --z-scrim:40; --z-sheet:50; --z-toast:55; --z-kbd:60;
}

/* ---------- original: calm blue on cool grey, system type (one identity for login and app) ---------- */
:root,:root[data-tempo-theme=original]{
  --c-link:#1765d8; /* app addition (D1): text-safe brand colour for links and legacy accent text (funky: never orange text) */
  --c-bg:#f5f7f9; --c-surface:#ffffff; --c-surface-2:#eef3f8; --c-ink:#172d3d; --c-muted:#586876;
  --c-line:#e1e7ec; --c-ctl:#7a8a98; --c-primary:#1765d8; --c-on-primary:#ffffff; --c-accent:#186fee; --c-focus:#1765d8;
  --c-done-bg:#dff3e8; --c-done-line:#8fcfaa; --c-done-ink:#155c3a;
  --c-post-bg:#fff1d1; --c-post-line:#e9c776; --c-post-ink:#6b4b00;
  --c-skip-bg:#eceff3; --c-skip-line:#b7c0c9; --c-skip-ink:#3d4b57;
  --c-err-bg:#fde4e4; --c-err-line:#d9534f; --c-err-ink:#7d1d1d;
  --c-warn-bg:#fff1d1; --c-warn-ink:#6b4b00; --c-ok-ink:#155c3a;
  --c-tennis:#a35f00; --c-scrim:#0f1e2a73; --c-skeleton:#e4e9ee;
  --f-ui:-apple-system,BlinkMacSystemFont,'Segoe UI',Inter,Roboto,sans-serif; --f-display:var(--f-ui); --f-num:var(--f-ui); --f-data:var(--f-ui); --f-label:var(--f-ui);
  --w-display:700; --w-title:700; --tt-label:uppercase; --ls-label:1.1px; --ls-display:-1.4px;
  --r-card:14px; --r-ctl:12px; --r-pill:100px; --bw:1px; --bw-ctl:1.5px;
  --sh-card:0 1px 2px #172d3d0f,0 4px 14px #172d3d0d; --sh-btn:none; --sh-pop:0 12px 40px #172d3d29;
  --c-saved-bg:#f4fbf7; --c-tennis-bg:#f4ece0; /* = done-bg 35 % (dark themes: 12 %, so coloured text keeps >= 4.5) / tennis 12 % over surface, as solid tokens (no color-mix behind text) */
}
/* ---------- mina (approved): cream paper, deep green, Georgia body + handwritten headings (production stacks), pastel actions ---------- */
:root[data-tempo-theme=mina]{
  --c-link:#294f3e; /* app addition (D1): text-safe brand colour for links and legacy accent text (funky: never orange text) */
  --c-bg:#f0ece3; --c-surface:#fffdf7; --c-surface-2:#edf3e6; --c-ink:#253e32; --c-muted:#596b60;
  --c-line:#d8dfd1; --c-ctl:#7a8875; --c-primary:#294f3e; --c-on-primary:#ffffff; --c-accent:#a6b287; --c-focus:#294f3e;
  --c-done-bg:#cfe8d8; --c-done-line:#a9d3b8; --c-done-ink:#1f4a35;
  --c-post-bg:#fdf0cf; --c-post-line:#efd99b; --c-post-ink:#5b4614;
  --c-skip-bg:#ebe7f0; --c-skip-line:#c9c0d6; --c-skip-ink:#4a3d5c;
  --c-err-bg:#f7dede; --c-err-line:#c98585; --c-err-ink:#6b2c2c;
  --c-warn-bg:#fdf0cf; --c-warn-ink:#5b4614; --c-ok-ink:#1f4a35;
  --c-tennis:#8a5a14; --c-scrim:#1f2b2466; --c-skeleton:#e3e1d8;
  --f-ui:Georgia,'Tempo Serif','Times New Roman',serif; --f-display:'Bradley Hand','Segoe Print','Chalkboard SE','Tempo Hand',cursive; --f-title:var(--f-display); --f-num:var(--f-ui); --f-data:var(--f-ui); --f-label:var(--f-ui);
  --w-display:500; --w-title:500; --tt-label:uppercase; --ls-label:1.1px; --ls-display:-.5px; /* production: font-weight:500; letter-spacing:-.5px */
  --r-card:18px; --r-ctl:12px; --r-pill:100px; --bw:1px; --bw-ctl:1.5px;
  --sh-card:0 1px 2px #2b3f3310,0 6px 18px #2b3f330d; --sh-btn:none; --sh-pop:0 12px 40px #1f2b2433;
  --c-saved-bg:#eef6ec; --c-tennis-bg:#f1e9dc; /* = done-bg 35 % (dark themes: 12 %, so coloured text keeps >= 4.5) / tennis 12 % over surface, as solid tokens (no color-mix behind text) */
}
/* ---------- gym (Gym freak): blacked-out floor, lime + signal orange, condensed type, LED numerals ---------- */
:root[data-tempo-theme=gym]{
  --c-link:#d4ff1e; /* app addition (D1): text-safe brand colour for links and legacy accent text (funky: never orange text) */
  --c-bg:#0c0d0b; --c-surface:#171915; --c-surface-2:#21241d; --c-ink:#f3f4ec; --c-muted:#b3b8a6;
  --c-line:#3b3f34; --c-ctl:#666c5a; --c-primary:#d4ff1e; --c-on-primary:#0c0d0b; --c-accent:#ff4a24; --c-focus:#d4ff1e;
  --c-done-bg:#d4ff1e; --c-done-line:#d4ff1e; --c-done-ink:#0c0d0b;
  --c-post-bg:#171915; --c-post-line:#ffc04d; --c-post-ink:#ffc04d;
  --c-skip-bg:#171915; --c-skip-line:#666c5a; --c-skip-ink:#d6dacb;
  --c-err-bg:#2a0d07; --c-err-line:#ff4a24; --c-err-ink:#ffd9cf;
  --c-warn-bg:#231d0e; --c-warn-ink:#ffc04d; --c-ok-ink:#d4ff1e;
  --c-tennis:#ffc04d; --c-scrim:#000000b3; --c-skeleton:#23261f;
  --f-ui:'T4 Oswald','Arial Narrow',sans-serif; --f-display:'T4 Anton',Impact,sans-serif; --f-title:'T4 Anton',Impact,sans-serif; --f-num:'T4 Chakra',monospace; --f-data:'T4 Chakra',monospace; --f-label:'T4 Oswald',sans-serif; --f-read:system-ui,Inter,sans-serif;
  --w-display:400; --w-title:400; --tt-label:uppercase; --ls-label:3px; --ls-display:.5px;
  --r-card:2px; --r-ctl:2px; --r-pill:2px; --bw:2px; --bw-ctl:2px;
  --sh-card:none; --sh-btn:4px 4px 0 #ff4a24; --sh-pop:0 0 0 2px #d4ff1e;
  color-scheme:dark;
  --c-saved-bg:#2e3516; --c-tennis-bg:#332d1c; /* = done-bg 35 % (dark themes: 12 %, so coloured text keeps >= 4.5) / tennis 12 % over surface, as solid tokens (no color-mix behind text) */
}
/* ---------- halloween: moonlit night shift - aubergine, pumpkin, slime; blackletter titles, arched "tombstone" cards ---------- */
:root[data-tempo-theme=halloween]{
  --c-link:#ff8a2a; /* app addition (D1): text-safe brand colour for links and legacy accent text (funky: never orange text) */
  --c-bg:#120b1c; --c-surface:#1f1630; --c-surface-2:#2a1f40; --c-ink:#f3ecff; --c-muted:#bcaed6;
  --c-line:#3d3057; --c-ctl:#7d6c9c; --c-primary:#ff8a2a; --c-on-primary:#1a0d00; --c-accent:#9cff57; --c-focus:#9cff57;
  --c-done-bg:#9cff57; --c-done-line:#9cff57; --c-done-ink:#102006;
  --c-post-bg:#1f1630; --c-post-line:#ffc46b; --c-post-ink:#ffc46b;
  --c-skip-bg:#1f1630; --c-skip-line:#7d6c9c; --c-skip-ink:#d9cdee;
  --c-err-bg:#3a0f1c; --c-err-line:#ff5c7a; --c-err-ink:#ffd6de;
  --c-warn-bg:#2e2212; --c-warn-ink:#ffc46b; --c-ok-ink:#9cff57;
  --c-tennis:#ffc46b; --c-scrim:#07030dcc; --c-skeleton:#2a1f40;
  --f-ui:'T4 Rubik',system-ui,sans-serif; --f-display:'T4 Pirata',serif; --f-title:'T4 Pirata',serif; --f-num:'T4 Rubik',sans-serif; --f-data:'T4 Rubik',sans-serif; --f-label:'T4 Rubik',sans-serif;
  --w-display:400; --w-title:400; --tt-label:uppercase; --ls-label:2px; --ls-display:.5px;
  --r-card:28px 28px 10px 10px; --r-ctl:14px; --r-pill:100px; --bw:1.5px; --bw-ctl:1.5px;
  --sh-card:0 0 0 1px #00000040,0 10px 30px #00000066; --sh-btn:0 0 18px #ff8a2a40; --sh-pop:0 16px 50px #000000aa;
  color-scheme:dark;
  --c-saved-bg:#2e3235; --c-tennis-bg:#3a2b37; /* = done-bg 35 % (dark themes: 12 %, so coloured text keeps >= 4.5) / tennis 12 % over surface, as solid tokens (no color-mix behind text) */
}
/* ---------- funky: 70s sticker sheet - cream, chocolate outlines, tangerine fills, hard offset shadows ---------- */
:root[data-tempo-theme=funky]{
  --c-link:#1d6f68; /* app addition (D1): text-safe brand colour for links and legacy accent text (funky: never orange text) */
  --c-bg:#fff3df; --c-surface:#fffaf0; --c-surface-2:#ffe6bf; --c-ink:#3a1a0a; --c-muted:#6e4a33;
  --c-line:#e8cfa8; --c-ctl:#8a6247; --c-primary:#f2611d; --c-on-primary:#2a1004; --c-accent:#c22c62; --c-focus:#1d6f68;
  --c-done-bg:#cdeac0; --c-done-line:#3a1a0a; --c-done-ink:#1f4a1a;
  --c-post-bg:#ffd88a; --c-post-line:#3a1a0a; --c-post-ink:#4a2a00;
  --c-skip-bg:#e3d7f1; --c-skip-line:#3a1a0a; --c-skip-ink:#3f2560;
  --c-err-bg:#f9c6d6; --c-err-line:#3a1a0a; --c-err-ink:#6a1430;
  --c-warn-bg:#ffd88a; --c-warn-ink:#4a2a00; --c-ok-ink:#1f4a1a;
  --c-tennis:#1d6f68; --c-scrim:#3a1a0a80; --c-skeleton:#f6e2c2;
  --f-ui:'T4 Rubik',system-ui,sans-serif; --f-display:'T4 Shrikhand',serif; --f-title:'T4 Shrikhand',serif; --f-num:'T4 Righteous',sans-serif; --f-data:'T4 Rubik',sans-serif; --f-label:'T4 Righteous',sans-serif;
  --w-display:400; --w-title:400; --tt-label:none; --ls-label:.3px; --ls-display:0;
  --r-card:24px; --r-ctl:16px; --r-pill:100px; --bw:2.5px; --bw-ctl:2.5px;
  --sh-card:5px 5px 0 #3a1a0a; --sh-btn:3px 3px 0 #3a1a0a; --sh-pop:6px 6px 0 #3a1a0a;
  --c-saved-bg:#eef4df; --c-tennis-bg:#e4e9e0; /* = done-bg 35 % (dark themes: 12 %, so coloured text keeps >= 4.5) / tennis 12 % over surface, as solid tokens (no color-mix behind text) */
}
/* fallbacks for tokens a theme does not override */
:root{--f-title:var(--f-display);--f-read:var(--f-ui)}
