/*
Theme Name: Wakefield Theme
Theme URI: https://wakefieldbiochar.com/
Author: Wakefield BioChar
Description: Lightweight block theme foundation for the WakefieldBiochar.com redesign.
Version: 0.1.0
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: wakefield-theme
*/

html {
	scroll-behavior: smooth;
}

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

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

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

:where(.wp-site-blocks) > * {
	margin-block-start: 0;
}

:where(.wp-site-blocks > header.wp-block-template-part) {
	width: 100%;
}

.wf-site-header {
	border-bottom: 1px solid var(--wp--preset--color--carbon-3);
	margin-block-start: 0;
	position: relative;
	width: 100%;
	z-index: 10;
}

.wf-site-header__inner {
	align-items: center;
	gap: var(--wp--preset--spacing--md);
	min-height: 4.75rem;
}

.wf-site-header__brand {
	flex-shrink: 0;
	gap: var(--wp--preset--spacing--xs);
}

.wf-site-header__logo {
	line-height: 0;
	margin: 0;
}

.wf-site-header__logo a {
	display: inline-flex;
}

.wf-site-header__logo img {
	display: block;
	height: auto;
	max-height: 4rem;
	max-width: min(288px, 64vw);
	object-fit: contain;
	width: 100%;
}

.wf-site-header__actions {
	align-items: center;
	flex: 0 0 auto;
	gap: var(--wp--preset--spacing--sm);
}

.wf-primary-nav {
	flex: 1 1 auto;
	gap: var(--wp--preset--spacing--sm);
	justify-content: center;
	min-width: 0;
}

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

.wf-primary-nav .wp-block-navigation__container {
	column-gap: var(--wp--preset--spacing--sm);
	flex-wrap: nowrap;
}

.wf-primary-nav .wp-block-navigation-item__label {
	white-space: nowrap;
}

.wf-primary-nav a:hover,
.wf-primary-nav a:focus {
	color: var(--wp--preset--color--yellow);
}

.wf-primary-nav .wp-block-navigation__responsive-container-open,
.wf-primary-nav .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--white);
}

.wf-primary-nav .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--carbon);
	color: var(--wp--preset--color--white);
	padding: var(--wp--preset--spacing--lg);
}

.wf-header-search {
	margin: 0;
	max-width: 14rem;
	min-width: 11rem;
}

.wf-header-search .wp-block-search__inside-wrapper {
	background-color: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--gray-300);
	border-radius: var(--wp--custom--radius--pill);
	overflow: hidden;
	padding: 0.15rem;
}

.wf-header-search .wp-block-search__input {
	background-color: transparent;
	border: 0;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--mukta);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.2;
	min-height: 2.25rem;
	padding: 0.35rem 0.75rem;
}

.wf-header-search .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--gray-700);
	opacity: 1;
}

.wf-header-search .wp-block-search__button {
	background-color: var(--wp--preset--color--green);
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--mukta);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1;
	margin-left: 0;
	min-width: 2.25rem;
	padding: 0.45rem;
}

.wf-header-search .wp-block-search__button:hover,
.wf-header-search .wp-block-search__button:focus {
	background-color: var(--wp--preset--color--green-bright);
	color: var(--wp--preset--color--carbon);
}

.wf-header-search .wp-block-search__input:focus {
	outline: 2px solid var(--wp--preset--color--yellow);
	outline-offset: -2px;
}

.wf-site-header__cta {
	flex-shrink: 0;
}

.wf-site-header__cta .wp-block-button__link {
	border-radius: var(--wp--custom--radius--large);
	line-height: 1;
	padding: 0.6rem 0.85rem;
	white-space: nowrap;
}

.wp-site-blocks main :where(.wf-section, .is-style-wakefield-section-white, .is-style-wakefield-section-dark, .is-style-wakefield-grunge-texture, .is-style-wakefield-grunge-light-to-dark, .is-style-wakefield-grunge-dark-to-light),
.editor-styles-wrapper :where(.wf-section, .is-style-wakefield-section-white, .is-style-wakefield-section-dark, .is-style-wakefield-grunge-texture, .is-style-wakefield-grunge-light-to-dark, .is-style-wakefield-grunge-dark-to-light) {
	margin-block-start: 0;
	overflow: hidden;
	position: relative;
}

.wp-site-blocks main :where(.wf-section--light, .is-style-wakefield-section-white),
.editor-styles-wrapper :where(.wf-section--light, .is-style-wakefield-section-white) {
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
}

.wp-site-blocks main :where(.wf-section--dark, .is-style-wakefield-section-dark),
.editor-styles-wrapper :where(.wf-section--dark, .is-style-wakefield-section-dark) {
	background-color: var(--wp--preset--color--carbon);
	color: var(--wp--preset--color--gray-100);
}

.wp-site-blocks main :where(.wf-section--dark, .is-style-wakefield-section-dark) a:not(.wp-block-button__link),
.editor-styles-wrapper :where(.wf-section--dark, .is-style-wakefield-section-dark) a:not(.wp-block-button__link) {
	color: var(--wp--preset--color--yellow);
}

.wp-site-blocks main :where(.wf-section--grunge-texture, .is-style-wakefield-grunge-texture),
.editor-styles-wrapper :where(.wf-section--grunge-texture, .is-style-wakefield-grunge-texture) {
	background-color: var(--wp--preset--color--white);
	background-image: linear-gradient(rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.68)), url("assets/images/biochar-grunge-texture.jpg");
	background-position: center;
	background-repeat: repeat;
	background-size: min(1140px, 100%) auto;
}

.wp-site-blocks main :where(.wf-grunge-transition, .is-style-wakefield-grunge-light-to-dark, .is-style-wakefield-grunge-dark-to-light),
.editor-styles-wrapper :where(.wf-grunge-transition, .is-style-wakefield-grunge-light-to-dark, .is-style-wakefield-grunge-dark-to-light) {
	background-position: center;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	display: block;
	height: clamp(3rem, 7vw, 6.25rem);
	margin-block-start: 0;
	pointer-events: none;
}

.wp-site-blocks main :where(.wf-grunge-transition--light-to-dark, .is-style-wakefield-grunge-light-to-dark),
.editor-styles-wrapper :where(.wf-grunge-transition--light-to-dark, .is-style-wakefield-grunge-light-to-dark) {
	background-color: var(--wp--preset--color--carbon);
	background-image: url("assets/images/biochar-grunge-light-to-dark.jpg");
}

.wp-site-blocks main :where(.wf-grunge-transition--dark-to-light, .is-style-wakefield-grunge-dark-to-light),
.editor-styles-wrapper :where(.wf-grunge-transition--dark-to-light, .is-style-wakefield-grunge-dark-to-light) {
	background-color: var(--wp--preset--color--white);
	background-image: url("assets/images/biochar-grunge-dark-to-light.jpg");
}

@media (max-width: 782px) {
	.wf-site-header__inner {
		gap: var(--wp--preset--spacing--sm);
	}

	.wf-site-header__actions {
		gap: var(--wp--preset--spacing--sm);
	}

	.wf-header-search {
		max-width: 13rem;
		min-width: 10rem;
	}

	.wf-site-header__logo img {
		max-height: 3.25rem;
		max-width: min(230px, 54vw);
	}

	.wf-site-header__cta .wp-block-button__link {
		font-size: var(--wp--preset--font-size--small);
		padding: 0.55rem 0.75rem;
	}
}

@media (max-width: 520px) {
	.wf-site-header__inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.wf-site-header__actions {
		flex-wrap: wrap;
		justify-content: space-between;
		width: 100%;
	}

	.wf-header-search {
		flex-basis: 100%;
		max-width: none;
		order: 3;
		width: 100%;
	}
}
