/* FreeSolution Workout: the colours and the shapes (tokens) of the one design of the app, the Free Solution Workout design system (claude.ai), in light and in dark.
   theme.js puts data-mode on <html> ("light" or "dark": what the person chose, or what the device prefers); a page without it wears the light colours.
   Any other element that carries data-mode wears that mode on its own. workout.css only uses the tokens. Both modes define the same tokens (a test checks that).
   The colours are the tokens of the design system laid onto the tokens of the app: brand = --accent (fills: the primary button, the pill of the active tab, a selected chip),
   on-brand = --accent-text, accent-text = --accent-ink (orange as text), brand-soft = --accent-soft, brand-deep = --accent-deep with on-brand-deep = --on-accent-deep (a pressed
   button), surface = --bg, surface-raised = --surface, surface-warm = --surface-2 and the tab bar, ink / ink-muted = --text / --muted, line = --border, border-strong = --input-border,
   success = --ok, danger = --danger, shadow-card = --shadow, shadow-lift = --shadow-pop.
   The four body parts of the month view (--part-*) are the four shades the design system gives its calendar: brand, brand-deep, brand-light and ink-muted. */

/* ---- the shape, the same in light and dark ---- */
:root {
    --radius: 22px; --radius-sm: 14px; --media-radius: 14px; --card-pad: .875rem;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: var(--font); --h-weight: 700; --h-tracking: 0;
    --icon-stroke: 2;
}

/* ---- light, also what a page without data-mode wears ---- */
:root, [data-mode="light"] {
    color-scheme: light;
    /* the generated exercise pictures draw their own tile; this is its colour, so letterboxed pictures blend in */
    --media-bg: #ffe6d0;
    --part-arms: #f97316; --part-back: #c2540a; --part-legs: #ffb170; --part-core: #6b4a33;
    --bg: #ffffff; --surface: #ffffff; --surface-2: #fff7f0;
    --text: #2b1a0e; --muted: #6b4a33; --border: #f0d9c4; --card-border: #f0d9c4; --input-border: #b8885f;
    --shadow: 0 2px 12px rgba(194, 84, 10, .14); --shadow-pop: 0 8px 24px rgba(194, 84, 10, .22); --topbar-bg: #fff7f0; --focus: #c2540a;
    --accent: #f97316; --accent-text: #2b1202; --accent-ink: #b34700; --accent-soft: #ffe6d0;
    --accent-deep: #c2540a; --on-accent-deep: #ffffff;
    --danger: #b42318; --ok: #0f766e;
}

/* ---- dark ---- */
[data-mode="dark"] {
    color-scheme: dark;
    --media-bg: #4a2a14;
    --part-arms: #ff8a3d; --part-back: #e2610f; --part-legs: #ffb170; --part-core: #d9b79b;
    --bg: #1a110a; --surface: #2a1b11; --surface-2: #231710;
    --text: #fff4ea; --muted: #d9b79b; --border: #4a3322; --card-border: #4a3322; --input-border: #8a6445;
    --shadow: 0 2px 12px rgba(0, 0, 0, .5); --shadow-pop: 0 8px 24px rgba(0, 0, 0, .6); --topbar-bg: #231710; --focus: #ffb170;
    --accent: #ff8a3d; --accent-text: #2b1202; --accent-ink: #ffb170; --accent-soft: #4a2a14;
    --accent-deep: #e2610f; --on-accent-deep: #2b1202;
    --danger: #ffa59c; --ok: #5eead4;
}
