/* rafa.sh design system tokens, copied from rafa-sh-design/tokens (colors, typography, spacing, layout, effects, motion).
   Fonts are self-hosted in /static/fonts (no CDN). */
/* Catppuccin Frappé (app) + Latte (light logo / light surfaces only) */
:root{
--ctp-rosewater:#f2d5cf;--ctp-flamingo:#eebebe;--ctp-pink:#f4b8e4;--ctp-mauve:#ca9ee6;--ctp-red:#e78284;--ctp-maroon:#ea999c;--ctp-peach:#ef9f76;--ctp-yellow:#e5c890;--ctp-green:#a6d189;--ctp-teal:#81c8be;--ctp-sky:#99d1db;--ctp-sapphire:#85c1dc;--ctp-blue:#8caaee;--ctp-lavender:#babbf1;
--ctp-text:#c6d0f5;--ctp-subtext1:#b5bfe2;--ctp-subtext0:#a5adce;--ctp-overlay2:#949cbb;--ctp-overlay1:#838ba7;--ctp-overlay0:#737994;--ctp-surface2:#626880;--ctp-surface1:#51576d;--ctp-surface0:#414559;--ctp-base:#303446;--ctp-mantle:#292c3c;--ctp-crust:#232634;
--ltt-mauve:#8839ef;--ltt-rosewater:#dc8a78;--ltt-text:#4c4f69;--ltt-subtext0:#6c6f85;--ltt-base:#eff1f5;--ltt-mantle:#e6e9ef;

--bg:var(--ctp-base);--bg-sunken:var(--ctp-mantle);--bg-deep:var(--ctp-crust);--bg-chrome:var(--bg-deep);--chrome-edge:var(--ctp-surface0);
--surface:var(--ctp-surface0);--surface-hi:var(--ctp-surface1);
--border:var(--ctp-surface1);--border-strong:var(--ctp-overlay1);--divider:var(--ctp-surface0);
--text:var(--ctp-text);--text-muted:var(--ctp-subtext1);--text-faint:var(--ctp-subtext0);
--accent:var(--ctp-mauve);--accent-hi:var(--ctp-lavender);--on-accent:var(--ctp-crust);
--focus:var(--ctp-rosewater);--on-focus:var(--ctp-crust);
--pinned:var(--ctp-peach);--private:var(--ctp-yellow);
--success:var(--ctp-green);--warning:var(--ctp-yellow);--danger:var(--ctp-red);--info:var(--ctp-blue);
--st-backlog:var(--ctp-blue);--st-playing:var(--ctp-green);--st-beaten:var(--ctp-teal);--st-completed:var(--ctp-yellow);--st-dropped:var(--ctp-red);--st-shelved:var(--ctp-overlay2);
--cp-perfect:var(--ctp-green);--cp-playable:var(--ctp-teal);--cp-issues:var(--ctp-yellow);--cp-broken:var(--ctp-red);--cp-untested:var(--ctp-overlay2);
--pad-a:var(--ctp-green);--pad-b:var(--ctp-red);--pad-x:var(--ctp-blue);--pad-y:var(--ctp-yellow);
--brand-mark:var(--ctp-mauve);--brand-a:var(--ctp-rosewater);--brand-mark-light:var(--ltt-mauve);--brand-a-light:var(--ltt-rosewater);
/* short aliases used by Time Chaser and Desktop Shell */
--rosewater:var(--ctp-rosewater);--pink:var(--ctp-pink);--red:var(--ctp-red);--peach:var(--ctp-peach);--yellow:var(--ctp-yellow);--green:var(--ctp-green);--teal:var(--ctp-teal);--sapphire:var(--ctp-sapphire);--blue:var(--ctp-blue);
--sub1:var(--ctp-subtext1);--sub0:var(--ctp-subtext0);--ov2:var(--ctp-overlay2);--ov1:var(--ctp-overlay1);--ov0:var(--ctp-overlay0);--s2:var(--ctp-surface2);--s1:var(--ctp-surface1);--s0:var(--ctp-surface0);--base:var(--ctp-base);--mantle:var(--ctp-mantle);--crust:var(--ctp-crust);--onacc:var(--on-accent);
/* chart categories, in order; never mauve (accent) or rosewater (focus) */
--chart-1:var(--ctp-blue);--chart-2:var(--ctp-peach);--chart-3:var(--ctp-green);--chart-4:var(--ctp-pink);--chart-5:var(--ctp-teal);--chart-6:var(--ctp-yellow);--chart-7:var(--ctp-lavender);--chart-8:var(--ctp-red);--chart-grid:var(--ctp-surface0);
/* letters on a coloured fill (avatar, badge, button hints): solid in dark, tint in light */
--fill-strength:100%;--on-fill:var(--ctp-crust);--sel-fill:var(--surface-hi);
--scrim:color-mix(in oklch,var(--ctp-crust) 88%,transparent);--scrim-soft:color-mix(in oklch,var(--ctp-crust) 75%,transparent);
}
/* Light theme: Catppuccin Latte, raw palette swap. Set by theme_toggle.js as data-theme on <html>. Contrast fixes live in light.css. */
[data-theme="light"]{
--ctp-rosewater:#dc8a78;--ctp-flamingo:#dd7878;--ctp-pink:#ea76cb;--ctp-mauve:#8839ef;--ctp-red:#d20f39;--ctp-maroon:#e64553;--ctp-peach:#fe640b;--ctp-yellow:#df8e1d;--ctp-green:#40a02b;--ctp-teal:#179299;--ctp-sky:#04a5e5;--ctp-sapphire:#209fb5;--ctp-blue:#1e66f5;--ctp-lavender:#7287fd;--ctp-text:#4c4f69;--ctp-subtext1:#5c5f77;--ctp-subtext0:#6c6f85;--ctp-overlay2:#7c7f93;--ctp-overlay1:#8c8fa1;--ctp-overlay0:#9ca0b0;--ctp-surface2:#acb0be;--ctp-surface1:#bcc0cc;--ctp-surface0:#ccd0da;--ctp-base:#eff1f5;--ctp-mantle:#e6e9ef;--ctp-crust:#dce0e8;
color-scheme:light;
}
@media (prefers-color-scheme:light){[data-theme="auto"]{
--ctp-rosewater:#dc8a78;--ctp-flamingo:#dd7878;--ctp-pink:#ea76cb;--ctp-mauve:#8839ef;--ctp-red:#d20f39;--ctp-maroon:#e64553;--ctp-peach:#fe640b;--ctp-yellow:#df8e1d;--ctp-green:#40a02b;--ctp-teal:#179299;--ctp-sky:#04a5e5;--ctp-sapphire:#209fb5;--ctp-blue:#1e66f5;--ctp-lavender:#7287fd;--ctp-text:#4c4f69;--ctp-subtext1:#5c5f77;--ctp-subtext0:#6c6f85;--ctp-overlay2:#7c7f93;--ctp-overlay1:#8c8fa1;--ctp-overlay0:#9ca0b0;--ctp-surface2:#acb0be;--ctp-surface1:#bcc0cc;--ctp-surface0:#ccd0da;--ctp-base:#eff1f5;--ctp-mantle:#e6e9ef;--ctp-crust:#dce0e8;
color-scheme:light;
}}
:root{
--font-ui:'IBM Plex Sans',system-ui,sans-serif;--font-display:'IBM Plex Sans',system-ui,sans-serif;--font-mono:'Fira Code',ui-monospace,monospace;
--fs-2xs:.625rem;--fs-xs:.6875rem;--fs-sm:.875rem;--fs-md:1rem;--fs-lg:1.125rem;--fs-xl:1.375rem;--fs-2xl:1.75rem;--fs-3xl:2.25rem;
--fw-regular:400;--fw-semibold:600;--fw-bold:700;
--lh-tight:1.2;--lh-body:1.5;
--ls-eyebrow:.06em;--ls-wordmark:-.04em;
}
:root{
--sp-1:.125rem;--sp-2:.25rem;--sp-3:.375rem;--sp-4:.5rem;--sp-5:.75rem;--sp-6:1rem;--sp-7:1.5rem;--sp-8:2rem;
--r-xs:.3125rem;--r-sm:.5rem;--r-cover:5px;--r-md:.625rem;--r-lg:.75rem;--r-pill:999px;
/* density: compact is the pointer default; touch applies when any coarse pointer exists or data-density="touch" */
--ctl-h:1.75rem;--field-h:2rem;--row-h:2rem;--ctl-h-tight:1.5rem;--gap-in:.25rem;--gap-ctl:.5rem;--gap-group:1rem;--gap-section:1.5rem;--hit-min:24px;--check-size:1.125rem;--switch-w:2rem;--switch-h:1.125rem;--switch-pad:2px;--bar-h:.5rem;
}
@media (any-pointer:coarse){:root{--ctl-h:2.75rem;--field-h:2.75rem;--row-h:2.75rem;--hit-min:44px;--check-size:1.375rem;--switch-w:2.75rem;--switch-h:1.625rem;--switch-pad:3px;--bar-h:.75rem}}
/* controller: no pointer at all (Cartado, TV). Row heights from the Cartado device handoff: 54 one line, 70 two lines, 40 compact list */
@media (any-pointer:none){:root{--ctl-h:2.5rem;--field-h:2.5rem;--row-h:3.375rem;--row-h-2:4.375rem;--hit-min:40px;--check-size:1.375rem;--switch-w:2.75rem;--switch-h:1.625rem;--switch-pad:3px;--bar-h:.75rem}}
[data-density="controller"]{--ctl-h:2.5rem;--field-h:2.5rem;--row-h:3.375rem;--row-h-2:4.375rem;--hit-min:40px;--check-size:1.375rem;--switch-w:2.75rem;--switch-h:1.625rem;--switch-pad:3px;--bar-h:.75rem}
[data-density="touch"]{--ctl-h:2.75rem;--field-h:2.75rem;--row-h:2.75rem;--hit-min:44px;--check-size:1.375rem;--switch-w:2.75rem;--switch-h:1.625rem;--switch-pad:3px;--bar-h:.75rem}
[data-density="compact"]{--ctl-h:1.75rem;--field-h:2rem;--row-h:2rem;--hit-min:24px;--check-size:1.125rem;--switch-w:2rem;--switch-h:1.125rem;--switch-pad:2px;--bar-h:.5rem}
:root{
/* breakpoints are for media/container queries; listed here as reference values */
--bp-compact:600px;--bp-medium:1024px;--bp-wide:1440px;
--w-read:45rem;--w-form:30rem;--w-content:75rem;--w-panel:30rem;--w-popover:26rem;--w-drawer:30rem;
--gutter:1rem;--margin:1rem;
}
@media (min-width:600px){:root{--gutter:1.5rem;--margin:1.5rem}}
@media (min-width:1024px){:root{--gutter:1.5rem;--margin:2rem}}
:root{
--ring-w:.1875rem;--ring:var(--ring-w) solid var(--focus);--ring-offset:2px;
--shadow-1:0 6px 18px rgba(0,0,0,.3);--shadow-2:0 12px 32px rgba(0,0,0,.45);--shadow-3:0 24px 64px rgba(0,0,0,.5);
}
/* Motion tiers. Full is the default. Lite for weak hardware and battery saver (Cartado on the Miyoo). None for reduced motion or the user's "No animation" setting. Set data-motion on <html>. */
:root{
--dur-focus:90ms;--dur-quick:120ms;--dur-base:160ms;--dur-dialog:180ms;--dur-page:240ms;--dur-splash:1600ms;
--ease-out:cubic-bezier(.2,.7,.2,1);--ease-in:cubic-bezier(.4,0,1,1);--ease-focus:var(--ease-out);
--focus-scale:1.06;--press-scale:.97;--press-shift:0px;--enter-shift:12px;--fade:1;
}
[data-motion="lite"]{
--dur-focus:100ms;--dur-quick:0ms;--dur-base:0ms;--dur-dialog:0ms;--dur-page:100ms;
--ease-focus:steps(3,end);--ease-out:steps(3,end);--ease-in:steps(3,end);
--focus-scale:1;--press-scale:1;--press-shift:1px;--enter-shift:8px;--fade:0;
}
[data-motion="none"]{
--dur-focus:0ms;--dur-quick:0ms;--dur-base:0ms;--dur-dialog:0ms;--dur-page:0ms;--dur-splash:0ms;
--focus-scale:1;--press-scale:1;--press-shift:0px;--enter-shift:0px;--fade:0;
}
@media (prefers-reduced-motion:reduce){:root:not([data-motion="full"]){
--dur-focus:0ms;--dur-quick:0ms;--dur-base:0ms;--dur-dialog:0ms;--dur-page:0ms;--dur-splash:0ms;
--focus-scale:1;--press-scale:1;--press-shift:0px;--enter-shift:0px;--fade:0;
}}
@keyframes rs-pulse{0%,100%{opacity:1}50%{opacity:.45}}
[data-motion="lite"] [aria-busy] *,[data-motion="none"] [aria-busy] *{animation:none!important}
@media (prefers-reduced-motion:reduce){[aria-busy] *{animation:none!important}}
/* Old site variable names, mapped onto the DS tokens until every partial uses the DS names. */
:root{
--bg-color:var(--bg);--bg-alt:var(--bg-sunken);--text-color:var(--text);--border-color:var(--divider);
}
