/* The looks of the two workshops (looks.js sets data-look on <html>; none set is the first, the site's own).
   A look is the shared colours of ../ui/base.css said again, a typeface, and how the one main button looks.
   Colours that only the workshops have are named here first, with the values they always had:
     --deep   a field, a list or the console: darker than its box       --paper  behind a view that paints no paper of its own
     --veil   over the page while a window is open                      --zebra  every other row of a list
     --bad    words that say something went wrong                       --main*  the one button that goes on */
:root {
	--deep: #070c16; --paper: #070c16; --veil: rgb(3 6 12 / .7); --zebra: rgb(255 255 255 / .03); --bad: #ffb3b5;
	--main: #1a4f8f; --main-hover: #2364b0; --main-line: var(--edge); --main-text: #fff; --drop: #0a1220;
	--check-a: #1a2233; --check-b: #121a29;
}

/* Classic, light: a GTK desktop of the years NetRadiant was drawn for. Warm grey window, white fields, one blue. */
html[data-look="classic-light"] {
	color-scheme: light;
	--ink: #f1efed; --card: #f8f7f6; --cloud: #24292b; --haze: #5c6164; --limb: #1a5fb4; --sun: #b5500a; --good: #1e8a52; --space: #f1efed;
	--line: #b9b3ad; --line-soft: #d6d1cc; --fill: #fdfdfc; --fill-hover: #e6e3df; --well: #ffffff; --deep: #ffffff; --drop: #ffffff;
	--edge: #3584e4; --now: rgb(53 132 228 / .16); --now-line: #3584e4; --pick: rgb(53 132 228 / .3);
	--paper: #31363b; --veil: rgb(40 36 32 / .4); --zebra: rgb(0 0 0 / .04); --bad: #b3141f;
	--main: #3584e4; --main-hover: #4a94ee; --main-line: #1b62b8; --main-text: #fff; --check-a: #d9d6d2; --check-b: #f4f2f0;
	--face: Cantarell, 'DejaVu Sans', 'Segoe UI', system-ui, sans-serif;
}
/* Classic, dark: the same desktop with the lights off. Neutral greys, no blue tint in the surfaces. */
html[data-look="classic-dark"] {
	--ink: #2b2b2b; --card: #353535; --cloud: #eeeeec; --haze: #b0b0ac; --limb: #78aeed; --sun: #f5b45a; --good: #57c486; --space: #2b2b2b;
	--line: #161616; --line-soft: #232323; --fill: #454545; --fill-hover: #545454; --well: #262626; --deep: #262626; --drop: #303030;
	--edge: #3584e4; --now: rgb(53 132 228 / .3); --now-line: #4f95e8; --pick: rgb(53 132 228 / .42);
	--paper: #202020; --veil: rgb(0 0 0 / .55); --zebra: rgb(255 255 255 / .035); --bad: #ff9a9a;
	--main: #1f5fb0; --main-hover: #2a70c8; --main-line: #0f3f7c; --main-text: #fff; --check-a: #3a3a3a; --check-b: #2c2c2c;
	--face: Cantarell, 'DejaVu Sans', 'Segoe UI', system-ui, sans-serif;
}
/* 3D suite: the grey of a modelling program. Areas float on a darker gap, buttons are lighter than their area and have
   no edge to speak of, the chosen thing is blue and the thing being worked on is orange. Smaller type, closer rows. */
html[data-look="blender"] {
	--ink: #161616; --card: #303030; --cloud: #e6e6e6; --haze: #a3a3a3; --limb: #8db4ee; --sun: #ffa028; --good: #7ac48f; --space: #161616;
	--line: #232323; --line-soft: #262626; --fill: #545454; --fill-hover: #656565; --well: #1d1d1d; --deep: #1d1d1d; --drop: #181818;
	--edge: #6a9ae0; --now: #47669a; --now-line: #5a84c7; --pick: rgb(71 114 179 / .55);
	--paper: #262626; --veil: rgb(0 0 0 / .5); --zebra: rgb(255 255 255 / .04); --bad: #ff8f8f;
	--main: #4772b3; --main-hover: #5683c8; --main-line: #36588c; --main-text: #fff; --check-a: #404040; --check-b: #353535;
	--face: Inter, 'DejaVu Sans', 'Segoe UI', system-ui, sans-serif;
}

/* what the variables cannot say */
html[data-look] { scrollbar-color: var(--haze) transparent; }
html[data-look] .primary, html[data-look] .askbox button.primary { background: var(--main); border-color: var(--main-line); color: var(--main-text); }
html[data-look] .primary:hover:not(:disabled) { background: var(--main-hover); border-color: var(--main-line); }
html[data-look] .nav-drop { background: var(--drop); } html[data-look] .nav-drop [aria-current] { color: var(--cloud); }
html[data-look] .askbox { color-scheme: inherit; }
html[data-look="classic-light"] :is(.sheet, .askbox, #keys) { color-scheme: light; }
html[data-look="classic-light"] :is(#menu, #maptree, .sheet.float, .nav-drop) { box-shadow: 0 6px 18px rgb(0 0 0 / .22); }
html[data-look="classic-light"] .seg > .is-current, html[data-look="classic-light"] [aria-pressed="true"] { color: #12406f; }
/* the classic desktop's buttons are raised a little: a light top, a darker foot */
html[data-look^="classic"] :is(.panel, .sheet, #keys) button:not(.primary, .is-current, [aria-pressed="true"], #menubar *, .tree *, .list *, #menu *) { background-image: linear-gradient(rgb(255 255 255 / .1), rgb(0 0 0 / .06)); }
html[data-look="blender"] :is(.panel, .sheet, #menu, #keys, .askbox) { font-size: 13px; }
html[data-look="blender"] :is(.panel, .sheet) button:not(#menubar *, .tree *, .list *) { border-color: transparent; padding-block: 4px; }
html[data-look="blender"] .card { border-color: transparent; }
/* a view is a picture with a paper of its own, dark unless a scheme of view colours says otherwise: what is written
   or pressed on it keeps the colours that read on the dark, whatever the look around it */
html[data-look="classic-light"] .pane { --cloud: #eaf2fb; --haze: #b9c4d2; --line: rgb(200 210 225 / .45); --line-soft: rgb(200 210 225 / .22); --fill: rgb(200 210 225 / .16); --fill-hover: rgb(200 210 225 / .3); --well: rgb(0 0 0 / .5); color: var(--cloud); }
html[data-look="classic-light"] .pane button:not(.primary) { background-image: none; }
/* Every field wears the look's own dark (--deep): a number box left to the browser came out its grey in every look.
   No weight (:where), so a field with a rule of its own keeps it; no padding here, so no row changes its measure. */
:where(input:not([type=checkbox], [type=radio], [type=range], [type=color], [type=file], [type=button], [type=submit]), textarea, select) { color: var(--cloud); background-color: var(--deep); border: 1px solid var(--line); border-radius: 3px; }
:where(select) option { background: var(--deep); color: var(--cloud); }
