/*
 * Season colours. One key colour per season (or per event) is set by the plugin as
 * --season-key, with --season-on-key (text on it), inline on the body (class dp-has-season)
 * or on an element (class dp-keyed). Everything else is derived from the key colour here,
 * as in the brandbook: the season colour is the accent, tints are mixes with it.
 * Neutrals (background, text, lines) stay as in tokens.css.
 * Without a key colour nothing here applies and the site uses tokens.css as before.
 */

body.dp-has-season,
.dp-keyed {
	--accent: var(--season-key);
	--accent-soft: color-mix(in srgb, var(--season-key) 16%, #fff);
	--brass: var(--season-key);
	--brand: var(--season-key);
	--brand-hover: color-mix(in srgb, var(--season-key) 80%, #000);
	--brand-soft: color-mix(in srgb, var(--season-key) 14%, #fff);
	--ink: color-mix(in srgb, var(--season-key) 55%, #000);
	--ink-2: color-mix(in srgb, var(--season-key) 70%, #000);
	--on-ink: var(--season-on-key);
	--on-ink-muted: color-mix(in srgb, var(--season-on-key) 75%, transparent);
	/* Small text keeps 4.5:1: links, the logo and light pills use a darker key colour, small labels sit on it.
	   Large elements (buttons, the hero, cards) keep the key colour itself. */
	--accent-text: var(--season-key-text, var(--season-key));
	--accent-small: var(--season-key-small, var(--season-key));
}

body.dp-has-season {
	--bg: color-mix(in srgb, var(--season-key) 5%, #fff);
	--surface: #fff;
	--surface-2: color-mix(in srgb, var(--season-key) 10%, #fff);
}

/* Other pages: a white header with dark text (owner, 27.11); the season photo is no longer behind it. */

/* Every page takes the season background (winter: a pale blue, about #f6f9fd) instead of the theme beige. */
body.dp-has-season {
	background: var(--bg);
}
