/*
 * RuiterbondNL design tokens.
 * Everything else in the theme uses these custom properties only.
 *
 * Fluid sizes interpolate between a mobile value at 390px and a desktop value
 * at 1440px viewport width:
 *   clamp(min, min + (max - min) * (100vw - 390px) / 1050, max)
 */

:root {
	/* Colours */
	--rbnl-ink: #211e64;
	--rbnl-text: #4d4b66;
	--rbnl-mute: #68677f;
	--rbnl-orange: #ed6b0f;
	--rbnl-orange-dark: #a64a07;
	/* AA-safe versions of the brand orange: text of 24px+ (or 18.7px bold) needs 3:1, white text on orange 4.5:1. */
	--rbnl-orange-text: #d8610e;
	--rbnl-orange-strong: #c0570c;
	--rbnl-orange-light: #f29648;
	--rbnl-cream: #fbf7f1;
	--rbnl-sand: #f3ebdf;
	--rbnl-peach: #fce7d6;
	--rbnl-peach-2: #f8d2b2;
	--rbnl-lilac: #eeecf7;
	--rbnl-white: #ffffff;
	--rbnl-line: #e6ded2;

	/* Extra shades used by components (taken from the prototype) */
	--rbnl-lilac-2: #d9d5f3; /* social pill */
	--rbnl-line-strong: #dcd2c3; /* footer dividers on sand */

	/* Interaction colours taken from the prototype hovers */
	--rbnl-ink-hover: #37338a;
	--rbnl-peach-hover: #f5c39c;

	/* Typography */
	--rbnl-font-heading: 'degular', 'Degular Fallback', system-ui, sans-serif;
	--rbnl-font-body: 'DM Sans', 'DM Sans Fallback', system-ui, sans-serif;

	--rbnl-fs-h1: clamp(44px, calc(44px + 28 * (100vw - 390px) / 1050), 72px);
	--rbnl-fs-h1-hero: clamp(50px, calc(50px + 38 * (100vw - 390px) / 1050), 88px);
	--rbnl-fs-h2: clamp(34px, calc(34px + 20 * (100vw - 390px) / 1050), 54px);
	--rbnl-fs-h3: clamp(22px, calc(22px + 4 * (100vw - 390px) / 1050), 26px);
	--rbnl-fs-h3-sm: clamp(20px, calc(20px + 2 * (100vw - 390px) / 1050), 22px);
	--rbnl-fs-h3-lg: clamp(24px, calc(24px + 4 * (100vw - 390px) / 1050), 28px);
	--rbnl-fs-eyebrow: 20px;
	--rbnl-fs-lead: clamp(17px, calc(17px + 2 * (100vw - 390px) / 1050), 19px);
	--rbnl-fs-body: 17px;
	--rbnl-fs-small: clamp(14px, calc(14px + 1 * (100vw - 390px) / 1050), 15px);

	/* Radii */
	--rbnl-radius-pill: 999px;
	--rbnl-radius-card: 24px;
	--rbnl-radius-card-lg: 28px;
	--rbnl-radius-section: 32px;
	--rbnl-radius-chip: 12px;

	/* Layout */
	--rbnl-content-max: 1280px;
	--rbnl-gutter: 20px;
	--rbnl-section-gap: 56px;
	--rbnl-section-pad: 56px;
	--rbnl-header-offset: 96px;

	/* Shadows */
	--rbnl-shadow-card: 0 1px 0 var(--rbnl-line);
	--rbnl-shadow-raised: 0 20px 40px rgba(33, 30, 100, 0.1);
	--rbnl-shadow-menu: 0 30px 60px rgba(33, 30, 100, 0.12);
	--rbnl-focus-ring: 0 0 0 4px rgba(33, 30, 100, 0.12);

	/* Motion */
	--rbnl-ease: cubic-bezier(0.45, 0, 0.25, 1);
	--rbnl-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
	--rbnl-dur-fast: 0.25s;
	--rbnl-dur: 0.45s;
	--rbnl-dur-slow: 0.6s;
}

@media (min-width: 1024px) {
	:root {
		--rbnl-radius-section: 48px;
		--rbnl-gutter: 40px;
		--rbnl-section-gap: 96px;
		--rbnl-section-pad: 104px;
	}
}
