@font-face {
	font-family: "Estedad";
	src: url("../../fonts/Estedad.woff2") format("woff2");
	font-style: normal;
	font-weight: 300;
	font-display: swap;
}

@font-face {
	font-family: "Estedad";
	src: url("../../fonts/Estedad.woff2") format("woff2");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "Estedad";
	src: url("../../fonts/Estedad.woff2") format("woff2");
	font-style: normal;
	font-weight: 500;
	font-display: swap;
}

:root {
	/* Four-color brand palette */
	--mehe-primary: #176B45;
	--mehe-brown: #7A5230;
	--mehe-secondary: var(--mehe-primary);
	--mehe-green-soft: #EAF3EE;
	--mehe-brown-soft: #F4ECE5;
	--mehe-accent: var(--mehe-green-soft);
	--mehe-white: #FFFFFF;
	--mehe-ink: #191C1A;
	--mehe-muted: #6B726E;
	--mehe-line: #E3E7E5;
	--mehe-soft: var(--mehe-white);
	--mehe-shadow: 0 18px 50px rgb(25 28 26 / 0.08);
	--mehe-shadow-small: 0 10px 30px rgb(25 28 26 / 0.06);
	--mehe-radius-small: 12px;
	--mehe-radius: 18px;
	--mehe-radius-large: 28px;
	--mehe-container: 1260px;
	--mehe-content: 760px;
	--mehe-font: "Estedad", Tahoma, Arial, sans-serif;
}

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--mehe-white);
	color: var(--mehe-ink);
	font-family: var(--mehe-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.9;
	text-rendering: optimizeLegibility;
}

body.has-open-menu {
	overflow: hidden;
}

::selection {
	background: var(--mehe-accent);
	color: var(--mehe-ink);
}

a {
	color: var(--mehe-secondary);
	text-decoration: none;
	transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

a:hover,
a:focus {
	color: #176B45;
}

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

button,
input,
textarea,
select {
	font: inherit;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure,
blockquote {
	margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
b {
	font-weight: 500;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--mehe-ink);
	line-height: 1.45;
}

h1 {
	font-size: clamp(2rem, 4vw, 3.5rem);
}

h2 {
	font-size: clamp(1.5rem, 2.5vw, 2.25rem);
}

h3 {
	font-size: clamp(1.2rem, 1.8vw, 1.5rem);
}

p {
	margin-bottom: 1.25rem;
}

ul,
ol {
	padding-inline-start: 1.4rem;
}

.site-container {
	width: min(calc(100% - 40px), var(--mehe-container));
	margin-inline: auto;
}

.site-main {
	min-height: 58vh;
}

.content-area {
	padding-block: clamp(4rem, 8vw, 7rem);
}

.content-area--narrow {
	max-width: calc(var(--mehe-content) + 40px);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
	position: fixed !important;
	inset-block-start: 12px;
	inset-inline-start: 12px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 10px 16px;
	margin: 0;
	clip: auto;
	background: var(--mehe-white);
	color: var(--mehe-secondary);
	border: 1px solid var(--mehe-primary);
	border-radius: 10px;
	box-shadow: var(--mehe-shadow-small);
}

:focus-visible {
	outline: 3px solid rgba(23, 107, 69, 0.55);
	outline-offset: 3px;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	color: var(--mehe-secondary);
	font-size: 0.84rem;
	font-weight: 500;
	letter-spacing: -0.01em;
}

.eyebrow::before {
	content: "";
	width: 22px;
	height: 2px;
	background: var(--mehe-primary);
	border-radius: 99px;
}

.button,
.wp-element-button,
button[type="submit"],
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 10px 20px;
	border: 1px solid var(--mehe-secondary);
	border-radius: var(--mehe-radius-small);
	background: var(--mehe-secondary);
	color: var(--mehe-white);
	font-weight: 500;
	line-height: 1.5;
	box-shadow: none;
}

.button:hover,
.button:focus,
.wp-element-button:hover,
.wp-element-button:focus,
button[type="submit"]:hover,
button[type="submit"]:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
	background: var(--mehe-secondary);
	border-color: var(--mehe-secondary);
	color: var(--mehe-white);
	transform: scale(.97);
	box-shadow: none;
}

.button--light {
	background: var(--mehe-white);
	border-color: var(--mehe-white);
	color: var(--mehe-secondary);
}

.button--light:hover,
.button--light:focus {
	background: var(--mehe-white);
	border-color: var(--mehe-white);
	color: var(--mehe-secondary);
	transform: scale(.97);
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
}

.text-link i {
	font-size: 0.86rem;
	transition: transform 180ms ease;
}

.text-link:hover i,
.text-link:focus i {
	transform: translateX(-4px);
}

/* Header */
.site-header {
	position: sticky;
	inset-block-start: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.94);
	border-bottom: 1px solid rgba(227, 231, 229, 0.9);
	backdrop-filter: blur(16px);
}

.admin-bar .site-header {
	inset-block-start: 32px;
}

.site-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 28px;
	min-height: 84px;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: max-content;
}

.site-branding__mark,
.custom-logo-link {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	padding: 5px;
	border-radius: 16px;
	background: var(--mehe-soft);
	overflow: hidden;
}

.site-branding__mark img,
.custom-logo {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.site-branding__copy {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.site-title {
	color: var(--mehe-ink);
	font-size: 1.22rem;
	font-weight: 500;
	line-height: 1.4;
}

.site-description {
	max-width: 180px;
	color: var(--mehe-muted);
	font-size: 0.72rem;
	font-weight: 300;
	line-height: 1.5;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.main-navigation {
	justify-self: center;
}

.primary-menu,
.primary-menu ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.primary-menu {
	display: flex;
	align-items: center;
	gap: 4px;
}

.primary-menu > li {
	position: relative;
}

.primary-menu > li > a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 13px;
	border-radius: 10px;
	color: #191C1A;
	font-size: 0.92rem;
	font-weight: 400;
}

.primary-menu > li > a:hover,
.primary-menu > li > a:focus,
.primary-menu > .current-menu-item > a,
.primary-menu > .current_page_item > a,
.primary-menu > .current-menu-ancestor > a {
	background: var(--mehe-soft);
	color: var(--mehe-secondary);
}

.primary-menu .sub-menu {
	position: absolute;
	inset-block-start: calc(100% + 10px);
	inset-inline-start: 0;
	width: 220px;
	padding: 10px;
	background: var(--mehe-white);
	border: 1px solid var(--mehe-line);
	border-radius: 14px;
	box-shadow: var(--mehe-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.primary-menu .sub-menu a {
	display: block;
	padding: 9px 11px;
	border-radius: 8px;
	color: var(--mehe-ink);
	font-size: 0.86rem;
}

.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a:focus {
	background: var(--mehe-soft);
	color: var(--mehe-secondary);
}

.button--header {
	min-height: 44px;
	padding-inline: 17px;
	font-size: 0.88rem;
}

.menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--mehe-line);
	border-radius: 12px;
	background: var(--mehe-white);
	color: var(--mehe-ink);
}

.menu-toggle__icon {
	display: grid;
	gap: 4px;
	width: 20px;
}

.menu-toggle__icon span {
	display: block;
	height: 2px;
	background: currentColor;
	border-radius: 99px;
	transition: transform 180ms ease, opacity 180ms ease;
}

.menu-is-open .menu-toggle__icon span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.menu-is-open .menu-toggle__icon span:nth-child(2) {
	opacity: 0;
}

.menu-is-open .menu-toggle__icon span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* Page and post headers */
.page-header--simple {
	max-width: 780px;
	margin-bottom: clamp(2rem, 5vw, 4rem);
}

.page-header--simple h1 {
	margin-bottom: 16px;
}

.page-header--simple p,
.archive-description {
	max-width: 690px;
	margin-bottom: 0;
	color: var(--mehe-muted);
	font-size: 1.03rem;
}

.posts-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.post-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	border: 1px solid var(--mehe-line);
	border-radius: var(--mehe-radius);
	background: var(--mehe-white);
	overflow: hidden;
	transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.post-card:hover {
	transform: translateY(-4px);
	border-color: rgba(23, 107, 69, 0.7);
	box-shadow: var(--mehe-shadow);
}

.post-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--mehe-soft);
	overflow: hidden;
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 350ms ease;
}

.post-card:hover .post-card__media img {
	transform: scale(1.025);
}

.post-card__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: var(--mehe-green-soft);
	color: var(--mehe-secondary);
	font-size: 2rem;
}

.post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 24px;
}

.post-card .entry-title {
	margin: 10px 0 12px;
	font-size: 1.22rem;
}

.post-card .entry-title a {
	color: var(--mehe-ink);
}

.post-card .entry-title a:hover,
.post-card .entry-title a:focus {
	color: var(--mehe-secondary);
}

.post-card .entry-summary {
	color: var(--mehe-muted);
	font-size: 0.92rem;
}

.post-card .entry-summary p {
	margin-bottom: 18px;
}

.post-card .text-link {
	margin-top: auto;
}

.post-card--search {
	min-height: 100%;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	color: var(--mehe-muted);
	font-size: 0.78rem;
}

.entry-meta span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.entry-meta i {
	color: var(--mehe-primary);
}

.entry-meta a {
	color: inherit;
}

.navigation.pagination {
	margin-top: 42px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding-inline: 10px;
	border: 1px solid var(--mehe-line);
	border-radius: 10px;
	background: var(--mehe-white);
	color: var(--mehe-secondary);
}

.page-numbers.current,
.page-numbers:hover,
.page-numbers:focus {
	background: var(--mehe-secondary);
	border-color: var(--mehe-secondary);
	color: var(--mehe-white);
}

/* Single content */
.single-entry__header {
	margin-bottom: 34px;
}

.single-entry__header .entry-title {
	margin: 12px 0 18px;
}

.single-entry__header > a,
.single-entry__header > .post-categories {
	color: var(--mehe-secondary);
	font-size: 0.86rem;
}

.single-entry__thumbnail {
	margin: 0 0 38px;
	border-radius: var(--mehe-radius-large);
	overflow: hidden;
	box-shadow: var(--mehe-shadow-small);
}

.single-entry__thumbnail img {
	width: 100%;
}

.entry-content {
	font-size: 1.02rem;
}

.entry-content > * {
	max-width: 100%;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 2.2em;
	margin-bottom: 0.8em;
}

.entry-content a:not(.wp-element-button) {
	text-decoration: underline;
	text-decoration-color: rgba(23, 107, 69, 0.35);
	text-underline-offset: 4px;
}

.entry-content blockquote {
	padding: 22px 24px;
	margin: 28px 0;
	border-inline-start: 4px solid var(--mehe-primary);
	border-radius: 0 var(--mehe-radius-small) var(--mehe-radius-small) 0;
	background: var(--mehe-soft);
	color: #191C1A;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 28px 0;
}

.entry-content th,
.entry-content td {
	padding: 12px;
	border: 1px solid var(--mehe-line);
	text-align: start;
}

.entry-content th {
	background: var(--mehe-soft);
	font-weight: 500;
}

.entry-content pre,
.entry-content code {
	direction: ltr;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	text-align: left;
}

.entry-content pre {
	overflow: auto;
	padding: 18px;
	border-radius: var(--mehe-radius-small);
	background: #191C1A;
	color: #EAF3EE;
}

.entry-footer {
	padding-top: 26px;
	margin-top: 34px;
	border-top: 1px solid var(--mehe-line);
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.tag-list a {
	padding: 5px 10px;
	border-radius: 8px;
	background: var(--mehe-soft);
	font-size: 0.82rem;
}

.post-navigation {
	padding-block: 28px;
	margin-top: 40px;
	border-top: 1px solid var(--mehe-line);
	border-bottom: 1px solid var(--mehe-line);
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	justify-content: stretch;
}

.post-navigation a {
	display: flex;
	flex-direction: column;
	padding: 16px;
	border-radius: var(--mehe-radius-small);
	background: var(--mehe-soft);
}

.post-navigation .nav-next {
	text-align: end;
}

.nav-subtitle {
	color: var(--mehe-muted);
	font-size: 0.78rem;
}

.nav-title {
	color: var(--mehe-ink);
	font-weight: 500;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="password"],
input[type="number"],
textarea,
select {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid #E3E7E5;
	border-radius: var(--mehe-radius-small);
	background: var(--mehe-white);
	color: var(--mehe-ink);
	font-weight: 400;
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

textarea {
	min-height: 150px;
	resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--mehe-primary);
	outline: none;
	box-shadow: 0 0 0 4px rgba(23, 107, 69, 0.18);
}

.search-form {
	display: flex;
	gap: 10px;
	max-width: 620px;
}

.search-form__field {
	position: relative;
	flex: 1;
}

.search-form__field i {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: 15px;
	color: var(--mehe-muted);
	transform: translateY(-50%);
}

.search-form .search-field {
	padding-inline-start: 44px;
}

.search-submit {
	min-width: 104px;
}

/* Comments */
.comments-area {
	padding-top: 42px;
	margin-top: 42px;
	border-top: 1px solid var(--mehe-line);
}

.comments-title,
.comment-reply-title {
	font-size: 1.5rem;
}

.comment-list {
	list-style: none;
	padding: 0;
	margin: 0 0 34px;
}

.comment-list .children {
	list-style: none;
	padding-inline-start: 28px;
}

.comment-body {
	padding: 22px;
	margin-bottom: 16px;
	border: 1px solid var(--mehe-line);
	border-radius: var(--mehe-radius);
}

.comment-meta {
	margin-bottom: 12px;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
}

.comment-author .avatar {
	border-radius: 50%;
}

.comment-metadata {
	font-size: 0.76rem;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.86rem;
	font-weight: 500;
}

.comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.comment-form-cookies-consent label {
	font-weight: 400;
}

/* Empty and 404 */
.empty-state {
	max-width: 680px;
	padding: clamp(30px, 5vw, 54px);
	margin-inline: auto;
	border: 1px solid var(--mehe-line);
	border-radius: var(--mehe-radius-large);
	background: var(--mehe-soft);
	text-align: center;
}

.empty-state__icon {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin: 0 auto 20px;
	border-radius: 22px;
	background: var(--mehe-accent);
	color: var(--mehe-secondary);
	font-size: 1.8rem;
}

.empty-state p {
	color: var(--mehe-muted);
}

.empty-state .search-form {
	margin-inline: auto;
}

.error-page {
	display: grid;
	align-items: center;
	padding-block: clamp(4rem, 10vw, 8rem);
}

.error-page__inner {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	align-items: center;
	gap: clamp(40px, 8vw, 100px);
}

.error-page__visual {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	max-width: 440px;
	border-radius: 50%;
	background: var(--mehe-green-soft);
	color: var(--mehe-secondary);
}

.error-page__visual::before,
.error-page__visual::after {
	content: "";
	position: absolute;
	border: 1px solid rgba(23, 107, 69, 0.17);
	border-radius: 50%;
}

.error-page__visual::before {
	inset: 9%;
}

.error-page__visual::after {
	inset: 20%;
}

.error-page__visual span {
	position: relative;
	z-index: 1;
	font-size: clamp(4rem, 12vw, 8rem);
	font-weight: 500;
	line-height: 1;
}

.error-page__visual i {
	position: absolute;
	inset-block-end: 22%;
	inset-inline-end: 17%;
	z-index: 1;
	font-size: 2rem;
}

.error-page__content h1 {
	margin-bottom: 16px;
}

.error-page__content p {
	max-width: 620px;
	color: var(--mehe-muted);
}

.error-page__content .search-form {
	margin: 26px 0 18px;
}

/* WordPress helpers */
.alignwide {
	width: min(100vw - 40px, var(--mehe-container));
	max-width: none;
	margin-inline: calc((100% - min(100vw - 40px, var(--mehe-container))) / 2);
}

.alignfull {
	width: 100vw;
	max-width: none;
	margin-inline: calc(50% - 50vw);
}

.wp-caption,
.gallery-caption {
	color: var(--mehe-muted);
	font-size: 0.8rem;
}

.sticky {
	border-color: var(--mehe-primary);
}

.bypostauthor {
	border-color: var(--mehe-primary);
}

/* Responsive */
@media (max-width: 1100px) {
	.site-header__inner {
		gap: 18px;
	}

	.primary-menu > li > a {
		padding-inline: 10px;
		font-size: 0.86rem;
	}

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

}

@media (max-width: 960px) {
	.admin-bar .site-header {
		inset-block-start: 46px;
	}

	.site-header__inner {
		grid-template-columns: 1fr auto;
		min-height: 74px;
	}

	.menu-toggle {
		display: inline-flex;
		justify-self: end;
	}

	.main-navigation {
		position: absolute;
		inset-block-start: calc(100% + 1px);
		inset-inline: 0;
		max-height: calc(100vh - 76px);
		padding: 16px 20px 24px;
		background: var(--mehe-white);
		border-bottom: 1px solid var(--mehe-line);
		box-shadow: var(--mehe-shadow-small);
		overflow: auto;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
	}

	.menu-is-open .main-navigation {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.primary-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
	}

	.primary-menu > li > a {
		justify-content: space-between;
		padding: 11px 13px;
	}

	.primary-menu .sub-menu {
		position: static;
		width: auto;
		padding: 4px 14px 8px;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.button--header {
		display: none;
	}


	.error-page__inner {
		grid-template-columns: 1fr;
	}

	.error-page__visual {
		max-width: 320px;
		margin-inline: auto;
	}
}

@media (max-width: 720px) {
	.site-container {
		width: min(calc(100% - 28px), var(--mehe-container));
	}

	.site-branding__copy {
		display: none;
	}

	.posts-grid {
		grid-template-columns: 1fr;
	}


	.search-form {
		flex-direction: column;
	}

	.search-submit {
		width: 100%;
	}

	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	.post-navigation .nav-next {
		text-align: start;
	}
}

@media (max-width: 480px) {
	.site-header__inner {
		min-height: 68px;
	}

	.site-branding__mark,
	.custom-logo-link {
		width: 46px;
		height: 46px;
		border-radius: 13px;
	}

	.menu-toggle {
		width: 44px;
		height: 44px;
	}


	.error-page__visual {
		max-width: 250px;
	}
}

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

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
