:root {
	--cvlft-ink: #080a0b;
	--cvlft-paper: #f4f1ea;
	--cvlft-muted: rgba(244, 241, 234, 0.58);
	--cvlft-faint: rgba(244, 241, 234, 0.16);
	--cvlft-accent: #b79352;
}

body.cvlft-enabled {
	overflow-x: clip;
}

/*
 * Seamless catalogue-to-footer bridge.
 *
 * Several classic and block themes leave a white bottom gutter on the page
 * wrapper, or add a global block gap before a footer.  The Canvelor catalogue
 * is intentionally full-bleed, so remove only the trailing spacing from
 * wrappers that actually contain that catalogue.  The JS marker is a fallback
 * for themes that calculate body classes before the shortcode is discovered.
 */
body.cvlft-enabled.cvl-catalog-page,
body.cvlft-enabled.cvlft-catalog-seamless {
	background-color: var(--cvlft-ink) !important;
}

body.cvlft-enabled.cvl-catalog-page :where(
	#page,
	.site,
	.wp-site-blocks,
	.site-content,
	#content,
	.content-area,
	#primary,
	main,
	#main,
	.site-main,
	article,
	.hentry,
	.entry-content,
	.wp-block-post-content,
	.wp-block-shortcode
):has(.cvl-catalog),
body.cvlft-enabled.cvlft-catalog-seamless :where(
	#page,
	.site,
	.wp-site-blocks,
	.site-content,
	#content,
	.content-area,
	#primary,
	main,
	#main,
	.site-main,
	article,
	.hentry,
	.entry-content,
	.wp-block-post-content,
	.wp-block-shortcode
):has(.cvl-catalog) {
	margin-bottom: 0 !important;
	margin-block-end: 0 !important;
	padding-bottom: 0 !important;
	padding-block-end: 0 !important;
	background-color: transparent !important;
}

body.cvlft-enabled.cvl-catalog-page .cvl-catalog,
body.cvlft-enabled.cvlft-catalog-seamless .cvl-catalog {
	margin-bottom: 0 !important;
	margin-block-end: 0 !important;
}

body.cvlft-enabled.cvl-catalog-page .wp-block-shortcode:has(> .cvl-catalog) ~ :is(.wp-block-spacer, p:empty),
body.cvlft-enabled.cvlft-catalog-seamless .wp-block-shortcode:has(> .cvl-catalog) ~ :is(.wp-block-spacer, p:empty) {
	display: none !important;
}

body.cvlft-hide-theme-footer #colophon,
body.cvlft-hide-theme-footer .site-footer:not(.cvlft-site-footer),
body.cvlft-hide-theme-footer footer.site-footer:not(.cvlft-site-footer),
body.cvlft-hide-theme-footer .wp-site-blocks > footer:not(.cvlft-site-footer),
body.cvlft-hide-theme-footer footer.wp-block-template-part:not(.cvlft-site-footer) {
	display: none !important;
}

body.cvlft-hide-theme-credit :where(
	.site-info,
	.site-info-wrapper,
	.powered-by,
	.powered-by-wordpress,
	.footer-credits,
	.footer-credit,
	.site-footer__credits,
	.wp-block-site-info
),
body.cvlft-hide-theme-credit :where(p, div):has(> a[href*="wordpress.org"]):not(.cvlft-site-footer *) {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

body.cvlft-hide-theme-credit .cvlft-theme-credit-hidden {
	display: none !important;
}

/* The custom footer is printed by wp_footer(), which places it immediately
 * after the theme's outer page shell in many classic themes. Removing the
 * inner credit does not remove that shell's own bottom border or margin. JS
 * marks only the actual element immediately before this footer, allowing the
 * seam to be cleaned without flattening layout containers elsewhere. */
body.cvlft-enabled .cvlft-before-footer-edge {
	margin-bottom: 0 !important;
	margin-block-end: 0 !important;
	border-bottom: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
}

body.cvlft-enabled .cvlft-before-footer-edge::before,
body.cvlft-enabled .cvlft-before-footer-edge::after {
	border-bottom: 0 !important;
	box-shadow: none !important;
}

/* A theme may leave a tiny, empty credit shell between its page wrapper and
 * the custom footer. It is safe to remove only after JS has verified that the
 * element contains no visible content. */
body.cvlft-enabled .cvlft-empty-footer-remnant {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

.cvlft-site-footer,
.cvlft-site-footer * {
	box-sizing: border-box;
}

.cvlft-site-footer {
	position: relative;
	isolation: isolate;
	width: 100%;
	margin: 0 !important;
	margin-block-start: 0 !important;
	overflow: hidden;
	color: var(--cvlft-paper);
	background-color: var(--cvlft-ink);
	background-image:
		linear-gradient(112deg, rgba(5, 7, 8, 0.76), rgba(5, 7, 8, 0.88)),
		var(--cvlft-texture-desktop);
	background-position: center bottom;
	background-repeat: no-repeat;
	background-size: cover;
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.6;
}

/*
 * The active desktop theme leaves a consistent 40px visual tail inside the
 * catalogue wrapper. It is not a DOM gap, so geometry-based joining cannot
 * detect it. Let the signature footer overlap that tail and continue its own
 * texture through the seam. Mobile does not have this theme artefact.
 */
@media (min-width: 821px) {
	body.cvlft-enabled.cvl-catalog-page .cvlft-site-footer,
	body.cvlft-enabled.cvlft-catalog-seamless .cvlft-site-footer {
		margin-top: -40px !important;
		margin-block-start: -40px !important;
	}
}

.cvlft-overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(circle at 14% 8%, rgba(183, 147, 82, 0.09), transparent 34%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 36%);
}

.cvlft-inner {
	width: min(100%, 1720px);
	margin: 0 auto;
	padding: clamp(72px, 6vw, 112px) clamp(34px, 6vw, 112px) 30px;
}

.cvlft-grid {
	display: grid;
	grid-template-columns: minmax(270px, 1.35fr) minmax(150px, 0.66fr) minmax(160px, 0.72fr) minmax(290px, 1.2fr);
	gap: clamp(40px, 4.5vw, 86px);
	align-items: start;
}

.cvlft-brand-column,
.cvlft-link-column,
.cvlft-newsletter-column {
	min-width: 0;
}

.cvlft-brand {
	display: inline-flex;
	align-items: center;
	max-width: 220px;
	margin-bottom: 30px;
	color: var(--cvlft-paper);
	text-decoration: none;
}

.cvlft-logo {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 68px;
	filter: grayscale(1) brightness(0) invert(1);
	opacity: 0.96;
}

.cvlft-wordmark {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(31px, 2.7vw, 46px);
	font-weight: 400;
	letter-spacing: 0.12em;
	line-height: 1;
	text-transform: uppercase;
}

.cvlft-statement {
	max-width: 390px;
	margin: 0 0 27px;
	color: var(--cvlft-muted);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.13em;
	line-height: 1.9;
	text-transform: uppercase;
}

.cvlft-contact {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 18px;
	margin-bottom: 25px;
}

.cvlft-contact a,
.cvlft-menu a,
.cvlft-legal a {
	color: inherit;
	text-decoration: none;
	text-underline-offset: 4px;
}

.cvlft-contact a {
	color: rgba(244, 241, 234, 0.82);
	font-size: 13px;
	letter-spacing: 0.04em;
}

.cvlft-contact a:hover,
.cvlft-contact a:focus-visible {
	color: var(--cvlft-accent);
}

.cvlft-social {
	display: flex;
	align-items: center;
	gap: 11px;
}

.cvlft-social a {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	color: rgba(244, 241, 234, 0.72);
	border: 1px solid var(--cvlft-faint);
	border-radius: 50%;
	transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.cvlft-social a:hover,
.cvlft-social a:focus-visible {
	color: var(--cvlft-accent);
	border-color: rgba(183, 147, 82, 0.72);
	transform: translateY(-2px);
}

.cvlft-social svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.55;
}

.cvlft-social svg .is-filled {
	fill: currentColor;
	stroke: none;
}

.cvlft-desktop-heading,
.cvlft-newsletter-column h2,
.cvlft-eyebrow {
	margin: 0;
	font-weight: 500;
	text-transform: uppercase;
}

.cvlft-desktop-heading,
.cvlft-eyebrow {
	margin-bottom: 25px;
	color: rgba(244, 241, 234, 0.7);
	font-size: 11px;
	letter-spacing: 0.22em;
}

.cvlft-menu {
	display: grid;
	gap: 13px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cvlft-menu li {
	margin: 0;
	padding: 0;
}

.cvlft-menu a {
	display: inline-block;
	color: rgba(244, 241, 234, 0.86);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1.6;
	text-transform: uppercase;
	transition: color 170ms ease, transform 170ms ease;
}

.cvlft-menu a:hover,
.cvlft-menu a:focus-visible {
	color: var(--cvlft-accent);
	transform: translateX(3px);
}

.cvlft-accordion-toggle {
	display: none;
}

.cvlft-newsletter-column {
	padding-left: clamp(24px, 3vw, 52px);
	border-left: 1px solid var(--cvlft-faint);
}

.cvlft-newsletter-column h2 {
	margin-bottom: 15px;
	color: var(--cvlft-paper);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(27px, 2.2vw, 38px);
	font-weight: 400;
	letter-spacing: 0.11em;
	line-height: 1.1;
}

.cvlft-newsletter-copy {
	max-width: 430px;
	margin: 0 0 28px;
	color: var(--cvlft-muted);
	font-size: 14px;
	line-height: 1.75;
}

.cvlft-newsletter-button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: min(100%, 390px);
	min-height: 52px;
	padding: 0 19px 0 21px;
	color: var(--cvlft-paper);
	background: rgba(255, 255, 255, 0.025);
	border: 1px solid rgba(244, 241, 234, 0.4);
	text-decoration: none;
	transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.cvlft-newsletter-button span {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.2em;
}

.cvlft-newsletter-button svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.2;
	transition: transform 180ms ease;
}

.cvlft-newsletter-button:hover,
.cvlft-newsletter-button:focus-visible {
	color: #0a0c0d;
	background: var(--cvlft-accent);
	border-color: var(--cvlft-accent);
}

.cvlft-newsletter-button:hover svg,
.cvlft-newsletter-button:focus-visible svg {
	transform: translateX(4px);
}

.cvlft-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	margin-top: clamp(64px, 6vw, 96px);
	padding-top: 24px;
	border-top: 1px solid var(--cvlft-faint);
}

.cvlft-bottom p {
	margin: 0;
	color: rgba(244, 241, 234, 0.5);
	font-size: 10px;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.cvlft-legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 9px 25px;
}

.cvlft-legal a {
	color: rgba(244, 241, 234, 0.5);
	font-size: 10px;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	transition: color 160ms ease;
}

.cvlft-legal a:hover,
.cvlft-legal a:focus-visible {
	color: var(--cvlft-paper);
}

.cvlft-site-footer a:focus-visible,
.cvlft-site-footer button:focus-visible {
	outline: 1px solid var(--cvlft-accent);
	outline-offset: 4px;
}

@media (max-width: 1120px) {
	.cvlft-grid {
		grid-template-columns: minmax(250px, 1.25fr) minmax(140px, 0.7fr) minmax(140px, 0.7fr) minmax(240px, 1fr);
		gap: 34px;
	}

	.cvlft-newsletter-column {
		padding-left: 28px;
	}
}

@media (max-width: 820px) {
	.cvlft-site-footer {
		background-image:
			linear-gradient(155deg, rgba(5, 7, 8, 0.72), rgba(5, 7, 8, 0.9)),
			var(--cvlft-texture-mobile);
		background-position: center top;
	}

	.cvlft-inner {
		padding: 56px 24px 22px;
	}

	.cvlft-grid {
		display: flex;
		flex-direction: column;
		gap: 0;
	}

	.cvlft-brand-column {
		order: 1;
		width: 100%;
		padding-bottom: 42px;
	}

	.cvlft-newsletter-column {
		order: 2;
		width: 100%;
		padding: 38px 0 42px;
		border-top: 1px solid var(--cvlft-faint);
		border-right: 0;
		border-bottom: 1px solid var(--cvlft-faint);
		border-left: 0;
	}

	.cvlft-link-column {
		order: 3;
		width: 100%;
		border-bottom: 1px solid var(--cvlft-faint);
	}

	.cvlft-link-column + .cvlft-link-column {
		order: 4;
	}

	.cvlft-brand {
		max-width: 185px;
		margin-bottom: 24px;
	}

	.cvlft-statement {
		max-width: 520px;
		margin-bottom: 22px;
		font-size: 11px;
		line-height: 1.85;
	}

	.cvlft-desktop-heading {
		display: none;
	}

	.cvlft-accordion-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		min-height: 61px;
		padding: 0;
		color: rgba(244, 241, 234, 0.86);
		background: transparent;
		border: 0;
		font: inherit;
		font-size: 11px;
		font-weight: 600;
		letter-spacing: 0.2em;
		text-align: left;
	}

	.cvlft-accordion-mark {
		font-size: 19px;
		font-weight: 300;
		line-height: 1;
		transition: transform 170ms ease;
	}

	.cvlft-accordion-toggle[aria-expanded="true"] .cvlft-accordion-mark {
		transform: rotate(45deg);
	}

	.cvlft-link-list {
		padding: 1px 0 25px;
	}

	.cvlft-site-footer.is-enhanced .cvlft-link-list[hidden] {
		display: none;
	}

	.cvlft-menu {
		gap: 11px;
	}

	.cvlft-newsletter-column h2 {
		font-size: 31px;
	}

	.cvlft-newsletter-button {
		width: 100%;
		max-width: 520px;
	}

	.cvlft-bottom {
		align-items: flex-start;
		flex-direction: column;
		gap: 16px;
		margin-top: 40px;
		padding-top: 20px;
	}

	.cvlft-legal {
		justify-content: flex-start;
	}
}

@media (max-width: 480px) {
	.cvlft-inner {
		padding-right: 20px;
		padding-left: 20px;
	}

	.cvlft-contact {
		align-items: flex-start;
		flex-direction: column;
		gap: 7px;
	}

	.cvlft-eyebrow {
		margin-bottom: 19px;
		font-size: 9px;
	}

	.cvlft-newsletter-column h2 {
		font-size: 28px;
	}

	.cvlft-newsletter-copy {
		font-size: 13px;
	}

	.cvlft-legal {
		gap: 8px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cvlft-site-footer *,
	.cvlft-site-footer *::before,
	.cvlft-site-footer *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
