/*
 * The accent preset is unknown: a theme's primary may be dark (white text)
 * or light (a lime or yellow, where white text fails). Where the browser
 * supports relative colour syntax, the text is picked from the background:
 * white below OKLCH lightness 0.58, black above it. 0.58 is the point where
 * the fewest sRGB colours fall under 4.5:1 with black or white text.
 * Older browsers get the library's accent contrast colour, else white,
 * which suits the dark #4338ca fallback but not a light theme primary.
 */
.is-style-fc-accent {
	--fc-accent-bg: var(--wp--preset--color--primary, var(--wp--preset--color--accent, var(--wp--preset--color--accent-1, var(--wp--preset--color--vivid-purple, var(--fc-color-accent, #4338ca)))));
	--fc-accent-text: var(--fc-color-accent-contrast, #ffffff);
	background-color: var(--fc-accent-bg);
	color: var(--fc-accent-text);
}

@supports (color: oklch(from red l c h)) {
	.is-style-fc-accent {
		--fc-accent-text: oklch(from var(--fc-accent-bg) clamp(0, (0.58 - l) * 1000, 1) 0 0);
	}
}

.is-style-fc-accent a:where(:not(.wp-element-button)),
.is-style-fc-accent :is(h1, h2, h3, h4, h5, h6) {
	color: var(--fc-accent-text);
}

/*# sourceMappingURL=style.css.map */