/* Design tokens of the B1 "Ink" design (internal/web/UI.md). The names
   are the mockups' (var(--accentText) there is var(--accentText) here).
   Dark is the default; light follows the system, unless the viewer chose
   one in the user menu (static/theme.js sets <html data-theme>). */

:root {
	/* Dark */
	--bg: #1b1917; --nav: #201e1b; --navLine: #2c2925;
	--card: #252320; --cardBorder: 1px solid rgba(255, 244, 228, .035); --raised: #2f2c28; --codeBg: #33302b;
	--line: #302d29; --field: #232120; --fieldLine: #3a3631;
	--segBg: #151412; --segOn: #302d29; --segShadow: 0 1px 0 rgba(255, 244, 228, .05) inset;
	--text: #ebe5da; --text2: #cbc3b6; --muted: #a49c8f;
	--accent: #62bfb3; --accentSoft: #4a9990; --accentText: #8ad3c9; --accentBg: rgba(98, 191, 179, .15);
	--accentLine: rgba(98, 191, 179, .42); --onAccent: #0e2321; --track: #34302b;
	--ok: #93cf8c; --okBg: rgba(147, 207, 140, .12);
	--bad: #f2988a; --badBg: rgba(242, 152, 138, .14); --badLine: rgba(242, 152, 138, .38);
	--warn: #e4bb6c; --warnBg: rgba(228, 187, 108, .13); --warnLine: rgba(228, 187, 108, .36);
	--neutralBg: rgba(235, 229, 218, .06); --chipLine: #4a453f; --badgeBg: #3a3631;
	--avatarBg: #3b3329; --avatarFg: #ead7b7; --logoBg: #ebe5da; --logoFg: #1b1917; --markBg: #3a3631; --markFg: #ebe5da;
	--popShadow: 0 12px 32px rgba(0, 0, 0, .45);
	color-scheme: dark;

	/* Type and shape, the same in both themes */
	--sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
	--serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--mono: "Source Code Pro", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--content: 1320px; /* the main column */
	--gutter: 32px;    /* 16px on phones */
	--r-card: 16px; --r-ctl: 12px; --r-sm: 6px; --r-pill: 999px;
}

/* Light: the system's, unless dark was chosen; or chosen. */
@media (prefers-color-scheme: light) {
	:root:not([data-theme="dark"]) {
		--bg: #f7f4ee; --nav: #ffffff; --navLine: #e7e1d6;
		--card: #ffffff; --cardBorder: 1px solid #e7e1d6; --raised: #f3efe7; --codeBg: #efebe3;
		--line: #ece7de; --field: #ffffff; --fieldLine: #ddd6c9;
		--segBg: #ebe6dc; --segOn: #ffffff; --segShadow: 0 1px 2px rgba(36, 33, 29, .12);
		--text: #24211d; --text2: #4a453e; --muted: #625c53;
		--accent: #1d6b66; --accentSoft: #2b827c; --accentText: #134d49; --accentBg: #e4efed;
		--accentLine: rgba(29, 107, 102, .45); --onAccent: #ffffff; --track: #e8f1ef;
		--ok: #255c27; --okBg: #e6f1e4;
		--bad: #972a1b; --badBg: #fae6e2; --badLine: #d9b9b2;
		--warn: #734606; --warnBg: #f8edd6; --warnLine: #ecd6a8;
		--neutralBg: #efece6; --chipLine: #cfc7b8; --badgeBg: #efece6;
		--avatarBg: #efe6d6; --avatarFg: #5b4a2e; --logoBg: #24211d; --logoFg: #f7f4ee; --markBg: #24211d; --markFg: #f7f4ee;
		--popShadow: 0 12px 32px rgba(36, 33, 29, .16);
		color-scheme: light;
	}
}
:root[data-theme="light"] {
	--bg: #f7f4ee; --nav: #ffffff; --navLine: #e7e1d6;
	--card: #ffffff; --cardBorder: 1px solid #e7e1d6; --raised: #f3efe7; --codeBg: #efebe3;
	--line: #ece7de; --field: #ffffff; --fieldLine: #ddd6c9;
	--segBg: #ebe6dc; --segOn: #ffffff; --segShadow: 0 1px 2px rgba(36, 33, 29, .12);
	--text: #24211d; --text2: #4a453e; --muted: #625c53;
	--accent: #1d6b66; --accentSoft: #2b827c; --accentText: #134d49; --accentBg: #e4efed;
	--accentLine: rgba(29, 107, 102, .45); --onAccent: #ffffff; --track: #e8f1ef;
	--ok: #255c27; --okBg: #e6f1e4;
	--bad: #972a1b; --badBg: #fae6e2; --badLine: #d9b9b2;
	--warn: #734606; --warnBg: #f8edd6; --warnLine: #ecd6a8;
	--neutralBg: #efece6; --chipLine: #cfc7b8; --badgeBg: #efece6;
	--avatarBg: #efe6d6; --avatarFg: #5b4a2e; --logoBg: #24211d; --logoFg: #f7f4ee; --markBg: #24211d; --markFg: #f7f4ee;
	--popShadow: 0 12px 32px rgba(36, 33, 29, .16);
	color-scheme: light;
}
