:root {
	--cresco-thread: #8e68ca;
	--cresco-border: rgba(50, 23, 67, 0.18);
}

@font-face {
	font-display: swap;
	font-family: "Manrope";
	font-style: normal;
	font-weight: 200 800;
	src: url("../fonts/Manrope-VariableFont_wght.woff2") format("woff2");
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	text-rendering: optimizeLegibility;
}

img {
	height: auto;
}

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

.screen-reader-text:focus,
.skip-link:focus {
	background: #fff;
	clip: auto !important;
	clip-path: none;
	color: #321743;
	display: block;
	font-size: 1rem;
	height: auto;
	left: 1rem;
	padding: 0.75rem 1rem;
	top: 1rem;
	width: auto;
	z-index: 100000;
}

:where(a, button, input, textarea, select, summary):focus-visible {
	outline: 3px solid #8e68ca;
	outline-offset: 3px;
}

.site-header {
	background: rgba(255, 253, 249, 0.96);
	border-bottom: 1px solid var(--cresco-border);
	position: sticky;
	top: 0;
	z-index: 30;
}

.site-header .cresco-logo {
	flex: 0 1 300px;
	margin: 0;
	min-width: 0;
}

.site-header .cresco-logo img {
	display: block;
	max-height: 74px;
	max-width: 100%;
	object-fit: contain;
	width: auto !important;
}

.site-header .wp-block-navigation-item:last-child > .wp-block-navigation-item__content {
	background: #321743;
	border-radius: 999px;
	color: #fff;
	padding: 0.72rem 1.2rem;
}

.cresco-language-switcher ul {
	display: flex;
	gap: 0.65rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cresco-language-switcher a {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cresco-eyebrow {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.cresco-thread-section {
	position: relative;
}

.cresco-thread-section::after {
	background: url("../images/illustration-thread-loop.svg") center / min(1200px, 100%) 100% no-repeat;
	bottom: -2.1rem;
	content: "";
	height: 4rem;
	left: 0;
	pointer-events: none;
	position: absolute;
	width: 100%;
	z-index: 2;
}

.cresco-hero {
	min-height: min(760px, calc(100vh - 80px));
}

.cresco-hero__copy {
	padding-block: clamp(3rem, 7vw, 7rem);
}

.cresco-hero__title strong {
	color: #815db5;
	font-weight: inherit;
}

.cresco-hero__image img,
.cresco-parent-image img {
	border-radius: 36% 8% 28% 8% / 22% 8% 28% 10%;
	box-shadow: 0 18px 50px rgba(50, 23, 67, 0.12);
	height: clamp(380px, 64vw, 690px);
	object-fit: cover;
	object-position: 52% center;
	width: 100%;
}

.cresco-parent-image img {
	border-radius: 8% 36% 8% 28% / 8% 28% 10% 25%;
	height: clamp(300px, 45vw, 520px);
}

.cresco-card {
	border-left: 1px solid rgba(50, 23, 67, 0.22);
	min-height: 100%;
	padding-left: clamp(1.25rem, 2vw, 2rem);
}

.cresco-card:first-child {
	border-left: 0;
	padding-left: 0;
}

.cresco-knot {
	background: url("../images/illustration-play-knot.svg") center / contain no-repeat;
	height: 86px;
	margin-bottom: 0.6rem;
	width: 86px;
}

.cresco-arrow-link {
	align-items: center;
	border-bottom: 1px solid currentColor;
	display: inline-flex;
	font-weight: 500;
	gap: 0.7rem;
	text-decoration: none;
}

.cresco-arrow-link::after {
	content: "→";
	transition: transform 160ms ease;
}

.cresco-arrow-link:hover::after {
	transform: translateX(0.25rem);
}

.cresco-post-card {
	border-top: 1px solid rgba(50, 23, 67, 0.22);
	padding-top: 1.1rem;
}

.site-footer {
	margin-block-start: 0;
	position: relative;
}

.site-footer::before {
	background: url("../images/illustration-thread-loop.svg") center / cover no-repeat;
	content: "";
	filter: brightness(0) invert(1);
	height: 52px;
	left: 0;
	opacity: 0.58;
	position: absolute;
	top: -24px;
	width: 100%;
}

.site-footer .cresco-logo img {
	height: auto;
	max-width: 300px;
	width: 100% !important;
}

.site-footer a {
	color: #fff;
}

.site-footer .wp-block-search {
	margin-bottom: 1.25rem;
}

.site-footer .wp-block-search__label {
	color: #fff;
	display: block;
	font-weight: 600;
	margin-bottom: 0.4rem;
}

.site-footer .wp-block-search__inside-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.site-footer .wp-block-search__input {
	background: #fff;
	border: 2px solid #aa8bdd;
	border-radius: 0.45rem;
	color: #251b2d;
	min-width: 10rem;
	padding: 0.65rem;
}

.site-footer .wp-block-search__button {
	background: #fff;
	border: 2px solid #fff;
	border-radius: 999px;
	color: #321743;
	font-weight: 700;
	margin-left: 0;
	padding: 0.65rem 1rem;
}

.wp-block-post-content :where(p, li) {
	max-width: 72ch;
}

.wp-block-post-content h2 {
	margin-top: 2.2em;
}

.wpcf7-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.wpcf7-form input:not([type="checkbox"]):not([type="submit"]),
.wpcf7-form textarea,
.wpcf7-form select {
	background: #fffdf9;
	border: 1px solid rgba(50, 23, 67, 0.55);
	border-radius: 0.6rem;
	color: #251b2d;
	font: inherit;
	max-width: 100%;
	padding: 0.75rem;
	width: 100%;
}

.wpcf7-form input[type="submit"] {
	background: #321743;
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	padding: 0.85rem 1.5rem;
}

.wpcf7-not-valid-tip,
.wpcf7-response-output {
	font-weight: 600;
}

@media (max-width: 781px) {
	.site-header {
		position: static;
	}

	.site-header .cresco-logo {
		flex-basis: 215px;
		max-width: 215px;
	}

	.site-header .cresco-logo img {
		max-height: 58px;
		max-width: 215px;
	}

	.cresco-hero {
		min-height: auto;
	}

	.cresco-hero__copy {
		padding-block: 2.5rem 1rem;
	}

	.cresco-hero__image img {
		height: min(72vh, 520px);
	}

	.cresco-card,
	.cresco-card:first-child {
		border-left: 0;
		border-top: 1px solid rgba(50, 23, 67, 0.22);
		padding-left: 0;
		padding-top: 1.5rem;
	}

	.site-footer .wp-block-search__input,
	.site-footer .wp-block-search__button {
		flex: 1 1 100%;
		width: 100%;
	}
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
