/**
 * Centralized design tokens.
 * Dark cyber-tech system: near-black base, green-tinted surfaces,
 * neon-green primary, restrained cyan secondary.
 */
:root {
	/* Core palette */
	--color-bg: #020705;
	--color-bg-elevated: #06120d;
	--color-surface: #071811;
	--color-surface-soft: #0a2017;
	--color-primary: #61e85b;
	--color-primary-bright: #78ff71;
	--color-secondary: #47d9e8;
	--color-mint: #5fffc1;
	--color-text: #f3f8f5;
	--color-text-muted: #9aaea4;

	/* Compatibility aliases (used by existing modules + Customizer) */
	--color-background: var(--color-bg);
	--color-deep: #123324;
	--color-muted: #4d9344;
	--color-soft: #9aaea4;
	--color-cyan: var(--color-secondary);
	--color-border: rgba(99, 238, 111, 0.18);
	--color-border-strong: rgba(99, 238, 111, 0.42);
	--color-cyan-border: rgba(71, 217, 232, 0.28);

	/* Derived */
	--color-on-primary: #04130a;
	--color-primary-hover: var(--color-primary-bright);
	--color-surface-2: #08150f;
	--color-input-bg: #040d09;
	--color-focus: var(--color-primary-bright);

	/* Glow + shadow */
	--glow-primary: 0 0 0 1px rgba(99, 238, 111, 0.32), 0 0 18px rgba(99, 238, 111, 0.16);
	--glow-soft: 0 0 14px rgba(99, 238, 111, 0.12);
	--shadow-green: 0 0 24px rgba(97, 232, 91, 0.16);
	--shadow-green-strong: 0 0 38px rgba(97, 232, 91, 0.24);
	--shadow-cyan: 0 0 24px rgba(71, 217, 232, 0.14);
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
	--shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
	--shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);

	/* Typography: condensed technical headings, one family + system fallback */
	--font-family: 'Oxanium', 'Segoe UI', system-ui, -apple-system, sans-serif;
	--font-weight-regular: 400;
	--font-weight-medium: 500;
	--font-weight-semibold: 600;
	--font-weight-bold: 700;
	--font-weight-extra: 800;

	--font-size-base: 16px;
	--font-size-xs: 0.875rem; /* 14px — minimum label/metadata size */
	--font-size-sm: 0.9375rem; /* 15px — minimum card/supporting copy */
	--font-size-md: 1rem;      /* 16px — body/form/important copy */
	--font-size-lg: 1.125rem;
	--font-size-xl: 1.375rem;
	--font-size-2xl: 1.75rem;
	--font-size-3xl: 2.25rem;
	--font-size-4xl: 3rem;
	--font-size-5xl: 3.75rem;

	--line-height-tight: 1.06;
	--line-height-snug: 1.25;
	--line-height-normal: 1.5;
	--line-height-relaxed: 1.65;
	--letter-spacing-tight: -0.02em;
	--letter-spacing-wide: 0.04em;
	--letter-spacing-caps: 0.12em;

	/* Spacing scale */
	--spacing-2xs: 4px;
	--spacing-xs: 8px;
	--spacing-sm: 12px;
	--spacing-md: 16px;
	--spacing-lg: 24px;
	--spacing-xl: 32px;
	--spacing-2xl: 48px;
	--spacing-3xl: 64px;
	--spacing-4xl: 96px;

	/* Section rhythm: dense, continuous page */
	--section-padding-y: clamp(56px, 5vw, 88px);
	--section-padding-x: var(--container-gutter);

	/* Layout: one container + one header offset, shared by every region. */
	--container-max: 1200px;
	--container-width: var(--container-max); /* compatibility alias */
	--container-narrow: 1180px;
	--container-gutter: 32px;
	--header-height: 64px;
	--anchor-gap: 16px;
	/* Single source for the sticky-header anchor offset. Scroll padding on the
	   root and scroll margin on the target are additive, so each contributes half. */
	--header-offset: calc(var(--header-height) + var(--anchor-gap));

	/* Shared card system. */
	--card-surface: var(--color-surface);
	--card-border: var(--color-border);
	--card-border-hover: var(--color-border-strong);
	--card-radius: var(--radius-md);
	--card-padding: var(--spacing-lg);
	--card-gap: var(--spacing-sm);

	/* Borders & radius */
	--border-width: 1px;
	--border-color: var(--color-border);
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 12px;
	--radius-pill: 999px;

	/* Breakpoints (documented; used in media queries) */
	--bp-tablet: 768px;
	--bp-laptop: 1024px;
	--bp-desktop: 1440px;
}
