/*
Theme Name: LOFTKIND
Theme URI: https://loftkind.com/
Author: LOFTKIND
Description: A warm, editorial Gutenberg block theme built for the LOFTKIND WooCommerce store.
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
Version: 0.2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: loftkind
Tags: block-patterns, block-styles, full-site-editing, e-commerce, accessibility-ready
*/

html {
	scroll-behavior: smooth;
}

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

body.admin-bar .loftkind-site-header {
	top: 32px;
}

a,
button,
input,
select,
textarea {
	transition:
		color 180ms ease,
		background-color 180ms ease,
		border-color 180ms ease,
		opacity 180ms ease,
		transform 180ms ease;
}

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

.loftkind-site-header {
	position: sticky;
	z-index: 50;
	top: 0;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--line) 72%, transparent);
	background: color-mix(in srgb, var(--wp--preset--color--paper) 94%, transparent);
	backdrop-filter: blur(18px);
}

.loftkind-site-header .wp-block-site-title {
	letter-spacing: 0.025em;
}

.loftkind-site-header .wp-block-navigation-item__content {
	text-underline-offset: 0.35em;
}

.loftkind-header-tools {
	flex-shrink: 0;
}

.loftkind-hero {
	min-height: clamp(39rem, 75vw, 49rem);
}

.loftkind-hero .wp-block-cover__image-background {
	object-position: 58% center;
}

.loftkind-hero::before {
	position: absolute;
	z-index: 1;
	inset: 0;
	background:
		linear-gradient(
			90deg,
			rgba(246, 242, 234, 0.98) 0%,
			rgba(246, 242, 234, 0.92) 25%,
			rgba(246, 242, 234, 0.3) 51%,
			rgba(246, 242, 234, 0) 72%
		);
	content: "";
	pointer-events: none;
}

.loftkind-hero .wp-block-cover__inner-container {
	z-index: 2;
	width: min(100%, var(--wp--style--global--wide-size));
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--50);
}

.loftkind-hero-copy {
	max-width: 34rem;
}

.loftkind-eyebrow {
	margin-bottom: var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--sage);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 650;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.loftkind-button .wp-block-button__link,
.wp-element-button {
	box-shadow: 0 10px 26px rgba(36, 40, 34, 0.1);
}

.loftkind-button .wp-block-button__link:hover,
.wp-element-button:hover {
	transform: translateY(-2px);
}

.loftkind-section {
	padding-block: clamp(4.5rem, 9vw, 8rem);
}

.loftkind-section-tight {
	padding-block: clamp(3.25rem, 6vw, 5.5rem);
}

.loftkind-section-heading {
	max-width: 47rem;
	margin-inline: auto;
}

.loftkind-media-card,
.loftkind-step-card,
.loftkind-product-card,
.loftkind-size-card {
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--line) 80%, transparent);
	border-radius: var(--wp--custom--radius--large);
	background: var(--wp--preset--color--paper);
	box-shadow: 0 16px 50px rgba(49, 47, 41, 0.055);
}

.loftkind-media-card .wp-block-image,
.loftkind-step-card .wp-block-image,
.loftkind-product-card .wp-block-image {
	margin: 0;
}

.loftkind-media-card img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.loftkind-card-body {
	padding: var(--wp--preset--spacing--30);
}

.loftkind-step-card {
	height: 100%;
	background: transparent;
	box-shadow: none;
}

.loftkind-step-card img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.loftkind-step-card--pack img {
	object-position: center;
}

.loftkind-step-card--seal img,
.loftkind-step-card--pump img {
	object-position: center 58%;
}

.loftkind-step-number {
	display: inline-grid;
	width: 2rem;
	height: 2rem;
	margin-right: 0.55rem;
	border-radius: 999px;
	background: var(--wp--preset--color--sage);
	color: var(--wp--preset--color--paper);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.82rem;
	font-weight: 700;
	place-items: center;
}

.loftkind-product-grid {
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--large);
	background: var(--wp--preset--color--paper);
}

.loftkind-product-card {
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.loftkind-product-card + .loftkind-product-card {
	border-left: 1px solid var(--wp--preset--color--line);
}

.loftkind-product-card img {
	width: 100%;
	aspect-ratio: 7 / 5;
	object-fit: contain;
	background: var(--wp--preset--color--canvas);
}

.loftkind-size-card {
	padding: clamp(1.4rem, 3vw, 2.25rem);
	text-align: center;
	box-shadow: none;
}

.loftkind-size-shape {
	display: grid;
	margin: 0 auto var(--wp--preset--spacing--30);
	border: 1px solid rgba(74, 78, 71, 0.36);
	background:
		linear-gradient(30deg, rgba(83, 106, 82, 0.06) 12%, transparent 12.5%, transparent 87%, rgba(83, 106, 82, 0.06) 87.5%),
		linear-gradient(150deg, rgba(83, 106, 82, 0.06) 12%, transparent 12.5%, transparent 87%, rgba(83, 106, 82, 0.06) 87.5%),
		linear-gradient(30deg, rgba(83, 106, 82, 0.06) 12%, transparent 12.5%, transparent 87%, rgba(83, 106, 82, 0.06) 87.5%);
	background-size: 1rem 1.75rem;
	color: var(--wp--preset--color--sage);
	font-size: 0.72rem;
	place-items: center;
}

.loftkind-size-shape--small {
	width: 7.5rem;
	aspect-ratio: 4 / 5;
}

.loftkind-size-shape--medium {
	width: 8.4rem;
	aspect-ratio: 2 / 3;
}

.loftkind-size-shape--large {
	width: 9.4rem;
	aspect-ratio: 5 / 6;
}

.loftkind-brand-panel {
	overflow: hidden;
	border-radius: var(--wp--custom--radius--large);
}

.loftkind-brand-panel .wp-block-image,
.loftkind-brand-panel .wp-block-image img {
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.loftkind-faq {
	border-top: 1px solid var(--wp--preset--color--line);
}

.loftkind-faq details {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.loftkind-faq summary {
	padding-block: 1.1rem;
	font-weight: 600;
	cursor: pointer;
}

.loftkind-faq details > p {
	padding-bottom: 1.25rem;
}

.loftkind-site-footer a {
	color: inherit;
	text-decoration: none;
}

.loftkind-site-footer a:hover {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.loftkind-page-shell {
	min-height: 56vh;
	padding-block: clamp(4rem, 8vw, 7rem);
}

.loftkind-page-title {
	margin-bottom: var(--wp--preset--spacing--50);
}

.loftkind-woo-shell {
	min-height: 65vh;
	padding-block: clamp(3rem, 6vw, 6rem);
}

.loftkind-product-page {
	overflow: clip;
}

.loftkind-product-breadcrumbs {
	padding-top: var(--wp--preset--spacing--30);
}

.loftkind-product-breadcrumbs .woocommerce-breadcrumb {
	color: var(--wp--preset--color--soft-ink);
	font-size: var(--wp--preset--font-size--small);
}

.loftkind-product-hero {
	padding-block: clamp(2rem, 6vw, 6rem) clamp(4rem, 8vw, 7rem);
}

.loftkind-product-hero-grid {
	align-items: flex-start !important;
}

.loftkind-product-gallery {
	min-width: 0;
}

.loftkind-product-gallery .woocommerce-product-gallery,
.loftkind-product-gallery .wc-block-components-product-gallery {
	margin: 0;
}

.loftkind-product-gallery img {
	background: var(--wp--preset--color--paper);
}

.loftkind-product-summary {
	position: sticky;
	top: 7.25rem;
}

.loftkind-product-summary .wp-block-post-title {
	margin-top: 0.2rem;
}

.loftkind-product-summary .wp-block-woocommerce-product-price {
	margin-block: 1.2rem;
}

.loftkind-product-summary .wp-block-post-excerpt {
	color: var(--wp--preset--color--soft-ink);
}

.loftkind-purchase-points {
	margin-block: var(--wp--preset--spacing--40);
	padding-block: var(--wp--preset--spacing--30);
	border-block: 1px solid var(--wp--preset--color--line);
}

.loftkind-purchase-points p {
	position: relative;
	margin-block: 0.5rem;
	padding-left: 1.45rem;
	font-size: var(--wp--preset--font-size--small);
}

.loftkind-purchase-points p::before {
	position: absolute;
	top: 0.72em;
	left: 0;
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 999px;
	background: var(--wp--preset--color--sage);
	content: "";
	transform: translateY(-50%);
}

.loftkind-product-summary .wp-block-add-to-cart-form,
.loftkind-product-summary form.cart {
	width: 100%;
}

.loftkind-product-summary form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.loftkind-product-summary form.cart .variations {
	width: 100%;
	margin-bottom: 0.5rem;
}

.loftkind-product-summary form.cart .variations th,
.loftkind-product-summary form.cart .variations td {
	display: block;
	padding: 0;
	text-align: left;
}

.loftkind-product-summary form.cart .variations label {
	display: block;
	margin-bottom: 0.45rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 650;
}

.loftkind-product-summary form.cart select {
	width: 100%;
	min-height: 3.2rem;
	margin-bottom: 1rem;
	padding-inline: 0.9rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--paper);
}

.loftkind-product-summary form.cart .quantity .qty {
	min-height: 3.2rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--paper);
}

.loftkind-product-summary form.cart .single_add_to_cart_button {
	flex: 1;
	min-height: 3.2rem;
	border-radius: 999px;
}

.loftkind-purchase-note {
	margin-top: 0.9rem;
	color: var(--wp--preset--color--soft-ink);
}

.loftkind-product-meta {
	margin-top: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--soft-ink);
	font-size: var(--wp--preset--font-size--xs);
}

.loftkind-benefit-strip {
	padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.loftkind-benefit-grid {
	gap: clamp(2rem, 6vw, 6rem);
}

.loftkind-benefit-grid .wp-block-column + .wp-block-column {
	border-left: 1px solid rgba(255, 252, 247, 0.18);
	padding-left: clamp(2rem, 4vw, 4rem);
}

.loftkind-benefit-grid h3 {
	margin-block: 0.5rem;
	color: var(--wp--preset--color--paper);
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 600;
}

.loftkind-benefit-kicker,
.loftkind-story-index {
	color: var(--wp--preset--color--pale-sage);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.loftkind-product-intro {
	padding-bottom: clamp(3rem, 5vw, 5rem);
}

.loftkind-scroll-story-section {
	padding-block: clamp(2rem, 5vw, 5rem);
}

.loftkind-scroll-story {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.72fr);
	gap: clamp(2rem, 7vw, 7rem);
	align-items: start;
}

.loftkind-story-stage {
	position: sticky;
	top: 7.5rem;
	min-height: calc(100vh - 10rem);
	overflow: hidden;
	border-radius: var(--wp--custom--radius--large);
	background: var(--wp--preset--color--canvas);
	box-shadow: 0 24px 70px rgba(49, 47, 41, 0.09);
}

.loftkind-story-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.loftkind-story-image.is-active {
	opacity: 1;
}

.loftkind-story-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.loftkind-story-image:nth-child(1) img,
.loftkind-story-image:nth-child(2) img,
.loftkind-story-image:nth-child(3) img {
	object-position: center 54%;
}

.loftkind-story-panel {
	display: flex;
	min-height: 76vh;
	flex-direction: column;
	justify-content: center;
	padding-block: 3rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
	opacity: 0.48;
	transition: opacity 350ms ease;
}

.loftkind-story-panel:first-child,
.loftkind-story-panel.is-active {
	opacity: 1;
}

.loftkind-story-panel h2 {
	max-width: 12ch;
	margin-top: 0.5rem;
}

.loftkind-bundle-table {
	overflow-x: auto;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--medium);
	background: var(--wp--preset--color--paper);
}

.loftkind-bundle-table table {
	min-width: 38rem;
	border-collapse: collapse;
}

.loftkind-bundle-table th,
.loftkind-bundle-table td {
	padding: 1rem clamp(0.8rem, 2vw, 1.5rem);
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	text-align: center;
}

.loftkind-bundle-table th {
	background: color-mix(in srgb, var(--wp--preset--color--pale-sage) 50%, transparent);
	font-size: var(--wp--preset--font-size--small);
}

.loftkind-bundle-table th:first-child,
.loftkind-bundle-table td:first-child {
	text-align: left;
}

.loftkind-bundle-table tr:last-child td {
	border-bottom: 0;
}

.loftkind-refill-image,
.loftkind-refill-image img {
	width: 100%;
	margin: 0;
}

.loftkind-refill-image img {
	aspect-ratio: 5 / 4;
	border-radius: var(--wp--custom--radius--large);
	object-fit: cover;
}

.loftkind-product-faq .loftkind-faq {
	max-width: 58rem;
}

.loftkind-product-details-section {
	padding-block: clamp(3rem, 7vw, 6rem);
	border-top: 1px solid var(--wp--preset--color--line);
}

.loftkind-subpage-hero {
	min-height: clamp(34rem, 70vw, 44rem);
}

.loftkind-subpage-hero .wp-block-cover__image-background {
	object-position: 65% center;
}

.loftkind-subpage-hero::before {
	position: absolute;
	z-index: 1;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(246, 242, 234, 0.98) 0%,
		rgba(246, 242, 234, 0.88) 36%,
		rgba(246, 242, 234, 0.12) 68%,
		rgba(246, 242, 234, 0) 100%
	);
	content: "";
	pointer-events: none;
}

.loftkind-subpage-hero .wp-block-cover__inner-container {
	z-index: 2;
	width: min(100%, var(--wp--style--global--wide-size));
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--50);
}

.loftkind-subpage-hero-copy {
	max-width: 38rem;
	margin-left: 0;
}

.loftkind-guide-image,
.loftkind-guide-image img {
	width: 100%;
	margin: 0;
}

.loftkind-guide-image img {
	aspect-ratio: 5 / 4;
	border-radius: var(--wp--custom--radius--large);
	object-fit: cover;
}

.loftkind-check-list {
	padding-left: 0;
	list-style: none;
}

.loftkind-check-list li {
	position: relative;
	margin-block: 0.8rem;
	padding-left: 1.8rem;
}

.loftkind-check-list li::before {
	position: absolute;
	top: 0.35rem;
	left: 0;
	width: 0.75rem;
	height: 0.4rem;
	border-bottom: 2px solid var(--wp--preset--color--sage);
	border-left: 2px solid var(--wp--preset--color--sage);
	content: "";
	transform: rotate(-45deg);
}

.loftkind-info-grid {
	max-width: 62rem;
}

.loftkind-info-card {
	height: 100%;
	padding: clamp(1.5rem, 4vw, 3rem);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--large);
	background: var(--wp--preset--color--paper);
}

.loftkind-info-card li {
	margin-block: 0.65rem;
}

.loftkind-guide-cta {
	padding-block: clamp(4rem, 8vw, 7rem);
}

.loftkind-size-hero {
	padding-block: clamp(4rem, 9vw, 8rem);
}

.loftkind-size-hero-image,
.loftkind-size-hero-image img {
	width: 100%;
	margin: 0;
}

.loftkind-size-hero-image img {
	aspect-ratio: 6 / 5;
	border-radius: var(--wp--custom--radius--large);
	background: var(--wp--preset--color--paper);
	object-fit: contain;
}

.woocommerce-page .wp-element-button,
.wc-block-components-button {
	border-radius: 999px !important;
}

.woocommerce div.product div.images img,
.wc-block-components-product-image img {
	border-radius: var(--wp--custom--radius--medium);
}

.loftkind-reveal {
	opacity: 1;
	transform: none;
}

.js .loftkind-reveal {
	opacity: 0;
	transform: translateY(1.25rem);
	transition:
		opacity 650ms cubic-bezier(0.22, 1, 0.36, 1),
		transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .loftkind-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.editor-styles-wrapper .loftkind-story-stage {
	position: relative;
	top: auto;
	height: auto;
	min-height: 0;
	overflow: visible;
}

.editor-styles-wrapper .loftkind-story-image {
	position: relative;
	height: auto;
	margin-bottom: 1rem;
	opacity: 1;
}

.editor-styles-wrapper .loftkind-story-image img {
	height: auto;
	aspect-ratio: 4 / 3;
}

.editor-styles-wrapper .loftkind-story-panel {
	min-height: 25rem;
	opacity: 1;
}

@media (max-width: 900px) {
	body.admin-bar .loftkind-site-header {
		top: 46px;
	}

	.loftkind-site-header .wp-block-navigation {
		order: 3;
	}

	.loftkind-hero {
		min-height: 44rem;
		align-items: flex-end;
	}

	.loftkind-hero .wp-block-cover__image-background {
		object-position: 68% center;
	}

	.loftkind-hero::before {
		background: linear-gradient(
			0deg,
			rgba(246, 242, 234, 0.98) 0%,
			rgba(246, 242, 234, 0.9) 34%,
			rgba(246, 242, 234, 0.18) 69%,
			rgba(246, 242, 234, 0) 100%
		);
	}

	.loftkind-hero .wp-block-cover__inner-container {
		padding-bottom: var(--wp--preset--spacing--60);
	}

	.loftkind-product-card + .loftkind-product-card {
		border-top: 1px solid var(--wp--preset--color--line);
		border-left: 0;
	}

	.loftkind-product-summary {
		position: static;
		top: auto;
	}

	.loftkind-benefit-grid .wp-block-column + .wp-block-column {
		border-top: 1px solid rgba(255, 252, 247, 0.18);
		border-left: 0;
		padding-top: 1.75rem;
		padding-left: 0;
	}

	.loftkind-scroll-story {
		display: block;
	}

	.loftkind-story-stage {
		z-index: 2;
		top: 5.5rem;
		min-height: 52vh;
		margin-bottom: 1.5rem;
	}

	.loftkind-story-panels {
		position: relative;
		z-index: 3;
	}

	.loftkind-story-panel {
		min-height: 68vh;
		margin-bottom: 30vh;
		padding: 2rem;
		border: 1px solid color-mix(in srgb, var(--wp--preset--color--line) 80%, transparent);
		border-radius: var(--wp--custom--radius--medium);
		background: color-mix(in srgb, var(--wp--preset--color--paper) 94%, transparent);
		box-shadow: 0 18px 50px rgba(49, 47, 41, 0.1);
		backdrop-filter: blur(14px);
	}

	.loftkind-story-panel:last-child {
		margin-bottom: 0;
	}

	.loftkind-subpage-hero {
		align-items: flex-end;
	}

	.loftkind-subpage-hero::before {
		background: linear-gradient(
			0deg,
			rgba(246, 242, 234, 0.98) 0%,
			rgba(246, 242, 234, 0.85) 38%,
			rgba(246, 242, 234, 0.08) 74%,
			rgba(246, 242, 234, 0) 100%
		);
	}

	.loftkind-subpage-hero .wp-block-cover__inner-container {
		padding-bottom: var(--wp--preset--spacing--60);
	}
}

@media (max-width: 600px) {
	.loftkind-site-header .wp-block-group.alignwide {
		padding-inline: 1rem !important;
	}

	.loftkind-site-header .wp-block-site-title {
		font-size: 1.4rem !important;
	}

	.loftkind-header-tools {
		gap: 0.3rem !important;
	}

	.loftkind-hero {
		min-height: 42rem;
	}

	.loftkind-hero .wp-block-cover__inner-container {
		padding-inline: 1.25rem;
	}

	.loftkind-section {
		padding-block: 4.25rem;
	}

	.loftkind-step-card img {
		aspect-ratio: 1;
	}

	.loftkind-product-hero {
		padding-top: 1.5rem;
	}

	.loftkind-product-hero-grid {
		gap: 2rem;
	}

	.loftkind-story-stage {
		top: 4.8rem;
		min-height: 44vh;
		border-radius: var(--wp--custom--radius--medium);
	}

	.loftkind-story-panel {
		min-height: 60vh;
		margin-bottom: 22vh;
		padding: 1.35rem;
	}

	.loftkind-subpage-hero .wp-block-cover__inner-container {
		padding-inline: 1.25rem;
	}
}

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

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

	.js .loftkind-reveal {
		opacity: 1;
		transform: none;
	}
}
