/* SPDX-License-Identifier: MIT */
/* Copyright (c) 2026 The RadioFoundry Authors */
/*
 * Design tokens: every color, font, size and radius the site uses. A redesign starts here; site.css only refers to
 * these variables. Light is the default; dark applies with the system setting unless the visitor picked light, and
 * always with data-theme="dark" (the header's toggle).
 *
 */
:root {
	color-scheme: light;
	--font-sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
	--font-size: 16px;
	--line: 1.55;
	--text-sm: 0.875rem;
	--text-lg: 1.12rem;
	--text-xs: 0.72rem;
	--h1: clamp(1.8rem, 3.6vw, 2.7rem);
	--h2: clamp(1.25rem, 2vw, 1.5rem);
	--h3: 1.05rem;

	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.25rem;
	--space-6: 1.75rem;
	--space-7: 2.5rem;
	--wrap: 1240px;
	--gutter: clamp(18px, 4vw, 40px);
	--radius: 18px;
	--radius-sm: 9px;

	--bg: #edf3f5;
	--surface: #ffffff;
	--surface-2: #e1ebee;
	--text: #10232d;
	--muted: #435c68;
	--faint: #526975;		/* the build stamp: there if you look for it */
	--border: #cfdee4;
	--accent: #006854;
	--accent-2: #14536b;
	--accent-text: #ffffff;
	--accent-soft: #dff4ec;
	--signal: #006e82;
	--signal-soft: #e1f1f6;
	--gold: #876100;
	--link: #006653;
	--focus: #006854;
	--code-bg: #e4eef0;
	--ok: #177245;
	--ok-soft: #dcf2e4;
	--warn: #8a5300;
	--warn-soft: #fcefd4;
	--bad: #b0201c;
	--bad-soft: #fbe2e0;
	--info-soft: #e0eef6;
	--grad: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
	--grad-signal: linear-gradient(120deg, var(--accent) 0%, var(--gold) 100%);
	--glow: 0 10px 30px -12px rgb(0 104 84 / 45%);
	--shadow: 0 1px 2px rgb(30 20 40 / 6%), 0 10px 28px -12px rgb(30 20 40 / 18%);
	/* the hero band and the footer are dark consoles in both themes */
	--hero-bg: #071e29;
	--hero-text: #f0f9fc;
	--hero-muted: #b3ced8;
	--hero-line: rgb(255 255 255 / 8%);
	--footer-bg: #071e29;
	--footer-text: #e7f3f7;
	--footer-muted: #abc4cf;
	--screen-scale: 2;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		color-scheme: dark;
		--bg: #0b171e;
		--surface: #12232c;
		--surface-2: #1b303a;
		--text: #e7f3f6;
		--muted: #a8c1ca;
		--faint: #9bb3bf;
		--border: #304a56;
		--accent: #73e3bb;
		--accent-2: #59bfd9;
		--accent-text: #0b2822;
		--accent-soft: #193a34;
		--signal: #71cee3;
		--signal-soft: #193a49;
		--gold: #e8b64c;
		--link: #8aeac9;
		--focus: #97f6d7;
		--code-bg: #1b303a;
		--ok: #6fd69a;
		--ok-soft: #12301f;
		--warn: #f2c35e;
		--warn-soft: #362a10;
		--bad: #ff8a7d;
		--bad-soft: #3b1716;
		--info-soft: #1c3747;
		--glow: 0 10px 34px -10px rgb(115 227 187 / 45%);
		--shadow: 0 1px 2px rgb(0 0 0 / 45%), 0 12px 32px -12px rgb(0 0 0 / 65%);
		--hero-bg: #071e29;
		--footer-bg: #071e29;
		--footer-text: #e7f3f7;
		--footer-muted: #abc4cf;
	}
}

:root[data-theme="dark"] {
	color-scheme: dark;
	--bg: #0b171e;
	--surface: #12232c;
	--surface-2: #1b303a;
	--text: #e7f3f6;
	--muted: #a8c1ca;
	--faint: #9bb3bf;
	--border: #304a56;
	--accent: #73e3bb;
	--accent-2: #59bfd9;
	--accent-text: #0b2822;
	--accent-soft: #193a34;
	--signal: #71cee3;
	--signal-soft: #193a49;
	--link: #8aeac9;
	--focus: #97f6d7;
	--code-bg: #1b303a;
	--ok: #6fd69a;
	--ok-soft: #12301f;
	--warn: #f2c35e;
	--warn-soft: #362a10;
	--bad: #ff8a7d;
	--bad-soft: #3b1716;
	--info-soft: #1c3747;
	--glow: 0 10px 34px -10px rgb(115 227 187 / 45%);
	--shadow: 0 1px 2px rgb(0 0 0 / 45%), 0 12px 32px -12px rgb(0 0 0 / 65%);
	--hero-bg: #071e29;
	--footer-bg: #071e29;
	--footer-text: #e7f3f7;
	--footer-muted: #abc4cf;
}
