/*
 * Lempar — wp-frisbee-academy token bridge.
 *
 * academy.css styles its blocks against a token vocabulary it expects the
 * theme to define (--font-body, --bg-card, the --c-<hue>-<step> ramp, and so
 * on). Those names came from a previous theme; without them every var() in
 * that stylesheet resolves to nothing and the Academy blocks lose their
 * spacing, colour and radii.
 *
 * Rather than fork the plugin's CSS, this file republishes Lempar's palette
 * under the names Academy asks for. Each mapping is a deliberate choice about
 * which Lempar token plays the role the Academy hue used to play, so the
 * Academy blocks inherit the site's design — including dark mode, since every
 * value here points at a preset that the scheme already switches.
 */

:root {
	/* Type and shape. */
	--font-body: var(--wp--preset--font-family--nunito);
	--font-display: var(--wp--preset--font-family--nunito);
	--r-full: var(--wp--custom--radius--pill);
	--r-lg: var(--wp--custom--radius--card);
	--r-md: var(--wp--custom--radius--small);
	--border-hairline: 1px solid var(--wp--preset--color--line);
	--shadow-card: var(--wp--preset--shadow--card);
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);

	/* Surfaces and text. */
	--ink: var(--wp--preset--color--contrast);
	--bg-card: var(--wp--preset--color--surface);
	--fg-primary: var(--wp--preset--color--contrast);
	--fg-secondary: var(--wp--preset--color--muted);
	--fg-muted: var(--wp--preset--color--muted);
	--fg-link: var(--wp--preset--color--accent);

	/*
	 * Hue ramps. Academy reads a handful of steps per hue; each maps onto the
	 * Lempar token that carries the same meaning — terracotta is the brand
	 * coral, teal is spirit, gold is the highlight yellow, indigo is ink, and
	 * cream is the page/surface pair.
	 */
	--c-terracotta-500: var(--wp--preset--color--accent);

	--c-teal-50: color-mix(in srgb, var(--wp--preset--color--spirit) 12%, var(--wp--preset--color--surface));
	--c-teal-500: var(--wp--preset--color--spirit);
	--c-teal-700: color-mix(in srgb, var(--wp--preset--color--spirit) 70%, var(--wp--preset--color--contrast));

	--c-gold-50: color-mix(in srgb, var(--wp--preset--color--highlight) 16%, var(--wp--preset--color--surface));
	--c-gold-300: color-mix(in srgb, var(--wp--preset--color--highlight) 60%, var(--wp--preset--color--surface));
	--c-gold-500: var(--wp--preset--color--highlight);
	--c-gold-700: color-mix(in srgb, var(--wp--preset--color--highlight) 70%, var(--wp--preset--color--contrast));
	--c-gold-900: color-mix(in srgb, var(--wp--preset--color--highlight) 40%, var(--wp--preset--color--contrast));

	--c-indigo-500: color-mix(in srgb, var(--wp--preset--color--contrast) 70%, var(--wp--preset--color--base));
	--c-indigo-700: color-mix(in srgb, var(--wp--preset--color--contrast) 85%, var(--wp--preset--color--base));
	--c-indigo-900: var(--wp--preset--color--contrast);

	--c-cream-50: var(--wp--preset--color--base);
	--c-cream-100: color-mix(in srgb, var(--wp--preset--color--contrast) 5%, var(--wp--preset--color--base));
}
