:root {
	--greenstead-border: #c9c4b9;
	--greenstead-surface: #ffffff;
	--greenstead-focus: #e36414;
	--greenstead-content-measure: 68ch;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: auto;
}

body {
	min-width: 20rem;
	text-rendering: optimizeLegibility;
}

img {
	height: auto;
	max-width: 100%;
}

a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 0.08em;
}

a:hover {
	text-decoration-thickness: 0.14em;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--greenstead-focus);
	outline-offset: 3px;
}

.skip-link {
	background: #ffffff;
	color: #17201c;
	font-weight: 700;
	left: 1rem;
	padding: 0.75rem 1rem;
	position: fixed;
	top: 1rem;
	z-index: 100000;
}

.skip-link:not(:focus) {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.greenstead-site-header {
	background: rgba(250, 249, 246, 0.98);
	border-bottom: 1px solid var(--greenstead-border);
}

.greenstead-site-header__inner {
	min-height: 5.5rem;
}

.greenstead-brand {
	min-width: max-content;
}

.greenstead-brand .wp-block-site-logo img {
	background: #e8e5df;
	border-radius: 50%;
	display: block;
}

.greenstead-brand .wp-block-site-title {
	font-family: "Roboto Slab", Georgia, serif;
	font-size: 1.35rem;
	font-weight: 750;
	line-height: 1.05;
	margin: 0;
}

.greenstead-brand .wp-block-site-title a {
	text-decoration: none;
}

.greenstead-brand .wp-block-site-tagline {
	font-size: 0.78rem;
	line-height: 1.3;
	margin: 0.2rem 0 0;
}

.greenstead-primary-nav a {
	text-decoration: none;
}

.greenstead-primary-nav a:hover,
.greenstead-primary-nav .current-menu-item > a,
.greenstead-primary-nav .current-menu-ancestor > a {
	text-decoration: underline;
	text-decoration-color: #e36414;
	text-decoration-thickness: 0.18em;
	text-underline-offset: 0.38em;
}

.wp-block-navigation__responsive-container.is-menu-open {
	background: #faf9f6 !important;
	color: #17201c !important;
	padding: 1.5rem;
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	min-height: 2.75rem;
	min-width: 2.75rem;
}

.greenstead-site-main {
	min-height: 56vh;
}

.greenstead-hero {
	border-bottom: 1px solid var(--greenstead-border);
	overflow: hidden;
	position: relative;
}

.greenstead-hero__inner {
	align-items: center;
	display: grid;
	grid-template-columns: minmax(0, 52rem);
	justify-content: start;
}

.greenstead-hero__content {
	max-width: 52rem;
}

.greenstead-hero__inner:has(.greenstead-hero__media),
.greenstead-hero__inner--with-media {
	gap: clamp(2rem, 6vw, 5rem);
	grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
}

.greenstead-hero__media {
	align-self: stretch;
	min-height: clamp(20rem, 36vw, 34rem);
}

.greenstead-hero__media img {
	border-radius: 0.35rem;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.greenstead-eyebrow {
	color: #7a4f2a;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.has-clay-background-color .greenstead-eyebrow {
	color: #2e4a3d;
}

.greenstead-lead {
	font-size: clamp(1.1rem, 2.2vw, 1.35rem);
	line-height: 1.55;
	max-width: 48rem;
}

.greenstead-measure {
	max-width: var(--greenstead-content-measure);
}

.greenstead-section {
	padding-bottom: clamp(3rem, 7vw, 6rem);
	padding-top: clamp(3rem, 7vw, 6rem);
}

.greenstead-section--compact {
	padding-bottom: clamp(2rem, 5vw, 3.5rem);
	padding-top: clamp(2rem, 5vw, 3.5rem);
}

.greenstead-card-grid {
	align-items: stretch;
}

.greenstead-card {
	background: var(--greenstead-surface);
	border: 1px solid var(--greenstead-border);
	border-radius: 0.35rem;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: clamp(1.25rem, 3vw, 2rem);
}

.greenstead-card > :last-child {
	margin-bottom: 0;
}

.greenstead-card__kicker {
	color: #7a4f2a;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.greenstead-card .wp-block-buttons {
	margin-top: auto;
	padding-top: 0.75rem;
}

.greenstead-home-collection {
	background: #ffffff;
}

.greenstead-home-collection--plans {
	background: #e8e5df;
}

.greenstead-home-collection__inner {
	margin-left: auto;
	margin-right: auto;
	max-width: 75rem;
	padding-left: clamp(1rem, 4vw, 2rem);
	padding-right: clamp(1rem, 4vw, 2rem);
}

.greenstead-home-collection__grid {
	display: grid;
	gap: clamp(1rem, 3vw, 2rem);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 2rem;
}

.greenstead-content-card__title {
	margin-top: 0;
}

.greenstead-content-card__title a {
	text-decoration: none;
}

.greenstead-content-card__title a:hover {
	text-decoration: underline;
}

.greenstead-content-card__meta {
	color: #7a4f2a;
	font-weight: 750;
}

.greenstead-content-card__link {
	margin-top: auto;
}

.greenstead-home-collection__more {
	font-weight: 750;
	margin-top: 2rem;
}

.greenstead-fact {
	border-left: 4px solid #e36414;
	padding-left: 1rem;
}

.greenstead-fact strong {
	display: block;
	font-family: "Roboto Slab", Georgia, serif;
	font-size: 1.15rem;
	margin-bottom: 0.2rem;
}

.greenstead-notice {
	background: #e8e5df;
	border-left: 4px solid #7a4f2a;
	padding: 1.25rem clamp(1rem, 3vw, 1.75rem);
}

.greenstead-legal-notice {
	background: #fff4ea;
	border: 2px solid #e36414;
	color: #17201c;
	padding: 1.25rem clamp(1rem, 3vw, 1.75rem);
}

.greenstead-status {
	align-items: center;
	background: #e8e5df;
	border-radius: 999px;
	color: #2e4a3d;
	display: inline-flex;
	font-size: 0.82rem;
	font-weight: 750;
	line-height: 1.2;
	min-height: 2rem;
	padding: 0.35rem 0.75rem;
}

.wp-element-button,
.wp-block-button__link,
button,
input[type="button"],
input[type="submit"] {
	cursor: pointer;
	min-height: 2.75rem;
	text-decoration: none;
}

.wp-element-button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
	background: #17201c;
	border-color: #17201c;
	color: #ffffff;
}

.is-style-outline > .wp-block-button__link {
	background: transparent;
	border-color: #2e4a3d;
	color: #2e4a3d;
}

.is-style-outline > .wp-block-button__link:hover {
	background: #2e4a3d;
	color: #ffffff;
}

.greenstead-cta .wp-block-button__link {
	background: #e36414;
	border-color: #e36414;
	color: #17201c;
}

.greenstead-cta .wp-block-button__link:hover {
	background: #d9cbb2;
	border-color: #7a4f2a;
	color: #17201c;
}

input,
select,
textarea {
	background: #ffffff;
	border: 2px solid #77736c;
	border-radius: 0.2rem;
	color: #17201c;
	font: inherit;
	min-height: 2.75rem;
	padding: 0.65rem 0.75rem;
}

textarea {
	min-height: 9rem;
	resize: vertical;
}

label {
	display: inline-block;
	font-weight: 700;
	margin-bottom: 0.35rem;
}

.greenstead-post-card {
	border-bottom: 1px solid var(--greenstead-border);
	padding-bottom: 2rem;
}

.greenstead-post-meta {
	color: #5b5a56;
	font-size: 0.875rem;
}

.wp-block-query-pagination {
	border-top: 1px solid var(--greenstead-border);
	padding-top: 1.5rem;
}

.wp-block-post-content > p,
.wp-block-post-content > ul,
.wp-block-post-content > ol {
	max-width: var(--greenstead-content-measure);
}

.greenstead-site-footer {
	background: #2e4a3d;
	color: #ffffff;
	margin-top: 0;
}

.greenstead-site-footer a {
	color: #ffffff;
}

.greenstead-site-footer .wp-block-site-title {
	font-family: "Roboto Slab", Georgia, serif;
	font-size: 1.5rem;
	font-weight: 750;
}

.greenstead-site-footer__legal {
	border-top: 1px solid rgba(255, 255, 255, 0.36);
	font-size: 0.875rem;
	padding-top: 1.25rem;
}

/* WooCommerce: preserve core behavior while using Greenstead tokens. */
.woocommerce .woocommerce-breadcrumb,
.wc-block-breadcrumbs {
	color: #5b5a56;
	font-size: 0.875rem;
	margin-bottom: 1.5rem;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
	background: #ffffff;
	border: 1px solid var(--greenstead-border);
	border-left: 4px solid #2e4a3d;
	color: #17201c;
}

.woocommerce-error,
.wc-block-components-notice-banner.is-error {
	border-left-color: #a23a24;
}

.wp-block-woocommerce-product-template {
	gap: clamp(1rem, 3vw, 2rem);
}

.wp-block-woocommerce-product-template > li,
.wc-block-product {
	background: #ffffff;
	border: 1px solid var(--greenstead-border);
	border-radius: 0.35rem;
	padding: 1rem;
}

.wc-block-components-product-image,
.woocommerce-product-gallery {
	background: #e8e5df;
	border: 1px solid var(--greenstead-border);
}

.wc-block-components-product-price,
.woocommerce-Price-amount {
	color: #2e4a3d;
	font-weight: 750;
}

.wc-block-components-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	background: #2e4a3d;
	border: 2px solid #2e4a3d;
	border-radius: 0.25rem;
	color: #ffffff;
	font-weight: 700;
	min-height: 2.75rem;
}

.wc-block-components-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: #17201c;
	border-color: #17201c;
	color: #ffffff;
}

.wc-block-cart,
.wc-block-checkout,
.woocommerce-account .woocommerce {
	background: #ffffff;
	border: 1px solid var(--greenstead-border);
	padding: clamp(1rem, 3vw, 2rem);
}

.wc-block-components-totals-wrapper,
.wc-block-components-order-summary,
.wc-block-checkout__terms,
.woocommerce-MyAccount-navigation {
	border-color: var(--greenstead-border) !important;
}

.woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce-MyAccount-navigation a {
	display: block;
	min-height: 2.75rem;
	padding: 0.65rem 0.75rem;
}

@media (max-width: 56rem) {
	.greenstead-site-header__inner {
		min-height: 4.75rem;
	}

	.greenstead-brand .wp-block-site-tagline {
		display: none;
	}

	.greenstead-brand .wp-block-site-logo img {
		height: 3rem;
		width: 3rem;
	}

	.greenstead-hero__inner:has(.greenstead-hero__media),
	.greenstead-hero__inner--with-media {
		grid-template-columns: 1fr;
	}

	.greenstead-hero__media {
		min-height: clamp(16rem, 70vw, 28rem);
	}

	.greenstead-home-collection__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 42rem) {
	.greenstead-brand .wp-block-site-title {
		font-size: 1.1rem;
	}

	.greenstead-card-grid.wp-block-columns {
		gap: 1rem;
	}

	.greenstead-home-collection__grid {
		grid-template-columns: 1fr;
	}

	.greenstead-section {
		padding-bottom: 3rem;
		padding-top: 3rem;
	}

	.wc-block-cart,
	.wc-block-checkout,
	.woocommerce-account .woocommerce {
		border-left: 0;
		border-right: 0;
		padding-left: 0;
		padding-right: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
