/* ==========================================================================
   Talsu bio enerģija — design tokens
   Single source of truth for colour, type, spacing, radii, motion.
   Brand accent is overridable from the Customizer (printed inline).
   ========================================================================== */

:root {
	/* Brand ---------------------------------------------------------------- */
	--tbe-accent: #f5a200;          /* logo amber, overridden in Customizer */
	--tbe-accent-strong: #cf7f00;   /* computed darken of the accent */
	--tbe-accent-soft: #fff4dc;
	--tbe-forest: #0e7c66;          /* biomass / sustainability */
	--tbe-forest-soft: #e6f4f0;

	/* Neutrals ------------------------------------------------------------- */
	--tbe-ink: #14181d;             /* near-black, matches old header bar */
	--tbe-ink-800: #1d232a;
	--tbe-ink-600: #3d4653;
	--tbe-slate: #5a6472;           /* body copy */
	--tbe-line: #e2e6ec;
	--tbe-mist: #f4f6f9;
	--tbe-white: #ffffff;

	/* Typography ----------------------------------------------------------- */
	--tbe-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
		Arial, "Noto Sans", sans-serif;
	--tbe-font-head: var(--tbe-font);
	--tbe-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

	--tbe-text-xs: 0.75rem;    /* 12 */
	--tbe-text-sm: 0.875rem;   /* 14 */
	--tbe-text-md: 1rem;       /* 16 */
	--tbe-text-lg: 1.125rem;   /* 18 */
	--tbe-text-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
	--tbe-text-2xl: clamp(1.5rem, 1.25rem + 1.1vw, 2rem);
	--tbe-text-3xl: clamp(1.75rem, 1.35rem + 1.9vw, 2.75rem);
	--tbe-text-4xl: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);

	--tbe-leading-tight: 1.12;
	--tbe-leading-snug: 1.3;
	--tbe-leading: 1.65;

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

	/* Layout --------------------------------------------------------------- */
	--tbe-container: 1200px;
	--tbe-container-narrow: 760px;
	--tbe-gutter: clamp(1rem, 0.5rem + 2.2vw, 2.5rem);
	--tbe-radius-sm: 8px;
	--tbe-radius: 14px;
	--tbe-radius-lg: 22px;
	--tbe-radius-pill: 999px;

	/* Elevation ------------------------------------------------------------ */
	--tbe-shadow-xs: 0 1px 2px rgba(20, 24, 29, 0.06);
	--tbe-shadow-sm: 0 4px 12px rgba(20, 24, 29, 0.07);
	--tbe-shadow-md: 0 14px 34px rgba(20, 24, 29, 0.10);
	--tbe-shadow-lg: 0 28px 60px rgba(20, 24, 29, 0.16);
	--tbe-ring: 0 0 0 3px rgba(245, 162, 0, 0.36);

	/* Motion --------------------------------------------------------------- */
	--tbe-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--tbe-fast: 140ms;
	--tbe-base: 220ms;

	/* Layers --------------------------------------------------------------- */
	--tbe-header-top: 98px;  /* height of the brand row; sticky offset below */
	--tbe-z-backdrop: 250;   /* dims page behind the mobile drawer */
	--tbe-z-header: 300;     /* header (and the drawer inside it) above it */
	--tbe-z-drawer: 320;
	--tbe-z-toast: 400;
}
