/*
Theme Name: FourteenForty
Theme URI: https://fourteenforty.ca
Author: FourteenForty Inc.
Description: Calm, editorial block theme for FourteenForty. Edit pages in the standard WordPress editor; brand colours, type and spacing live in theme.json.
Version: 1.0.1
Requires at least: 6.5
Requires PHP: 7.4
License: Proprietary
Text Domain: fourteenforty
*/

/* ---------- Base ---------- */

:root {
	--ff-ink: #1F3349;
	--ff-radius: 6px;
	--ff-section: clamp(3.5rem, 8vw, 6.5rem);
	--ff-shadow: 0 1px 2px rgba(11, 45, 75, 0.04), 0 8px 24px rgba(11, 45, 75, 0.06);
}

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

.wp-site-blocks {
	padding-top: 0;
	padding-bottom: 0;
}

.wp-site-blocks > * + * {
	margin-block-start: 0;
}

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

.ff-skip-link {
	position: absolute;
	left: -9999px;
	top: 0.5rem;
	z-index: 1000;
	background: var(--wp--preset--color--navy);
	color: #fff;
	padding: 0.75rem 1rem;
}

.ff-skip-link:focus {
	left: 0.5rem;
}

/* ---------- Header ---------- */

.ff-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(247, 244, 237, 0.95);
	backdrop-filter: saturate(150%) blur(8px);
	border-bottom: 1px solid rgba(11, 45, 75, 0.08);
}

.admin-bar .ff-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .ff-header {
		top: 46px;
	}
}

.ff-header__inner {
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
	padding-block: 1rem;
	gap: 1.5rem;
}

/* The site title doubles as the logo: text stays for screen readers and search engines. */
.ff-logo {
	margin: 0;
	line-height: 1;
}

.ff-logo a {
	display: block;
	width: 168px;
	height: 65px;
	background: url("assets/logo.png") left center / contain no-repeat;
	color: transparent !important;
	font-size: 0;
	text-decoration: none;
	overflow: hidden;
}

.ff-nav {
	font-size: 0.975rem;
	font-weight: 500;
	gap: 1.75rem;
}

.ff-nav a {
	color: var(--wp--preset--color--navy);
	text-decoration: none;
	padding-block: 0.35rem;
	border-bottom: 2px solid transparent;
}

.ff-nav a:hover,
.ff-nav .current-menu-item > a,
.ff-nav a[aria-current="page"] {
	border-bottom-color: var(--wp--preset--color--gold);
}

.ff-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 2rem;
}

.ff-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	font-size: 1.25rem;
	gap: 1.25rem;
}

/* ---------- Sections ---------- */

.ff-section {
	padding-top: var(--ff-section);
	padding-bottom: var(--ff-section);
}

.ff-section--tight {
	padding-top: clamp(2.5rem, 5vw, 4rem);
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.ff-bg-ivory {
	background: var(--wp--preset--color--ivory);
}

.ff-bg-grey {
	background: var(--wp--preset--color--soft-grey);
}

.ff-bg-navy {
	background: var(--wp--preset--color--navy);
	color: #E6EDF3;
}

.ff-bg-navy :where(h1, h2, h3, h4) {
	color: #fff;
}

.ff-bg-navy a:not(.wp-block-button__link) {
	color: var(--wp--preset--color--teal);
}

.ff-narrow {
	max-width: 720px !important;
}

.ff-center {
	text-align: center;
	margin-inline: auto !important;
}

.ff-eyebrow {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--deep-teal);
	margin-bottom: 0.25rem;
}

.ff-bg-navy .ff-eyebrow {
	color: var(--wp--preset--color--gold);
}

/* Short gold rule under key headings */
.ff-rule::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	margin-top: 1.1rem;
	background: var(--wp--preset--color--gold);
}

.ff-center.ff-rule::after {
	margin-inline: auto;
}

.ff-lead {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.6;
	color: var(--wp--preset--color--slate);
}

.ff-bg-navy .ff-lead {
	color: #C9D6E2;
}

.ff-pull {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.25rem, 2.2vw, 1.6rem);
	line-height: 1.4;
	font-weight: 500;
	color: var(--wp--preset--color--navy);
	border-left: 3px solid var(--wp--preset--color--gold);
	padding-left: 1.25rem;
}

.ff-bg-navy .ff-pull {
	color: #fff;
}

/* ---------- Hero ---------- */

.ff-hero {
	position: relative;
	overflow: hidden;
	padding-top: clamp(4rem, 10vw, 8rem);
	padding-bottom: clamp(4rem, 10vw, 8rem);
}

.ff-hero::after {
	content: "";
	position: absolute;
	right: max(2rem, calc((100vw - 1160px) / 2));
	top: 50%;
	width: clamp(200px, 22vw, 300px);
	aspect-ratio: 560 / 649;
	transform: translateY(-50%);
	background: url("assets/motif.png") center / contain no-repeat;
	pointer-events: none;
}

.ff-hero > * {
	position: relative;
	z-index: 1;
}

.ff-hero h1 {
	max-width: 19ch !important;
}

.ff-hero .ff-lead {
	max-width: 36rem !important;
}

.ff-hero--page {
	padding-top: clamp(3.5rem, 8vw, 6rem);
	padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.ff-hero--page::after {
	width: clamp(150px, 16vw, 220px);
	opacity: 0.9;
}

.ff-hero--page h1 {
	max-width: 22ch !important;
	font-size: clamp(2rem, 4vw, 2.75rem);
}

@media (max-width: 900px) {
	.ff-hero::after {
		top: auto;
		bottom: -24px;
		right: -40px;
		transform: none;
		width: 180px;
		opacity: 0.18;
	}

	.ff-hero--page::after {
		width: 140px;
	}
}

/* ---------- Buttons ---------- */

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--navy);
	border: 1.5px solid var(--wp--preset--color--navy);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--navy);
	color: #fff;
}

.ff-bg-navy .wp-block-button:not(.is-style-outline) > .wp-block-button__link {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--navy);
}

.ff-bg-navy .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover {
	background: #fff;
}

.ff-bg-navy .wp-block-button.is-style-outline > .wp-block-button__link {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.6);
}

.ff-text-link a {
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1.5px solid currentColor;
}

.ff-text-link a::after {
	content: " \2192";
}

/* ---------- Cards ---------- */

.ff-cards {
	gap: clamp(1.25rem, 3vw, 2rem) !important;
}

.ff-card {
	background: #fff;
	border-radius: var(--ff-radius);
	padding: clamp(1.5rem, 3.5vw, 2.5rem);
	box-shadow: var(--ff-shadow);
	border-top: 3px solid var(--wp--preset--color--deep-teal);
	display: flex;
	flex-direction: column;
}

.ff-card--gold {
	border-top-color: var(--wp--preset--color--gold);
}

.ff-card > :last-child {
	margin-top: auto;
}

.ff-card > p:last-child:not(.ff-text-link) {
	margin-top: revert;
}

.ff-card h3 {
	margin-top: 0;
}

.ff-bg-grey .ff-card,
.ff-bg-ivory .ff-card {
	box-shadow: none;
}

/* Principle grid (About) */
.ff-grid-3 > .wp-block-column {
	border-top: 1px solid rgba(11, 45, 75, 0.15);
	padding-top: 1.25rem;
}

.ff-grid-3 h3 {
	font-size: 1.15rem;
	margin: 0 0 0.5rem;
}

.ff-grid-3 p {
	margin: 0;
	color: var(--wp--preset--color--slate);
	font-size: 0.975rem;
}

/* ---------- Lists ---------- */

.ff-checklist {
	list-style: none;
	padding-left: 0;
}

.ff-checklist li {
	position: relative;
	padding-left: 1.75rem;
	margin-bottom: 0.7rem;
}

.ff-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 10px;
	height: 10px;
	background: var(--wp--preset--color--deep-teal);
	transform: skewY(-28deg);
	opacity: 0.75;
}

.ff-checklist--gold li::before {
	background: var(--wp--preset--color--gold);
}

.ff-checklist--muted li::before {
	background: var(--wp--preset--color--slate);
	opacity: 0.55;
}

.ff-two-col {
	columns: 2 18rem;
	column-gap: 2.5rem;
}

.ff-two-col li {
	break-inside: avoid;
}

.ff-steps {
	list-style: none;
	padding-left: 0;
	counter-reset: ff-step;
}

.ff-steps li {
	counter-increment: ff-step;
	position: relative;
	padding: 0 0 1.1rem 3.25rem;
	min-height: 2.25rem;
}

.ff-steps li::before {
	content: counter(ff-step);
	position: absolute;
	left: 0;
	top: 0.05rem;
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 50%;
	border: 1.5px solid var(--wp--preset--color--deep-teal);
	color: var(--wp--preset--color--deep-teal);
	font-weight: 600;
	font-size: 0.9rem;
	display: grid;
	place-items: center;
}

.ff-steps li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: calc(1.05rem - 0.5px);
	top: 2.4rem;
	bottom: 0.2rem;
	width: 1px;
	background: rgba(15, 124, 123, 0.3);
}

.ff-bg-navy .ff-steps li::before {
	border-color: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--gold);
}

/* ---------- 1440 feature (About) ---------- */

.ff-figure {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(4rem, 11vw, 7.5rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--wp--preset--color--navy);
	margin: 0;
}

.ff-figure-caption {
	color: var(--wp--preset--color--slate);
	font-weight: 500;
	margin-top: 0.5rem;
}

/* ---------- Testimonial ---------- */

.ff-quote {
	border: 0;
	margin: 0 auto;
	padding: 0;
	max-width: 52rem;
	text-align: center;
}

.ff-quote p {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.35rem, 2.6vw, 1.85rem);
	line-height: 1.45;
	color: var(--wp--preset--color--navy);
}

.ff-quote p::before {
	content: "\201C";
	display: block;
	font-size: 4rem;
	line-height: 0.6;
	color: var(--wp--preset--color--gold);
	margin-bottom: 1rem;
}

.ff-quote cite {
	font-style: normal;
	font-size: 0.95rem;
	color: var(--wp--preset--color--slate);
}

/* ---------- Insights ---------- */

.ff-insights-list .wp-block-post-template {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ff-insights-list .wp-block-post {
	padding: 1.75rem 0;
	border-bottom: 1px solid var(--wp--preset--color--soft-grey);
}

.ff-insights-list .wp-block-post:first-child {
	border-top: 1px solid var(--wp--preset--color--soft-grey);
}

.ff-insights-list .wp-block-post-title {
	font-size: clamp(1.3rem, 2.4vw, 1.6rem);
	margin: 0.35rem 0 0.5rem;
}

.ff-insights-list .wp-block-post-title a,
.ff-insights-grid .wp-block-post-title a {
	color: var(--wp--preset--color--navy);
	text-decoration: none;
}

.ff-insights-list .wp-block-post-title a:hover,
.ff-insights-grid .wp-block-post-title a:hover {
	color: var(--wp--preset--color--deep-teal);
}

.ff-meta,
.ff-meta a {
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate);
	text-decoration: none;
}

.ff-meta {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	flex-wrap: wrap;
}

.ff-meta .wp-block-post-terms a {
	color: var(--wp--preset--color--deep-teal);
	font-weight: 600;
}

.wp-block-post-excerpt__more-link {
	font-weight: 600;
	text-decoration: none;
}

.wp-block-post-excerpt__more-link::after {
	content: " \2192";
}

.ff-insights-grid .wp-block-post-template {
	gap: clamp(1.25rem, 3vw, 2rem);
}

.ff-insights-grid .wp-block-post {
	background: #fff;
	border-radius: var(--ff-radius);
	padding: 1.75rem;
	border-top: 3px solid var(--wp--preset--color--teal);
}

.ff-insights-grid .wp-block-post-title {
	font-size: 1.2rem;
	margin: 0.5rem 0;
}

/* Single post */
.ff-article .wp-block-post-content {
	font-size: 1.125rem;
	line-height: 1.8;
}

.ff-article .wp-block-post-content > p:first-child {
	font-size: 1.25rem;
	color: var(--wp--preset--color--navy);
}

.ff-author {
	border-top: 1px solid var(--wp--preset--color--soft-grey);
	padding-top: 1.75rem;
	font-size: 0.975rem;
	color: var(--wp--preset--color--slate);
}

/* ---------- Contact ---------- */

.ff-contact-aside {
	background: var(--wp--preset--color--ivory);
	border-radius: var(--ff-radius);
	padding: clamp(1.5rem, 3vw, 2.25rem);
}

.ff-contact-aside h3 {
	font-size: 1.05rem;
	margin-bottom: 0.25rem;
}

.ff-contact-aside p {
	margin-top: 0.25rem;
	font-size: 0.975rem;
}

.ff-form {
	display: grid;
	gap: 1.15rem;
}

.ff-form label,
.ff-form legend {
	display: block;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--wp--preset--color--navy);
	margin-bottom: 0.4rem;
}

.ff-form .ff-optional {
	font-weight: 400;
	color: var(--wp--preset--color--slate);
}

.ff-form input[type="text"],
.ff-form input[type="email"],
.ff-form textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	font-size: 1rem;
	color: var(--ff-ink);
	background: #fff;
	border: 1px solid #B9C3CD;
	border-radius: 4px;
	padding: 0.75rem 0.9rem;
}

.ff-form textarea {
	min-height: 7.5rem;
	resize: vertical;
}

.ff-form input:focus,
.ff-form textarea:focus {
	border-color: var(--wp--preset--color--deep-teal);
	outline: 2px solid rgba(15, 124, 123, 0.25);
	outline-offset: 0;
}

.ff-form fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

.ff-form .ff-choice {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 400;
	margin: 0.35rem 0;
}

.ff-form .ff-choice input {
	width: 1.1rem;
	height: 1.1rem;
	accent-color: var(--wp--preset--color--deep-teal);
}

.ff-form .ff-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ff-form button {
	justify-self: start;
	font: inherit;
	font-weight: 600;
	font-size: 1rem;
	background: var(--wp--preset--color--navy);
	color: #fff;
	border: 0;
	border-radius: 4px;
	padding: 0.9rem 1.75rem;
	cursor: pointer;
}

.ff-form button:hover {
	background: var(--wp--preset--color--deep-teal);
}

.ff-form-note {
	font-size: 0.875rem;
	color: var(--wp--preset--color--slate);
	margin: 0;
}

.ff-notice {
	border-radius: var(--ff-radius);
	padding: 1.25rem 1.5rem;
	margin-bottom: 1.5rem;
}

.ff-notice--success {
	background: #E7F5F3;
	border-left: 4px solid var(--wp--preset--color--deep-teal);
}

.ff-notice--error {
	background: #FBF1E6;
	border-left: 4px solid #B5651D;
}

/* ---------- Footer ---------- */

.ff-footer {
	background: var(--wp--preset--color--navy);
	color: #C9D6E2;
	padding-top: clamp(3rem, 6vw, 4.5rem);
	padding-bottom: 2rem;
	font-size: 0.95rem;
}

.ff-footer a {
	color: #fff;
	text-decoration: none;
}

.ff-footer a:hover {
	color: var(--wp--preset--color--gold);
}

.ff-footer__logo {
	width: 180px;
	height: 70px;
	background: url("assets/logo-footer.png") left center / contain no-repeat;
	margin-bottom: 1rem;
}

.ff-footer__descriptor {
	color: var(--wp--preset--color--gold);
	font-size: 0.8125rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 600;
}

.ff-footer h2 {
	font-size: 0.8125rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 0.75rem;
}

.ff-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ff-footer li {
	margin-bottom: 0.45rem;
}

.ff-footer__base {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	margin-top: 2.5rem !important;
	padding-top: 1.5rem;
	font-size: 0.85rem;
	color: #9FB2C4;
}

/* ---------- Responsive ---------- */

@media (max-width: 781px) {
	.ff-header__inner {
		padding-block: 0.75rem;
	}

	.ff-logo a {
		width: 140px;
		height: 54px;
	}

	.ff-two-col {
		columns: 1;
	}
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* Keep anchored headings clear of the sticky header */
[id] {
	scroll-margin-top: 110px;
}

/* WordPress centres each child of a constrained section. Narrow items should
   instead line up with the left edge of the 1160px column. */
.ff-hero h1,
.ff-hero .ff-lead,
.ff-narrow {
	margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size)) / 2)) !important;
	margin-right: auto !important;
}

@media (max-width: 600px) {
	.ff-insights-grid .wp-block-post-template {
		grid-template-columns: 1fr !important;
	}
}

/* ---------- Revised brief: warmer, quieter layout ---------- */

.ff-bg-white {
	background: #fff;
}

.ff-hero-note {
	font-size: 0.9rem;
	color: var(--wp--preset--color--slate);
	margin-top: 1.25rem;
}

.ff-split {
	gap: clamp(1.5rem, 5vw, 4.5rem) !important;
}

.ff-split h2 {
	margin-top: 0.25rem;
}

/* Advisory themes: two quiet columns of heading + text, separated by hairlines */
.ff-themes {
	gap: clamp(1.5rem, 5vw, 4.5rem) !important;
	margin-top: 2.5rem !important;
}

.ff-themes h3 {
	font-size: 1.15rem;
	margin: 0;
	padding-top: 1.4rem;
	border-top: 1px solid rgba(11, 45, 75, 0.14);
}

.ff-themes p {
	margin: 0.4rem 0 1.6rem;
	color: var(--wp--preset--color--slate);
}

.ff-grid-3 {
	margin-top: 2.5rem !important;
	gap: clamp(1.5rem, 4vw, 3rem) !important;
}

.ff-grid-3 p.ff-text-link {
	margin-top: 1rem;
	font-size: 0.95rem;
}

.ff-checklist--small li {
	font-size: 0.95rem;
	margin-bottom: 0.45rem;
	color: var(--wp--preset--color--slate);
}

.ff-grid-3 .ff-checklist {
	margin-top: 1.25rem;
}

.ff-steps li strong {
	display: block;
	color: inherit;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.1rem;
	margin-bottom: 0.15rem;
}

.ff-bg-navy .ff-steps li strong {
	color: #fff;
}

.ff-steps li {
	padding-bottom: 1.5rem;
}

.ff-email-link {
	font-size: 1.15rem;
	font-weight: 600;
	margin-top: 1.25rem;
}

.ff-email-link a {
	color: var(--wp--preset--color--navy);
	text-decoration-color: var(--wp--preset--color--gold);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 4px;
}

.ff-bg-navy .ff-checklist li::before {
	background: var(--wp--preset--color--gold);
}

@media (max-width: 781px) {
	.ff-themes h3:first-child {
		margin-top: 0;
	}
}

.ff-steps li strong + br {
	display: none;
}

.ff-fit-note {
	border-left: 3px solid var(--wp--preset--color--gold);
	padding-left: 1.1rem;
	color: var(--wp--preset--color--navy);
	margin-top: 2rem;
}

/* ---------- Graphics: method flow ---------- */

.ff-flow {
	list-style: none;
	padding: 0;
	margin-top: 3rem !important;
	counter-reset: ff-flow;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1.75rem;
}

.ff-flow li {
	counter-increment: ff-flow;
	position: relative;
	padding-top: 4rem;
	font-size: 0.95rem;
	color: #C9D6E2;
}

.ff-flow li::before {
	content: counter(ff-flow);
	position: absolute;
	top: 0;
	left: 0;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
	background: var(--wp--preset--color--gold);
	z-index: 1;
}

.ff-flow li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 1.375rem;
	left: 3.25rem;
	right: -1.25rem;
	height: 2px;
	background: linear-gradient(90deg, var(--wp--preset--color--gold), rgba(46, 196, 182, 0.6));
}

.ff-flow li strong {
	display: block;
	color: #fff;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.1rem;
	line-height: 1.3;
	margin-bottom: 0.5rem;
}

.ff-flow li strong + br,
.ff-spectrum li strong + br,
.ff-hub__items li strong + br {
	display: none;
}

@media (max-width: 900px) {
	.ff-flow {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.ff-flow li {
		padding: 0 0 1.75rem 4rem;
		min-height: 3rem;
	}

	.ff-flow li:not(:last-child)::after {
		top: 3rem;
		bottom: 0.25rem;
		left: 1.375rem;
		right: auto;
		width: 2px;
		height: auto;
		background: linear-gradient(180deg, var(--wp--preset--color--gold), rgba(46, 196, 182, 0.6));
	}
}

/* ---------- Graphics: not every answer is AI ---------- */

.ff-spectrum {
	list-style: none;
	padding: 0;
	margin-top: 2.75rem !important;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 0.6rem;
}

.ff-spectrum li {
	position: relative;
	padding: 1.75rem 1.1rem 1.25rem;
	background: #fff;
	border-radius: 4px;
	font-size: 0.9rem;
	color: var(--wp--preset--color--slate);
	line-height: 1.5;
}

.ff-spectrum li::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 6px;
	border-radius: 4px 4px 0 0;
	background: var(--ff-band, #475569);
}

.ff-spectrum li:nth-child(1) { --ff-band: #475569; }
.ff-spectrum li:nth-child(2) { --ff-band: #3B6E78; }
.ff-spectrum li:nth-child(3) { --ff-band: #0F7C7B; }
.ff-spectrum li:nth-child(4) { --ff-band: #2EC4B6; }
.ff-spectrum li:nth-child(5) { --ff-band: #7FCFC4; }

.ff-spectrum li:last-child {
	--ff-band: var(--wp--preset--color--gold);
	background: var(--wp--preset--color--navy);
	color: #C9D6E2;
}

.ff-spectrum li strong {
	display: block;
	color: var(--wp--preset--color--navy);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.05rem;
	margin-bottom: 0.4rem;
}

.ff-spectrum li:last-child strong {
	color: #fff;
}

.ff-spectrum-caption {
	display: grid;
	grid-template-columns: 3fr 2fr 1fr;
	gap: 0.6rem;
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--wp--preset--color--slate);
	margin-top: 0.9rem;
}

.ff-spectrum-caption span {
	border-top: 1px solid rgba(11, 45, 75, 0.2);
	padding-top: 0.6rem;
}

.ff-spectrum-caption span:last-child {
	color: #8A6D12;
	border-top-color: var(--wp--preset--color--gold);
}

@media (max-width: 900px) {
	.ff-spectrum {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ff-spectrum-caption {
		display: none;
	}
}

/* ---------- Graphics: the translator ---------- */

.ff-hub {
	container-type: inline-size;
	position: relative;
	width: min(100%, 540px);
	aspect-ratio: 1;
	margin-inline: auto !important;
}

.ff-hub::before {
	content: "";
	position: absolute;
	inset: 13%;
	border: 1.5px dashed rgba(15, 124, 123, 0.35);
	border-radius: 50%;
}

.ff-hub__center {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 34%;
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	margin: 0 !important;
	border-radius: 50%;
	background: var(--wp--preset--color--navy) url("assets/motif.png") center 26% / 28% no-repeat;
	color: #fff;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1rem;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 7cqw;
	box-sizing: border-box;
	box-shadow: 0 0 0 10px rgba(212, 175, 55, 0.18);
}

.ff-hub__items {
	list-style: none;
	padding: 0;
	margin: 0 !important;
	position: absolute;
	inset: 0;
}

.ff-hub__items li {
	--ff-a: 0deg;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 30cqw;
	margin: 0;
	text-align: center;
	font-size: 0.85rem;
	line-height: 1.4;
	color: var(--wp--preset--color--slate);
	background: var(--wp--preset--color--ivory);
	padding: 0.35rem 0.25rem;
	border-radius: 6px;
	transform: translate(-50%, -50%) rotate(var(--ff-a)) translateY(-37cqw) rotate(calc(-1 * var(--ff-a)));
}

.ff-hub__items li:nth-child(1) { --ff-a: 0deg; }
.ff-hub__items li:nth-child(2) { --ff-a: 72deg; }
.ff-hub__items li:nth-child(3) { --ff-a: 144deg; }
.ff-hub__items li:nth-child(4) { --ff-a: 216deg; }
.ff-hub__items li:nth-child(5) { --ff-a: 288deg; }

.ff-hub__items li strong {
	display: block;
	color: var(--wp--preset--color--navy);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1rem;
	margin-bottom: 0.2rem;
}

.ff-hub__items li strong::before {
	content: "";
	display: block;
	width: 12px;
	height: 12px;
	margin: 0 auto 0.4rem;
	background: var(--wp--preset--color--gold);
	transform: skewY(-28deg);
}

@media (max-width: 600px) {
	.ff-hub {
		aspect-ratio: auto;
	}

	.ff-hub::before {
		display: none;
	}

	.ff-hub__center {
		position: static;
		transform: none;
		width: 140px;
		margin: 0 auto 1.5rem !important;
	}

	.ff-hub__items {
		position: static;
		display: grid;
		gap: 1.25rem;
	}

	.ff-hub__items li {
		position: static;
		width: auto;
		transform: none;
	}
}

/* Founder portrait (About) */
.ff-portrait {
	max-width: 300px;
	margin-top: 1.75rem !important;
}

.ff-portrait img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 50%;
	box-shadow: 0 0 0 8px var(--wp--preset--color--ivory), 0 0 0 9px rgba(212, 175, 55, 0.5);
}

.ff-practice-heading {
	margin-top: 2rem !important;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(11, 45, 75, 0.14);
}

/* Insight articles */
.ff-article sup {
	font-size: 0.7em;
	line-height: 0;
	color: var(--wp--preset--color--deep-teal);
}

.ff-article .ff-pull {
	margin-block: 2.5rem;
}

.ff-references-heading {
	margin-top: 3rem !important;
	padding-top: 1.5rem;
	border-top: 1px solid var(--wp--preset--color--soft-grey);
	font-size: 1rem !important;
}

.ff-references {
	font-size: 0.9rem !important;
	color: var(--wp--preset--color--slate);
	padding-left: 1.25rem;
}
