/* AlderCAD interaction kit: theme. The only file that carries brand values; every kit component reads these
   custom properties and nothing else. Swap this file to rebrand. Current brand: Studio light (Preiss Workshop,
   Desk redesign 12 Oct 2026): warm sand ground, paper surfaces, ink actions, one copper line. Light first, dark second.
   Contract (what components rely on): --canvas --ground-lit --ground-low --surface --fill --fill-2 --hair --hair-2
   --ink --ink-2 --action --action-press --on-action --copper --copper-ink --select --ok --danger --r-card --r-ctl --r-xs
   --shadow-float --sans --mono --tap --ease and the safe-area insets --st --sb --sl --sr. */
:root{
 color-scheme:light;
 /* surfaces */
 --canvas:#ECE6DC;      /* page ground: sand */
 --ground-lit:#F7F3EC;  /* the ground where the light falls (top left) */
 --ground-low:#E5DDD0;  /* the ground away from it */
 --surface:#FBF9F5;     /* cards, sheets: paper */
 --fill:#EAE3D8;        /* sunk fields, hover */
 --fill-2:#E0D7C9;      /* pressed, tracks */
 --hair:#DCD3C6;        /* hairlines */
 --hair-2:#8D857C;      /* control edges: 3.2:1 on paper */
 --edge:0 0 0 1px var(--hair); /* a card's edge */
 --shadow:none;
 --shadow-float:0 1px 0 rgba(255,255,255,.9) inset,0 2px 4px rgba(80,58,36,.06),0 24px 48px -18px rgba(80,58,36,.35);
 /* text */
 --ink:#221D18;         /* 14.6:1 on ground */
 --ink-2:#675C50;       /* meta: 4.8:1 on the darkest ground, 6.2:1 on paper */
 /* actions are ink: filled ink for the one next step, outlined for equal answers */
 --action:#221D18;
 --action-press:#3A322A;
 --action-tint:#E7DFD2;
 --on-action:#FBF9F5;
 /* the copper line: only the stroke under the current place and the section pointer */
 --copper:#B0693A;
 --copper-ink:#8B4C25;
 /* selected points, handles and parts in an editor or a 3D view (vector.js, the Parts outline): copper, 6.3:1 on paper (dark: 7.9:1) */
 --select:#8B4C25;
 /* the signal: something waits on you (counts, the New dot). Ink, never a colour */
 --signal:var(--ink);
 --new:var(--signal);--new-dot:var(--signal);--new-tint:#F3EEE6;
 --wait:var(--signal);--wait-bar:var(--signal);--wait-tint:var(--action-tint);
 /* status words (Board, Production): text colours, never fills */
 --ok:#2B6643;          /* 6.3:1 on paper */
 --ok-tint:#E3ECE2;
 --danger:#9C3B29;      /* 6.5:1 on paper */
 --danger-tint:#F4E3DD;
 --on-danger:#FBF9F5;
 /* type */
 --sans:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
 --mono:"Geist Mono",ui-monospace,"Cascadia Mono",Consolas,monospace;
 /* one radius; dots stay round */
 --r-card:8px;
 --r-ctl:8px;
 --r-xs:6px;
 /* legacy names, mapped onto the scale (other pages and Design Call use them) */
 --r-s:var(--r-xs);--r-m:var(--r-ctl);--r-l:var(--r-card);--r-pill:var(--r-xs);
 /* space (4-pt) */
 --s1:4px;--s2:8px;--s3:12px;--s4:16px;--s5:20px;--s6:24px;--s8:32px;
 --tap:46px;            /* default control height; 44 is the floor */
 --ease:cubic-bezier(.2,.7,.2,1);
 --st:env(safe-area-inset-top,0px);--sb:env(safe-area-inset-bottom,0px);--sl:env(safe-area-inset-left,0px);--sr:env(safe-area-inset-right,0px);
}
/* dark: the same studio at night, warm charcoal, paper turned to dark card, ink turned to bone */
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
 color-scheme:dark;
 --canvas:#15120F;--ground-lit:#1E1A16;--ground-low:#110E0C;--surface:#201C18;--fill:#2A2520;--fill-2:#35302A;--hair:#3A332C;--hair-2:#857A6E;
 --edge:0 0 0 1px var(--hair);--shadow-float:0 16px 40px rgba(0,0,0,.6);
 --ink:#F1EBE2;--ink-2:#B5A999;
 --action:#F1EBE2;--action-press:#DCD3C6;--action-tint:#332C25;--on-action:#15120F;--new-tint:#2A241E;
 --copper:#D08A58;--copper-ink:#E0A57A;--select:#E0A57A;
 --ok:#7CC79A;--ok-tint:#1A2A20;--danger:#F08C78;--danger-tint:#3A201A;--on-danger:#15120F;
}}
:root[data-theme="dark"]{
 color-scheme:dark;
 --canvas:#15120F;--ground-lit:#1E1A16;--ground-low:#110E0C;--surface:#201C18;--fill:#2A2520;--fill-2:#35302A;--hair:#3A332C;--hair-2:#857A6E;
 --edge:0 0 0 1px var(--hair);--shadow-float:0 16px 40px rgba(0,0,0,.6);
 --ink:#F1EBE2;--ink-2:#B5A999;
 --action:#F1EBE2;--action-press:#DCD3C6;--action-tint:#332C25;--on-action:#15120F;--new-tint:#2A241E;
 --copper:#D08A58;--copper-ink:#E0A57A;--select:#E0A57A;
 --ok:#7CC79A;--ok-tint:#1A2A20;--danger:#F08C78;--danger-tint:#3A201A;--on-danger:#15120F;
}

