/*
 * Legacy bridge.
 *
 * Page and post content saved under the 2025 theme still carries its preset
 * classes (accent-1..5, Heavitas "subheading", Mona Sans, and so on). Those
 * presets no longer exist, so WordPress no longer prints rules for them. This
 * file maps each one onto the new palette and fonts so old content looks
 * on-brand until it is edited. It also defines Ollie's own palette variables,
 * which the parent theme's CSS still reads.
 *
 * Mapping (old -> new):
 *   accent-1 pink    -> Lamplight     accent-2 teal   -> Aetheryte
 *   accent-3 yellow  -> Lamplight     accent-4 orange -> Lamplight
 *   accent-5 purple  -> Aetheryte
 *
 * Safe to delete once no content uses these classes. Check with:
 *   wp db query "SELECT ID FROM wp_posts WHERE post_content LIKE '%has-accent-%'"
 */

:root {
	--wp--preset--color--accent-1: var(--wp--preset--color--lamplight);
	--wp--preset--color--accent-2: var(--wp--preset--color--aetheryte);
	--wp--preset--color--accent-3: var(--wp--preset--color--lamplight);
	--wp--preset--color--accent-4: var(--wp--preset--color--lamplight);
	--wp--preset--color--accent-5: var(--wp--preset--color--aetheryte);

	/* Ollie's semantic palette, read by the parent theme's CSS and patterns. */
	--wp--preset--color--base: var(--wp--preset--color--primary);
	--wp--preset--color--main: var(--wp--preset--color--secondary);
	--wp--preset--color--main-accent: var(--wp--preset--color--haze);
	--wp--preset--color--tertiary: var(--wp--preset--color--midnight);
	--wp--preset--color--primary-accent: var(--wp--preset--color--midnight);
	--wp--preset--color--primary-alt: var(--wp--preset--color--aetheryte);
	--wp--preset--color--primary-alt-accent: var(--wp--preset--color--midnight);
	--wp--preset--color--border-light: rgba(141, 154, 168, 0.18);
	--wp--preset--color--border-dark: rgba(141, 154, 168, 0.32);

	/* Old font preset slugs. */
	--wp--preset--font-family--primary: var(--wp--preset--font-family--body);
	--wp--preset--font-family--mona-sans: var(--wp--preset--font-family--body);
	--wp--preset--font-family--subheading: var(--wp--preset--font-family--body);
	--wp--preset--font-family--monospace: var(--wp--preset--font-family--mono);
}

/* Colors
---------------------------------------------------------------------------- */

.has-accent-1-color { color: var(--wp--preset--color--accent-1) !important; }
.has-accent-2-color { color: var(--wp--preset--color--accent-2) !important; }
.has-accent-3-color { color: var(--wp--preset--color--accent-3) !important; }
.has-accent-4-color { color: var(--wp--preset--color--accent-4) !important; }
.has-accent-5-color { color: var(--wp--preset--color--accent-5) !important; }
.has-base-color { color: var(--wp--preset--color--base) !important; }
.has-main-color { color: var(--wp--preset--color--main) !important; }
.has-tertiary-color { color: var(--wp--preset--color--tertiary) !important; }

.has-accent-1-background-color { background-color: var(--wp--preset--color--accent-1) !important; }
.has-accent-2-background-color { background-color: var(--wp--preset--color--accent-2) !important; }
.has-accent-3-background-color { background-color: var(--wp--preset--color--accent-3) !important; }
.has-accent-4-background-color { background-color: var(--wp--preset--color--accent-4) !important; }
.has-accent-5-background-color { background-color: var(--wp--preset--color--accent-5) !important; }
.has-base-background-color { background-color: var(--wp--preset--color--base) !important; }
.has-main-background-color { background-color: var(--wp--preset--color--main) !important; }
.has-tertiary-background-color { background-color: var(--wp--preset--color--tertiary) !important; }

/*
 * Inline <mark> colors from the 2025 hero ("Twitch Streamer • Content Creator
 * • Unapologetic Punk") resolve through the rules above; the old rainbow text
 * gradient is simply dropped.
 */
.--is-rainbow,
.rainbow,
.rainbow span {
	background: none !important;
	-webkit-text-fill-color: currentColor !important;
}

/* Fonts
---------------------------------------------------------------------------- */

.has-mona-sans-font-family,
.has-expanded-font-family,
.has-condensed-font-family,
.has-narrow-font-family,
.has-primary-font-family,
.has-secondary-font-family,
.has-tertiary-font-family {
	font-family: var(--wp--preset--font-family--body) !important;
}

/* Heavitas was the tag/label face; Archivo labels replace it. */
.has-subheading-font-family {
	font-family: var(--wp--preset--font-family--body) !important;
	font-weight: 600 !important;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.has-monospace-font-family {
	font-family: var(--wp--preset--font-family--mono) !important;
}

/* Helper classes still used in page content
---------------------------------------------------------------------------- */

@media (max-width: 61.99em) {
	.--hide-on-mobile,
	.tablet-hide {
		display: none;
	}

	.--stack-on-mobile {
		display: flex;
		flex-direction: column;
	}

	.mobile-col-order-2 {
		order: 2;
	}
}

.dark-card-shadow {
	border: 1px solid var(--wp--custom--hairline);
	transition: border-color 0.2s ease;
}

.dark-card-shadow:hover {
	border-color: rgba(99, 191, 225, 0.55);
}

/* Build-guide type tags (2025 taxonomy). One neutral chip style. */
div.taxonomy-guide-type a {
	display: inline-block;
	padding: 0.3rem 0.55rem;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--aetheryte);
	background-color: rgba(20, 37, 57, 0.85);
	border: 1px solid var(--wp--custom--hairline);
	border-radius: 2px;
}

div.taxonomy-guide-type a:hover {
	color: var(--wp--preset--color--primary) !important;
	background-color: var(--wp--preset--color--lamplight) !important;
}
