/* Electric Blue Ultra — design tokens. Edit here; every component reads these. */
@font-face {
	font-family: "Manrope";
	src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	color-scheme: light dark;

	/* Brand palette */
	--electric: #007aff;
	--electric-ink: #0066d6;
	--electric-action: #006fe6;
	--electric-action-hover: #0060c7;
	--electric-soft: #eaf4ff;
	--electric-soft-2: #d6e9ff;
	--midnight: #101828;
	--silver: #94a3b8;
	--night: #0b1120;

	/* Semantic colours (light) */
	--canvas: #f8fafc;
	--surface: #ffffff;
	--surface-2: #f1f5f9;
	--surface-3: #e9eef5;
	--line: #e2e8f0;
	--line-strong: #cbd5e1;
	--ink: #101828;
	--ink-2: #344054;
	--muted: #5b6b85;
	--brand: #0068d9; /* small-text safe Electric Blue (5.3:1); logo & fills keep --electric */
	--link: var(--electric-ink);
	--action: var(--electric-action);
	--action-hover: var(--electric-action-hover);
	--on-action: #ffffff;
	--tint: var(--electric-soft);
	--tint-2: var(--electric-soft-2);
	--tint-ink: #0052ad;
	--success: #067647;
	--success-soft: #e7f8ef;
	--warning: #b54708;
	--warning-soft: #fff4e5;
	--danger: #b42318;
	--focus: #007aff;
	--scrim: rgb(11 17 32 / 0.5);
	--glass: rgb(248 250 252 / 0.86);

	/* Typography */
	--font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--step--2: 0.75rem;
	--step--1: 0.875rem;
	--step-0: 1rem;
	--step-1: clamp(1.0625rem, 1.02rem + 0.2vw, 1.1875rem);
	--step-2: clamp(1.25rem, 1.14rem + 0.5vw, 1.5rem);
	--step-3: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
	--step-4: clamp(1.875rem, 1.5rem + 1.7vw, 2.875rem);
	--step-5: clamp(2.25rem, 1.6rem + 3vw, 4rem);
	--leading-tight: 1.1;
	--leading-snug: 1.3;
	--leading: 1.65;
	--tracking-tight: -0.025em;
	--prose-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);

	/* Spacing scale (4px base) */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.25rem;
	--space-6: 1.5rem;
	--space-7: 2rem;
	--space-8: 2.5rem;
	--space-9: 3rem;
	--space-10: 4rem;
	--space-11: 5rem;
	--section: clamp(3rem, 2rem + 4vw, 5.5rem);
	--gutter: clamp(1rem, 0.6rem + 1.6vw, 2rem);

	/* Shape */
	--radius-xs: 8px;
	--radius-sm: 12px;
	--radius: 16px;
	--radius-lg: 22px;
	--radius-xl: 28px;
	--radius-pill: 999px;
	--border: 1px solid var(--line);

	/* Elevation */
	--shadow-1: 0 1px 2px rgb(16 24 40 / 0.05);
	--shadow-2: 0 1px 3px rgb(16 24 40 / 0.06), 0 6px 16px -4px rgb(16 24 40 / 0.08);
	--shadow-3: 0 24px 48px -16px rgb(16 24 40 / 0.22), 0 4px 10px -4px rgb(16 24 40 / 0.06);
	--ring: 0 0 0 3px rgb(0 122 255 / 0.28);

	/* Motion */
	--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--dur-1: 120ms;
	--dur-2: 220ms;
	--dur-3: 380ms;

	/* Layout */
	--shell: 1200px;
	--shell-wide: 1320px;
	--measure: 70ch;
	--header-h: 64px;
	--dock-h: 64px;
	--safe-bottom: env(safe-area-inset-bottom, 0px);
	--z-header: 40;
	--z-dock: 45;
	--z-fab: 46;
	--z-progress: 50;
	--z-dialog: 60;
}

@media (min-width: 1100px) {
	:root {
		--header-h: 76px;
	}
}

:root[data-theme="dark"] {
	color-scheme: dark;
	--canvas: #0b1120;
	--surface: #111a2e;
	--surface-2: #17223a;
	--surface-3: #1e2a45;
	--line: #22304a;
	--line-strong: #33445f;
	--ink: #f1f5f9;
	--ink-2: #cbd5e1;
	--muted: #94a3b8;
	--brand: #4da3ff;
	--link: #4da3ff;
	--tint: #12284a;
	--tint-2: #173462;
	--tint-ink: #a9d1ff;
	--success: #47cd89;
	--success-soft: #0d2a1e;
	--warning: #fdb022;
	--warning-soft: #2b1d07;
	--danger: #f97066;
	--focus: #4da3ff;
	--scrim: rgb(0 0 0 / 0.6);
	--glass: rgb(11 17 32 / 0.84);
	--shadow-1: 0 1px 2px rgb(0 0 0 / 0.3);
	--shadow-2: 0 1px 3px rgb(0 0 0 / 0.35), 0 8px 20px -6px rgb(0 0 0 / 0.45);
	--shadow-3: 0 24px 60px -18px rgb(0 0 0 / 0.7);
	--ring: 0 0 0 3px rgb(77 163 255 / 0.35);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		color-scheme: dark;
		--canvas: #0b1120;
		--surface: #111a2e;
		--surface-2: #17223a;
		--surface-3: #1e2a45;
		--line: #22304a;
		--line-strong: #33445f;
		--ink: #f1f5f9;
		--ink-2: #cbd5e1;
		--muted: #94a3b8;
		--brand: #4da3ff;
		--link: #4da3ff;
		--tint: #12284a;
		--tint-2: #173462;
		--tint-ink: #a9d1ff;
		--success: #47cd89;
		--success-soft: #0d2a1e;
		--warning: #fdb022;
		--warning-soft: #2b1d07;
		--danger: #f97066;
		--focus: #4da3ff;
		--scrim: rgb(0 0 0 / 0.6);
		--glass: rgb(11 17 32 / 0.84);
		--shadow-1: 0 1px 2px rgb(0 0 0 / 0.3);
		--shadow-2: 0 1px 3px rgb(0 0 0 / 0.35), 0 8px 20px -6px rgb(0 0 0 / 0.45);
		--shadow-3: 0 24px 60px -18px rgb(0 0 0 / 0.7);
		--ring: 0 0 0 3px rgb(77 163 255 / 0.35);
	}
}

:root[data-theme="light"] {
	color-scheme: light;
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--dur-1: 0ms;
		--dur-2: 0ms;
		--dur-3: 0ms;
	}
}
