/*
Theme Name: Masttrees
Theme URI: http://masttrees.local
Author: Mast Trees
Description: Block theme for a specimen tree nursery. No online sales, no cart, and no published inventory.
Version: 1.0.0
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 8.2
Text Domain: masttrees
*/

/* Tokens live in theme.json. This file covers layout the block system does not express. */

.masttrees-header {
	background: #1a3324;
	color: #f5f0e8;
}

.masttrees-utility {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	justify-content: space-between;
	align-items: center;
	padding: 0.55rem 0;
	border-bottom: 1px solid rgba(245, 240, 232, 0.25);
	font-size: 0.95rem;
}

.masttrees-utility p {
	margin: 0;
}

.masttrees-brand {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.5rem;
	align-items: baseline;
	justify-content: space-between;
	padding: 1rem 0 0.4rem;
}

.masttrees-header .wp-block-site-title {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 500;
	line-height: 1;
	margin: 0;
}

.masttrees-header .wp-block-site-title a {
	color: #f5f0e8;
	text-decoration: none;
}

.masttrees-header .wp-block-site-title a:hover,
.masttrees-header .wp-block-site-title a:focus-visible {
	color: #f5f0e8;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.masttrees-header .wp-block-site-tagline {
	margin: 0;
	color: #f5f0e8;
	font-size: 0.95rem;
}

.masttrees-header a,
.masttrees-utility a,
.masttrees-footer a {
	color: #f3e6b8;
}

.masttrees-nav .menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
	list-style: none;
	margin: 0 0 0.85rem;
	padding: 0;
}

.masttrees-nav a {
	color: #f5f0e8;
	text-decoration: none;
	font-weight: 600;
	padding: 0.35rem 0;
	display: inline-block;
}

.masttrees-nav a:hover,
.masttrees-nav a:focus-visible,
.masttrees-nav .current-menu-item > a,
.masttrees-nav .current_page_item > a {
	color: #f3e6b8;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.masttrees-hero .wp-block-cover__inner-container {
	max-width: 42rem;
	margin-left: 0;
	margin-right: auto;
	background-color: #1a3324;
	color: #f5f0e8;
	padding: clamp(1.5rem, 4vw, 2.75rem);
}

.masttrees-hero .wp-block-cover__inner-container h1,
.masttrees-hero .wp-block-cover__inner-container p,
.masttrees-on-dark,
.masttrees-on-dark p,
.masttrees-on-dark h1,
.masttrees-on-dark h2,
.masttrees-on-dark h3,
.masttrees-on-dark li {
	color: #f5f0e8;
}

.masttrees-on-dark a,
.masttrees-hero a {
	color: #f3e6b8;
}

.masttrees-kicker {
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.8rem;
	font-weight: 700;
	margin-bottom: 0.4rem;
}

.masttrees-feature {
	background: #fffdf8;
	border-top: 3px solid #5c4516;
	height: 100%;
}

.masttrees-placemark {
	background: #f3e6b8;
	color: #1c1c1c;
	border: 2px dashed #5c4516;
	padding: 0.75rem 1rem;
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
}

.masttrees-placemark strong {
	font-family: "Source Sans 3", "Segoe UI", sans-serif;
	letter-spacing: 0.02em;
}

.masttrees-on-dark .masttrees-placemark,
.masttrees-hero .masttrees-placemark,
.masttrees-footer .masttrees-placemark {
	background: #f3e6b8;
	color: #1c1c1c;
}

.masttrees-on-dark .masttrees-placemark a,
.masttrees-hero .masttrees-placemark a {
	color: #1a3324;
}

.wp-block-quote.masttrees-pull {
	border-left: 4px solid #5c4516;
	padding-left: 1.25rem;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.75rem;
	font-style: italic;
	color: #5c4516;
}

.masttrees-figure img,
.masttrees-media img {
	width: 100%;
	height: auto;
}

.masttrees-form {
	display: grid;
	gap: 1rem;
	max-width: 40rem;
}

.masttrees-form label {
	display: grid;
	gap: 0.35rem;
	font-weight: 600;
}

.masttrees-form input,
.masttrees-form textarea {
	font: inherit;
	color: #1c1c1c;
	background: #fff;
	border: 2px solid #1a3324;
	padding: 0.65rem 0.75rem;
	width: 100%;
}

.masttrees-form .masttrees-hp {
	position: absolute;
	left: -10000px;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.masttrees-notice {
	background: #fffdf8;
	border-left: 4px solid #1a3324;
	padding: 0.85rem 1rem;
}

.masttrees-notice.is-error {
	border-left-color: #6b2b1f;
}

.wp-block-details {
	border-bottom: 1px solid rgba(26, 51, 36, 0.25);
	padding: 0.35rem 0;
}

.wp-block-details summary {
	cursor: pointer;
	font-weight: 700;
	padding: 0.75rem 0;
	color: #1a3324;
}

.wp-block-details summary:hover,
.wp-block-details summary:focus-visible {
	color: #5c4516;
}

.masttrees-footer {
	margin-top: 0;
	padding-top: 2.5rem;
	padding-bottom: 2rem;
}

.masttrees-footer a {
	color: #f3e6b8;
}

.masttrees-footer .menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.masttrees-footer .menu li {
	margin: 0.25rem 0;
}

:focus-visible {
	outline: 3px solid #5c4516;
	outline-offset: 3px;
}

.masttrees-on-dark :focus-visible,
.masttrees-header :focus-visible,
.masttrees-footer :focus-visible,
.masttrees-hero :focus-visible {
	outline-color: #f3e6b8;
}

@media (max-width: 781px) {
	.masttrees-hero .wp-block-cover__inner-container {
		max-width: none;
	}

	.masttrees-nav .menu {
		gap: 0.25rem 0.85rem;
	}
}
