/* Homepage: front-page patterns and section-specific editorial layout. */

/* Hero */
.wedset-front-page,
.wedset-front-page > * {
	margin-block-start: 0;
}

.wedset-home-hero {
	position: relative;
	block-size: var(--wedset-hero-frame-height);
	min-block-size: var(--wedset-hero-frame-height);
	max-block-size: var(--wedset-hero-frame-height);
	overflow: hidden;
	background: var(--wp--preset--color--linen);
}

.wedset-home-hero .wp-block-cover,
.wedset-home-hero .wp-block-cover__inner-container {
	box-sizing: border-box;
	block-size: 100%;
	min-block-size: 0;
	max-block-size: 100%;
}

.wedset-home-hero .wp-block-cover {
	position: relative;
	background: var(--wp--preset--color--linen);
	padding: clamp(var(--wp--custom--spacing--md), 3vh, var(--wp--custom--spacing--2-xl)) var(--wp--custom--component--section--inline-padding);
	overflow: hidden;
}

.wedset-home-hero .wp-block-cover__image-background {
	z-index: 0;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	object-position: 72% center;
	clip-path: none;
	filter: saturate(0.94) contrast(0.96) brightness(1.02);
}

.wedset-home-hero .wp-block-cover__background {
	display: none;
}

.wedset-home-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: var(--wp--preset--color--linen);
	clip-path: polygon(0 0, 43% 0, 58% 100%, 0 100%);
}

.wedset-home-hero .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: min(100%, var(--wp--custom--content--wide));
	margin-inline: auto;
	padding-inline: 0;
}

.wedset-home-hero .wedset-hero-content {
	display: grid;
	gap: clamp(var(--wp--custom--spacing--md), 2.4vh, var(--wp--custom--spacing--xl));
	width: min(100%, clamp(28rem, 36vw, 38rem));
	max-width: clamp(28rem, 36vw, 38rem);
	max-block-size: 100%;
	margin: 0 auto 0 0;
	padding-block: clamp(var(--wp--custom--spacing--lg), 3vh, var(--wp--custom--spacing--2-xl));
	overflow: visible;
}

.wedset-home-hero .wedset-hero-content > * {
	margin-block: 0;
}

.wedset-home-hero .wedset-hero-eyebrow,
.wedset-home-hero h1,
.wedset-home-hero p {
	text-align: left;
}

.wedset-home-hero .wedset-hero-eyebrow {
	color: var(--wp--preset--color--muted);
}

.wedset-home-hero h1 {
	max-width: 12ch;
	font-size: var(--wp--custom--type--display-hero);
	line-height: var(--wp--custom--type--line-display);
	letter-spacing: var(--wp--custom--type--display-tracking);
}

.wedset-home-hero h1 em,
.wedset-story-copy h2 em,
.wedset-testimonial em,
.wedset-promise-section h2 em,
.wedset-newsletter-section h2 em {
	font-style: italic;
}

.wedset-home-hero p:not(.wedset-hero-eyebrow):not(.wedset-hero-cta) {
	max-width: 42ch;
	font-size: var(--wp--custom--type--body);
	line-height: var(--wp--custom--line-height--body);
}

/* Front page component sections */
.wedset-collections,
.wedset-story-section,
.wedset-featured-products,
.wedset-testimonial-section,
.wedset-promise-section,
.wedset-newsletter-section,
.wedset-editorial-cta {
	position: relative;
	box-sizing: border-box;
	max-width: none;
	margin-block-start: 0;
	padding: var(--wp--custom--component--section--block-padding) var(--wp--custom--component--section--inline-padding);
}

.wedset-story-section,
.wedset-testimonial-section {
	padding-block: var(--wp--custom--component--section--block-padding-compact);
}

.wedset-newsletter-section {
	padding-block: clamp(3.5rem, 7vw, 6rem);
}

.wedset-collections > *,
.wedset-story-section > *,
.wedset-featured-products > *,
.wedset-testimonial-section > *,
.wedset-promise-section > *,
.wedset-newsletter-section > *,
.wedset-editorial-cta > * {
	box-sizing: border-box;
}

.wedset-story-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(min(100%, 24rem), 0.95fr);
	gap: clamp(var(--wp--custom--spacing--2-xl), 7vw, var(--wp--custom--spacing--5-xl));
	align-items: center;
	width: min(100%, 1120px);
	margin-inline: auto;
}

.wedset-story-image,
.wedset-story-copy,
.wedset-promise-item {
	min-width: 0;
}

.wedset-story-image figure {
	margin: 0;
}

.wedset-story-image img {
	display: block;
	width: 100%;	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.wedset-story-copy > * + * {
	margin-block-start: var(--wp--custom--spacing--md);
}

.wedset-story-copy > p:not(.wedset-section-eyebrow-left):not(.wedset-category-link) {
	max-width: 48ch;
}

.wedset-featured-products > .wedset-section-eyebrow,
.wedset-promise-section > .wedset-section-eyebrow,
.wedset-newsletter-section > .wedset-section-eyebrow,
.wedset-featured-products > h2,
.wedset-promise-section > h2,
.wedset-newsletter-section > h2,
.wedset-featured-products > p.has-text-align-center,
.wedset-promise-section > p.has-text-align-center,
.wedset-newsletter-section > p.has-text-align-center,
.wedset-shop-cta,
.wedset-newsletter-cta {
	margin-inline: auto;
	text-align: center;
}

.wedset-featured-products > * + *,
.wedset-promise-section > * + *,
.wedset-newsletter-section > * + * {
	margin-block-start: var(--wp--custom--spacing--md);
}

.wedset-featured-products > .wp-block-buttons,
.wedset-newsletter-section > .wp-block-buttons {
	margin-block-start: var(--wp--custom--spacing--xl);
}

.wedset-featured-products > p.has-text-align-center,
.wedset-promise-section > p.has-text-align-center,
.wedset-newsletter-section > p.has-text-align-center {
	max-width: var(--wp--custom--content--narrow);
}

.wedset-featured-products .wc-block-grid__products {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: clamp(var(--wp--custom--spacing--lg), 3vw, var(--wp--custom--spacing--xl));
	align-items: stretch;
	margin-block: var(--wp--custom--spacing--xl);
}

.wedset-testimonial {
	max-width: var(--wp--custom--content--narrow);
	margin-inline: auto;
	padding-inline: var(--wp--custom--spacing--xs);
}

.wedset-testimonial::before {
	content: '“';
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(4rem, 9vw, 7.5rem);
	line-height: 0.8;
	color: color-mix(in srgb, var(--wp--preset--color--clay) 26%, transparent);
	margin-bottom: calc(-1 * var(--wp--custom--spacing--lg));
}

.wedset-testimonial > * + * {
	margin-block-start: var(--wp--custom--spacing--lg);
}

.wedset-testimonial p:first-child {
	max-width: 30ch;
	margin-inline: auto;
	font-size: clamp(var(--wp--preset--font-size--lead), 2.2vw, var(--wp--preset--font-size--x-large));
	line-height: 1.55;
}

.wedset-promise-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	max-width: 1080px;
	margin: var(--wp--custom--spacing--2-xl) auto 0;
	gap: clamp(var(--wp--custom--spacing--lg), 4vw, var(--wp--custom--spacing--3-xl));
}

.wedset-promise-item + .wedset-promise-item {
	border-left: var(--wp--custom--border--soft);
	padding-left: clamp(var(--wp--custom--spacing--md), 2.2vw, var(--wp--custom--spacing--xl));
}

.wedset-promise-item > * + * {
	margin-block-start: var(--wp--custom--spacing--sm);
}

.wedset-editorial-cta {
	padding: var(--wp--custom--component--section--block-padding) var(--wp--custom--component--section--inline-padding);
}

.wedset-editorial-cta > * {
	margin-inline: auto;
}

.wedset-editorial-cta > * + * {
	margin-block-start: var(--wp--custom--spacing--md);
}

.wedset-editorial-cta > .wp-block-buttons {
	margin-block-start: var(--wp--custom--spacing--xl);
}

.wedset-pattern-section-heading > * {
	margin-block: 0;
}

.wedset-pattern-section-heading > * + * {
	margin-block-start: var(--wp--custom--spacing--sm);
}

.wedset-archive-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	gap: clamp(var(--wp--custom--spacing--lg), 3vw, var(--wp--custom--spacing--xl));
}

.wedset-archive-card {
	padding: var(--wp--custom--component--card--body-padding);
}

.wedset-archive-card > * {
	margin-block: 0;
}

.wedset-archive-card > * + * {
	margin-block-start: var(--wp--custom--spacing--sm);
}

/* Homepage closing sequence layout */
.wedset-featured-products {
	border-top: var(--wp--custom--border--soft);
	padding-block: clamp(3rem, 4.5vw, 4.25rem);
}

.wedset-featured-shell {
	display: grid;
	grid-template-columns: minmax(0, 1fr) max-content;
	align-items: end;
	gap: clamp(var(--wp--custom--spacing--lg), 4vw, var(--wp--custom--spacing--3-xl));
	width: min(100%, 960px);
	margin-inline: auto;
}

.wedset-featured-copy,
.wedset-featured-action,
.wedset-newsletter-copy,
.wedset-newsletter-action,
.wedset-promise-header,
.wedset-testimonial-label {
	min-width: 0;
}

.wedset-featured-copy > *,
.wedset-featured-action > *,
.wedset-testimonial-layout > *,
.wedset-promise-header > *,
.wedset-newsletter-copy > *,
.wedset-newsletter-action > * {
	margin-block: 0;
}

.wedset-featured-copy > * + *,
.wedset-newsletter-copy > * + *,
.wedset-newsletter-action > * + *,
.wedset-promise-header > * + * {
	margin-block-start: var(--wp--custom--spacing--sm);
}

.wedset-featured-copy h2 {
	font-size: var(--wp--custom--type--section-title);
}

.wedset-featured-copy > p:not(.wedset-section-eyebrow-left) {
	max-width: 58ch;
	font-size: var(--wp--preset--font-size--small);
	line-height: var(--wp--custom--type--line-body);
}

.wedset-featured-products .wc-block-grid__products {
	margin-block-start: clamp(var(--wp--custom--spacing--xl), 4vw, var(--wp--custom--spacing--2-xl));
}

.wedset-closing-sequence {
	margin-block-start: 0;
}

.wedset-proof-panel {
	padding: clamp(4rem, 7vw, 6rem) var(--wp--custom--component--section--inline-padding);
	border-block: var(--wp--custom--border--soft);
}

.wedset-testimonial-layout {
	display: grid;
	grid-template-columns: minmax(9rem, 0.32fr) minmax(0, 0.68fr);
	gap: clamp(var(--wp--custom--spacing--xl), 6vw, var(--wp--custom--spacing--4-xl));
	align-items: start;
	width: min(100%, 960px);
	margin-inline: auto;
}

.wedset-testimonial-label {
	padding-top: clamp(var(--wp--custom--spacing--xs), 1vw, var(--wp--custom--spacing--md));
}

.wedset-testimonial {
	display: grid;
	justify-items: start;
	gap: var(--wp--custom--spacing--md);
	max-width: 100%;
	padding-inline: 0;
}

.wedset-testimonial::before {
	content: '“';
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2.75rem, 5vw, 4.75rem);
	line-height: 0.7;
	color: color-mix(in srgb, var(--wp--preset--color--clay) 26%, transparent);
	margin: 0;
}

.wedset-testimonial > * {
	margin-block: 0;
	text-align: left;
}

.wedset-testimonial p:first-child {
	max-width: 42ch;
	font-size: var(--wp--custom--type--editorial-quote);
	line-height: var(--wp--custom--type--line-quote);
}

.wedset-testimonial p:last-child {
	font-size: var(--wp--preset--font-size--xs);
}

.wedset-promise-section {
	display: grid;
	grid-template-columns: minmax(12rem, 0.34fr) minmax(0, 0.66fr);
	gap: clamp(var(--wp--custom--spacing--xl), 5vw, var(--wp--custom--spacing--4-xl));
	align-items: start;
	width: min(100%, 960px);
	margin: clamp(var(--wp--custom--spacing--3-xl), 7vw, var(--wp--custom--spacing--5-xl)) auto 0;
	padding: 0;
}

.wedset-promise-header h2 {
	max-width: 12ch;
	font-size: var(--wp--custom--type--section-title);
	line-height: var(--wp--custom--type--line-heading);
}

.wedset-promise-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(var(--wp--custom--spacing--lg), 3vw, var(--wp--custom--spacing--2-xl));
	max-width: none;
	margin: 0;
}

.wedset-promise-item {
	padding: 0;
}

.wedset-promise-item + .wedset-promise-item {
	border-left: var(--wp--custom--border--soft);
	padding-left: clamp(var(--wp--custom--spacing--lg), 2.5vw, var(--wp--custom--spacing--xl));
}

.wedset-promise-item > * {
	margin-block: 0;
}

.wedset-promise-item > * + * {
	margin-block-start: var(--wp--custom--spacing--sm);
}

.wedset-promise-item h3 {
	font-size: var(--wp--custom--type--card-title);
}

.wedset-promise-item p {
	font-size: var(--wp--preset--font-size--small);
	line-height: var(--wp--custom--type--line-body);
}

.wedset-newsletter-section {
	padding: clamp(3.75rem, 6vw, 5.5rem) var(--wp--custom--component--section--inline-padding);
}

.wedset-newsletter-layout {
	display: grid;
	grid-template-columns: minmax(0, 0.48fr) minmax(18rem, 0.52fr);
	gap: clamp(var(--wp--custom--spacing--xl), 6vw, var(--wp--custom--spacing--4-xl));
	align-items: center;
	width: min(100%, 960px);
	margin-inline: auto;
}

.wedset-newsletter-copy h2 {
	font-size: var(--wp--custom--type--section-title-large);
	line-height: var(--wp--custom--type--line-heading);
}

.wedset-newsletter-action p {
	max-width: 52ch;
	font-size: var(--wp--preset--font-size--small);
	line-height: calc(var(--wp--custom--type--line-body) + 0.08);
}

.wedset-newsletter-cta {
	justify-content: flex-start;
}

@media (max-width: 900px) {
	.wedset-featured-shell,
	.wedset-testimonial-layout,
	.wedset-promise-section,
	.wedset-newsletter-layout {
		grid-template-columns: 1fr;
	}

	.wedset-featured-action,
	.wedset-newsletter-action {
		justify-self: start;
	}

	.wedset-promise-header h2 {
		max-width: 18ch;
	}
}

@media (max-width: 700px) {
	.wedset-proof-panel,
	.wedset-newsletter-section,
	.wedset-featured-products {
		padding-inline: var(--wp--custom--component--section--inline-padding-mobile);
	}

	.wedset-promise-grid {
		grid-template-columns: 1fr;
	}

	.wedset-promise-item + .wedset-promise-item {
		border-left: 0;
		border-top: var(--wp--custom--border--soft);
		padding-left: 0;
		padding-top: var(--wp--custom--spacing--lg);
	}

	.wedset-testimonial p:first-child {
		font-size: var(--wp--custom--type--editorial-quote);
	}
}
