/* =================================================================
   Swiss Ball Store — Design tokens
   -----------------------------------------------------------------
   We extend Blocksy's existing CSS variables instead of overriding
   them. This means changes made in the Customizer (Colors, Typography)
   propagate naturally to our components.
   -----------------------------------------------------------------
   Blocksy variables we rely on:
     --theme-palette-color-1   accent (Vital Coral)
     --theme-palette-color-2   accent hover
     --theme-palette-color-3   body text
     --theme-palette-color-4   headings (Deep Anatomy)
     --theme-palette-color-5   borders
     --theme-palette-color-6   soft surface
     --theme-palette-color-7   main background (Clinical White)
     --theme-palette-color-8   pure white
   ================================================================= */

:root {
	/* Aliased palette — semantic names that tell readers WHAT a color is for. */
	--sbs-color-ink:        var(--theme-palette-color-4);  /* Deep Anatomy */
	--sbs-color-text:       var(--theme-palette-color-3);  /* Body text */
	--sbs-color-text-muted: var(--theme-palette-color-3);  /* Same as text, opacity applied via .muted */
	--sbs-color-accent:     var(--theme-palette-color-1);  /* Vital Coral */
	--sbs-color-accent-hover: var(--theme-palette-color-2); /* Coral hover */
	--sbs-color-surface:    var(--theme-palette-color-7);  /* Clinical White */
	--sbs-color-surface-alt: var(--theme-palette-color-6); /* Soft sand */
	--sbs-color-card:       var(--theme-palette-color-8);  /* Pure white */
	--sbs-color-border:     var(--theme-palette-color-5);  /* Border / divider */

	/* Semantic functional colors — for forms, toasts, badges. */
	--sbs-color-success: #2E7D5B;
	--sbs-color-warning: #C4862C;
	--sbs-color-error:   #B53B2A;

	/* Spacing scale — 8 px grid, used for paddings and gaps. */
	--sbs-space-1:  4px;
	--sbs-space-2:  8px;
	--sbs-space-3:  12px;
	--sbs-space-4:  16px;
	--sbs-space-5:  20px;
	--sbs-space-6:  24px;
	--sbs-space-8:  32px;
	--sbs-space-10: 40px;
	--sbs-space-12: 48px;
	--sbs-space-16: 64px;
	--sbs-space-20: 80px;
	--sbs-space-24: 96px;
	--sbs-space-32: 128px;

	/* Display typography sizes — beyond the standard H1-H6 scale. */
	--sbs-text-display:    clamp(40px, 6vw, 60px);
	--sbs-text-display-xl: clamp(48px, 8vw, 80px);

	/* Border radius scale. */
	--sbs-radius-xs:   4px;
	--sbs-radius-sm:   8px;
	--sbs-radius-md:   12px;
	--sbs-radius-lg:   20px;
	--sbs-radius-full: 999px;

	/* Restrained shadow scale — premium, never harsh. */
	--sbs-shadow-xs: 0 1px 2px rgba(15, 30, 46, 0.04);
	--sbs-shadow-sm: 0 2px 8px rgba(15, 30, 46, 0.06);
	--sbs-shadow-md: 0 8px 24px rgba(15, 30, 46, 0.08);
	--sbs-shadow-lg: 0 24px 60px rgba(15, 30, 46, 0.10);

	/* Motion. */
	--sbs-ease:     cubic-bezier(0.2, 0.7, 0.2, 1);
	--sbs-duration: 220ms;

	/* Container widths used by our patterns (Blocksy defines its own; ours are narrower for editorial). */
	--sbs-container-narrow: 720px;
	--sbs-container-medium: 960px;
}

/* Dark contexts — flip surface/ink for sections like the founders quote band. */
.has-sbs-dark {
	--sbs-color-ink:        var(--theme-palette-color-7); /* light text on dark */
	--sbs-color-text:       #B6BEC8;
	--sbs-color-surface:    var(--theme-palette-color-4); /* Deep Anatomy bg */
	--sbs-color-card:       var(--theme-palette-color-4);
	--sbs-color-border:     #1A2A3D;
}
