:root {
	--wf-bg: #efe7d6;
	--wf-paper: #fffaf0;
	--wf-ink: #161410;
	--wf-muted: #5f584d;
	--wf-line: #d8ccb4;
	--wf-accent: #1f7a6a;
	--wf-copper: #b85c38;
	--wf-header: #12211c;
	--wf-header-text: #f4ece0;
	--wf-header-muted: #c9d4ce;
	--wf-radius: 18px;
	--wf-shadow: 0 18px 40px rgba(18, 33, 28, 0.08);
	--wf-max: 1160px;
	--wf-content: 42rem;
	--wf-font: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--wf-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
	--wf-mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Menlo, Consolas, monospace;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--wf-font);
	font-size: 1.05rem;
	line-height: 1.65;
	color: var(--wf-ink);
	background:
		radial-gradient(1200px 480px at 10% -10%, rgba(31, 122, 106, 0.12), transparent 55%),
		radial-gradient(900px 420px at 100% 0%, rgba(184, 92, 56, 0.1), transparent 50%),
		var(--wf-bg);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--wf-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--wf-ink);
}

:focus-visible {
	outline: 3px solid var(--wf-copper);
	outline-offset: 3px;
}

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

.skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	clip: auto;
	padding: 0.7rem 1rem;
	background: var(--wf-paper);
	color: var(--wf-ink);
	border-radius: 999px;
}

.updated:not(.published) {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

/* Header
   ========================================================================== */

.site-header {
	background: var(--wf-header);
	color: var(--wf-header-text);
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid rgba(244, 236, 224, 0.08);
}

.header-inner {
	width: min(100% - 2rem, var(--wf-max));
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 1rem 1.5rem;
	align-items: center;
	padding: 0.9rem 0;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	min-width: 0;
}

.custom-logo-link img {
	display: block;
	max-height: 48px;
	width: auto;
}

.site-title {
	margin: 0;
	font-family: var(--wf-serif);
	font-size: 1.55rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.site-title a {
	color: var(--wf-header-text);
	text-decoration: none;
}

.site-description {
	margin: 0.15rem 0 0;
	color: var(--wf-header-muted);
	font-size: 0.82rem;
}

.menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border: 1px solid rgba(244, 236, 224, 0.2);
	background: transparent;
	color: var(--wf-header-text);
	border-radius: 999px;
	padding: 0.45rem 0.8rem;
	cursor: pointer;
	font: inherit;
}

.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
	display: block;
	width: 16px;
	height: 2px;
	background: currentColor;
	position: relative;
	border-radius: 2px;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.menu-toggle-bars::before { top: -5px; }
.menu-toggle-bars::after { top: 5px; }

.primary-nav {
	display: none;
	grid-column: 1 / -1;
}

.site-header.is-open .primary-nav,
.site-header.is-open .header-tools {
	display: block;
}

.primary-nav .menu {
	list-style: none;
	margin: 0;
	padding: 0.4rem 0 0;
}

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

.primary-nav .menu a {
	display: block;
	color: var(--wf-header-text);
	text-decoration: none;
	padding: 0.7rem 0.2rem;
	border-bottom: 1px solid rgba(244, 236, 224, 0.08);
}

.primary-nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0 0 0 0.9rem;
}

.submenu-toggle {
	margin-left: auto;
	border: 0;
	background: rgba(244, 236, 224, 0.08);
	color: inherit;
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 8px;
	cursor: pointer;
}

@media (max-width: 799px) {
	.primary-nav .menu-item-has-children {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
	}

	.primary-nav .menu-item-has-children > a {
		flex: 1;
		border-bottom: 0;
	}

	.primary-nav .sub-menu {
		display: none;
		width: 100%;
		flex-basis: 100%;
	}

	.primary-nav .menu-item-has-children.is-open > .sub-menu {
		display: block;
	}
}

.primary-nav .menu-item.menu-tools > a,
.primary-nav .menu-item.tools > a {
	color: #12211c;
	background: #e8c07a;
	border-radius: 999px;
	padding: 0.45rem 0.9rem;
	border: 0;
	display: inline-block;
	margin: 0.4rem 0;
}

.header-tools {
	display: none;
	grid-column: 1 / -1;
}

.search-form {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	background: rgba(255, 250, 240, 0.08);
	border: 1px solid rgba(244, 236, 224, 0.14);
	border-radius: 999px;
	padding: 0.2rem 0.25rem 0.2rem 0.9rem;
}

.site-content .search-form,
.error-404 .search-form,
.no-results .search-form {
	max-width: 28rem;
	background: var(--wf-paper);
	border-color: var(--wf-line);
}

.search-field {
	flex: 1;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	min-width: 0;
	padding: 0.45rem 0;
}

.search-field::placeholder {
	color: var(--wf-header-muted);
}

.site-content .search-field::placeholder,
.error-404 .search-field::placeholder {
	color: var(--wf-muted);
}

.search-field:focus {
	outline: none;
}

.search-submit {
	border: 0;
	background: var(--wf-accent);
	color: #fff;
	width: 2.3rem;
	height: 2.3rem;
	border-radius: 50%;
	display: grid;
	place-items: center;
	cursor: pointer;
}

/* Content shell
   ========================================================================== */

.site-content {
	padding: 2.2rem 0 4rem;
}

.content-shell {
	width: min(100% - 2rem, var(--wf-max));
	margin: 0 auto;
	display: grid;
	gap: 2rem;
}

.has-sidebar .content-shell {
	grid-template-columns: 1fr;
}

.content-shell--wide,
.site-content--full .site-main {
	width: min(100% - 2rem, var(--wf-max));
	margin-inline: auto;
}

.page-header {
	margin-bottom: 1.6rem;
}

.page-title {
	font-family: var(--wf-serif);
	font-size: clamp(2rem, 4vw, 3.1rem);
	line-height: 1.08;
	letter-spacing: -0.03em;
	margin: 0 0 0.4rem;
}

.archive-description {
	color: var(--wf-muted);
	max-width: 42rem;
}

.post-list {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.post-card {
	background: var(--wf-paper);
	border: 1px solid rgba(22, 20, 16, 0.06);
	border-radius: var(--wf-radius);
	overflow: hidden;
	box-shadow: var(--wf-shadow);
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr);
	align-items: stretch;
	min-width: 0;
}

.post-card-link {
	text-decoration: none;
	color: inherit;
	display: block;
	min-height: 100%;
}

.post-card-media {
	height: 100%;
	min-height: 104px;
	background: #12211c;
	overflow: hidden;
}

.post-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.post-card:hover .post-card-media img {
	transform: scale(1.04);
}

.post-card-media--empty {
	display: grid;
	place-items: center;
	height: 100%;
	color: #e8c07a;
	font-family: var(--wf-serif);
	font-size: 2.2rem;
}

.post-card-body {
	padding: 0.85rem 1rem 0.95rem;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	min-width: 0;
}

.post-card-kicker,
.entry-kicker {
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.72rem;
	font-weight: 700;
}

.post-card-kicker a,
.entry-kicker a {
	color: var(--wf-copper);
	text-decoration: none;
}

.entry-kicker {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.post-card-title {
	margin: 0;
	font-family: var(--wf-serif);
	font-size: 1.15rem;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.post-card-title a {
	color: var(--wf-ink);
	text-decoration: none;
}

.post-card-excerpt {
	color: var(--wf-muted);
	font-size: 0.98rem;
	display: none;
}

.post-card-excerpt p {
	margin: 0;
}

.post-card-meta {
	margin: 0.15rem 0 0;
	color: var(--wf-muted);
	font-size: 0.85rem;
}

/* Single
   ========================================================================== */

.entry {
	background: var(--wf-paper);
	border-radius: 24px;
	padding: clamp(1.2rem, 3vw, 2.4rem);
	border: 1px solid rgba(22, 20, 16, 0.05);
	box-shadow: var(--wf-shadow);
}

.entry-title {
	font-family: var(--wf-serif);
	font-size: clamp(2.1rem, 5vw, 3.4rem);
	line-height: 1.08;
	letter-spacing: -0.035em;
	margin: 0.2rem 0 0.8rem;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1rem;
	color: var(--wf-muted);
	font-size: 0.92rem;
	margin-bottom: 1.4rem;
}

.entry-meta a {
	color: inherit;
}

.entry-hero {
	margin: 0 0 1.8rem;
	border-radius: 18px;
	overflow: hidden;
}

.entry-hero img {
	width: 100%;
	display: block;
}

.entry-content:not(:has(> .elementor)) {
	max-width: var(--wf-content);
	font-size: 1.08rem;
}

.entry-content:not(:has(> .elementor)) > * {
	margin-top: 0;
	margin-bottom: 1.1rem;
}

.entry-content:not(:has(> .elementor)) h2,
.entry-content:not(:has(> .elementor)) h3,
.entry-content:not(:has(> .elementor)) h4 {
	font-family: var(--wf-serif);
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin-top: 2rem;
}

.entry-content:not(:has(> .elementor)) h2 { font-size: 1.8rem; }
.entry-content:not(:has(> .elementor)) h3 { font-size: 1.4rem; }

.entry-content:not(:has(> .elementor)) pre,
.entry-content:not(:has(> .elementor)) .wp-block-code {
	background: #12211c;
	color: #f4ece0;
	padding: 1.1rem 1.2rem;
	border-radius: 14px;
	overflow-x: auto;
	font-family: var(--wf-mono);
	font-size: 0.92rem;
	line-height: 1.55;
}

.entry-content:not(:has(> .elementor)) code {
	font-family: var(--wf-mono);
	font-size: 0.92em;
	background: rgba(18, 33, 28, 0.07);
	padding: 0.1em 0.35em;
	border-radius: 5px;
}

.entry-content:not(:has(> .elementor)) pre code {
	background: none;
	padding: 0;
	color: inherit;
}

.entry-content:not(:has(> .elementor)) blockquote {
	margin-left: 0;
	padding: 0.2rem 0 0.2rem 1.1rem;
	border-left: 3px solid var(--wf-accent);
	color: #3a342c;
	font-family: var(--wf-serif);
	font-size: 1.2rem;
}

.entry-content:not(:has(> .elementor)) table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content:not(:has(> .elementor)) th,
.entry-content:not(:has(> .elementor)) td {
	border: 1px solid var(--wf-line);
	padding: 0.55rem 0.7rem;
	text-align: left;
}

.entry-content .alignwide {
	max-width: min(100%, 920px);
}

.entry-content .alignfull {
	width: calc(100% + 2.4rem);
	max-width: none;
	margin-left: -1.2rem;
	margin-right: -1.2rem;
}

.entry-content .alignleft {
	float: left;
	margin: 0 1.2rem 0.8rem 0;
}

.entry-content .alignright {
	float: right;
	margin: 0 0 0.8rem 1.2rem;
}

.entry-content .wp-block-image img,
.entry-content .wp-block-gallery img {
	border-radius: 12px;
}

.entry-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem 1.4rem;
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--wf-line);
	color: var(--wf-muted);
	font-size: 0.92rem;
}

.entry-footer a {
	color: var(--wf-ink);
}

.post-navigation {
	display: grid;
	gap: 1rem;
	margin: 2rem 0;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
	background: var(--wf-paper);
	border-radius: 16px;
	padding: 1rem 1.1rem;
	border: 1px solid rgba(22, 20, 16, 0.06);
}

.post-navigation a {
	text-decoration: none;
	color: inherit;
}

.nav-label {
	display: block;
	color: var(--wf-copper);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 0.25rem;
}

.related-title,
.comments-title,
.tools-grid-title,
.comment-reply-title,
.widget-title {
	font-family: var(--wf-serif);
	letter-spacing: -0.02em;
}

.related-posts {
	margin: 2.5rem 0 1rem;
}

.post-list--related .post-card-title {
	font-size: 1.05rem;
}

/* Pagination, comments, widgets
   ========================================================================== */

.pagination,
.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 2rem;
}

.page-numbers,
.page-links a,
.page-links > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.4rem;
	height: 2.4rem;
	padding: 0 0.7rem;
	border-radius: 999px;
	background: var(--wf-paper);
	color: var(--wf-ink);
	text-decoration: none;
	border: 1px solid var(--wf-line);
}

.page-numbers.current,
.page-links > span {
	background: var(--wf-header);
	color: var(--wf-header-text);
	border-color: var(--wf-header);
}

.widget-area {
	display: grid;
	gap: 1.2rem;
	align-content: start;
}

.widget {
	background: var(--wf-paper);
	border-radius: 18px;
	padding: 1.1rem 1.15rem;
	border: 1px solid rgba(22, 20, 16, 0.05);
}

.widget-title {
	margin: 0 0 0.8rem;
	font-size: 1.15rem;
}

.widget ul {
	margin: 0;
	padding-left: 1.1rem;
}

.widget li + li {
	margin-top: 0.35rem;
}

.widget-ad,
.ad-band .widget {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
	display: flex;
	justify-content: center;
}

.ad-band {
	padding: 0.9rem 0;
}

.ad-band-inner {
	width: min(100% - 2rem, var(--wf-max));
	margin: 0 auto;
}

.comments-area,
.no-results,
.error-404 {
	background: var(--wf-paper);
	border-radius: 24px;
	padding: clamp(1.2rem, 3vw, 2.2rem);
	margin-top: 2rem;
	box-shadow: var(--wf-shadow);
}

.error-404 {
	text-align: center;
	max-width: 40rem;
	margin: 2rem auto;
}

.error-code {
	font-family: var(--wf-serif);
	font-size: 5rem;
	margin: 0;
	color: var(--wf-accent);
	line-height: 1;
}

.error-actions {
	display: flex;
	justify-content: center;
	gap: 0.7rem;
	flex-wrap: wrap;
}

.button,
.wp-block-button__link,
input[type="submit"],
.form-submit input {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: var(--wf-accent);
	color: #fff;
	text-decoration: none;
	border-radius: 999px;
	padding: 0.7rem 1.15rem;
	font: inherit;
	cursor: pointer;
}

.button--ghost {
	background: transparent;
	color: var(--wf-ink);
	border: 1px solid var(--wf-line);
}

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

.comment-body {
	padding: 1rem 0;
	border-bottom: 1px solid var(--wf-line);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.wpcf7 input,
.wpcf7 textarea {
	width: 100%;
	border: 1px solid var(--wf-line);
	border-radius: 12px;
	padding: 0.7rem 0.85rem;
	font: inherit;
	background: #fff;
}

.tools-grid-section {
	margin-top: 2.5rem;
}

.tools-menu-bar {
	margin: 1.5rem 0 0;
}

.tools-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.tools-menu a {
	display: inline-block;
	background: var(--wf-paper);
	color: var(--wf-ink);
	text-decoration: none;
	border-radius: 999px;
	padding: 0.45rem 0.9rem;
	border: 1px solid var(--wf-line);
}

.tools-grid {
	display: grid;
	gap: 1.1rem;
}

.tool-card {
	background: var(--wf-paper);
	border-radius: var(--wf-radius);
	overflow: hidden;
	border: 1px solid rgba(22, 20, 16, 0.06);
	box-shadow: var(--wf-shadow);
}

.tool-card-link {
	display: block;
	color: inherit;
	text-decoration: none;
	padding: 0 0 1.1rem;
}

.tool-card-media img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
}

.tool-card-title,
.tool-card-excerpt {
	padding: 0 1.1rem;
}

.tool-card-title {
	font-family: var(--wf-serif);
	margin: 1rem 0 0.35rem;
}

.tool-card-excerpt {
	color: var(--wf-muted);
}

/* Footer
   ========================================================================== */

.site-footer {
	background: var(--wf-header);
	color: var(--wf-header-text);
	margin-top: 1rem;
}

.footer-widgets-inner,
.footer-bar-inner {
	width: min(100% - 2rem, var(--wf-max));
	margin: 0 auto;
}

.footer-widgets {
	padding: 2.4rem 0 1.5rem;
	border-bottom: 1px solid rgba(244, 236, 224, 0.08);
}

.footer-widgets-inner {
	display: grid;
	gap: 1.5rem;
}

.footer-column .widget {
	background: transparent;
	border: 0;
	padding: 0;
	color: inherit;
}

.footer-column a {
	color: var(--wf-header-text);
}

.footer-bar {
	padding: 1rem 0 1.3rem;
	font-size: 0.92rem;
}

.footer-bar-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem 1.4rem;
	justify-content: space-between;
	align-items: center;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem 1.1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu a {
	color: var(--wf-header-muted);
	text-decoration: none;
}

.copyright {
	margin: 0;
	color: var(--wf-header-muted);
}

/* Elementor: do not cage the builder
   ========================================================================== */

.webeface-elementor-page .site-content,
.webeface-canvas {
	padding: 0;
	background: transparent;
}

.webeface-elementor-page .content-shell,
.webeface-elementor-page .entry {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.webeface-elementor-page .entry-content {
	max-width: none;
}

.elementor-page .site-content {
	min-height: 0;
}

/* Desktop
   ========================================================================== */

@media (min-width: 800px) {
	.header-inner {
		grid-template-columns: auto 1fr auto;
		padding: 0.7rem 0;
	}

	.menu-toggle,
	.submenu-toggle {
		display: none;
	}

	.primary-nav,
	.header-tools {
		display: block;
		grid-column: auto;
	}

	.primary-nav .menu {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: flex-end;
		gap: 0.15rem 0.15rem;
		padding: 0;
	}

	.primary-nav .menu > .menu-item > a {
		padding: 0.55rem 0.8rem;
		border: 0;
		border-radius: 999px;
	}

	.primary-nav .menu > .menu-item > a:hover,
	.primary-nav .current-menu-item > a {
		background: rgba(244, 236, 224, 0.08);
	}

	.primary-nav .sub-menu {
		position: absolute;
		top: calc(100% - 4px);
		left: 0;
		min-width: 220px;
		background: #0e1b17;
		padding: 0.5rem;
		border-radius: 14px;
		box-shadow: var(--wf-shadow);
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: 0.16s ease;
		z-index: 20;
	}

	.primary-nav .menu-item-has-children:hover > .sub-menu,
	.primary-nav .menu-item-has-children:focus-within > .sub-menu,
	.primary-nav .menu-item-has-children.is-open > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.primary-nav .sub-menu a {
		border: 0;
		border-radius: 10px;
		padding: 0.55rem 0.7rem;
	}

	.primary-nav .sub-menu a:hover {
		background: rgba(244, 236, 224, 0.08);
	}

	.post-card {
		grid-template-columns: 220px minmax(0, 1fr);
	}

	.post-card-media,
	.post-card-media--empty {
		min-height: 150px;
	}

	.post-card-title {
		font-size: 1.45rem;
	}

	.post-card-excerpt {
		display: block;
	}

	.post-card-body {
		padding: 1.1rem 1.3rem;
		gap: 0.4rem;
	}

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

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

	.footer-widgets-inner {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1080px) {
	.has-sidebar .content-shell {
		grid-template-columns: minmax(0, 1fr) 300px;
		align-items: start;
	}

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

	.widget-area {
		position: sticky;
		top: 5.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}

@media print {
	.site-header,
	.site-footer,
	.ad-band,
	.menu-toggle,
	.search-form,
	.widget-area {
		display: none !important;
	}

	body,
	.entry {
		background: #fff;
		box-shadow: none;
		color: #000;
	}
}
