/*
 * Design tokens.
 *
 * Colours and font sizes come from theme.json (--wp--preset--*), which mirrors the
 * Figma variables "Optimore · Color" and the "Optimore / …" text styles.
 * This file gives them short aliases and adds layout tokens theme.json does not cover.
 *
 * Breakpoints (use in media queries – custom properties cannot be used there):
 *   sm  390px   phone (design reference width)
 *   md  768px   tablet
 *   lg 1024px   small desktop
 *   header 1200px  full desktop header (navigation needs ~1120px)
 *   xl 1440px   desktop (Figma frame width)
 *
 * Fluid values scale linearly between 390px and 1440px viewport.
 */

:root {
	/* Colour */
	--c-brand: var(--wp--preset--color--brand-primary, #184895);
	--c-accent-1: var(--wp--preset--color--brand-accent-1, #1e7fba);
	--c-accent-2: var(--wp--preset--color--brand-accent-2, #25c3ea);
	--c-text: var(--wp--preset--color--text-primary, #000);
	--c-ink: var(--wp--preset--color--text-ink, #101f2c);
	--c-muted: var(--wp--preset--color--text-muted, #bababa);
	--c-surface: var(--wp--preset--color--surface-white, #fff);
	--c-surface-subtle: var(--wp--preset--color--surface-subtle, #f2f2f2);
	--c-border: var(--wp--preset--color--border-neutral, #d9d9d9);
	--c-border-subtle: var(--wp--preset--color--border-subtle, #d6dbdc);

	/* Font families */
	--ff-heading: var(--wp--preset--font-family--heading, Montserrat, system-ui, sans-serif);
	--ff-body: var(--wp--preset--font-family--body, "Source Sans 3", system-ui, sans-serif);

	/* Font sizes – fluid (mobile → desktop) */
	--fs-body: var(--wp--preset--font-size--body, 1.125rem);           /* 16 → 18 */
	--fs-card-title: var(--wp--preset--font-size--card-title, 1.75rem); /* 22 → 28 */
	--fs-heading: var(--wp--preset--font-size--heading, 2.5rem);        /* 28 → 40 */
	--fs-display: var(--wp--preset--font-size--display, 2.875rem);      /* 32 → 46 */

	/* Font sizes – fixed (same on all screens in Figma) */
	--fs-nav: 0.875rem;      /* 14 – Navigation */
	--fs-button: 1rem;       /* 16 – Button */
	--fs-eyebrow: 1rem;      /* 16 – Eyebrow, letter-spacing 10% */
	--fs-tagline: 1.0625rem; /* 17 – Tagline */
	--fs-link: var(--fs-body); /* 18 on desktop, follows body on mobile */

	/* Spacing scale (Figma "Optimore · Layout" → space/*) */
	--space-4: 0.25rem;
	--space-8: 0.5rem;
	--space-12: 0.75rem;
	--space-16: 1rem;
	--space-20: 1.25rem;
	--space-24: 1.5rem;
	--space-32: 2rem;
	--space-40: 2.5rem;
	--space-48: 3rem;
	--space-60: 3.75rem;
	--space-64: 4rem;
	--space-72: 4.5rem;

	/* Layout rhythm (developer notes, section 6) */
	--gutter: clamp(1.25rem, 0.786rem + 1.905vw, 2.5rem);          /* page side padding 20 → 40 */
	--section-gap: clamp(2.5rem, 2.036rem + 1.905vw, 3.75rem);     /* between sections 40 → 60 */
	--section-gap-related: 2.5rem;                                  /* related blocks 40 */
	--header-gap: clamp(1.5rem, 1.221rem + 1.143vw, 2.25rem);      /* header → first section 24 → 36 */
	--container-max: 85rem;                                         /* 1360 content width */

	/* Radius (radius/*) */
	--radius-sm: 5px;
	--radius-md: 6px;
	--radius-lg: 12px;
	--radius-pill: 33px;

	/* Motion */
	--ease: cubic-bezier(0.2, 0, 0, 1);
	--dur: 200ms;
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--dur: 0ms;
	}
}
