/**
 * Etchwell global styles.
 *
 * Kadence already emits the palette as --global-palette1..15 and handles most
 * typography, so this file only covers the things the customiser cannot express:
 * the footer treatment, section rhythm, and the small reusable pieces the page
 * content leans on.
 *
 * Palette reminder
 *   palette1  Copper          #C27A4A
 *   palette2  Copper deep     #A6613A
 *   palette3  Graphite        #232428
 *   palette7  Stone           #E4DDD3
 *   palette8  Warm off-white  #F4F2EE
 *   palette9  White           #FFFFFF
 */

:root {
	--ew-copper: var(--global-palette1, #c27a4a);
	--ew-graphite: var(--global-palette3, #232428);
	--ew-stone: var(--global-palette7, #e4ddd3);
	--ew-offwhite: var(--global-palette8, #f4f2ee);
	--ew-white: var(--global-palette9, #ffffff);

	--ew-radius: 4px;
	--ew-rule: 1px solid var(--ew-stone);
	--ew-rule-dark: 1px solid rgba(228, 221, 211, 0.18);

	--ew-section-y: 56px;
	--ew-gap: 24px;
	--ew-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
	:root {
		--ew-section-y: 80px;
		--ew-gap: 32px;
	}
}

@media (min-width: 1025px) {
	:root {
		--ew-section-y: 104px;
		--ew-gap: 40px;
	}
}

/* -------------------------------------------------------------------------- */
/* Base                                                                        */
/* -------------------------------------------------------------------------- */

body {
	background-color: var(--ew-offwhite);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Photography and product shots read better with a hairline rather than a shadow. */
img {
	border-radius: var(--ew-radius);
}

a {
	transition: color 0.18s var(--ew-ease);
}

hr,
.wp-block-separator {
	border: 0;
	border-top: var(--ew-rule);
	opacity: 1;
	margin-block: var(--ew-gap);
}

::selection {
	background: var(--ew-copper);
	color: var(--ew-white);
}

:focus-visible {
	outline: 2px solid var(--ew-copper);
	outline-offset: 2px;
}

/* -------------------------------------------------------------------------- */
/* Reusable pieces                                                             */
/* -------------------------------------------------------------------------- */

/* Small copper label above a heading. */
.ew-eyebrow {
	display: block;
	margin: 0 0 0.75rem;
	font-family: var(--global-body-font-family);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ew-copper);
}

.ew-lede {
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--global-palette5, #5e6067);
	max-width: 58ch;
}

.ew-lede--centred {
	margin-inline: auto;
	text-align: center;
}

/* A short copper rule used to close off a heading block. */
.ew-rule {
	display: block;
	width: 48px;
	height: 1px;
	margin: 1.25rem 0;
	background: var(--ew-copper);
	border: 0;
}

.ew-rule--centred {
	margin-inline: auto;
}

/* Section shells. Content pages use these through the block editor. */
.ew-section {
	padding-block: var(--ew-section-y);
}

.ew-section--stone {
	background: var(--ew-stone);
}

.ew-section--tint {
	background: var(--global-palette10, #ede7de);
}

.ew-section--graphite {
	background: var(--ew-graphite);
	color: var(--ew-stone);
}

.ew-section--graphite h1,
.ew-section--graphite h2,
.ew-section--graphite h3,
.ew-section--graphite h4 {
	color: var(--ew-offwhite);
}

/* Bordered card, used for occasion tiles, trust points and FAQ rows. */
.ew-card {
	background: var(--ew-white);
	border: var(--ew-rule);
	border-radius: var(--ew-radius);
	padding: 28px;
	height: 100%;
}

.ew-card > :first-child {
	margin-top: 0;
}

.ew-card > :last-child {
	margin-bottom: 0;
}

/* A neutral stone block standing in for photography that has not been shot yet. */
.ew-placeholder-image {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	background: var(--ew-stone);
	border: var(--ew-rule);
	border-radius: var(--ew-radius);
	color: var(--global-palette5, #5e6067);
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-align: center;
	padding: 16px;
}

/* -------------------------------------------------------------------------- */
/* Header                                                                      */
/* -------------------------------------------------------------------------- */

#masthead,
#main-header,
#mobile-header {
	background-color: var(--ew-offwhite);
}

/* The wordmark is dark ink, so it only ever sits on the warm background. */
.site-branding .custom-logo {
	border-radius: 0;
	height: auto;
}

/* Kadence draws the sticky row as a separate element; keep the stone rule on it. */
.site-header-row-container-inner {
	background-color: var(--ew-offwhite);
}

.kadence-sticky-header.item-is-fixed:not(.item-at-start) .site-header-row-container-inner {
	box-shadow: 0 1px 24px rgba(35, 36, 40, 0.06);
}

.header-navigation .header-menu-container > ul > li > a {
	position: relative;
}

/* Copper underline that grows in on hover, instead of a colour-only change. */
.header-navigation .header-menu-container > ul > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.45em;
	height: 1px;
	background: var(--ew-copper);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.22s var(--ew-ease);
}

.header-navigation .header-menu-container > ul > li > a:hover::after,
.header-navigation .header-menu-container > ul > li.current-menu-item > a::after,
.header-navigation .header-menu-container > ul > li.current-menu-ancestor > a::after {
	transform: scaleX(1);
}

.header-navigation .header-menu-container ul ul.sub-menu {
	border: var(--ew-rule);
	box-shadow: 0 12px 32px rgba(35, 36, 40, 0.08);
}

.header-cart-wrap .header-cart-total,
.header-mobile-cart-wrap .header-cart-total {
	font-family: var(--global-body-font-family);
	font-size: 11px;
	font-weight: 500;
}

/* Kadence draws these at around 23px and 31px high. They are the two controls
   everyone reaches for on a phone, so give them a proper thumb-sized target. */
@media (max-width: 1024px) {
	.header-cart-button,
	.mobile-toggle-open-container .menu-toggle-open {
		display: flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
	}

	#colophon .menu-item > a {
		display: block;
		padding-block: 5px;
	}
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                      */
/* -------------------------------------------------------------------------- */

#colophon,
.site-footer-wrap,
.site-footer-row-container-inner {
	background-color: var(--ew-graphite);
	color: var(--ew-stone);
}

#colophon a {
	color: var(--ew-stone);
	text-decoration: none;
}

#colophon a:hover,
#colophon a:focus-visible {
	color: var(--ew-copper);
}

#colophon .widget-title {
	color: var(--ew-stone);
	opacity: 0.72;
}

#colophon .widget {
	margin-bottom: 0;
}

/* Brand block. The logo image is dark ink so the wordmark is set as type here. */
.etchwell-footer-wordmark {
	display: block;
	font-family: var(--global-heading-font-family, "DM Serif Display", Georgia, serif);
	font-size: 34px;
	line-height: 1;
	letter-spacing: -0.01em;
	color: var(--ew-offwhite);
}

.etchwell-footer-tagline {
	margin: 0.6rem 0 0;
	font-size: 14px;
	letter-spacing: 0.02em;
	color: var(--ew-copper);
}

.etchwell-footer-blurb {
	margin: 1.1rem 0 0;
	max-width: 34ch;
	font-size: 15px;
	line-height: 1.7;
	color: rgba(228, 221, 211, 0.72);
}

/* Footer menus. */
#colophon .menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

#colophon .menu li {
	margin: 0 0 0.45rem;
}

#colophon .menu li:last-child {
	margin-bottom: 0;
}

/* Newsletter placeholder. */
.etchwell-newsletter {
	display: grid;
	gap: 20px;
	align-items: center;
	text-align: left;
}

@media (min-width: 900px) {
	.etchwell-newsletter {
		grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
		gap: 48px;
	}
}

.etchwell-newsletter__title {
	margin: 0;
	font-size: 26px;
	color: var(--ew-offwhite);
}

.etchwell-newsletter__note {
	margin: 0.5rem 0 0;
	font-size: 14px;
	color: rgba(228, 221, 211, 0.72);
	max-width: 46ch;
}

.etchwell-newsletter__form {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
}

.etchwell-newsletter__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 14px 16px;
	font-family: var(--global-body-font-family);
	font-size: 15px;
	color: var(--ew-offwhite);
	background: rgba(244, 242, 238, 0.06);
	border: 1px solid rgba(228, 221, 211, 0.28);
	border-radius: var(--ew-radius);
}

.etchwell-newsletter__input::placeholder {
	color: rgba(228, 221, 211, 0.45);
}

.etchwell-newsletter__button {
	flex: 0 0 auto;
	white-space: nowrap;
	padding: 14px 28px;
	font-family: var(--global-body-font-family);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ew-graphite);
	background: var(--ew-stone);
	border: 1px solid var(--ew-stone);
	border-radius: var(--ew-radius);
	cursor: not-allowed;
}

.etchwell-newsletter__placeholder {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 12px;
	letter-spacing: 0.04em;
	color: rgba(228, 221, 211, 0.5);
}

/* The fields are disabled until the form is wired up, but they should still look
   like the finished thing rather than a broken control. */
.etchwell-newsletter__input:disabled {
	background: rgba(244, 242, 238, 0.06);
	color: var(--ew-offwhite);
	opacity: 1;
	-webkit-text-fill-color: var(--ew-offwhite);
}

.etchwell-newsletter__button:disabled {
	background: var(--ew-stone);
	color: var(--ew-graphite);
	opacity: 1;
}

/* -------------------------------------------------------------------------- */
/* Forms                                                                       */
/* -------------------------------------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="date"],
select,
textarea {
	/* background-color, not the shorthand: Kadence paints the select chevron with
	   background-image, and the shorthand would reset its repeat and position. */
	background-color: var(--ew-white);
	border: var(--ew-rule);
	border-radius: var(--ew-radius);
	color: var(--global-palette4, #33353a);
	font-family: var(--global-body-font-family);
	font-size: 16px; /* 16px stops iOS zooming the viewport on focus. */
	padding: 12px 14px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
	border-color: var(--ew-copper);
	outline: none;
	box-shadow: 0 0 0 3px rgba(194, 122, 74, 0.14);
}

select {
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 38px;
}

label {
	font-size: 14px;
	font-weight: 500;
	color: var(--ew-graphite);
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                     */
/* -------------------------------------------------------------------------- */

.button,
.wp-block-button__link,
button,
input[type="submit"] {
	transition: background-color 0.2s var(--ew-ease), border-color 0.2s var(--ew-ease), color 0.2s var(--ew-ease);
}

/* Quiet text link with a copper arrow, for "see all" style links. */
.ew-textlink {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ew-graphite);
	text-decoration: none;
	border-bottom: 1px solid var(--ew-copper);
	padding-bottom: 2px;
}

.ew-textlink:hover,
.ew-textlink:focus-visible {
	color: var(--ew-copper);
}

/* -------------------------------------------------------------------------- */
/* Utilities                                                                   */
/* -------------------------------------------------------------------------- */

.ew-grid {
	display: grid;
	gap: var(--ew-gap);
}

.ew-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ew-grid--3 {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

.ew-grid--4 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ew-grid--6 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
	.ew-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ew-grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.ew-grid--6 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1025px) {
	.ew-grid--6 {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

.ew-stack > * + * {
	margin-top: 1rem;
}

.ew-centre {
	text-align: center;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* -------------------------------------------------------------------------- */
/* Page sections                                                               */
/* -------------------------------------------------------------------------- */

/* Full-width sections need their own container, because the theme wrapper is
   removed on the full-width page template. */
.ew-container {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 20px;
}

@media (min-width: 768px) {
	.ew-container {
		padding-inline: 32px;
	}
}

.ew-section__head {
	max-width: 62ch;
	margin-bottom: var(--ew-gap);
}

.ew-section__head h2 {
	margin: 0;
}

.ew-section__head p {
	margin-top: 0.75rem;
}

.ew-section__head--split {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	max-width: none;
}

.ew-note {
	margin-top: var(--ew-gap);
	font-size: 13px;
	letter-spacing: 0.02em;
	color: var(--global-palette6, #8b8d94);
}

/* ------------------------------------------------------------------- Hero -- */

/*
 * Full bleed video with the copy laid over it. The stage is capped rather than
 * set to 100vh so the section below always shows a sliver at the fold, which is
 * what tells people the page continues.
 */
.ew-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	min-height: 520px;
	height: min(86vh, 860px);
	background: var(--ew-graphite);
	color: var(--ew-offwhite);
	overflow: hidden;
}

.ew-hero__stage {
	position: absolute;
	inset: 0;
	z-index: -1;
}

/* The poster sits underneath the video, so it shows while the video loads, when
   autoplay is blocked, and for anyone who prefers reduced motion. A <picture>
   rather than the video's own poster, so phones get the portrait frame. */
.ew-hero__poster,
.ew-hero__poster img,
.ew-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	display: block;
}

@media (prefers-reduced-motion: reduce) {
	.ew-hero__video {
		display: none;
	}
}

/* Stands in for the video until one is shot. The note sits in the upper third
   so it stays clear of the copy overlaid across the bottom. */
.ew-hero__slot {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	width: 100%;
	height: 100%;
	padding: clamp(48px, 14vh, 130px) 32px 32px;
	text-align: center;
	background:
		repeating-linear-gradient(
			135deg,
			rgba(228, 221, 211, 0.05) 0,
			rgba(228, 221, 211, 0.05) 1px,
			transparent 1px,
			transparent 14px
		),
		var(--ew-graphite);
}

.ew-hero__slot-label {
	font-family: var(--global-body-font-family);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ew-copper);
}

.ew-hero__slot-hint {
	max-width: 46ch;
	font-size: 13px;
	line-height: 1.7;
	color: rgba(228, 221, 211, 0.6);
}

.ew-hero__slot-hint code {
	background: rgba(228, 221, 211, 0.1);
	border-radius: 2px;
	padding: 1px 5px;
	font-size: 12px;
	color: var(--ew-stone);
}

/* Keeps the copy readable whatever the video is doing behind it. */
.ew-hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(20, 21, 24, 0.82) 0%,
		rgba(20, 21, 24, 0.55) 34%,
		rgba(20, 21, 24, 0.12) 68%,
		rgba(20, 21, 24, 0.22) 100%
	);
}

.ew-hero__overlay {
	position: relative;
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding: 0 20px clamp(40px, 7vh, 80px);
}

@media (min-width: 768px) {
	.ew-hero__overlay {
		padding-inline: 32px;
	}
}

.ew-hero__copy {
	max-width: 30rem;
}

.ew-hero__headline {
	margin: 0;
	color: var(--ew-offwhite);
	font-size: clamp(2rem, 1.3rem + 2vw, 3.125rem);
	line-height: 1.08;
	text-wrap: balance;
}

.ew-hero__lede {
	margin: 1.125rem 0 0;
	max-width: 42ch;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: rgba(228, 221, 211, 0.86);
}

.ew-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 24px;
	margin-top: 1.75rem;
}

/* Inverted against the video: the page's usual graphite button would disappear. */
.ew-hero__cta.button {
	background: var(--ew-offwhite);
	border-color: var(--ew-offwhite);
	color: var(--ew-graphite);
}

.ew-hero__cta.button:hover,
.ew-hero__cta.button:focus-visible {
	background: var(--ew-copper);
	border-color: var(--ew-copper);
	color: var(--ew-white);
}

.ew-hero__link {
	position: relative;
	font-family: var(--global-body-font-family);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ew-offwhite);
	text-decoration: none;
	padding-bottom: 4px;
	border-bottom: 1px solid rgba(244, 242, 238, 0.45);
}

.ew-hero__link:hover,
.ew-hero__link:focus-visible {
	color: var(--ew-copper);
	border-bottom-color: var(--ew-copper);
}

/* Scoped to the hero because the theme zeroes the top margin on paragraphs in
   the content area, which would otherwise pin this to the buttons. */
.ew-hero .ew-hero__caption {
	margin: 2rem 0 0;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(244, 242, 238, 0.16);
	max-width: 42ch;
	font-size: 12px;
	letter-spacing: 0.06em;
	line-height: 1.6;
	color: rgba(228, 221, 211, 0.68);
}

@media (min-width: 900px) {
	.ew-hero .ew-hero__caption {
		margin-top: 2.5rem;
	}
}

/* Reduced motion: hold the poster frame rather than looping. */
@media (prefers-reduced-motion: reduce) {
	.ew-hero__video {
		animation-play-state: paused;
	}
}

/* ------------------------------------------------------------------ Steps -- */

.ew-step {
	border-top: 1px solid var(--ew-graphite);
	padding-top: 20px;
}

/* Sits above the rule, so the border has to move to the image. */
.ew-step:has(> .ew-step__image) {
	border-top: 0;
	padding-top: 0;
}

.ew-step__image {
	aspect-ratio: 4 / 3;
	margin-bottom: 20px;
	background: var(--ew-white);
}

img.ew-step__image {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: var(--ew-radius);
}

.ew-step:has(> .ew-step__image) .ew-step__number {
	padding-top: 20px;
	border-top: 1px solid var(--ew-graphite);
}

.ew-step__number {
	display: block;
	font-family: var(--global-body-font-family);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.16em;
	color: var(--ew-copper);
}

.ew-step__title {
	margin: 0.6rem 0 0.5rem;
	font-size: 1.375rem;
}

.ew-step__body {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: var(--global-palette5, #5e6067);
}

/* The product grid below carries its own bottom padding, so the heading section
   only needs to open the gap above it. */
#shop-by-shape {
	padding-bottom: 0;
}

#shop-by-shape .ew-section__head {
	margin-bottom: 28px;
}

/* -------------------------------------------------------------- Occasions -- */

.ew-occasion {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px;
	background: var(--ew-offwhite);
	border: 1px solid transparent;
	border-radius: var(--ew-radius);
	text-decoration: none;
	transition: border-color 0.18s var(--ew-ease), transform 0.18s var(--ew-ease);
}

.ew-occasion:hover,
.ew-occasion:focus-visible {
	border-color: var(--ew-copper);
	transform: translateY(-2px);
}

/* Stands in for occasion photography. Stone rather than white, so it reads as a
   deliberate empty slot rather than an image that failed to load. */
.ew-occasion__art {
	display: block;
	aspect-ratio: 1;
	margin-bottom: 10px;
	background: var(--ew-stone);
	border: var(--ew-rule);
	border-radius: var(--ew-radius);
}

img.ew-occasion__art {
	width: 100%;
	height: auto;
	object-fit: cover;
}

.ew-occasion__name {
	font-family: var(--global-heading-font-family, "DM Serif Display", Georgia, serif);
	font-size: 1.125rem;
	color: var(--ew-graphite);
}

.ew-occasion__note {
	font-size: 12px;
	line-height: 1.5;
	color: var(--global-palette5, #5e6067);
}

/* ------------------------------------------------------------ Trust points -- */

.ew-trust {
	padding-top: 20px;
	border-top: var(--ew-rule);
}

.ew-trust__title {
	margin: 0 0 0.5rem;
	font-size: 1.125rem;
}

.ew-trust__body {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
	color: var(--global-palette5, #5e6067);
}

.ew-trust__body em {
	color: var(--global-palette6, #8b8d94);
	font-style: normal;
	font-size: 13px;
}

/* ---------------------------------------------------------------- Reviews -- */

.ew-review {
	margin: 0;
	padding: 28px;
	background: var(--ew-white);
	border: var(--ew-rule);
	border-radius: var(--ew-radius);
}

.ew-review__stars {
	margin: 0 0 0.75rem;
	font-size: 15px;
	letter-spacing: 0.2em;
	color: var(--ew-copper);
}

.ew-review__body {
	margin: 0 0 1rem;
	font-size: 15px;
	line-height: 1.7;
}

.ew-review__by {
	font-size: 13px;
	letter-spacing: 0.04em;
	color: var(--global-palette6, #8b8d94);
}

/* ------------------------------------------------------------ FAQ teasers -- */

.ew-faq-teaser {
	padding-top: 20px;
	border-top: var(--ew-rule);
}

.ew-faq-teaser__q {
	margin: 0 0 0.5rem;
	font-size: 1.125rem;
}

.ew-faq-teaser__a {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: var(--global-palette5, #5e6067);
}

/* -------------------------------------------------------- Closing call out -- */

.ew-cta__inner {
	text-align: center;
	max-width: 56ch;
}

.ew-cta__title {
	margin: 0;
	color: var(--ew-offwhite);
}

.ew-cta__body {
	margin: 1rem auto 0;
	max-width: 44ch;
	color: rgba(228, 221, 211, 0.78);
}

.ew-cta__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px 28px;
	margin-top: 2rem;
}

/* On graphite, the primary button inverts so it still reads as the main action. */
.ew-cta__button.button {
	background: var(--ew-offwhite);
	border-color: var(--ew-offwhite);
	color: var(--ew-graphite);
}

.ew-cta__button.button:hover,
.ew-cta__button.button:focus-visible {
	background: var(--ew-copper);
	border-color: var(--ew-copper);
	color: var(--ew-white);
}

.ew-textlink--light {
	color: var(--ew-stone);
}

.ew-textlink--light:hover,
.ew-textlink--light:focus-visible {
	color: var(--ew-copper);
}

/* The product shortcode on the home page sits inside the page container. */
.ew-home-products,
.entry-content > .woocommerce {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 20px;
	padding-bottom: var(--ew-section-y);
}

@media (min-width: 768px) {
	.ew-home-products,
	.entry-content > .woocommerce {
		padding-inline: 32px;
	}
}

/* -------------------------------------------------------------------------- */
/* Inner pages                                                                 */
/* -------------------------------------------------------------------------- */

/* Every page other than Home opens with this. It replaces the theme title area,
   which is switched off through the Kadence page meta. */
.ew-page-hero {
	background: var(--ew-offwhite);
	border-bottom: var(--ew-rule);
	padding-block: clamp(48px, 8vw, 88px);
}

.ew-page-hero .ew-container {
	text-align: center;
}

.ew-page-hero h1 {
	margin-inline: auto;
	margin-block: 0;
	max-width: 26ch;
	font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem);
	line-height: 1.12;
	text-wrap: balance;
}

.ew-page-hero .ew-lede {
	margin: 1.25rem auto 0;
	text-align: center;
}

/* An image directly under the page title, as wide as the reading column. */
.ew-page-hero__media {
	max-width: 880px;
	margin: clamp(32px, 5vw, 56px) auto 0;
}

.ew-page-hero__media .ew-placeholder-image,
.ew-page-hero__media .ew-media-image {
	aspect-ratio: 21 / 9;
}

/* Photography dropped into a slot that was sized for a placeholder. */
.ew-media-image {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: var(--ew-radius);
}

/* Prose column. Narrow on purpose: legal and policy copy is read, not scanned. */
/* The reading columns are .ew-container elements too, so narrowing the column
   itself with max-width would re-centre it and leave the text out of line with
   the page hero above. The children carry the measure instead. */
.ew-prose > * {
	max-width: 760px;
}

/* Centre the column itself rather than each child. Per-child auto margins lose
   to the theme's own heading and list margins, which leaves paragraphs centred
   and headings flush left. Narrowing the container sidesteps that entirely:
   824px less the 32px gutters is exactly the 760px measure. */
.ew-prose--centred {
	max-width: 824px;
}

.ew-prose--centred > h2,
.ew-prose--centred > h3 {
	text-align: center;
}

.ew-prose > :first-child {
	margin-top: 0;
}

.ew-prose > :last-child {
	margin-bottom: 0;
}

.ew-prose h2 {
	margin-top: 2.5rem;
	margin-bottom: 0.75rem;
	font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
}

.ew-prose h3 {
	margin-top: 1.75rem;
	margin-bottom: 0.5rem;
	font-size: 1.125rem;
}

.ew-prose p,
.ew-prose li {
	line-height: 1.75;
}

.ew-prose ul,
.ew-prose ol {
	padding-left: 1.25rem;
	margin-bottom: 1.25rem;
}

.ew-prose li {
	margin-bottom: 0.5rem;
}

.ew-prose li::marker {
	color: var(--ew-copper);
}

/* A simple data table, used for the delivery options. */
.ew-table {
	width: 100%;
	margin: 1.5rem 0;
	border: var(--ew-rule);
	border-radius: var(--ew-radius);
	border-collapse: collapse;
	overflow: hidden;
	background: var(--ew-white);
	font-size: 0.9375rem;
}

.ew-table th,
.ew-table td {
	padding: 14px 16px;
	text-align: left;
	border-bottom: var(--ew-rule);
	vertical-align: top;
}

.ew-table thead th {
	background: var(--ew-offwhite);
	font-family: var(--global-body-font-family);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--global-palette5, #5e6067);
}

.ew-table tbody tr:last-child td {
	border-bottom: 0;
}

/* Three columns will not hold at phone width, so each row becomes a small card
   with the column heading repeated from data-label. */
@media (max-width: 599px) {
	.ew-table,
	.ew-table tbody,
	.ew-table tr,
	.ew-table td {
		display: block;
		width: 100%;
	}

	.ew-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.ew-table tbody tr {
		padding: 4px 0;
		border-bottom: var(--ew-rule);
	}

	.ew-table tbody tr:last-child {
		border-bottom: 0;
	}

	.ew-table td {
		padding: 10px 16px;
		border-bottom: 0;
	}

	.ew-table td::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 2px;
		font-size: 11px;
		font-weight: 500;
		letter-spacing: 0.12em;
		text-transform: uppercase;
		color: var(--global-palette6, #8b8d94);
	}
}

/* ------------------------------------------------------------------ About -- */

.ew-about {
	display: grid;
	gap: var(--ew-gap);
}

@media (min-width: 900px) {
	.ew-about {
		grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
		gap: 64px;
		align-items: start;
	}
}

.ew-about__body {
	max-width: 62ch;
}

.ew-about__body > :first-child {
	margin-top: 0;
}

.ew-about__body h2 {
	margin-top: 2.5rem;
	margin-bottom: 0.75rem;
	font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
}

.ew-about__body p {
	line-height: 1.75;
}

.ew-about__side {
	position: sticky;
	top: 120px;
	text-align: center;
	padding: 32px;
	background: var(--ew-white);
	border: var(--ew-rule);
	border-radius: var(--ew-radius);
}

@media (max-width: 899px) {
	.ew-about__side {
		position: static;
	}
}

/* The logo is dark ink, so it only ever sits on the white card. */
.ew-about__logo {
	display: block;
	width: 100%;
	max-width: 240px;
	height: auto;
	margin: 0 auto;
}

.ew-about__wordmark {
	display: block;
	font-family: var(--global-heading-font-family, "DM Serif Display", Georgia, serif);
	font-size: 34px;
	line-height: 1;
	color: var(--ew-graphite);
}

.ew-about__tagline {
	margin: 0.75rem 0 1.75rem;
	font-family: var(--global-heading-font-family);
	font-size: 1rem;
	font-style: italic;
	color: var(--ew-copper);
}

.ew-about__side .ew-placeholder-image {
	background: var(--ew-offwhite);
}

/* ----------------------------------------------------------- How it works -- */

/* Two, two, then one. The last step is the one that ends in a parcel on a
   doorstep, so it gets the full width and the photograph. */
.ew-processes {
	display: grid;
	gap: 0;
}

@media (min-width: 860px) {
	.ew-processes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 56px;
	}

	.ew-process--wide {
		grid-column: 1 / -1;
	}
}

.ew-process {
	display: grid;
	align-content: start;
	gap: 8px 28px;
	padding-block: 36px;
	border-top: var(--ew-rule);
}

@media (max-width: 859px) {
	.ew-process:first-child {
		border-top: 0;
		padding-top: 0;
	}
}

@media (min-width: 860px) {
	.ew-process:nth-child(1),
	.ew-process:nth-child(2) {
		border-top: 0;
		padding-top: 0;
	}

	.ew-process {
		grid-template-columns: 64px minmax(0, 1fr);
	}

	/* Full width, so the copy still needs a column rather than running edge to
	   edge under a 64px number. */
	.ew-process--wide {
		grid-template-columns: 64px minmax(0, 1fr);
	}
}

.ew-process__media {
	margin-top: 24px;
}

@media (min-width: 860px) {
	.ew-process__media {
		grid-column: 2;
	}
}

.ew-process__media .ew-placeholder-image,
.ew-process__media .ew-media-image {
	aspect-ratio: 16 / 7;
}

.ew-process__number {
	font-family: var(--global-heading-font-family);
	font-size: 2rem;
	line-height: 1;
	color: var(--ew-copper);
}

.ew-process__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
}

.ew-process__body > :last-child {
	margin-bottom: 0;
}

.ew-process__body p {
	line-height: 1.75;
	max-width: 58ch;
}

/* -------------------------------------------------------------------- FAQ -- */

/* The rules belong to the rows rather than the wrapper, so they stop at the
   reading measure rather than running the full container width. */
.ew-faqs {
	max-width: 824px;
}

.ew-faq {
	border-bottom: var(--ew-rule);
}

.ew-faq:first-of-type {
	border-top: var(--ew-rule);
}

/* The question centres with its marker sitting just after it, rather than the
   marker being flung out to the right edge of an otherwise centred row. */
.ew-faq__q {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 12px;
	padding-block: 24px;
	cursor: pointer;
	list-style: none;
	text-align: center;
	font-family: var(--global-heading-font-family);
	font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
	line-height: 1.35;
	transition: color 0.2s var(--ew-ease);
}

/* Hide the native disclosure marker in both engines, then draw our own. */
.ew-faq__q::-webkit-details-marker {
	display: none;
}

.ew-faq__q::after {
	content: "+";
	flex: none;
	font-family: var(--global-body-font-family);
	font-size: 1.25rem;
	line-height: 1.25;
	color: var(--ew-copper);
}

.ew-faq[open] .ew-faq__q::after {
	content: "\2212";
}

.ew-faq__q:hover,
.ew-faq[open] .ew-faq__q {
	color: var(--ew-copper);
}

.ew-faq__q:focus-visible {
	outline: 2px solid var(--ew-copper);
	outline-offset: 4px;
}

/* Answers stay left aligned. Centred body copy at this length is hard to read,
   and the ragged left edge is worse than the small inconsistency. */
.ew-faq__a {
	padding-bottom: 28px;
	max-width: 62ch;
	margin-inline: auto;
}

.ew-faq__a > :first-child {
	margin-top: 0;
}

.ew-faq__a > :last-child {
	margin-bottom: 0;
}

.ew-faq__a p {
	line-height: 1.75;
}

/* ---------------------------------------------------------------- Contact -- */

.ew-contact-layout {
	display: grid;
	gap: var(--ew-gap);
	padding-block: var(--ew-section-y);
}

@media (min-width: 900px) {
	.ew-contact-layout {
		grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
		gap: 64px;
		align-items: start;
	}
}

.ew-contact-layout__aside > :first-child {
	margin-top: 0;
}

.ew-contact-layout__aside h2 {
	font-size: 1.5rem;
	margin-bottom: 0.75rem;
}

.ew-contact-layout__aside h3 {
	font-size: 1.0625rem;
	margin-top: 1.75rem;
	margin-bottom: 0.375rem;
}

.ew-contact-layout__aside p {
	line-height: 1.7;
	color: var(--global-palette5, #5e6067);
}

.ew-contact-details {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: var(--ew-rule);
	font-size: 0.9375rem;
}

.ew-contact-details dt {
	font-family: var(--global-body-font-family);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ew-copper);
}

.ew-contact-details dd {
	margin: 0.25rem 0 1rem;
	color: var(--global-palette5, #5e6067);
}

/* The form itself, rendered by [etchwell_contact_form]. */
.ew-contact {
	background: var(--ew-white);
	border: var(--ew-rule);
	border-radius: var(--ew-radius);
	padding: clamp(24px, 4vw, 40px);
}

.ew-contact__form {
	display: grid;
	gap: 20px;
}

.ew-contact__field {
	display: grid;
	gap: 6px;
	align-content: start;
}

.ew-contact__label {
	font-family: var(--global-body-font-family);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ew-graphite);
}

.ew-contact__required {
	color: var(--ew-copper);
	margin-left: 2px;
}

.ew-contact__optional {
	margin-left: 4px;
	font-weight: 400;
	letter-spacing: 0.02em;
	text-transform: none;
	color: var(--global-palette6, #8b8d94);
}

/* Kadence sets a bottom margin on every p in the content area. */
.ew-contact .ew-contact__help {
	margin: 0;
	font-size: 13px;
	color: var(--global-palette6, #8b8d94);
}

.ew-contact__field input,
.ew-contact__field select,
.ew-contact__field textarea {
	width: 100%;
}

.ew-contact__submit {
	justify-self: start;
}

.ew-contact .ew-contact__privacy {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--global-palette6, #8b8d94);
}

/* The honeypot stays in the DOM but out of sight. display:none is ignored by
   some bots, so it is moved off screen instead. */
.ew-contact__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ew-contact__notice {
	margin: 0 0 24px;
	padding: 16px 18px;
	border: var(--ew-rule);
	border-radius: var(--ew-radius);
	background: var(--ew-offwhite);
	font-size: 0.9375rem;
	line-height: 1.6;
}

.ew-contact__notice--success {
	border-color: #b6c7b8;
	background: #f1f5f1;
	color: #33503c;
}

.ew-contact__notice--error {
	border-color: #d9bab5;
	background: #faf1ef;
	color: #7d3229;
}

/* Name and email share a row once there is room; everything else is full width. */
@media (min-width: 640px) {
	.ew-contact__form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ew-contact__field--order,
	.ew-contact__field--subject,
	.ew-contact__field--message,
	.ew-contact__submit,
	.ew-contact__privacy {
		grid-column: 1 / -1;
	}
}

/* ------------------------------------------------------- Payment marks -- */

.etchwell-payments {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 16px;
	margin-bottom: 18px;
	padding-bottom: 18px;
	border-bottom: var(--ew-rule-dark);
}

.etchwell-payments__label {
	font-family: var(--global-body-font-family);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(228, 221, 211, 0.55);
}

.etchwell-payments__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.etchwell-payments__item {
	margin: 0;
	line-height: 0;
}

/* The marks are white cards on a graphite footer, so they are knocked back a
   little at rest rather than punching holes in the panel. */
.etchwell-payments__mark {
	display: block;
	width: auto;
	height: 24px;
	border-radius: 3px;
	opacity: 1;
	transition: opacity 0.18s var(--ew-ease);
}

.etchwell-payments:hover .etchwell-payments__mark {
	opacity: 1;
}

/* Newsletter sign-up result. */
.etchwell-newsletter__status {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 13px;
	color: var(--ew-copper);
}

.etchwell-newsletter__status:empty {
	display: none;
}

.etchwell-newsletter__status.is-ok {
	padding: 14px 18px;
	border: 1px solid var(--ew-copper);
	border-radius: 4px;
	font-size: 16px;
	color: inherit;
}

.etchwell-newsletter__form[hidden] {
	display: none;
}
