/**
 * Theme utilities — brand colours and text tokens.
 *
 * Adding a colour is one edit: the custom property and the class that points at
 * it. The sheet is loaded on every page after the variant CSS, so a class here
 * wins over a component rule of equal specificity.
 *
 * The text tokens exist because core blocks cannot express var(): a template
 * that should follow the skin needs a class that maps to the skin's colour
 * instead of a literal hex.
 *
 *   --corbeau: #111122;   →   .color-corbeau { color: var(--corbeau) }
 *                           →   .bg-corbeau    { background-color: var(--corbeau) }
 *
 * Other needs (border, fill, stroke) are written the same way — add a class only
 * when a page actually needs it.
 */
:root {
	--corbeau: #111122;
}

.color-corbeau {
	color: var(--corbeau);
}

.bg-corbeau {
	background-color: var(--corbeau);
}

/* On a brand-coloured surface links follow the surrounding text: the skin's dark
   body colour is unreadable there. Specificity stays at the bare `a` level, so
   a text utility on the link itself still wins. */
:where(.bg-corbeau, .color-corbeau) a {
	color: inherit;
}

/* Text tokens — follow the active skin (and its dark layer) instead of a fixed
   hex. Use them on core blocks when a template must not pin a colour. */
.origin-text-body {
	color: var(--origin-text-color-black);
}

.origin-text-muted {
	color: var(--origin-text-color-black-light);
}

.origin-text-accent {
	color: var(--origin-primary);
}

/* Links inside a token-coloured wrapper follow that colour (same specificity as
   the bare `a` rule, so a link-level utility still wins). */
:where(.origin-text-body, .origin-text-muted, .origin-text-accent) a {
	color: inherit;
}
