/* TPI OS's colour tokens for the base's desk and web pages (T-042): the web app's values
   (apps/tpi_os/frontend/src/ui/styles/tokens.css), the subset the desk uses, the gilt pair with them (the gilt keeps
   its value in both themes, the text-grade gilt-ink lightens on dark); a test keeps every one equal. The only file of
   the desk theme that holds a colour value. Set on :root:root, which outranks the base's own :root wherever its
   sheets load (web pages load this one first). */

:root:root,
:root:root[data-theme="light"] {
	--tpi-black: #000000;
	--ink-1: #1A1A1A;
	--ink-2: #3F3F3F;
	--ink-3: #6C6C6C;
	--paper: #FAFAF8;
	--paper-2: #F4F3F0;
	--surface-card: #FFFFFF;
	--hairline: #E5E3DF;
	--control-border: #858583;
	--tpi-gilt: #AD8A45;
	--tpi-gilt-ink: #7A6230;
	--text-on-ink: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
	:root:root:not([data-theme="light"]) {
		--tpi-black: #FFFFFF;
		--ink-1: #E6E6E6;
		--ink-2: #C9C9C9;
		--ink-3: #9B9B9B;
		--paper: #0E0E0E;
		--paper-2: #1F1F1F;
		--surface-card: #161616;
		--hairline: #2A2A2A;
		--control-border: #7A7A7A;
		--tpi-gilt-ink: #C4A468;
		--text-on-ink: #0E0E0E;
	}
}

:root:root[data-theme="dark"] {
	--tpi-black: #FFFFFF;
	--ink-1: #E6E6E6;
	--ink-2: #C9C9C9;
	--ink-3: #9B9B9B;
	--paper: #0E0E0E;
	--paper-2: #1F1F1F;
	--surface-card: #161616;
	--hairline: #2A2A2A;
	--control-border: #7A7A7A;
	--tpi-gilt-ink: #C4A468;
	--text-on-ink: #0E0E0E;
}
