/* TECH3DS design tokens (CLAUDE.md §3). Single source for colour, type, space and motion. */

@font-face { font-family: "Chakra Petch"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/chakra-petch-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

:root {
	/* Brand */
	--brand-red: #E10600;
	--brand-red-bright: #FF2A1F;
	--brand-red-deep: #B00500;
	/* Carbon (dark surfaces) */
	--carbon-950: #0A0A0B;
	--carbon-900: #111113;
	--carbon-800: #1A1A1D;
	--carbon-700: #26262B;
	/* Text */
	--steel-400: #9A9AA3;
	--steel-200: #D4D4D8;
	--white: #F7F7F8;
	--ink: #111113;
	/* States */
	--success: #22C55E;
	--warning: #F59E0B;
	--blueprint: #3A7BFF;

	/* Semantic */
	--bg: var(--carbon-950);
	--surface: var(--carbon-800);
	--surface-2: var(--carbon-900);
	--line: var(--carbon-700);
	--text: var(--steel-200);
	--text-muted: var(--steel-400);
	--heading: var(--white);
	--accent: var(--brand-red);
	--accent-text: var(--brand-red-bright); /* red text on dark: never #E10600 (CLAUDE.md §3) */
	--focus: var(--blueprint);

	/* Type */
	--font-heading: "Chakra Petch", ui-sans-serif, system-ui, sans-serif;
	--font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
	--fs-h1: clamp(2.5rem, 1.6rem + 3.8vw, 4.5rem);   /* 40 → 72 px */
	--fs-h2: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
	--fs-h3: clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem);
	--fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
	--fs-small: 0.875rem;
	--fs-mono: 0.9375rem;
	--lh-tight: 1.08;
	--lh-body: 1.6;

	/* Space & shape */
	--space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
	--space-6: 1.5rem; --space-8: 2rem; --space-12: 3rem; --space-16: 4rem; --space-24: 6rem;
	--section-pad: clamp(3.5rem, 2rem + 6vw, 7.5rem);
	--gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
	--max-w: 80rem;
	--radius-sm: 6px; --radius: 12px; --radius-lg: 20px;
	--tap: 44px; /* minimum touch target (Apple HIG) */

	/* Motion (CLAUDE.md §7) */
	--ease-out: cubic-bezier(0.215, 0.61, 0.355, 1); /* ≈ power3.out */
	--dur-fast: 160ms; --dur: 300ms; --dur-slow: 700ms;

	/* Effects */
	--glow-red: 0 0 0 1px rgba(225, 6, 0, 0.55), 0 10px 40px -10px rgba(225, 6, 0, 0.45);
	--shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 40px -24px rgba(0, 0, 0, 0.8);
	--grid-blueprint: linear-gradient(rgba(58, 123, 255, 0.07) 1px, transparent 1px) 0 0 / 32px 32px,
		linear-gradient(90deg, rgba(58, 123, 255, 0.07) 1px, transparent 1px) 0 0 / 32px 32px;

	/* Safe areas (notch, home bar) */
	--safe-top: env(safe-area-inset-top, 0px);
	--safe-bottom: env(safe-area-inset-bottom, 0px);
	--safe-left: env(safe-area-inset-left, 0px);
	--safe-right: env(safe-area-inset-right, 0px);
	--bottom-bar-h: 64px;

	color-scheme: dark;
}

/* Opt-in light sections: add class "section-light" to an Elementor container. */
.section-light {
	--bg: var(--white);
	--surface: #FFFFFF;
	--surface-2: #EFEFF1;
	--line: #E2E2E6;
	--text: #3A3A40;
	--text-muted: #5C5C66;
	--heading: var(--ink);
	--accent-text: var(--brand-red-deep);
	color-scheme: light;
	background: var(--bg);
	color: var(--text);
}
