/*
Theme Name: Caldera
Author: Maya Okafor
Author URI: https://www.melaninwise.com
Version: 2.4.0
Description: A warm editorial design with earthy tones, generous whitespace, and softly rounded components.
*/

:root {
	--bg: #faf5ec;
	--fg: #38220f;
	--muted: #8c6f58;
	--border: #e7d9c3;
	--tint: #f3e8d5;
	--tint-deep: #ecdfc6;
	--accent: #b0532b;
	--accent-deep: #8a3f20;
	--head-a: #3b2212;
	--head-b: #7c3c1d;
	--cream: #f8efdd;
	--radius: 10px;
	--shadow: 0 1px 2px rgba(59, 34, 18, 0.07), 0 10px 30px rgba(59, 34, 18, 0.08);
	--media-ratio: 16 / 9;
	--font-head: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-body: Georgia, "Times New Roman", serif;
}

* {
	box-sizing: border-box;
}

html {
	margin: 0;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

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

a {
	color: var(--accent-deep);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
	color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	line-height: 1.25;
	font-weight: 700;
	color: var(--fg);
	margin: 0 0 0.6em;
}

blockquote {
	margin: 1.5em 0;
	padding: 0.25em 0 0.25em 1.25em;
	border-left: 3px solid var(--accent);
	color: var(--muted);
	font-style: italic;
}

code, pre {
	font-family: Menlo, Consolas, monospace;
	font-size: 0.9em;
	background: var(--tint);
	border-radius: calc(var(--radius) / 2);
}

code {
	padding: 0.1em 0.35em;
}

pre {
	padding: 1em 1.25em;
	overflow-x: auto;
	border: 1px solid var(--border);
}

table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	font-size: 0.95em;
}

th, td {
	padding: 0.6em 0.8em;
	border: 1px solid var(--border);
	text-align: left;
}

th {
	background: var(--tint);
	font-family: var(--font-head);
}

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

/* ---------- utilities ---------- */

.wrap {
	width: min(1120px, 100% - 2.5rem);
	margin-inline: auto;
}

.narrow {
	width: min(760px, 100% - 2.5rem);
	margin-inline: auto;
}

.cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 2.75rem;
	align-items: start;
	padding-block: 2.75rem;
}

.flow > * + * {
	margin-top: 1.5rem;
}

.t-xxl {
	font-size: clamp(2rem, 4.5vw, 3rem);
	letter-spacing: -0.02em;
}

.t-xl {
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	letter-spacing: -0.015em;
}

.t-lg {
	font-size: 1.35rem;
}

.t-md {
	font-size: 1.15rem;
}

.t-sm {
	font-size: 0.875rem;
}

.muted {
	color: var(--muted);
}

.box {
	background: var(--tint);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.chip {
	display: inline-block;
	padding: 0.3em 0.9em;
	background: var(--tint-deep);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	font-family: var(--font-head);
	font-size: 0.8rem;
	text-decoration: none;
	color: var(--fg);
}

.chip:hover,
.chip:focus-visible {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--cream);
}

.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;
}

.main-pad {
	padding-block: 2.5rem;
}

/* ---------- header ---------- */

.site-head {
	background: linear-gradient(115deg, var(--head-a) 0%, var(--head-b) 100%);
	color: var(--cream);
	position: relative;
}

.head-row {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	padding-block: 1rem;
}

.brand {
	margin-right: auto;
}

.brand-name {
	font-family: var(--font-head);
	font-weight: 800;
	font-size: 1.35rem;
	letter-spacing: -0.01em;
	color: var(--cream);
	text-decoration: none;
}

.brand-name:hover,
.brand-name:focus-visible {
	color: #fff;
}

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

.site-nav .menu {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav .menu-item {
	position: relative;
}

.site-nav .menu-item > a {
	display: block;
	padding: 0.55em 0.85em;
	font-family: var(--font-head);
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--cream);
	text-decoration: none;
	border-radius: var(--radius);
}

.site-nav .menu-item > a:hover,
.site-nav .menu-item > a:focus-visible,
.site-nav .current-menu-item > a {
	background: rgba(248, 239, 221, 0.14);
	color: #fff;
}

.site-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 250px;
	list-style: none;
	margin: 0.35rem 0 0;
	padding: 0.5rem;
	background: var(--tint);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
	z-index: 50;
}

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

.site-nav .sub-menu a {
	display: block;
	padding: 0.5em 0.75em;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--fg);
	border-radius: calc(var(--radius) / 1.5);
}

.site-nav .sub-menu a:hover,
.site-nav .sub-menu a:focus-visible {
	background: var(--tint-deep);
	color: var(--accent-deep);
}

.sub-toggle {
	display: none;
	background: none;
	border: 0;
	color: var(--cream);
	cursor: pointer;
	padding: 0.4em 0.6em;
}

.sub-toggle::after {
	content: "";
	display: inline-block;
	width: 0.5em;
	height: 0.5em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	background: rgba(248, 239, 221, 0.12);
	border: 1px solid rgba(248, 239, 221, 0.25);
	border-radius: var(--radius);
	color: var(--cream);
	cursor: pointer;
}

.icon-btn:hover,
.icon-btn:focus-visible,
.icon-btn[aria-expanded="true"] {
	background: rgba(248, 239, 221, 0.22);
	color: #fff;
}

.icon-btn svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.nav-toggle {
	display: none;
}

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

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

.nav-toggle .bars::before {
	top: -6px;
}

.nav-toggle .bars::after {
	top: 6px;
}

.search-panel {
	display: none;
	background: var(--tint);
	border-top: 1px solid rgba(248, 239, 221, 0.2);
	padding-block: 1.1rem;
}

.search-panel.is-open {
	display: block;
}

/* ---------- search form ---------- */

.search-form {
	display: flex;
	gap: 0.6rem;
}

.search-field {
	flex: 1;
	padding: 0.65em 1em;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--fg);
}

.search-field:focus {
	outline: 2px solid var(--accent);
	outline-offset: 1px;
	border-color: var(--accent);
}

.search-submit {
	padding: 0.65em 1.4em;
	background: var(--accent);
	border: 1px solid var(--accent);
	border-radius: var(--radius);
	color: #fff;
	font-family: var(--font-head);
	font-weight: 600;
	cursor: pointer;
}

.search-submit:hover,
.search-submit:focus-visible {
	background: var(--accent-deep);
	border-color: var(--accent-deep);
}

/* ---------- breadcrumb ---------- */

.breadcrumb {
	background: var(--tint-deep);
	border-bottom: 1px solid var(--border);
	font-family: var(--font-head);
	font-size: 0.82rem;
}

.breadcrumb .trail {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	padding-block: 0.55rem;
}

.breadcrumb .crumb {
	color: var(--muted);
	text-decoration: none;
}

a.crumb:hover,
a.crumb:focus-visible {
	color: var(--accent-deep);
}

.breadcrumb .crumb.current {
	color: var(--fg);
	font-weight: 600;
}

.breadcrumb .sep {
	color: var(--muted);
	opacity: 0.6;
}

/* ---------- hero ---------- */

.hero {
	background:
		radial-gradient(rgba(176, 83, 43, 0.12) 1.5px, transparent 1.5px),
		linear-gradient(180deg, var(--tint) 0%, var(--bg) 100%);
	background-size: 24px 24px, 100% 100%;
	border-bottom: 1px solid var(--border);
	padding: 4.5rem 0 3.75rem;
	text-align: center;
}

.hero-title {
	margin-bottom: 0.35em;
}

.hero-text {
	max-width: 620px;
	margin: 0 auto;
	font-size: 1.15rem;
	color: var(--muted);
}

/* ---------- post rows ---------- */

.rows {
	display: grid;
	gap: 1.25rem;
}

.item {
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr);
	gap: 1.4rem;
	padding: 1.15rem;
	align-items: center;
}

.item.no-media {
	grid-template-columns: minmax(0, 1fr);
}

.item .media {
	display: block;
	border-radius: calc(var(--radius) - 2px);
}

.media-img {
	display: block;
	width: 100%;
	aspect-ratio: var(--media-ratio);
	object-fit: cover;
	border-radius: calc(var(--radius) - 2px);
}

.item .t-md {
	margin-bottom: 0.3em;
}

.item .t-md a {
	color: var(--fg);
	text-decoration: none;
}

.item .t-md a:hover,
.item .t-md a:focus-visible {
	color: var(--accent-deep);
}

.item p {
	margin: 0.35em 0 0;
}

/* ---------- entries ---------- */

.entry-head {
	margin-bottom: 1.75rem;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.9rem;
	font-family: var(--font-head);
	font-size: 0.85rem;
	color: var(--muted);
}

.entry-meta a {
	color: var(--muted);
}

.entry-meta a:hover,
.entry-meta a:focus-visible {
	color: var(--accent-deep);
}

.entry-media {
	margin: 0 0 2rem;
}

.entry-media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.entry-body > *:first-child {
	margin-top: 0;
}

.entry-body a {
	text-decoration: underline;
}

.page-links {
	margin-top: 2rem;
	font-family: var(--font-head);
	font-size: 0.9rem;
}

.page-links .post-page-numbers {
	display: inline-block;
	padding: 0.3em 0.75em;
	margin-right: 0.35rem;
	border: 1px solid var(--border);
	border-radius: calc(var(--radius) / 1.5);
	text-decoration: none;
}

.page-links .current {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 2rem 0 0;
	padding: 0;
}

/* ---------- author bio / note / related ---------- */

.author-bio {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 1.25rem;
	padding: 1.5rem;
	margin-top: 2.25rem;
	align-items: start;
}

.author-bio .avatar {
	border-radius: var(--radius);
	display: block;
}

.author-bio .t-md {
	margin-bottom: 0.25em;
}

.author-bio .t-md a {
	color: var(--fg);
	text-decoration: none;
}

.author-bio p {
	margin: 0;
	font-size: 0.95rem;
	color: var(--muted);
}

.article-note {
	margin-top: 2.25rem;
	padding: 1.1rem 1.4rem;
	background: var(--tint);
	border: 1px solid var(--border);
	border-left: 4px solid var(--accent);
	border-radius: var(--radius);
	font-size: 0.95rem;
}

.article-note p {
	margin: 0.35em 0;
}

.related {
	margin-top: 2.75rem;
	padding-top: 2rem;
	border-top: 1px solid var(--border);
}

.related .item {
	grid-template-columns: 150px minmax(0, 1fr);
	padding: 0.9rem;
	box-shadow: none;
}

/* ---------- comments ---------- */

.comments-area {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--border);
}

.comment-list {
	list-style: none;
	margin: 1.5rem 0;
	padding: 0;
	display: grid;
	gap: 1.25rem;
}

.comment-list .children {
	list-style: none;
	margin-top: 1.25rem;
	padding-left: 1.5rem;
	display: grid;
	gap: 1.25rem;
}

.comment-body {
	padding: 1.25rem 1.4rem;
	background: var(--tint);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	margin-bottom: 0.6rem;
	font-family: var(--font-head);
	font-size: 0.85rem;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 700;
}

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

.comment-author a {
	color: var(--fg);
	text-decoration: none;
}

.comment-date {
	color: var(--muted);
	text-decoration: none;
	font-size: 0.8rem;
}

.comment-content p {
	margin: 0.5em 0;
}

.comment-awaiting {
	font-family: var(--font-head);
	font-size: 0.82rem;
	color: var(--accent-deep);
	font-weight: 600;
}

.comment-reply {
	margin-top: 0.75rem;
	font-family: var(--font-head);
	font-size: 0.85rem;
}

.comment-reply a {
	font-weight: 600;
	text-decoration: none;
}

.comment-respond {
	margin-top: 2.25rem;
	background: var(--tint);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.5rem 1.6rem 1.6rem;
}

.comment-respond .comment-reply-title {
	font-size: 1.2rem;
	margin-bottom: 0.8rem;
}

.comment-form {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.9rem 1rem;
}

.comment-form p {
	margin: 0;
}

.comment-form-comment,
.comment-notes,
.logged-in-as,
.comment-form-cookies-consent,
.form-submit {
	grid-column: 1 / -1;
}

.comment-form label {
	display: block;
	font-family: var(--font-head);
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.65em 1em;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--fg);
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: 2px solid var(--accent);
	outline-offset: 1px;
	border-color: var(--accent);
}

.comment-form .submit {
	justify-self: start;
	padding: 0.7em 1.6em;
	background: var(--accent);
	border: 1px solid var(--accent);
	border-radius: var(--radius);
	color: #fff;
	font-family: var(--font-head);
	font-weight: 600;
	cursor: pointer;
}

.comment-form .submit:hover,
.comment-form .submit:focus-visible {
	background: var(--accent-deep);
	border-color: var(--accent-deep);
}

.comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9rem;
}

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

.comment-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	font-family: var(--font-head);
	font-size: 0.9rem;
}

/* ---------- pagination ---------- */

.pagination {
	margin-top: 2.5rem;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.pagination .page-numbers {
	display: inline-block;
	padding: 0.45em 0.95em;
	background: var(--tint);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	font-family: var(--font-head);
	font-size: 0.9rem;
	text-decoration: none;
	color: var(--fg);
}

.pagination .page-numbers.current {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.pagination a.page-numbers:hover,
.pagination a.page-numbers:focus-visible {
	border-color: var(--accent);
	color: var(--accent-deep);
}

.pagination a.page-numbers.current:hover {
	color: #fff;
}

/* ---------- archive / system pages ---------- */

.archive-head {
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--border);
}

.archive-head p {
	margin: 0.35em 0;
	max-width: 640px;
}

.empty-state {
	padding: 3rem 2rem;
	text-align: center;
}

.empty-state .search-form {
	max-width: 460px;
	margin: 1.5rem auto 0;
}

/* ---------- sidebar ---------- */

.side .widget {
	padding: 1.4rem 1.5rem;
	margin-bottom: 1.5rem;
}

.widget-title {
	font-size: 1.05rem;
	margin-bottom: 0.75rem;
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.45rem;
	font-size: 0.95rem;
}

.widget ul ul {
	margin-top: 0.45rem;
	padding-left: 1rem;
}

.widget a {
	text-decoration: none;
	color: var(--fg);
}

.widget a:hover,
.widget a:focus-visible {
	color: var(--accent-deep);
}

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

.widget select {
	width: 100%;
	padding: 0.5em 0.75em;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

/* ---------- footer ---------- */

.site-foot {
	background: linear-gradient(160deg, var(--head-b) 0%, var(--head-a) 70%);
	color: var(--cream);
	margin-top: 4rem;
	padding: 3.25rem 0 2rem;
	font-family: var(--font-head);
}

.foot-groups {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 2rem;
	list-style: none;
	margin: 0 0 2.5rem;
	padding: 0 0 2.25rem;
	border-bottom: 1px solid rgba(248, 239, 221, 0.18);
}

.foot-group-title {
	display: block;
	font-weight: 800;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	margin-bottom: 0.8rem;
	color: #fff;
}

.foot-group .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.foot-item a {
	font-size: 0.88rem;
	color: rgba(248, 239, 221, 0.82);
	text-decoration: none;
}

.foot-item a:hover,
.foot-item a:focus-visible {
	color: #fff;
	text-decoration: underline;
}

.foot-line {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem 1.5rem;
	font-size: 0.82rem;
	color: rgba(248, 239, 221, 0.7);
}

.foot-line p {
	margin: 0;
}

.foot-note {
	font-style: italic;
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
	.cols {
		grid-template-columns: minmax(0, 1fr);
	}

	.side {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
		gap: 1.5rem;
	}

	.side .widget {
		margin-bottom: 0;
	}
}

@media (max-width: 800px) {
	.search-toggle {
		order: 2;
	}

	.nav-toggle {
		display: inline-flex;
		order: 3;
	}

	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--head-a);
		border-top: 1px solid rgba(248, 239, 221, 0.18);
		padding: 0.75rem 1.25rem 1.25rem;
		z-index: 60;
	}

	.site-nav.is-open {
		display: block;
	}

	.site-nav .menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0.15rem;
	}

	.site-nav .menu-item > a {
		padding: 0.7em 0.85em;
	}

	.site-nav .menu-item-has-children {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
	}

	.site-nav .menu-item-has-children > a {
		grid-column: 1;
	}

	.sub-toggle {
		display: inline-flex;
		grid-column: 2;
	}

	.sub-toggle.is-open::after {
		transform: rotate(225deg) translateY(-1px);
	}

	.site-nav .sub-menu {
		grid-column: 1 / -1;
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		display: none;
		margin: 0.15rem 0 0.5rem;
		box-shadow: none;
		background: rgba(248, 239, 221, 0.07);
		border-color: rgba(248, 239, 221, 0.18);
	}

	.site-nav .sub-menu.is-open {
		display: block;
	}

	.site-nav .sub-menu a {
		color: var(--cream);
	}

	.site-nav .sub-menu a:hover,
	.site-nav .sub-menu a:focus-visible {
		background: rgba(248, 239, 221, 0.12);
		color: #fff;
	}
}

@media (max-width: 620px) {
	.comment-form {
		grid-template-columns: minmax(0, 1fr);
	}

	.item,
	.related .item {
		grid-template-columns: minmax(0, 1fr);
	}

	.author-bio {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero {
		padding: 3rem 0 2.75rem;
	}
}
