/*
Theme Name: FPL Squad Bold
Theme URI: https://fplsquad.com
Author: FPL Squad
Description: A loud, dark, match-night block theme for FPL Squad. Electric purple and lime pulled straight from the badge, oversized condensed headlines, and full-bleed fixture imagery — built for Premier League and Fantasy Premier League readers.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fplsquad-bold
Tags: blog, news, block-theme, full-site-editing, dark, three-columns, custom-colors, custom-menu, featured-images
*/

/* =================================================================
   1. Foundations
   ================================================================= */

:root {
	--fpl-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--fpl-radius: 10px;
	--fpl-chip-radius: 999px;
	--fpl-hairline: 1px solid var(--wp--preset--color--line);
	--fpl-gutter: clamp(1.25rem, 5vw, 4.5rem);
	--fpl-shell: min(82rem, 100% - (var(--fpl-gutter) * 2));
}

/* WordPress centres .alignwide at the theme's wideSize, which on a laptop sits
   almost exactly at the viewport width and leaves the layout touching both
   edges. Re-measure wide sections against a gutter instead. */
.wp-block-group.alignfull > .alignwide,
.wp-block-group.alignfull > .wp-block-query.alignwide,
main.wp-block-group > .alignwide,
main.wp-block-group > .wp-block-group > .alignwide {
	width: var(--fpl-shell);
	max-width: none;
	margin-inline: auto;
}

/* The same gutter for the constrained reading column. */
main.wp-block-group > .wp-block-group:not(.alignfull) > :where(.wp-block-post-content, .wp-block-group),
.wp-block-post-content.fpl-content {
	padding-inline: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

/* A faint floodlit wash behind everything, so the page never reads as flat black. */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(1100px 520px at 12% -8%, rgba(107, 26, 223, 0.30), transparent 62%),
		radial-gradient(900px 460px at 92% 2%, rgba(45, 212, 244, 0.11), transparent 60%),
		radial-gradient(760px 520px at 50% 102%, rgba(156, 255, 0, 0.07), transparent 68%);
}

::selection {
	background: var(--wp--preset--color--lime);
	color: var(--wp--preset--color--ink);
}

:where(a):focus-visible,
:where(button):focus-visible,
:where(input):focus-visible,
:where(textarea):focus-visible,
:where(select):focus-visible {
	outline: 3px solid var(--wp--preset--color--lime);
	outline-offset: 3px;
	border-radius: 2px;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.skip-link:focus {
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 999;
	background: var(--wp--preset--color--lime);
	color: var(--wp--preset--color--ink);
	padding: 0.75rem 1.25rem;
	font-family: var(--wp--preset--font-family--condensed);
	font-weight: 800;
	text-transform: uppercase;
}

/* =================================================================
   2. Site header
   ================================================================= */

.fpl-header {
	position: sticky;
	top: 0;
	z-index: 90;
	border-bottom: var(--fpl-hairline);
}

/* The frosted backdrop lives on a pseudo-element rather than on the header
   itself: backdrop-filter makes an element a containing block for its
   position:fixed descendants, which would trap the mobile nav overlay inside
   the header instead of letting it cover the viewport. */
.fpl-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(7, 6, 15, 0.82);
	backdrop-filter: saturate(140%) blur(14px);
	-webkit-backdrop-filter: saturate(140%) blur(14px);
}

/* The lime keyline under the header — the badge colour, used as a touchline. */
.fpl-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: linear-gradient(90deg,
		var(--wp--preset--color--lime) 0%,
		var(--wp--preset--color--purple) 45%,
		var(--wp--preset--color--cyan) 70%,
		transparent 100%);
	opacity: 0.85;
}

.fpl-brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
}

.fpl-brand__mark {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: block;
	flex: 0 0 auto;
	box-shadow: 0 6px 20px -8px rgba(107, 26, 223, 0.9);
}

.fpl-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.fpl-brand__name {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.15rem, 2.4vw, 1.5rem);
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--wp--preset--color--white);
}

.fpl-brand__name em {
	font-style: normal;
	color: var(--wp--preset--color--lime);
}

.fpl-brand__tag {
	font-family: var(--wp--preset--font-family--condensed);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin-top: 0.3rem;
}

/* Navigation ---------------------------------------------------- */

.fpl-nav .wp-block-navigation__container {
	gap: clamp(0.5rem, 1.4vw, 1.35rem);
}

.fpl-nav .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--condensed);
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--wp--preset--color--chalk);
	padding: 0.35rem 0;
	position: relative;
	transition: color 0.18s var(--fpl-ease);
}

.fpl-nav .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 2px;
	background: var(--wp--preset--color--lime);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.22s var(--fpl-ease);
}

.fpl-nav .wp-block-navigation-item__content:hover,
.fpl-nav .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.fpl-nav .wp-block-navigation-item__content:hover::after,
.fpl-nav .current-menu-item > .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}

/* On a phone the tagline pushes the burger onto its own row — drop it so the
   brand and the menu button share one line. */
@media (max-width: 640px) {
	.fpl-brand__tag {
		display: none;
	}
	.fpl-brand__mark {
		width: 38px;
		height: 38px;
	}
}

/* Ten desks don't fit on one line until about 1200px. WordPress' own "mobile"
   overlay only kicks in below 600px and its full-screen styles are scoped to
   that breakpoint, so the block is set to overlay "always" — which gives a
   correct overlay at any width — and the inline bar is restored here from
   1200px up, the width at which all ten fit on one line. */
@media (min-width: 1200px) {
	.fpl-nav .wp-block-navigation__responsive-container.hidden-by-default:not(.is-menu-open) {
		display: block;
		position: relative;
		inset: auto;
		width: auto;
		padding: 0;
		overflow: visible;
		z-index: auto;
		background-color: transparent !important;
	}

	.fpl-nav .wp-block-navigation__responsive-container.hidden-by-default:not(.is-menu-open)
		.wp-block-navigation__responsive-container-content {
		display: flex;
		width: auto;
	}

	.fpl-nav .wp-block-navigation__responsive-container-open,
	.fpl-nav .wp-block-navigation__responsive-container-close {
		display: none !important;
	}
}

/* Mobile overlay menu */
.fpl-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--ink);
	padding: clamp(2rem, 6vw, 4rem);
}

.fpl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.5rem;
	letter-spacing: 0.06em;
}

.fpl-nav .wp-block-navigation__responsive-container-open,
.fpl-nav .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--lime);
}

/* =================================================================
   3. Category chips
   ================================================================= */

.fpl-chip,
.fpl-card__terms .wp-block-post-terms__prefix + a,
.fpl-card__terms a {
	display: inline-block;
	font-family: var(--wp--preset--font-family--condensed);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0.3rem 0.7rem;
	border-radius: var(--fpl-chip-radius);
	background: rgba(156, 255, 0, 0.12);
	border: 1px solid rgba(156, 255, 0, 0.42);
	color: var(--wp--preset--color--lime);
	text-decoration: none;
	line-height: 1.35;
	transition: background 0.18s var(--fpl-ease), color 0.18s var(--fpl-ease);
}

.fpl-card__terms a:hover,
.fpl-chip:hover {
	background: var(--wp--preset--color--lime);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

/* The post-terms block puts a separator between multiple terms — hide it,
   the chips read as their own units. */
.fpl-card__terms .wp-block-post-terms__separator {
	display: none;
}

.fpl-card__terms {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

/* =================================================================
   4. Post cards (query loop grid)
   ================================================================= */

.fpl-grid.wp-block-post-template {
	gap: clamp(1.5rem, 2.6vw, 2.25rem) !important;
}

.fpl-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: linear-gradient(180deg, var(--wp--preset--color--panel-raised) 0%, var(--wp--preset--color--pitch) 100%);
	border: var(--fpl-hairline);
	border-radius: var(--fpl-radius);
	overflow: hidden;
	transition: transform 0.25s var(--fpl-ease), border-color 0.25s var(--fpl-ease), box-shadow 0.25s var(--fpl-ease);
	box-shadow: var(--wp--preset--shadow--card);
	height: 100%;
}

.fpl-card:hover {
	transform: translateY(-4px);
	border-color: rgba(156, 255, 0, 0.45);
	box-shadow: var(--wp--preset--shadow--lift);
}

.fpl-card .wp-block-post-featured-image {
	margin: 0;
	overflow: hidden;
	border-radius: 0;
	position: relative;
}

.fpl-card .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 0;
	transition: transform 0.5s var(--fpl-ease), filter 0.35s var(--fpl-ease);
}

.fpl-card:hover .wp-block-post-featured-image img {
	transform: scale(1.045);
}

/* Keeps the dark artwork from fading into the dark card edge. */
.fpl-card .wp-block-post-featured-image::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(7, 6, 15, 0) 55%, rgba(7, 6, 15, 0.55) 100%);
}

.fpl-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: clamp(1.1rem, 2vw, 1.5rem);
	flex: 1 1 auto;
}

.fpl-card__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.15rem, 1.65vw, 1.5rem);
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: 0.004em;
}

.fpl-card__title a {
	color: var(--wp--preset--color--white);
	text-decoration: none;
	background-image: linear-gradient(var(--wp--preset--color--lime), var(--wp--preset--color--lime));
	background-repeat: no-repeat;
	background-size: 0% 2px;
	background-position: 0 100%;
	transition: background-size 0.3s var(--fpl-ease), color 0.2s var(--fpl-ease);
}

.fpl-card:hover .fpl-card__title a {
	color: var(--wp--preset--color--lime);
	background-size: 100% 2px;
}

.fpl-card__excerpt {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
}

.fpl-card__meta {
	margin-top: auto;
	padding-top: 0.85rem;
	border-top: var(--fpl-hairline);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

/* The "read" arrow that slides on hover. */
.fpl-card__meta .fpl-card__go {
	font-family: var(--wp--preset--font-family--condensed);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--lime);
	white-space: nowrap;
}

.fpl-card__meta .fpl-card__go::after {
	content: " \2192";
	display: inline-block;
	transition: transform 0.25s var(--fpl-ease);
}

.fpl-card:hover .fpl-card__meta .fpl-card__go::after {
	transform: translateX(5px);
}

/* =================================================================
   5. Hero / lead story
   ================================================================= */

.fpl-hero {
	position: relative;
	overflow: hidden;
	border-bottom: var(--fpl-hairline);
}

.fpl-hero__kicker {
	font-family: var(--wp--preset--font-family--condensed);
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--wp--preset--color--lime);
	margin: 0 0 0.9rem;
	display: flex;
	align-items: center;
	gap: 0.7rem;
}

.fpl-hero__kicker::before {
	content: "";
	width: 34px;
	height: 3px;
	background: var(--wp--preset--color--lime);
	display: inline-block;
}

.fpl-hero__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.5rem, 7.2vw, 5.75rem);
	line-height: 0.94;
	text-transform: uppercase;
	color: var(--wp--preset--color--white);
	letter-spacing: -0.012em;
}

.fpl-hero__title .fpl-outline {
	-webkit-text-stroke: 2px var(--wp--preset--color--lime);
	color: transparent;
	display: inline-block;
}

.fpl-hero__lede {
	max-width: 46ch;
	color: var(--wp--preset--color--muted);
	font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
	line-height: 1.6;
	margin: 1.25rem 0 0;
}

/* Lead story card — the newest post, given full width. */
.fpl-lead {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 0;
	background: linear-gradient(135deg, var(--wp--preset--color--panel-raised) 0%, var(--wp--preset--color--pitch) 100%);
	border: var(--fpl-hairline);
	border-radius: var(--fpl-radius);
	overflow: hidden;
	box-shadow: var(--wp--preset--shadow--card);
	transition: border-color 0.25s var(--fpl-ease), box-shadow 0.25s var(--fpl-ease);
}

.fpl-lead:hover {
	border-color: rgba(156, 255, 0, 0.45);
	box-shadow: var(--wp--preset--shadow--lift);
}

.fpl-lead .wp-block-post-featured-image {
	margin: 0;
	height: 100%;
	min-height: 260px;
}

.fpl-lead .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	display: block;
}

.fpl-lead__body {
	padding: clamp(1.5rem, 3.2vw, 3rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1rem;
}

.fpl-lead__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.6rem, 3.2vw, 2.75rem);
	line-height: 1.04;
	text-transform: uppercase;
}

.fpl-lead__title a {
	color: var(--wp--preset--color--white);
	text-decoration: none;
	transition: color 0.2s var(--fpl-ease);
}

.fpl-lead__title a:hover {
	color: var(--wp--preset--color--lime);
	text-decoration: none;
}

@media (max-width: 860px) {
	.fpl-lead {
		grid-template-columns: 1fr;
	}
	.fpl-lead .wp-block-post-featured-image {
		min-height: 200px;
		aspect-ratio: 16 / 9;
	}
}

/* =================================================================
   6. Section headings
   ================================================================= */

.fpl-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
	border-bottom: 2px solid var(--wp--preset--color--line);
	padding-bottom: 0.9rem;
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
	position: relative;
}

.fpl-section-head::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 96px;
	height: 2px;
	background: var(--wp--preset--color--lime);
}

.fpl-section-head h2,
.fpl-section-head .fpl-section-head__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.5rem, 3.2vw, 2.35rem);
	text-transform: uppercase;
	color: var(--wp--preset--color--white);
	line-height: 1;
}

.fpl-section-head__link {
	font-family: var(--wp--preset--font-family--condensed);
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--lime);
	text-decoration: none;
	white-space: nowrap;
}

/* =================================================================
   7. Category strip (the nine desks, as tiles)
   ================================================================= */

.fpl-desks {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 0.9rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.fpl-desk {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 116px;
	padding: 1rem 1.1rem;
	border: var(--fpl-hairline);
	border-radius: var(--fpl-radius);
	background:
		linear-gradient(135deg, rgba(107, 26, 223, 0.22) 0%, rgba(13, 11, 26, 0.9) 62%),
		var(--wp--preset--color--pitch);
	text-decoration: none;
	overflow: hidden;
	transition: transform 0.22s var(--fpl-ease), border-color 0.22s var(--fpl-ease), background 0.22s var(--fpl-ease);
}

.fpl-desk::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 3px;
	height: 100%;
	background: var(--wp--preset--color--lime);
	transform: scaleY(0);
	transform-origin: bottom;
	transition: transform 0.25s var(--fpl-ease);
}

.fpl-desk:hover {
	transform: translateY(-3px);
	border-color: rgba(156, 255, 0, 0.4);
}

.fpl-desk:hover::before {
	transform: scaleY(1);
}

/* The desk you're currently reading. */
.fpl-desk.is-current {
	border-color: var(--wp--preset--color--lime);
	background:
		linear-gradient(135deg, rgba(156, 255, 0, 0.16) 0%, rgba(13, 11, 26, 0.92) 62%),
		var(--wp--preset--color--pitch);
}

.fpl-desk.is-current::before {
	transform: scaleY(1);
}

.fpl-desk.is-current .fpl-desk__name {
	color: var(--wp--preset--color--lime);
}

.fpl-desk.is-current .fpl-desk__count {
	color: rgba(156, 255, 0, 0.3);
}

.fpl-desk__count {
	position: absolute;
	top: 0.75rem;
	right: 0.95rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: 2.25rem;
	line-height: 1;
	color: rgba(237, 235, 245, 0.10);
	transition: color 0.25s var(--fpl-ease);
}

.fpl-desk:hover .fpl-desk__count {
	color: rgba(156, 255, 0, 0.28);
}

.fpl-desk__name {
	font-family: var(--wp--preset--font-family--condensed);
	font-size: 1.0625rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--wp--preset--color--white);
	line-height: 1.15;
	position: relative;
}

.fpl-desk__meta {
	font-family: var(--wp--preset--font-family--condensed);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin-top: 0.3rem;
	position: relative;
}

/* =================================================================
   8. Single post
   ================================================================= */

.fpl-post-hero {
	position: relative;
	border-bottom: var(--fpl-hairline);
	overflow: hidden;
}

.fpl-post-hero .wp-block-post-featured-image {
	margin: 0;
	position: relative;
}

.fpl-post-hero .wp-block-post-featured-image img {
	width: 100%;
	max-height: min(62vh, 560px);
	object-fit: cover;
	display: block;
	border-radius: 0;
}

.fpl-post-hero .wp-block-post-featured-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(7, 6, 15, 0.25) 0%, rgba(7, 6, 15, 0.55) 45%, var(--wp--preset--color--ink) 100%);
}

.fpl-post-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2rem, 5.2vw, 4rem) !important;
	line-height: 0.98;
	text-transform: uppercase;
	color: var(--wp--preset--color--white);
	letter-spacing: -0.01em;
	margin: 0;
	text-wrap: balance;
}

.fpl-post-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem 1.1rem;
	font-family: var(--wp--preset--font-family--condensed);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.fpl-post-meta .wp-block-post-date {
	margin: 0;
}

/* Article body ---------------------------------------------------- */

.fpl-content {
	font-size: clamp(1.0625rem, 1.15vw, 1.1875rem);
	line-height: 1.75;
	color: var(--wp--preset--color--chalk);
}

/* WordPress' constrained layout centres each child with auto margins, which
   does nothing for the display:inline-block heading pills the imported posts
   style themselves — they end up hard against the left of the full-width
   container. Centre the column once instead, and let children sit flush in it
   whatever their display type. */
.wp-block-post-content.fpl-content {
	max-width: var(--wp--style--global--content-size, 48rem);
	margin-inline: auto;
}

.wp-block-post-content.fpl-content > * {
	margin-left: 0;
	margin-right: 0;
	max-width: 100%;
}

.fpl-content > * + * {
	margin-top: 1.35em;
}

.fpl-content p {
	margin: 0;
}

/* Many imported posts style their own headings inline — gradient pills in
   Oswald, set to display:inline-block. Those are authored content, so the
   theme's rule-and-bar treatment is applied only to plain headings and never
   fights an inline style. */

.fpl-content h2:not([style]) {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.6rem, 3vw, 2.35rem);
	text-transform: uppercase;
	line-height: 1.05;
	color: var(--wp--preset--color--white);
	margin-top: 2.2em;
	margin-bottom: 0.1em;
	padding-top: 1.1rem;
	border-top: 2px solid var(--wp--preset--color--line);
	position: relative;
}

.fpl-content h2:not([style])::before {
	content: "";
	position: absolute;
	top: -2px;
	left: 0;
	width: 72px;
	height: 2px;
	background: var(--wp--preset--color--lime);
}

.fpl-content h3:not([style]) {
	font-family: var(--wp--preset--font-family--condensed);
	font-size: clamp(1.2rem, 2vw, 1.5rem);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--lime);
	margin-top: 1.9em;
	margin-bottom: 0.15em;
}

/* Give the self-styled heading pills room to breathe and a soft lift, without
   touching the colours, font or shape the author chose. */
.fpl-content :where(h2, h3, h4)[style] {
	margin-top: 2.4em;
	margin-bottom: 0.6em;
	max-width: 100%;
	box-shadow: 0 14px 30px -20px rgba(0, 0, 0, 0.9);
	line-height: 1.25;
}

.fpl-content :where(h2, h3, h4)[style] + * {
	margin-top: 0.9em;
}

.fpl-content a {
	color: var(--wp--preset--color--lime);
	text-decoration: none;
	border-bottom: 1px solid rgba(156, 255, 0, 0.38);
	transition: color 0.18s var(--fpl-ease), border-color 0.18s var(--fpl-ease), background 0.18s var(--fpl-ease);
}

.fpl-content a:hover {
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--lime);
	border-bottom-color: var(--wp--preset--color--lime);
	text-decoration: none;
}

.fpl-content strong {
	color: var(--wp--preset--color--white);
	font-weight: 700;
}

.fpl-content mark {
	background: rgba(156, 255, 0, 0.22);
	color: var(--wp--preset--color--lime);
	padding: 0.05em 0.3em;
	border-radius: 3px;
}

.fpl-content ul,
.fpl-content ol {
	padding-left: 1.35rem;
	margin-top: 1.2em;
}

.fpl-content li + li {
	margin-top: 0.55em;
}

.fpl-content ul li::marker {
	color: var(--wp--preset--color--lime);
}

.fpl-content ol li::marker {
	color: var(--wp--preset--color--lime);
	font-family: var(--wp--preset--font-family--condensed);
	font-weight: 800;
}

.fpl-content figure {
	margin: 2.2em 0;
}

.fpl-content figure img {
	border-radius: var(--fpl-radius);
	border: var(--fpl-hairline);
	display: block;
	width: 100%;
	height: auto;
}

/* Article-embedded panels -----------------------------------------
   Posts carry their own inline-styled callouts (dark strategy boxes,
   light pull-quote cards). Those keep their authored colours; these
   rules only add the shape and spacing the new layout needs. */

.fpl-content div[style*="background"] {
	border-radius: var(--fpl-radius) !important;
	box-shadow: var(--wp--preset--shadow--card);
}

.fpl-content blockquote {
	border-radius: var(--fpl-radius);
	box-shadow: var(--wp--preset--shadow--card);
}

/* Legacy preset backgrounds from the old theme need dark text to stay
   readable now that the page itself is dark. */
.fpl-content .has-light-green-cyan-background-color,
.fpl-content .has-pale-ocean-gradient-background {
	color: var(--wp--preset--color--ink);
	padding: 1.35rem 1.5rem;
	border-radius: var(--fpl-radius);
}

.fpl-content .has-light-green-cyan-background-color :where(p, h2, h3, h4, li, strong) {
	color: var(--wp--preset--color--ink);
}

.fpl-content .has-light-green-cyan-background-color a {
	color: var(--wp--preset--color--purple-deep);
	border-bottom-color: currentColor;
}

.fpl-content .wp-block-group.has-background {
	padding: clamp(1.15rem, 2.2vw, 1.75rem);
	border-radius: var(--fpl-radius);
}

/* =================================================================
   9. Post footer / related
   ================================================================= */

.fpl-postnav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

@media (max-width: 700px) {
	.fpl-postnav {
		grid-template-columns: 1fr;
	}
}

.fpl-postnav .wp-block-post-navigation-link {
	background: var(--wp--preset--color--pitch);
	border: var(--fpl-hairline);
	border-radius: var(--fpl-radius);
	padding: 1.15rem 1.35rem;
	transition: border-color 0.2s var(--fpl-ease), transform 0.2s var(--fpl-ease);
}

.fpl-postnav .wp-block-post-navigation-link:hover {
	border-color: rgba(156, 255, 0, 0.45);
	transform: translateY(-2px);
}

.fpl-postnav .wp-block-post-navigation-link a {
	font-family: var(--wp--preset--font-family--condensed);
	font-weight: 700;
	font-size: 1.0625rem;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.fpl-postnav .wp-block-post-navigation-link a:hover {
	color: var(--wp--preset--color--lime);
	text-decoration: none;
}

.fpl-postnav .post-navigation-link-previous .wp-block-post-navigation-link__label,
.fpl-postnav .post-navigation-link-next .wp-block-post-navigation-link__label {
	display: block;
	font-family: var(--wp--preset--font-family--condensed);
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--lime);
	margin-bottom: 0.4rem;
}

.fpl-postnav .post-navigation-link-next {
	text-align: right;
}

/* =================================================================
   10. Archive / category header
   ================================================================= */

.fpl-archive-head {
	position: relative;
	overflow: hidden;
	border-bottom: var(--fpl-hairline);
	background:
		linear-gradient(135deg, rgba(107, 26, 223, 0.35) 0%, rgba(7, 6, 15, 0) 58%),
		var(--wp--preset--color--pitch);
}

.fpl-archive-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.25rem, 6.5vw, 5rem) !important;
	line-height: 0.95;
	text-transform: uppercase;
	color: var(--wp--preset--color--white);
	margin: 0;
	letter-spacing: -0.01em;
}

/* WordPress wraps the term name itself in a span (the "Category:" prefix is a
   bare text node), so the span must inherit the big treatment, not shrink. */
.fpl-archive-title span {
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
}

.fpl-archive-title .wp-block-query-title__prefix {
	display: block;
	font-family: var(--wp--preset--font-family--condensed);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	color: var(--wp--preset--color--lime);
	margin-bottom: 0.5rem;
}

.fpl-archive-desc {
	max-width: 56ch;
	color: var(--wp--preset--color--muted);
	font-size: 1.0625rem;
	line-height: 1.6;
	margin: 1rem 0 0;
}

/* =================================================================
   11. Pagination
   ================================================================= */

.fpl-pagination {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.fpl-pagination .wp-block-query-pagination-numbers,
.fpl-pagination .wp-block-query-pagination-previous,
.fpl-pagination .wp-block-query-pagination-next {
	font-family: var(--wp--preset--font-family--condensed);
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.fpl-pagination a,
.fpl-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	height: 2.75rem;
	padding: 0 0.85rem;
	border: var(--fpl-hairline);
	border-radius: var(--fpl-chip-radius);
	color: var(--wp--preset--color--chalk);
	text-decoration: none;
	background: var(--wp--preset--color--pitch);
	transition: all 0.18s var(--fpl-ease);
}

.fpl-pagination a:hover {
	border-color: var(--wp--preset--color--lime);
	color: var(--wp--preset--color--lime);
	text-decoration: none;
}

.fpl-pagination .page-numbers.current {
	background: var(--wp--preset--color--lime);
	border-color: var(--wp--preset--color--lime);
	color: var(--wp--preset--color--ink);
}

.fpl-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
	color: var(--wp--preset--color--muted);
}

/* =================================================================
   12. Search
   ================================================================= */

.fpl-search .wp-block-search__input {
	background: var(--wp--preset--color--pitch);
	border: var(--fpl-hairline);
	border-radius: var(--fpl-chip-radius);
	color: var(--wp--preset--color--chalk);
	padding: 0.85rem 1.25rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
}

.fpl-search .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--muted);
}

.fpl-search .wp-block-search__button {
	background: var(--wp--preset--color--lime);
	color: var(--wp--preset--color--ink);
	border: 0;
	border-radius: var(--fpl-chip-radius);
	padding: 0.85rem 1.5rem;
	font-family: var(--wp--preset--font-family--condensed);
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.18s var(--fpl-ease);
}

.fpl-search .wp-block-search__button:hover {
	background: var(--wp--preset--color--white);
}

/* =================================================================
   13. Footer
   ================================================================= */

.fpl-footer {
	border-top: 2px solid var(--wp--preset--color--line);
	background:
		linear-gradient(180deg, rgba(107, 26, 223, 0.12) 0%, rgba(7, 6, 15, 0) 40%),
		var(--wp--preset--color--pitch);
	position: relative;
}

.fpl-footer::before {
	content: "";
	position: absolute;
	top: -2px;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg,
		var(--wp--preset--color--lime),
		var(--wp--preset--color--purple) 50%,
		transparent);
}

.fpl-footer__heading {
	font-family: var(--wp--preset--font-family--condensed);
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--lime);
	margin: 0 0 1rem;
}

.fpl-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.fpl-footer__list a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	font-size: 0.9375rem;
	transition: color 0.18s var(--fpl-ease);
}

.fpl-footer__list a:hover {
	color: var(--wp--preset--color--lime);
	text-decoration: none;
}

/* Categories / pages / archives blocks in the footer columns. */
.fpl-footer__cats ul,
.fpl-footer__cats,
.fpl-footer__pages ul,
.fpl-footer__pages,
.fpl-footer__archives ul,
.fpl-footer__archives {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fpl-footer__cats li,
.fpl-footer__pages li,
.fpl-footer__archives li {
	margin: 0 0 0.55rem;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--muted);
	display: flex;
	align-items: baseline;
	gap: 0.4rem;
}

.fpl-footer__cats a,
.fpl-footer__pages a,
.fpl-footer__archives a {
	color: var(--wp--preset--color--chalk);
	text-decoration: none;
	font-family: var(--wp--preset--font-family--condensed);
	font-weight: 600;
	font-size: 1rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	transition: color 0.18s var(--fpl-ease);
}

.fpl-footer__cats a:hover,
.fpl-footer__pages a:hover,
.fpl-footer__archives a:hover {
	color: var(--wp--preset--color--lime);
	text-decoration: none;
}

/* The "(4)" post counts sit as bare text nodes after the link. */
.fpl-footer__cats li,
.fpl-footer__archives li {
	font-family: var(--wp--preset--font-family--condensed);
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted);
}

.fpl-footer__bottom {
	border-top: var(--fpl-hairline);
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--condensed);
	font-size: 0.8125rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.fpl-footer__wordmark {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(3rem, 13vw, 10rem);
	line-height: 0.8;
	text-transform: uppercase;
	color: transparent;
	-webkit-text-stroke: 1px rgba(237, 235, 245, 0.10);
	margin: 0;
	user-select: none;
	pointer-events: none;
	white-space: nowrap;
	overflow: hidden;
}

/* =================================================================
   14. Comments
   ================================================================= */

.fpl-comments .wp-block-post-comments-form input[type="text"],
.fpl-comments .wp-block-post-comments-form input[type="email"],
.fpl-comments .wp-block-post-comments-form input[type="url"],
.fpl-comments .wp-block-post-comments-form textarea {
	background: var(--wp--preset--color--pitch);
	border: var(--fpl-hairline);
	border-radius: 6px;
	color: var(--wp--preset--color--chalk);
	padding: 0.75rem 1rem;
	width: 100%;
	font-family: var(--wp--preset--font-family--body);
}

.fpl-comments .wp-block-post-comments-form .form-submit input[type="submit"] {
	background: var(--wp--preset--color--lime);
	color: var(--wp--preset--color--ink);
	border: 0;
	border-radius: var(--fpl-chip-radius);
	padding: 0.85rem 1.75rem;
	font-family: var(--wp--preset--font-family--condensed);
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

.fpl-comments .wp-block-comment-author-name a,
.fpl-comments .wp-block-comment-author-name {
	font-family: var(--wp--preset--font-family--condensed);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--white);
}

.fpl-comments .wp-block-comment-date {
	color: var(--wp--preset--color--muted);
	font-size: 0.8125rem;
}

/* =================================================================
   15. Motion preferences
   ================================================================= */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}
