/*
 * ARONEX design tokens.
 * Single source of values. Components and templates use only var(--…).
 * No hex, px or rgba outside this file (except images and icons).
 * Source: wordpress/docs/ui-implementation-plan.md and wordpress/docs/design-system.md.
 *
 * Breakpoints (use these values in @media, they cannot live in variables):
 *   768px  tablet
 *   1024px tablet landscape / small laptop
 *   1280px desktop
 */

:root {
	/* Surfaces */
	--color-bg: #FFFFFF;
	--color-bg-alt: #FAF9F6;
	--color-bg-muted: #F0ECE6;
	/* Candidate for sand/cream background tests. Not used by components yet. */
	--color-bg-cream: #F4ECE3;

	/* Borders */
	--color-border: #E6E2DB;
	--color-border-strong: #D9D3CA;
	/* AA check (не применено): --color-border-strong: #6F6A63; 5.36:1 на #FFFFFF, порог 3:1 (WCAG 1.4.11) */
	/* --color-border-strong: #6F6A63; */

	/* Text */
	--color-text: #292824;
	--color-text-muted: #7A7771;
	/* AA check (не применено): --color-text-muted: #6B665F; 4.84:1 на #F0ECE6, 5.69:1 на #FFFFFF, порог 4.5:1 (WCAG 1.4.3) */
	/* --color-text-muted: #6B665F; */
	--color-text-on-dark: #F0ECE6;
	--color-text-on-dark-muted: #C9C2B8;

	/* Accent (burgundy). Change values here to test other accents. */
	--color-accent: #7A2E3A;
	--color-accent-strong: #5C2330;
	--color-accent-soft: #9A5566;
	--color-accent-contrast: #FFFFFF;

	/* Roles: components use roles, not accent values directly. */
	--color-action: var(--color-accent);
	--color-action-hover: var(--color-accent-strong);
	--color-link: var(--color-accent-strong);
	--color-link-hover: var(--color-text);
	--color-price: var(--color-accent);
	--color-total: var(--color-accent);
	--color-highlight: var(--color-accent);
	--color-focus: var(--color-accent-strong);

	/* Footer */
	--color-footer-bg: #4A4238;
	--color-footer-border: #5A5147;

	/* Disabled */
	--color-disabled-bg: #E6E2DB;
	--color-disabled-text: #7A7771;

	/* Status */
	--color-error: #A2463A;
	--color-warning-bg: #FFF6D6;
	--color-warning-border: #E8C65A;
	--color-warning-text: #6B4E00;

	/* Overlay and header */
	--color-overlay: rgba(41, 40, 36, 0.35);
	--color-header-bg: rgba(255, 255, 255, 0.86);
	--header-height: 80px;
	--header-height-mobile: 64px;

	/* Typography */
	--font-family: 'Heebo', Arial, Helvetica, sans-serif;
	--font-heading: var(--font-family);
	--font-body: var(--font-family);

	--font-weight-regular: 400;
	--font-weight-medium: 500;
	--font-weight-bold: 700;

	/* Type scale (px). Values from the mockups. */
	--text-xs: 12px;
	--text-sm: 14px;
	--text-base: 16px;
	--text-md: 18px;
	--text-lg: 20px;
	--text-xl: 24px;
	--text-2xl: 32px;
	--text-3xl: 36px;
	--text-4xl: 44px;
	--text-display: 56px;

	/* Line heights (px). H1 56/64, H2 36/44, H3 24/32, H4 20/28, body 16/26, caption 14/22. */
	--leading-display: 64px;
	--leading-h2: 44px;
	--leading-h3: 32px;
	--leading-h4: 28px;
	--leading-body: 26px;
	--leading-caption: 22px;

	/* Spacing (8px grid) */
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 24px;
	--space-6: 32px;
	--space-7: 48px;
	--space-8: 64px;
	--space-9: 96px;
	--space-10: 80px;

	/* Radius */
	--radius-sm: 6px;
	--radius-md: 8px;
	--radius-lg: 12px;
	--radius-xl: 16px;
	--radius-pill: 999px;

	/* Shadows */
	--shadow-card: 0 1px 2px rgba(41, 40, 36, 0.04), 0 8px 24px rgba(41, 40, 36, 0.06);
	--shadow-inset: inset 0 1px 2px rgba(41, 40, 36, 0.06);
	--shadow-raised:0 1px 0 #FFFFFF inset, 0 2px 4px rgba(41, 40, 36, 0.06), 0 12px 32px rgba(41, 40, 36, 0.10);

	/* Layout */
	--container-max: 1280px;
	--container-narrow: 1120px;
	--page-max: 1440px;
	--gutter-desktop: var(--space-8);
	--gutter-mobile: var(--space-5);

	/* Legacy aliases. Remove after every component uses the names above. */
	--color-bg-soft: var(--color-bg-alt);
	--color-bg-warm: var(--color-bg-muted);
	--color-accent-dark: var(--color-accent-strong);
	--color-text-strong: var(--color-text);
	--radius: var(--radius-lg);
}
