/*
 * The Tailwind v4 theme of the engine's block sheets (brief of 31 Oct 2026, package 1; plan 4.2): every value a
 * token of Rooster Zero (the palette presets `--wp--preset--color--*`, the spacing and font-size presets, the custom
 * tokens `--wp--custom--rooster--*`; docs/TOKENS-PARITY.md in the theme), on Tailwind's namespaces, so each block's
 * recipe (engine/blocks/<block>/style.src.css) is written with @apply from the scale and compiles to ordinary CSS on
 * the theme's variables. `inline` makes a utility compile to the token's var() directly. Nothing of Tailwind runs on
 * a site: build/blocks-css.mjs compiles each recipe to engine/blocks/<block>/style.css, the sheet block.json names,
 * which WordPress loads only on a page that renders the block. No preflight, no utility scanning (source(none)):
 * the markup carries no raw utilities, the recipes are the contract (the 28 Oct parity rule).
 */

@import "tailwindcss/theme.css" theme(reference);
@import "tailwindcss/utilities.css" source(none);

@theme inline {
	/* The palette (contract C2), by the preset slugs. */
	--color-*: initial;
	--color-bg: var(--wp--preset--color--bg);
	--color-fg: var(--wp--preset--color--fg);
	--color-muted: var(--wp--preset--color--muted);
	--color-subtle: var(--wp--preset--color--subtle);
	--color-line: var(--wp--preset--color--line);
	--color-accent: var(--wp--preset--color--accent);
	--color-accent-text: var(--wp--preset--color--accent-text);
	--color-on-accent: var(--wp--preset--color--on-accent);
	--color-contrast: var(--wp--preset--color--contrast);
	--color-success: var(--wp--preset--color--success);
	--color-warning: var(--wp--preset--color--warning);
	--color-danger: var(--wp--preset--color--danger);

	/* The spacing presets (FE-S1: gaps and paddings from the presets), named s1 to s9. */
	--spacing-*: initial;
	--spacing-0: 0;
	--spacing-s1: var(--wp--preset--spacing--1);
	--spacing-s2: var(--wp--preset--spacing--2);
	--spacing-s3: var(--wp--preset--spacing--3);
	--spacing-s4: var(--wp--preset--spacing--4);
	--spacing-s5: var(--wp--preset--spacing--5);
	--spacing-s6: var(--wp--preset--spacing--6);
	--spacing-s7: var(--wp--preset--spacing--7);
	--spacing-s8: var(--wp--preset--spacing--8);
	--spacing-s9: var(--wp--preset--spacing--9);

	/* The type scale (FE-T1) and the leadings. */
	--text-*: initial;
	--text-xs: var(--wp--preset--font-size--xs);
	--text-sm: var(--wp--preset--font-size--sm);
	--text-md: var(--wp--preset--font-size--md);
	--text-lg: var(--wp--preset--font-size--lg);
	--text-xl: var(--wp--preset--font-size--xl);
	--text-2xl: var(--wp--preset--font-size--2-xl);
	--text-3xl: var(--wp--preset--font-size--3-xl);
	--leading-*: initial;
	--leading-body: var(--wp--custom--rooster--leading--body);
	--leading-heading: var(--wp--custom--rooster--leading--heading);
	--leading-none: 1;

	/* The shape roles (FE-R1). */
	--radius-*: initial;
	--radius-card: var(--wp--custom--rooster--shape--card);
	--radius-chip: var(--wp--custom--rooster--shape--chip);
	--radius-button: var(--wp--custom--rooster--shape--button);
	--radius-control: var(--wp--custom--rooster--shape--control);
	--radius-media: var(--wp--custom--rooster--shape--media);

	/* No breakpoint: the blocks adapt with container queries or render one DOM per device (C7 rule 11). */
	--breakpoint-*: initial;
}
