/*
Theme Name: Spectrum Studio
Theme URI: https://spectrum-studio.test/
Author: Spectrum Studio
Description: Editorial block theme for the Spectrum Studio pilot-validation site.
Requires at least: 6.6
Requires PHP: 8.1
Version: 0.5.13
Text Domain: spectrum-studio
*/

:root {
	--spectrum-cream: #f4f0e8;
	--spectrum-paper: #fbf9f4;
	--spectrum-ink: #1d2420;
	--spectrum-forest: #254c3b;
	--spectrum-stone: #b9b4a8;
	--spectrum-mist: #e4e1d8;
	--spectrum-error: #9a2f2f;
	--spectrum-radius: 0;
	--spectrum-content: 1200px;
	--spectrum-section-space: clamp(1rem, 1.5vw, 1.25rem);
	--spectrum-page-space: clamp(1.5rem, 3vw, 2.5rem);
	--spectrum-copy-gap: 0.75rem;
	--spectrum-card-block: 0.75rem;
	--spectrum-card-inline: 1rem;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--spectrum-cream);
	color: var(--spectrum-ink);
	font-family: Inter, Arial, Helvetica, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
	font-weight: 400;
	letter-spacing: -0.025em;
	line-height: 1.05;
	text-wrap: balance;
}

h1,
h2,
h3,
p,
ul,
ol {
	margin-block-start: 0;
}

a {
	color: var(--spectrum-forest);
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--spectrum-ink);
}

:where(a, button, input, select, textarea):focus-visible {
	outline: 3px solid var(--spectrum-forest);
	outline-offset: 3px;
}

/* Shared navigation treatment; each template owns its valid hierarchy/frame. */
.spectrum-breadcrumb,
.woocommerce .woocommerce-breadcrumb {
	align-items: center;
	color: #515a54;
	display: flex;
	flex-wrap: wrap;
	font-family: Inter, Arial, Helvetica, sans-serif;
	font-size: 0.75rem;
	gap: 0.35rem 0.5rem;
	letter-spacing: normal;
	line-height: 1.5;
	text-transform: none;
	overflow-wrap: anywhere;
}
.spectrum-breadcrumb a,
.woocommerce .woocommerce-breadcrumb a {
	align-items: center;
	color: var(--spectrum-forest);
	display: inline-flex;
	min-height: 28px;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}
.spectrum-breadcrumb a:hover,
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--spectrum-ink); }
@media (max-width: 600px), (any-pointer: coarse) {
	.spectrum-breadcrumb a, .woocommerce .woocommerce-breadcrumb a { min-height: 44px; }
}

.spectrum-pilot-notice {
	background: var(--spectrum-ink);
	color: var(--spectrum-paper);
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	padding: 0.65rem 1rem;
	text-align: center;
}

.spectrum-pilot-notice > * {
	margin-block: 0;
}

.spectrum-pilot-notice > * + * {
	margin-block-start: 0.35rem;
}

/* Page wrappers own their spacing; do not add the root block gap again. */
.wp-site-blocks > main,
.wp-site-blocks > .wp-block-template-part {
	margin-block: 0;
}

.spectrum-site-header {
	border-bottom: 1px solid var(--spectrum-stone);
	padding-block: 0;
}

.spectrum-site-header > .alignwide {
	margin-inline: auto;
	margin-block: 0;
	max-width: var(--spectrum-content);
	padding: 0.85rem clamp(1rem, 3vw, 2rem);
	width: 100%;
}

.spectrum-site-header .wp-block-site-title a {
	color: #1f3a2e;
	font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	font-size: clamp(1.8rem, 3.6vw, 3rem);
	font-variant-caps: small-caps;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1;
	text-decoration: none;
	text-transform: none;
}

.spectrum-brand {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	gap: 1rem;
}

.spectrum-brand .wp-block-site-title {
	margin: 0;
	white-space: nowrap;
}

.wp-block-image.spectrum-brand-logo {
	/* Arch silhouette: semicircular crown, straight sides and a flat base. */
	aspect-ratio: 540 / 628;
	border-radius: 50% 50% 0 0 / 43% 43% 0 0;
	flex: none;
	height: auto;
	margin: 0;
	overflow: hidden;
	position: relative;
	width: 4rem;
}

.wp-block-image.spectrum-brand-logo img {
	/* Frame original pixels x=270..810, y=193..821 inside the arch. */
	height: auto;
	left: 0;
	max-width: none;
	position: absolute;
	top: 0;
	transform: translate(-25%, -17.87%);
	width: 200%;
}

.spectrum-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	justify-content: flex-end;
}

.spectrum-nav a {
	color: var(--spectrum-ink);
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.spectrum-nav--footer a {
	color: var(--spectrum-paper);
}

.spectrum-section {
	margin-inline: auto;
	max-width: var(--spectrum-content);
	padding: var(--spectrum-section-space) clamp(1rem, 3vw, 2rem);
	width: 100%;
}

.spectrum-front-page,
.spectrum-front-page > .wp-block-post-content {
	margin: 0;
	max-width: none;
}

.spectrum-front-page > .wp-block-post-content > * {
	margin-block: 0 !important;
}

/* Blank editor paragraphs are not spacers. Keep saved content intact. */
:where(.spectrum-section, .spectrum-form-page, .spectrum-article) .wp-block-paragraph:empty {
	display: none;
}

:is(.spectrum-hero-copy, .spectrum-split-copy, .spectrum-offer-copy) > * {
	margin-block: 0;
}

:is(.spectrum-hero-copy, .spectrum-split-copy, .spectrum-offer-copy) > * + * {
	margin-block-start: var(--spectrum-copy-gap);
}

.spectrum-hero-section > * {
	margin-block-start: 0 !important;
}

.spectrum-hero-kicker {
	margin-bottom: 0.75rem;
}

.spectrum-hero {
	align-items: stretch;
	display: grid;
	gap: 0;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	min-height: 0;
	padding: 0;
	width: 100%;
}

.spectrum-hero-copy {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding: 0 clamp(1.25rem, 4vw, 3rem) 0 0;
}

.spectrum-hero-note {
	margin-bottom: 0;
	max-width: 46%;
}

.spectrum-hero-section > .spectrum-hero-note {
	margin-top: 1rem !important;
}

.spectrum-hero-media,
.spectrum-split-media,
.spectrum-offer-media {
	background: var(--spectrum-mist);
	margin: 0;
	min-height: 0;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.spectrum-hero-media img {
	display: block;
	height: 100%;
	min-height: 0;
	object-fit: cover;
	object-position: center;
	width: 100%;
}

.spectrum-split,
.spectrum-offer {
	align-items: stretch;
	display: grid;
	gap: 0;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	overflow: hidden;
	padding: 0;
}

.spectrum-split-copy,
.spectrum-offer-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(1.5rem, 2.5vw, 2rem) clamp(1.25rem, 4vw, 3rem);
}

/* The B2B section already owns its outer gutter; do not inset its text twice. */
.spectrum-offer-copy {
	justify-content: flex-start;
	padding-block: 0;
	padding-inline-start: 0;
}

/* Match the B2B wrapper gutters and top alignment on the homepage concept. */
.spectrum-front-page .spectrum-section.spectrum-split {
	padding: var(--spectrum-section-space) clamp(1rem, 3vw, 2rem);
}

.spectrum-front-page .spectrum-section.spectrum-split > .spectrum-split-copy {
	justify-content: flex-start;
	padding-block: 0;
	padding-inline-start: 0;
}

/* Older page blocks put the section and split grid on the same element. */
.spectrum-section.spectrum-offer {
	padding-inline: clamp(1rem, 3vw, 2rem);
}

.spectrum-split-copy h2 {
	max-width: 22ch;
}

.spectrum-split-media img,
.spectrum-offer-media img {
	display: block;
	height: 100%;
	min-height: 100%;
	object-fit: cover;
	width: 100%;
}

.spectrum-offer .wp-block-heading {
	max-width: 20ch;
}

.spectrum-offer-points {
	border-block: 1px solid var(--spectrum-stone);
	display: grid;
	gap: 0;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 1rem;
}

.spectrum-offer-point {
	display: flex;
	flex-direction: column;
	margin-block: 0;
	min-height: 0;
	padding: 0.85rem 0.75rem;
}

.spectrum-offer-point + .spectrum-offer-point {
	border-inline-start: 1px solid var(--spectrum-stone);
}

.spectrum-offer-point h3 {
	font-size: 1.25rem;
	line-height: 1.15;
	margin: 0 0 0.65rem;
}

.spectrum-offer-point p {
	font-size: 0.9rem;
	line-height: 1.5;
	margin: 0;
}

.spectrum-offer-number,
.spectrum-microcopy {
	color: var(--spectrum-forest);
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.spectrum-section--dark {
	background: var(--spectrum-ink);
	color: var(--spectrum-paper);
}

.spectrum-band {
	max-width: none;
	width: 100%;
}

.spectrum-band .spectrum-section {
	padding-block: var(--spectrum-section-space);
}

.spectrum-kicker {
	color: var(--spectrum-forest);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.spectrum-section--dark .spectrum-kicker {
	color: var(--spectrum-mist);
}

.spectrum-display {
	font-size: clamp(2.55rem, 4.6vw, 4.35rem);
	max-width: 18ch;
}

.spectrum-lead {
	font-size: clamp(1.05rem, 1.55vw, 1.3rem);
	max-width: 42rem;
}

.spectrum-section > .spectrum-lead,
.spectrum-section > .spectrum-section-intro {
	margin-inline: 0 !important;
}

.spectrum-section-intro {
	font-size: 1.05rem;
	max-width: 52rem;
}

.spectrum-section > h2,
.spectrum-split h2,
.spectrum-offer h2 {
	font-size: clamp(1.95rem, 3.2vw, 3.1rem);
}

.spectrum-split-copy > *,
.spectrum-offer-copy > *,
.spectrum-heading-row > * {
	margin-inline: 0 !important;
}

.spectrum-section-heading,
.spectrum-inline-heading,
.spectrum-micro-row {
	align-items: center;
	display: flex;
	gap: 1rem;
	margin-bottom: 1rem;
	width: 100%;
}


.spectrum-section-heading h2,
.spectrum-section-heading p,
.spectrum-inline-heading p,
.spectrum-micro-row p {
	margin-bottom: 0;
}

.spectrum-section-heading h2 {
	font-size: clamp(1.7rem, 2.8vw, 2.55rem);
	white-space: nowrap;
}

.spectrum-offer-copy > .spectrum-inline-heading,
.spectrum-split-copy > .spectrum-inline-heading {
	margin-bottom: 0;
}

.spectrum-heading-row {
	align-items: end;
	display: grid;
	gap: clamp(1rem, 3vw, 2.5rem);
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.spectrum-heading-row h2 {
	margin-bottom: 0;
	max-width: 24ch;
}

.spectrum-heading-row > p {
	margin-bottom: 0;
}

.spectrum-section-heading .wp-block-separator,
.spectrum-inline-heading .wp-block-separator {
	flex: 1 1 auto;
	margin: 0;
	min-width: 3rem;
}

.spectrum-heading-meta {
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-align: right;
	text-transform: uppercase;
	white-space: nowrap;
}

.spectrum-rule {
	border-top: 1px solid currentColor;
	flex: 0 0 2.5rem;
	margin: 0;
}

.spectrum-button-row {
	align-items: center;
	display: flex;
	flex-wrap: nowrap;
	gap: 0.75rem;
}

.spectrum-button-row .wp-block-button__link,
.spectrum-button-row .wp-element-button {
	border: 1px solid var(--spectrum-forest);
	border-radius: var(--spectrum-radius);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	padding: 0.8rem 0.9rem;
	text-transform: uppercase;
	white-space: nowrap;
}

.spectrum-button-row .is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--spectrum-forest);
}

.spectrum-button-row .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: var(--spectrum-forest);
	color: var(--spectrum-paper);
}

.spectrum-card-grid {
	align-items: stretch;
	display: grid;
	gap: 0.75rem;
	grid-auto-rows: 1fr;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.spectrum-card-grid > * {
	margin-block: 0 !important;
}

.spectrum-card {
	background: var(--spectrum-paper);
	border: 1px solid var(--spectrum-stone);
	padding: clamp(1.25rem, 2vw, 1.75rem);
}

.spectrum-card-label {
	color: var(--spectrum-forest);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.spectrum-audience-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	position: relative;
}

.spectrum-audience-card::after {
	color: rgba(37, 76, 59, 0.12);
	font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
	font-size: 4.5rem;
	line-height: 1;
	position: absolute;
	right: 1rem;
	top: 1rem;
}

.spectrum-card-action {
	margin-top: auto;
}

/* Compact homepage cards without cropping the prepared product mockups. */
.spectrum-front-page .spectrum-commerce-card,
.spectrum-front-page .spectrum-audience-card {
	padding: var(--spectrum-card-block) var(--spectrum-card-inline);
}

.spectrum-front-page .spectrum-commerce-card-image {
	margin: calc(-1 * var(--spectrum-card-block)) calc(-1 * var(--spectrum-card-inline)) 0.75rem;
}

.spectrum-front-page .spectrum-commerce-card h3,
.spectrum-front-page .spectrum-commerce-card-author,
.spectrum-front-page .spectrum-commerce-card-type {
	margin-block: 0 0.25rem;
}

.spectrum-front-page .spectrum-commerce-card-action {
	padding-block-start: 0.25rem;
}

.spectrum-front-page .spectrum-audience-card > * {
	margin-block: 0;
}

.spectrum-front-page .spectrum-audience-card > * + * {
	margin-block-start: 0.5rem;
}

.spectrum-front-page .spectrum-audience-card > .spectrum-card-action {
	margin-block-start: auto;
	padding-block-start: 0.375rem;
}

@media (max-width: 800px), (any-pointer: coarse) {
	.spectrum-front-page .spectrum-commerce-card-action,
	.spectrum-front-page .spectrum-card-action a {
		align-items: center;
		display: inline-flex;
		min-height: 44px;
	}
}

.spectrum-section--dark .spectrum-card {
	background: transparent;
	border-color: rgba(251, 249, 244, 0.45);
}

.spectrum-formula {
	border-block: 1px solid var(--spectrum-stone);
	padding-block: 1.5rem;
}

.spectrum-story-grid {
	display: block;
}

.spectrum-story-grid .wp-block-post-template {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	width: 100%;
}

.spectrum-story-grid .wp-block-post-template > li {
	display: flex;
	margin: 0;
	width: 100% !important;
}

.spectrum-story-card {
	background: var(--spectrum-paper);
	border: 1px solid var(--spectrum-stone);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: clamp(1rem, 2vw, 1.5rem);
	width: 100%;
}

.spectrum-story-card .wp-block-post-featured-image {
	aspect-ratio: 3 / 2;
	margin: calc(-1 * clamp(1rem, 2vw, 1.5rem)) calc(-1 * clamp(1rem, 2vw, 1.5rem)) 1.25rem;
	overflow: hidden;
}

.spectrum-story-card .wp-block-post-featured-image a {
	display: block;
	height: 100%;
}

.spectrum-story-card .wp-block-post-featured-image img {
	aspect-ratio: 3 / 2;
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.spectrum-story-card .wp-block-post-title a {
	color: var(--spectrum-ink);
	text-decoration: none;
}

.spectrum-story-card .wp-block-post-terms,
.spectrum-story-card .wp-block-post-date {
	color: var(--spectrum-forest);
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.spectrum-story-card .spectrum-story-artist,
.spectrum-story-card .spectrum-story-artwork {
	font-size: 0.875rem;
	margin-block: 0 0.35rem;
}

.spectrum-story-card .spectrum-story-artist:empty,
.spectrum-story-card .spectrum-story-artwork:empty {
	display: none;
}

.spectrum-story-card .spectrum-story-artist::before {
	content: "Autors: ";
	font-weight: 600;
}

.spectrum-story-card .spectrum-story-artwork::before {
	content: "Darbs: ";
	font-weight: 600;
}

.spectrum-story-card .wp-block-post-excerpt {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.spectrum-story-card .wp-block-post-excerpt__more-link {
	margin-top: auto;
}

.spectrum-principle-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.spectrum-principle {
	border-inline-end: 1px solid rgba(251, 249, 244, 0.35);
	display: grid;
	gap: 0 1.5rem;
	grid-template-columns: 4.5rem 1fr;
	padding: 0.75rem clamp(1rem, 4vw, 3rem);
}

.spectrum-principle:last-child {
	border-inline-end: 0;
}

.spectrum-principle-mark {
	font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
	font-size: 3.5rem;
	grid-row: 1 / span 2;
	line-height: 1;
	opacity: 0.65;
}

.spectrum-principle h3 {
	font-size: clamp(1.4rem, 2.2vw, 2rem);
	margin-bottom: 0.35rem;
}

/* Illustrated principles retain native, editable Gutenberg blocks. */
.spectrum-band.spectrum-principles-band {
	--spectrum-principles-gutter: clamp(1rem, 3vw, 2rem);
	background: #1f3a2e;
	margin-inline: auto;
	max-width: calc(var(--spectrum-content) - 2 * var(--spectrum-principles-gutter));
	width: calc(100% - 2 * var(--spectrum-principles-gutter));
}

.spectrum-principles--illustrated .spectrum-section-heading {
	gap: 1.25rem;
	margin-bottom: 1.1rem;
}

.spectrum-principles--illustrated .spectrum-section-heading h2 {
	font-size: clamp(1.7rem, 2.5vw, 2.2rem);
	text-transform: uppercase;
}

.spectrum-principles--illustrated .spectrum-heading-meta {
	font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
	font-size: 0.7rem;
	letter-spacing: 0.1em;
}

.spectrum-principles--illustrated .wp-block-separator {
	border-color: rgba(251, 249, 244, 0.65);
}

.spectrum-principles--illustrated .spectrum-principle-grid {
	gap: 0.35rem 1.5rem;
	grid-template-columns: 1.12fr 1fr;
	grid-template-rows: auto auto;
}

.spectrum-principles--illustrated .spectrum-principle {
	align-items: center;
	border: 0;
	gap: 0.35rem 1rem;
	grid-template-columns: 9.5rem minmax(0, 1fr);
	grid-row: 1 / span 2;
	grid-template-rows: subgrid;
	margin: 0;
	padding: 0;
}

.spectrum-principle-illustration {
	--spectrum-illustration-height: 6rem;
	align-items: center;
	display: flex;
	height: 6.5rem;
	justify-content: center;
	grid-row: 1 / span 2;
	margin: 0;
	overflow: hidden;
}

.wp-block-image.spectrum-principle-illustration img {
	/* Black ink PNGs have real alpha; invert only the ink for this dark band. */
	filter: invert(1) drop-shadow(0 0 0.35px var(--spectrum-paper));
	/* Normalize visible ink bounds, accounting for the PNG's transparent margins. */
	flex: none;
	height: calc(var(--spectrum-illustration-height) * 1.25);
	max-width: none;
	transform: translateY(calc(var(--spectrum-illustration-height) * 0.043));
	width: auto;
}

.wp-block-image.spectrum-principle-illustration--leaves img {
	height: calc(var(--spectrum-illustration-height) * 1.108);
	transform: translateY(calc(var(--spectrum-illustration-height) * -0.01));
}

.spectrum-principle-copy {
	align-self: stretch;
	border-inline-start: 1px solid rgba(251, 249, 244, 0.65);
	display: grid;
	grid-row: 1 / span 2;
	grid-template-rows: subgrid;
	margin: 0;
	min-width: 0;
	padding: 0.25rem 0 0.25rem 1.25rem;
}

.spectrum-principles--illustrated .spectrum-principle h3 {
	align-self: end;
	font-size: clamp(1.1rem, 1.7vw, 1.45rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0;
	text-transform: uppercase;
}

.spectrum-principle-copy p {
	align-self: start;
	font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
	font-size: clamp(1rem, 1.4vw, 1.2rem);
	line-height: 1.35;
	margin: 0;
	min-block-size: 2.7em;
}

@media (max-width: 960px) {
	.spectrum-principles--illustrated .spectrum-principle-grid {
		gap: 1.5rem;
		grid-template-columns: 1fr;
		grid-template-rows: none;
	}

	.spectrum-principles--illustrated .spectrum-principle {
		grid-row: auto;
		grid-template-rows: auto;
	}

	.spectrum-principle-illustration,
	.spectrum-principle-copy {
		grid-row: auto;
	}

	.spectrum-principle-copy {
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.spectrum-principles--illustrated .spectrum-principle h3 {
		align-self: auto;
		margin-bottom: 0.35rem;
	}
}

@media (max-width: 781px) {
	.spectrum-principles--illustrated .spectrum-section-heading {
		gap: 0.5rem;
	}

	.spectrum-principles--illustrated .spectrum-principle {
		gap: 0.75rem;
		grid-template-columns: 4.5rem minmax(0, 1fr);
	}

	.spectrum-principle-illustration {
		--spectrum-illustration-height: 3rem;
		height: 5rem;
	}

	.spectrum-principle-copy {
		padding-inline-start: 0.9rem;
	}

	.spectrum-principle-copy p {
		min-block-size: 0;
	}
}

.spectrum-article {
	padding-block: var(--spectrum-page-space);
}

.spectrum-article > .wp-block-post-content {
	max-width: 48rem;
}

.spectrum-single {
	padding: 0 clamp(1rem, 3vw, 2rem);
}

.spectrum-single-layout {
	align-items: start;
	display: grid;
	gap: clamp(2rem, 5vw, 5rem);
	grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
	margin-inline: auto;
	max-width: var(--spectrum-content);
}

.spectrum-single .spectrum-article {
	padding-block: var(--spectrum-page-space);
}

.spectrum-author-intro {
	align-items: start;
	margin-inline: auto;
	max-width: var(--spectrum-content);
	padding-block: var(--spectrum-page-space) var(--spectrum-section-space);
}

.spectrum-author-page .spectrum-author-copy {
	min-width: 0;
	padding: 0;
}

.spectrum-author-portrait {
	margin: 0 auto 1.5rem;
	max-width: 28rem;
}

.spectrum-author-portrait img {
	border: 1px solid var(--spectrum-stone);
	display: block;
	height: auto;
	width: 100%;
}

@media (min-width: 800px) {
	.spectrum-author-intro:has(.spectrum-author-portrait) {
		display: grid;
		gap: clamp(2rem, 5vw, 5rem);
		grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
	}

	.spectrum-author-portrait {
		margin: 0;
		max-width: none;
	}
}

.spectrum-author-products {
	margin-inline: auto;
	max-width: var(--spectrum-content);
	padding: 0 clamp(1rem, 3vw, 2rem) var(--spectrum-page-space);
}

.spectrum-author-products h2 {
	border-top: 1px solid var(--spectrum-stone);
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	margin-bottom: 1.5rem;
	padding-top: 1.5rem;
}

.spectrum-story-nav {
	background: var(--spectrum-paper);
	border: 1px solid var(--spectrum-stone);
	margin-block: var(--spectrum-page-space);
	padding: clamp(1.25rem, 2.5vw, 2rem);
	position: sticky;
	top: 1.5rem;
}

.spectrum-story-nav h2 {
	font-size: clamp(1.65rem, 2.5vw, 2.25rem);
	margin-bottom: 1.25rem;
}

.spectrum-story-nav .wp-block-post-navigation-link {
	border-top: 1px solid var(--spectrum-stone);
	margin: 0;
	padding-block: 1rem;
}

.spectrum-story-nav .wp-block-post-navigation-link a {
	color: var(--spectrum-ink);
	text-decoration: none;
}

.spectrum-story-nav .post-navigation-link__label {
	color: var(--spectrum-forest);
	display: block;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.spectrum-story-nav .post-navigation-link__title {
	display: inline-block;
	font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
	font-size: 1.15rem;
	line-height: 1.2;
	margin-top: 0.35rem;
}

.spectrum-story-nav > p:last-child {
	margin: 1rem 0 0;
}

.spectrum-form-page {
	--spectrum-form-content: 56rem;
	margin-inline: auto;
	max-width: 62rem;
	padding: var(--spectrum-page-space) clamp(1rem, 4vw, 2.5rem);
}

/* Intro copy, headings, actions and the form share one responsive column. */
.spectrum-form-page > :not(.alignfull) {
	margin-inline: auto;
	max-width: var(--spectrum-form-content);
}

.spectrum-form-shell {
	background: var(--spectrum-paper);
	border: 1px solid var(--spectrum-stone);
	margin: var(--spectrum-section-space) auto 0;
	max-width: 56rem;
	padding: clamp(1.25rem, 2vw, 2rem);
}

.spectrum-form-shell .frm-fluent-form {
	margin: 0;
}

.spectrum-form-shell .frm-fluent-form fieldset {
	display: grid;
	gap: 0 1.25rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.spectrum-form-shell .frm-fluent-form fieldset > p,
.spectrum-form-shell .ff-el-group:has([data-name="description"]),
.spectrum-form-shell .ff-el-group:has([data-name^="checkbox"]),
.spectrum-form-shell .ff_submit_btn_wrapper {
	grid-column: 1 / -1;
}

.spectrum-form-shell .ff-el-group {
	margin: 0 0 1.15rem;
	min-width: 0;
}

.spectrum-form-shell .ff-el-input--label label {
	color: var(--spectrum-ink);
	display: block;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	margin-bottom: 0.35rem;
}

.spectrum-form-shell .ff-el-form-control {
	background: var(--spectrum-cream);
	border: 1px solid var(--spectrum-stone);
	border-radius: 0;
	color: var(--spectrum-ink);
	font: inherit;
	min-height: 2.9rem;
	padding: 0.65rem 0.75rem;
	width: 100%;
}

.spectrum-form-shell textarea.ff-el-form-control {
	min-height: 8rem;
}

.spectrum-form-shell .ff-el-form-check {
	align-items: flex-start;
	display: flex;
	gap: 0.55rem;
	margin-bottom: 0.5rem;
}

.spectrum-form-shell .ff-el-form-check input {
	accent-color: var(--spectrum-forest);
	margin-top: 0.35rem;
}

.spectrum-form-shell .ff-el-form-check label {
	font-size: 0.9rem;
	line-height: 1.45;
}

.spectrum-form-shell .ff-btn-submit {
	background: var(--spectrum-forest) !important;
	border: 1px solid var(--spectrum-forest) !important;
	border-radius: 0 !important;
	font-weight: 700;
	margin-top: 0.5rem;
	padding: 0.8rem 1.25rem !important;
}

.spectrum-form-shell .ff-btn-submit:hover {
	background: var(--spectrum-ink) !important;
	border-color: var(--spectrum-ink) !important;
}

.spectrum-form-shell .ff-el-is-required .ff-el-input--label label::after {
	color: var(--spectrum-error);
}

@media (max-width: 680px) {
	.spectrum-form-shell .frm-fluent-form fieldset {
		grid-template-columns: 1fr;
	}

	.spectrum-form-shell .ff-el-group:has([data-name="description"]),
	.spectrum-form-shell .ff-el-group:has([data-name^="checkbox"]),
	.spectrum-form-shell .ff_submit_btn_wrapper {
		grid-column: auto;
	}
}

.spectrum-site-footer {
	background: var(--spectrum-ink);
	color: var(--spectrum-paper);
	padding: 1.25rem 0;
}

.spectrum-site-footer > * {
	margin-inline: auto;
	max-width: var(--spectrum-content);
}

.spectrum-site-footer a {
	color: var(--spectrum-paper);
}

.spectrum-footer-inner {
	padding-inline: clamp(1rem, 3vw, 2rem);
	width: 100%;
}

.spectrum-footer-row {
	align-items: start;
	display: grid;
	gap: clamp(1.5rem, 5vw, 4rem);
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.spectrum-footer-row > * {
	margin: 0;
	min-width: 0;
}

.spectrum-footer-row .wp-block-site-title {
	font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	font-size: clamp(1.8rem, 3.6vw, 3rem);
	font-variant-caps: small-caps;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1;
	text-transform: none;
}

.spectrum-footer-description {
	font-size: 0.875rem;
	line-height: 1.5;
	margin-block: 0.25rem 0.5rem;
	max-width: 21rem;
}

.spectrum-site-footer .spectrum-footer-social {
	flex-wrap: nowrap;
	gap: 0.25rem;
	justify-content: flex-start;
	margin: 0;
	padding: 0;
}

.spectrum-footer-social .wp-block-social-link-anchor {
	align-items: center;
	display: flex;
	height: 44px;
	justify-content: center;
	padding: 0;
	width: 44px;
}

.spectrum-footer-social .wp-block-social-link-anchor svg {
	height: 24px;
	width: 24px;
}

.spectrum-footer-contacts,
.spectrum-footer-menu {
	border-left: 1px solid rgb(251 249 244 / 35%);
	padding-left: clamp(1.5rem, 5vw, 4rem);
}

.spectrum-footer-label {
	font-family: Inter, Arial, Helvetica, sans-serif;
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.25em;
	line-height: 1.4;
	margin: 0 0 1rem;
	text-transform: uppercase;
}

.spectrum-footer-contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.spectrum-footer-contact-list li {
	align-items: center;
	display: flex;
	font-size: 0.875rem;
	gap: 1rem;
	min-height: 36px;
}

.spectrum-footer-contact-list svg {
	flex-shrink: 0;
}

.spectrum-footer-contact-list a {
	align-content: center;
	min-height: 36px;
	overflow-wrap: anywhere;
	text-decoration: none;
}

.spectrum-footer-navigation p {
	font-size: 0.875rem;
	margin: 0;
}

.spectrum-footer-navigation {
	row-gap: 0.25rem;
}

.spectrum-footer-navigation a {
	align-items: center;
	display: inline-flex;
	min-height: 36px;
	text-underline-offset: 0.15em;
}

.spectrum-site-footer .spectrum-footer-bottom {
	align-items: center;
	border-top: 1px solid rgb(251 249 244 / 35%);
	display: flex;
	flex-wrap: wrap;
	gap: 0 1rem;
	justify-content: space-between;
	margin-top: 1.25rem;
	padding-top: 0.5rem;
}

.spectrum-footer-copyright {
	font-size: 0.75rem;
	margin: 0;
}

.spectrum-site-footer .spectrum-footer-legal {
	gap: 0;
	justify-content: flex-end;
	margin: 0;
}

.spectrum-footer-legal p {
	font-size: 0.75rem;
	margin: 0;
}

.spectrum-footer-legal a {
	align-items: center;
	display: inline-flex;
	min-height: 44px;
	text-decoration: none;
}

.spectrum-footer-legal p + p::before {
	border-left: 1px solid rgb(251 249 244 / 55%);
	content: "";
	margin-inline: 0.75rem;
}

.spectrum-footer-terms-prefix {
	margin-right: 0.25em;
}

.spectrum-footer-terms-text {
	text-transform: lowercase;
}

.spectrum-site-footer a:hover {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.spectrum-site-footer a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.wp-block-image img {
	display: block;
	height: auto;
	max-width: 100%;
}

.wp-block-image.spectrum-hero-media img,
.wp-block-image.spectrum-split-media img,
.wp-block-image.spectrum-offer-media img {
	height: 100%;
	inset: 0;
	min-height: 100%;
	object-fit: cover;
	position: absolute;
	width: 100%;
}

.wp-block-image.is-style-spectrum-frame {
	background: var(--spectrum-mist);
	border: 1px solid var(--spectrum-stone);
	padding: 0.5rem;
}

.wp-block-image.is-style-spectrum-frame img {
	object-fit: cover;
	width: 100%;
}

.wp-block-separator {
	border-color: var(--spectrum-stone);
}

@media (max-width: 781px) {
	.spectrum-site-footer {
		padding-block: 1.5rem;
	}

	.spectrum-footer-row {
		gap: 0.75rem;
		grid-template-columns: 1fr;
		text-align: center;
	}

	.spectrum-site-footer .spectrum-footer-social,
	.spectrum-site-footer .spectrum-footer-legal {
		justify-content: center;
	}

	.spectrum-footer-description {
		margin-bottom: 0.25rem;
		margin-inline: auto;
		margin-top: 0.5rem;
	}

	.spectrum-footer-contacts,
	.spectrum-footer-menu {
		border: 0;
		padding: 0;
	}

	.spectrum-footer-label {
		display: none;
	}

	.spectrum-footer-contact-list {
		display: inline-grid;
		text-align: left;
	}

	.spectrum-footer-contact-list a,
	.spectrum-footer-navigation a {
		min-height: 44px;
	}

	.spectrum-footer-navigation {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		margin: 0;
	}

	.spectrum-footer-navigation p + p::before {
		content: "·";
		margin-inline: 0.5rem;
	}

	.spectrum-site-footer .spectrum-footer-bottom {
		flex-direction: column;
		margin-top: 0.75rem;
		padding-top: 0.75rem;
		text-align: center;
	}

	.spectrum-footer-terms-prefix {
		display: none;
	}

	.spectrum-footer-legal p + p::before {
		border: 0;
		content: "·";
		margin-inline: 0.5rem;
	}

	.spectrum-footer-terms-text {
		text-transform: none;
	}

	.spectrum-front-page .spectrum-section.spectrum-split > .spectrum-split-copy {
		padding-inline: 0;
	}

	.spectrum-site-header > .alignwide {
		gap: 1rem;
	}

	.spectrum-brand {
		gap: 0.75rem;
	}

	.wp-block-image.spectrum-brand-logo {
		width: 2.75rem;
	}

	.spectrum-site-header .spectrum-nav {
		gap: 0.75rem 1rem;
		justify-content: flex-start;
		width: 100%;
	}

	.spectrum-site-header .spectrum-nav a {
		font-size: 0.75rem;
	}

	.spectrum-hero,
	.spectrum-split,
	.spectrum-offer,
	.spectrum-heading-row,
	.spectrum-single-layout {
		grid-template-columns: 1fr;
	}

	.spectrum-hero,
	.spectrum-split,
	.spectrum-offer {
		row-gap: var(--spectrum-copy-gap);
	}

	.spectrum-hero {
		min-height: 0;
	}

	.spectrum-hero-note {
		max-width: none;
	}

	.wp-block-image.spectrum-hero-media img {
		aspect-ratio: 16 / 10;
		height: auto;
		min-height: 0;
		position: static;
	}

	.wp-block-image.spectrum-split-media img,
	.wp-block-image.spectrum-offer-media img {
		aspect-ratio: 16 / 10;
		height: auto;
		min-height: 0;
		position: static;
	}

	.spectrum-offer-points {
		grid-template-columns: 1fr;
	}

	.spectrum-offer-copy {
		padding-inline-end: 0;
	}

	.spectrum-offer-point + .spectrum-offer-point {
		border-inline-start: 0;
		border-top: 1px solid var(--spectrum-stone);
	}

	.spectrum-card-grid {
		grid-template-columns: 1fr;
	}

	.spectrum-principle-grid {
		grid-template-columns: 1fr;
	}

	.spectrum-principle {
		border-bottom: 1px solid rgba(251, 249, 244, 0.35);
		border-inline-end: 0;
	}

	.spectrum-section-heading {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.spectrum-section-heading h2,
	.spectrum-heading-meta {
		white-space: normal;
	}

	.spectrum-section-heading .wp-block-separator {
		display: none;
	}

	.spectrum-heading-meta {
		text-align: left;
		width: 100%;
	}

	.spectrum-story-nav {
		margin-block: 0 var(--spectrum-section-space);
		position: static;
	}

	.spectrum-button-row {
		flex-wrap: wrap;
	}

	.spectrum-story-grid {
		display: block;
	}

	.spectrum-story-grid .wp-block-post-template {
		grid-template-columns: 1fr;
	}

	.spectrum-site-header .wp-block-group {
		gap: 1rem;
	}

	.spectrum-nav {
		gap: 0.75rem;
		justify-content: flex-start;
	}

	.spectrum-nav a {
		font-size: 0.7rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
