/* Lite — the default theme. As simple and fast as possible.
   The ONLY theme with color-scheme support: light, dark, and auto
   (auto = follow the device via prefers-color-scheme). The mode toggle in
   Settings writes data-mode on <html>; themes other than Lite ignore it. */

:root {
	--radius: 8px;
	--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-head: var(--font-body);
	--font-num: var(--font-body);

	/* light palette (default) */
	--bg: #f4f5f7;
	--card: #ffffff;
	--ink: #16181d;
	--muted: #667085;
	--line: #e0e3e8;
	--accent: #1565C0;
	--accent-ink: #ffffff;
	--head-bg: #101418;
	--head-ink: #ffffff;
}

/* explicit dark */
html[data-mode="dark"] {
	--bg: #101418;
	--card: #1a2028;
	--ink: #e8eaee;
	--muted: #8b95a5;
	--line: #2a323d;
	--accent: #4f9cf0;
	--accent-ink: #0b0e12;
	--head-bg: #05070a;
	--head-ink: #e8eaee;
	color-scheme: dark;
}

/* auto: inherit the device preference */
@media (prefers-color-scheme: dark) {
	html[data-mode="auto"] {
		--bg: #101418;
		--card: #1a2028;
		--ink: #e8eaee;
		--muted: #8b95a5;
		--line: #2a323d;
		--accent: #4f9cf0;
		--accent-ink: #0b0e12;
		--head-bg: #05070a;
		--head-ink: #e8eaee;
		color-scheme: dark;
	}
}
