/*
 * Comm Centre theme: design tokens as CSS custom properties.
 *
 * This is the ONE swappable token layer (decision D-02), together with theme.json.
 * Every component in base.css reads these variables and nothing else for colour,
 * type, spacing, layout, focus and motion. To swap the palette or the type pair,
 * edit the values here and the matching entries in theme.json, then run:
 *     node tools/theme/check_tokens.mjs
 * The check fails if the two files disagree.
 *
 * Rules (D-02): no logo orange token (the logo file is never recoloured); no text
 * gradients, glow or drop shadows on UI chrome.
 */

:root {
	/* Colour. Names match the theme.json palette slugs with a --cc-color- prefix. */
	--cc-color-canvas: #0C0C0C;
	--cc-color-raised: #232323;
	--cc-color-white: #FFFFFF;
	--cc-color-secondary: #E2E2E2;
	--cc-color-action: #DE8514;
	--cc-color-action-hover: #EE9A2C;
	--cc-color-action-ink: #0C0C0C;
	--cc-color-line: #3A3A3A;
	--cc-color-line-strong: #8A8A8A;
	--cc-color-focus: #DE8514;
	--cc-color-error: #FF9B8F;
	--cc-color-panel: #F4F1EA;
	--cc-color-panel-ink: #1A1A1A;
	--cc-color-panel-muted: #4D4D4D;
	--cc-color-panel-link: #8A4B00;
	--cc-color-panel-line: #CFC9BD;
	--cc-color-panel-line-strong: #6B6B6B;
	--cc-color-panel-focus: #0C0C0C;
	--cc-color-panel-error: #A31D12;

	/* Type families. Heading and body are the only two. Files are self-hosted. */
	--cc-font-heading: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--cc-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	/* Fluid type scale, 320px to 1440px viewport. Each fluid size lists its min and max. */
	--cc-font-size-xs: 0.8125rem;
	--cc-font-size-s: 0.9375rem;
	--cc-font-size-m-min: 1rem;
	--cc-font-size-m-max: 1.125rem;
	--cc-font-size-m: clamp(var(--cc-font-size-m-min), 0.9643rem + 0.1786vw, var(--cc-font-size-m-max));
	--cc-font-size-l-min: 1.1875rem;
	--cc-font-size-l-max: 1.375rem;
	--cc-font-size-l: clamp(var(--cc-font-size-l-min), 1.1339rem + 0.2679vw, var(--cc-font-size-l-max));
	--cc-font-size-xl-min: 1.5rem;
	--cc-font-size-xl-max: 1.875rem;
	--cc-font-size-xl: clamp(var(--cc-font-size-xl-min), 1.3929rem + 0.5357vw, var(--cc-font-size-xl-max));
	--cc-font-size-xxl-min: 1.875rem;
	--cc-font-size-xxl-max: 2.625rem;
	--cc-font-size-xxl: clamp(var(--cc-font-size-xxl-min), 1.6607rem + 1.0714vw, var(--cc-font-size-xxl-max));
	--cc-font-size-xxxl-min: 2.25rem;
	--cc-font-size-xxxl-max: 3.5rem;
	--cc-font-size-xxxl: clamp(var(--cc-font-size-xxxl-min), 1.8929rem + 1.7857vw, var(--cc-font-size-xxxl-max));
	--cc-font-size-display-min: 2.5rem;
	--cc-font-size-display-max: 4.25rem;
	--cc-font-size-display: clamp(var(--cc-font-size-display-min), 2rem + 2.5vw, var(--cc-font-size-display-max));

	/* Spacing scale. */
	--cc-space-xxs: 0.25rem;
	--cc-space-xs: 0.5rem;
	--cc-space-s: 0.75rem;
	--cc-space-m: 1rem;
	--cc-space-l: 1.5rem;
	--cc-space-xl: 2rem;
	--cc-space-xxl: 3rem;
	--cc-space-section-min: 3rem;
	--cc-space-section-max: 4.5rem;
	--cc-space-section: clamp(var(--cc-space-section-min), 2.5714rem + 2.1429vw, var(--cc-space-section-max));
	--cc-space-hero-min: 4rem;
	--cc-space-hero-max: 7rem;
	--cc-space-hero: clamp(var(--cc-space-hero-min), 3.1429rem + 4.2857vw, var(--cc-space-hero-max));

	/* Layout. */
	--cc-layout-content: 720px;
	--cc-layout-wide: 1200px;

	/* Focus, touch target, radius, motion. */
	--cc-focus-width: 2px;
	--cc-focus-offset: 2px;
	--cc-target-min: 44px;
	--cc-radius-s: 2px;
	--cc-radius-m: 2px;
	--cc-transition-fast: 120ms;
	--cc-transition-base: 200ms;
}
