/*
Theme Name: Larkfield
Theme URI: https://www.thehoneytrails.com
Author: Elena Torres
Author URI: https://www.thehoneytrails.com
Description: A warm, painterly design with layered washes of color, soft tinted panels, rounded organic shapes, and editorial serif headings.
Version: 2.4.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--bg: #fbf4e8;
	--fg: #3b2b1b;
	--muted: #8d7c66;
	--border: #e9dcc4;
	--accent: #c98a1b;
	--accent-dark: #99690f;
	--accent-2: #7d6aa7;
	--tint: #f6ecd6;
	--tint-2: #ece4f4;
	--surface: #fffdf6;
	--radius: 18px;
	--shadow: 0 14px 34px rgba( 59, 43, 27, 0.12 );
	--media-ratio: 16 / 9;
	--maxw: 1180px;
	--serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
	line-height: 1.6;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var( --sans );
	font-size: 1rem;
	color: var( --fg );
	background-color: var( --bg );
	background-image:
		radial-gradient( 1000px 540px at 6% -6%, rgba( 201, 138, 27, 0.12 ), rgba( 201, 138, 27, 0 ) 62% ),
		radial-gradient( 820px 520px at 98% 8%, rgba( 125, 106, 167, 0.12 ), rgba( 125, 106, 167, 0 ) 60% ),
		radial-gradient( 900px 620px at 52% 110%, rgba( 201, 138, 27, 0.10 ), rgba( 201, 138, 27, 0 ) 62% );
	background-attachment: fixed;
}

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

a {
	color: var( --accent-dark );
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

h1,
h2,
h3,
h4 {
	font-family: var( --serif );
	line-height: 1.25;
	font-weight: 700;
	color: var( --fg );
}

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

.screen-reader-text:focus {
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	width: auto;
	height: auto;
	padding: 0.6rem 1rem;
	margin: 0;
	clip: auto;
	background: var( --surface );
	color: var( --fg );
	border-radius: 12px;
	box-shadow: var( --shadow );
	z-index: 300;
}

/* ---------- Header ---------- */

.site-header {
	position: relative;
	background: linear-gradient( 112deg, #2c1e10 0%, #573b18 52%, #8a5a1e 100% );
	color: #f6ead3;
	box-shadow: 0 6px 24px rgba( 44, 30, 16, 0.28 );
}

.header-inner {
	max-width: var( --maxw );
	margin: 0 auto;
	padding: 1rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.site-name {
	margin: 0;
	font-family: var( --serif );
	font-size: 1.55rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
}

.site-name a {
	color: #f9efe0;
	text-decoration: none;
}

.site-name a:hover {
	color: #ffd98a;
	text-decoration: none;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

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

.nav-list li {
	position: relative;
}

.nav-list a {
	display: block;
	padding: 0.6rem 0.8rem;
	color: #f2e6cf;
	font-size: 0.95rem;
	line-height: 1.3;
	border-radius: 12px;
	text-decoration: none;
}

.nav-list a:hover {
	background: rgba( 255, 217, 138, 0.14 );
	color: #ffd98a;
	text-decoration: none;
}

.nav-list .current-menu-item > a,
.nav-list .current-menu-ancestor > a {
	color: #ffd98a;
}

.menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	margin-left: 0.45em;
	border: 5px solid transparent;
	border-top-color: currentColor;
	transform: translateY( 2px );
	opacity: 0.75;
}

.sub-menu {
	list-style: none;
	margin: 0;
	padding: 0.5rem;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	background: var( --surface );
	border: 1px solid var( --border );
	border-radius: var( --radius );
	box-shadow: var( --shadow );
	display: none;
	z-index: 60;
}

.sub-menu a {
	color: var( --fg );
	padding: 0.55rem 0.85rem;
	border-radius: 12px;
}

.sub-menu a:hover {
	background: var( --tint );
	color: var( --accent-dark );
}

.sub-menu .menu-item-has-children > a::after {
	display: none;
}

.nav-list li:hover > .sub-menu,
.nav-list li:focus-within > .sub-menu {
	display: block;
}

.submenu-toggle {
	display: none;
}

.search-toggle,
.menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid rgba( 246, 234, 211, 0.35 );
	border-radius: 14px;
	background: rgba( 255, 255, 255, 0.06 );
	color: #f6ead3;
	cursor: pointer;
}

.search-toggle:hover,
.menu-toggle:hover {
	background: rgba( 255, 217, 138, 0.16 );
	color: #ffd98a;
}

.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
}

.menu-bar {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
	max-width: var( --maxw );
	margin: 0 auto;
	padding: 1rem 1.5rem 0;
	font-size: 0.85rem;
	color: var( --muted );
}

.breadcrumb .trail {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.breadcrumb .crumb + .crumb::before {
	content: "\203A";
	margin-right: 0.4rem;
	color: var( --muted );
}

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

.breadcrumb a:hover {
	color: var( --accent-dark );
}

/* ---------- Layout ---------- */

.page-wrap {
	max-width: var( --maxw );
	margin: 0 auto;
	padding: 1.75rem 1.5rem 3.5rem;
}

.content-area.with-sidebar {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) 300px;
	gap: 2.75rem;
	align-items: start;
}

.site-main {
	min-width: 0;
}

.single-area {
	max-width: 820px;
	margin: 0 auto;
}

.page-header {
	margin: 0 0 1.75rem;
}

.page-title {
	margin: 0;
	font-size: 2rem;
}

.archive-description {
	color: var( --muted );
	margin-top: 0.5rem;
	max-width: 68ch;
}

.archive-description p {
	margin: 0 0 0.5rem;
}

/* ---------- Hero post ---------- */

.hero-post {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	background: var( --surface );
	border: 1px solid var( --border );
	border-radius: var( --radius );
	box-shadow: var( --shadow );
	margin-bottom: 2.5rem;
}

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

.hero-media {
	display: block;
	height: 100%;
	margin: 0;
}

.hero-media .post-media-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var( --radius ) 0 0 var( --radius );
}

.hero-body {
	padding: 2rem 2.25rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.9rem;
}

.hero-title {
	margin: 0;
	font-size: 1.9rem;
	line-height: 1.25;
}

.hero-title a {
	color: var( --fg );
}

.hero-title a:hover {
	color: var( --accent-dark );
	text-decoration: none;
}

/* ---------- Card grid ---------- */

.card-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 270px, 1fr ) );
	gap: 1.9rem;
}

.post-card {
	display: flex;
	flex-direction: column;
	background: var( --surface );
	border: 1px solid var( --border );
	border-radius: var( --radius );
	box-shadow: 0 6px 18px rgba( 59, 43, 27, 0.07 );
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
	transform: translateY( -3px );
	box-shadow: var( --shadow );
}

.post-card.sticky,
.hero-post.sticky {
	border-color: rgba( 201, 138, 27, 0.55 );
}

.post-media {
	display: block;
	overflow: hidden;
	border-radius: var( --radius ) var( --radius ) 0 0;
	margin: 0;
}

.post-media .post-media-img {
	width: 100%;
	display: block;
	aspect-ratio: var( --media-ratio );
	object-fit: cover;
}

.card-body {
	padding: 1.25rem 1.4rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.card-title {
	margin: 0;
	font-size: 1.22rem;
	line-height: 1.35;
}

.card-title a {
	color: var( --fg );
}

.card-title a:hover {
	color: var( --accent-dark );
	text-decoration: none;
}

.post-excerpt {
	color: #5c4c3a;
	font-size: 0.95rem;
}

.post-excerpt p {
	margin: 0 0 0.5rem;
}

.post-excerpt p:last-child {
	margin-bottom: 0;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.82rem;
	color: var( --muted );
}

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

.post-meta a:hover {
	color: var( --accent-dark );
	text-decoration: none;
}

.meta-sep {
	opacity: 0.6;
}

.no-results {
	color: var( --muted );
	font-size: 1.05rem;
}

.no-results-search {
	max-width: 460px;
	margin-top: 1.25rem;
}

/* ---------- Pagination ---------- */

.pagination,
.navigation.pagination {
	margin-top: 2.5rem;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 0.9rem;
	border: 1px solid var( --border );
	border-radius: 14px;
	background: var( --surface );
	color: var( --fg );
	font-size: 0.92rem;
}

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

.pagination .page-numbers:hover:not( .current ):not( .dots ) {
	background: var( --tint );
	text-decoration: none;
}

.pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

.page-links {
	margin-top: 1.5rem;
	font-size: 0.92rem;
}

/* ---------- Single post ---------- */

.single-title {
	margin: 0 0 0.8rem;
	font-size: 2.45rem;
	line-height: 1.18;
}

.single-meta {
	margin-bottom: 1.5rem;
}

.post-media-single {
	margin: 0 0 1.75rem;
}

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

.post-content {
	font-size: 1.06rem;
	line-height: 1.8;
	color: #46392b;
}

.post-content p {
	margin: 0 0 1.25rem;
}

.post-content h2 {
	font-size: 1.65rem;
	margin: 2.2rem 0 0.9rem;
	padding-bottom: 0.35rem;
	border-bottom: 2px solid var( --tint );
}

.post-content h3 {
	font-size: 1.3rem;
	margin: 1.8rem 0 0.7rem;
}

.post-content h4 {
	font-size: 1.1rem;
	margin: 1.6rem 0 0.6rem;
}

.post-content a {
	text-decoration: underline;
	text-decoration-color: rgba( 201, 138, 27, 0.45 );
	text-underline-offset: 2px;
}

.post-content a:hover {
	color: var( --accent-dark );
}

.post-content ul,
.post-content ol {
	padding-left: 1.4rem;
	margin: 0 0 1.25rem;
}

.post-content blockquote {
	margin: 1.75rem 0;
	padding: 1.1rem 1.5rem;
	background: var( --tint );
	border-left: 4px solid var( --accent );
	border-radius: 0 var( --radius ) var( --radius ) 0;
	font-family: var( --serif );
	font-size: 1.1rem;
}

.post-content blockquote p:last-child {
	margin-bottom: 0;
}

.post-content img {
	border-radius: var( --radius );
}

.post-content pre {
	background: #2c1e10;
	color: #f6ead3;
	padding: 1.1rem 1.3rem;
	border-radius: var( --radius );
	overflow: auto;
	font-size: 0.9rem;
}

.post-content code {
	background: var( --tint );
	padding: 0.15em 0.4em;
	border-radius: 6px;
	font-size: 0.92em;
}

.post-content pre code {
	background: none;
	padding: 0;
}

.post-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5rem;
	font-size: 0.95rem;
}

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

.post-content th {
	background: var( --tint );
}

.post-content hr {
	border: none;
	border-top: 1px solid var( --border );
	margin: 2.2rem 0;
}

.post-content .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.post-content .alignleft {
	float: left;
	margin: 0.3rem 1.25rem 1rem 0;
}

.post-content .alignright {
	float: right;
	margin: 0.3rem 0 1rem 1.25rem;
}

.post-content .wp-caption {
	max-width: 100%;
}

.post-content .wp-caption-text {
	font-size: 0.85rem;
	color: var( --muted );
	margin-top: 0.4rem;
}

/* ---------- Article note / tags / bio / related ---------- */

.article-note {
	margin: 2rem 0;
	padding: 1.15rem 1.5rem;
	background: var( --tint-2 );
	border: 1px solid rgba( 125, 106, 167, 0.3 );
	border-radius: var( --radius );
	color: #4c4364;
	font-size: 0.98rem;
}

.article-note p {
	margin: 0 0 0.6rem;
}

.article-note p:last-child {
	margin-bottom: 0;
}

.post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin: 1.75rem 0;
}

.tag-chip {
	display: inline-block;
	padding: 0.4rem 1rem;
	background: var( --tint );
	border: 1px solid var( --border );
	border-radius: 999px;
	color: #7a5a1c;
	font-size: 0.85rem;
}

.tag-chip:hover {
	background: #efdfb9;
	text-decoration: none;
}

.author-bio {
	display: flex;
	gap: 1.1rem;
	align-items: flex-start;
	background: var( --surface );
	border: 1px solid var( --border );
	border-radius: var( --radius );
	padding: 1.4rem 1.6rem;
	margin: 2rem 0;
	box-shadow: 0 6px 18px rgba( 59, 43, 27, 0.06 );
}

.author-avatar img {
	display: block;
	width: 72px;
	height: 72px;
	border-radius: 50%;
}

.author-name {
	font-family: var( --serif );
	font-size: 1.15rem;
	font-weight: 700;
	color: var( --fg );
}

.author-name:hover {
	color: var( --accent-dark );
	text-decoration: none;
}

.author-description {
	margin: 0.35rem 0 0;
	color: #5c4c3a;
	font-size: 0.95rem;
}

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

.related-title {
	margin: 0 0 1.25rem;
	font-size: 1.5rem;
}

.related-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) );
	gap: 1.4rem;
}

.related-card {
	background: var( --surface );
	border: 1px solid var( --border );
	border-radius: var( --radius );
	box-shadow: 0 6px 18px rgba( 59, 43, 27, 0.06 );
}

.related-media {
	border-radius: var( --radius ) var( --radius ) 0 0;
}

.related-body {
	padding: 1rem 1.15rem 1.2rem;
}

.related-name {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	line-height: 1.35;
}

.related-name a {
	color: var( --fg );
}

.related-name a:hover {
	color: var( --accent-dark );
	text-decoration: none;
}

.post-date {
	font-size: 0.82rem;
	color: var( --muted );
}

/* ---------- Comments ---------- */

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

.comments-title {
	margin: 0 0 1.5rem;
	font-size: 1.5rem;
}

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

.comment-list .children {
	list-style: none;
	margin: 0.9rem 0 0;
	padding-left: 1.5rem;
}

.comment-body {
	background: var( --surface );
	border: 1px solid var( --border );
	border-radius: var( --radius );
	padding: 1.2rem 1.4rem;
	margin-bottom: 1rem;
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 1rem;
	margin-bottom: 0.6rem;
}

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

.comment-author img {
	width: 42px;
	height: 42px;
	border-radius: 50%;
}

.comment-author-name {
	font-style: normal;
}

.comment-metadata {
	font-size: 0.8rem;
	color: var( --muted );
}

.comment-metadata a {
	color: var( --muted );
}

.edit-link {
	margin-left: 0.5rem;
}

.comment-awaiting-moderation {
	width: 100%;
	margin: 0.3rem 0 0;
	font-size: 0.85rem;
	color: var( --accent-2 );
	font-style: italic;
}

.comment-content p {
	margin: 0 0 0.8rem;
}

.comment-content p:last-child {
	margin-bottom: 0;
}

.reply .comment-reply-link {
	font-size: 0.85rem;
}

.comment-reply-title {
	margin: 0 0 1rem;
	font-size: 1.3rem;
}

.comment-reply-title small {
	font-family: var( --sans );
	font-size: 0.8rem;
	margin-left: 0.6rem;
}

.comment-form {
	display: grid;
	gap: 1rem;
}

.comment-form p {
	margin: 0;
}

.comment-notes {
	font-size: 0.85rem;
	color: var( --muted );
}

.comment-form label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
	font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.8rem 1.05rem;
	border: 1px solid var( --border );
	border-radius: 14px;
	background: var( --surface );
	color: var( --fg );
	font: inherit;
	font-size: 0.95rem;
}

.comment-form textarea {
	border-radius: var( --radius );
}

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

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

.comment-form .comment-form-cookies-consent input {
	width: auto;
}

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

.comment-form .submit {
	padding: 0.8rem 1.9rem;
	border: none;
	border-radius: 999px;
	background: var( --accent );
	color: #fff8ea;
	font: inherit;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	justify-self: start;
}

.comment-form .submit:hover {
	background: var( --accent-dark );
}

.comments-area .pagination {
	margin: 0 0 2rem;
}

/* ---------- Sidebar ---------- */

.sidebar .widget {
	background: var( --surface );
	border: 1px solid var( --border );
	border-radius: var( --radius );
	padding: 1.35rem 1.5rem;
	margin-bottom: 1.5rem;
	box-shadow: 0 6px 18px rgba( 59, 43, 27, 0.05 );
}

.widget-title {
	margin: 0 0 0.9rem;
	font-size: 1.08rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var( --tint );
}

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

.widget ul li {
	padding: 0.35rem 0;
	border-bottom: 1px dashed var( --border );
}

.widget ul li:last-child {
	border-bottom: none;
}

.widget a {
	color: #5c4c3a;
}

.widget a:hover {
	color: var( --accent-dark );
}

.widget select,
.widget input[type="text"],
.widget input[type="email"],
.widget input[type="search"] {
	width: 100%;
	padding: 0.65rem 0.9rem;
	border: 1px solid var( --border );
	border-radius: 12px;
	background: var( --surface );
	color: var( --fg );
	font: inherit;
	font-size: 0.92rem;
}

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

.widget .search-submit {
	padding-left: 1.1rem;
	padding-right: 1.1rem;
}

.widget .tagcloud a,
.widget .wp-block-tag-cloud a {
	display: inline-block;
	margin: 0 0.3rem 0.45rem 0;
	padding: 0.3rem 0.85rem;
	background: var( --tint );
	border-radius: 999px;
	font-size: 0.85rem !important;
	color: #7a5a1c;
}

.widget .calendar_wrap table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85rem;
}

.widget .calendar_wrap th,
.widget .calendar_wrap td {
	padding: 0.3rem;
	text-align: center;
}

/* ---------- Search form & overlay ---------- */

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

.search-field {
	flex: 1;
	min-width: 0;
	padding: 0.75rem 1.1rem;
	border: 1px solid var( --border );
	border-radius: 999px;
	background: var( --surface );
	color: var( --fg );
	font: inherit;
	font-size: 0.95rem;
}

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

.search-submit {
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 999px;
	background: var( --accent );
	color: #fff8ea;
	font: inherit;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
}

.search-submit:hover {
	background: var( --accent-dark );
}

.search-overlay {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background: linear-gradient( 150deg, rgba( 44, 30, 16, 0.96 ), rgba( 87, 59, 24, 0.96 ) );
}

.search-overlay.is-open {
	display: flex;
}

.search-overlay-inner {
	width: min( 640px, 100% );
}

.search-overlay .search-field {
	padding: 1.05rem 1.4rem;
	font-size: 1.1rem;
	background: rgba( 255, 253, 246, 0.97 );
	border-color: rgba( 246, 234, 211, 0.4 );
}

.search-close {
	position: absolute;
	top: 1.25rem;
	right: 1.5rem;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid rgba( 246, 234, 211, 0.4 );
	background: transparent;
	color: #f6ead3;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}

.search-close:hover {
	background: rgba( 255, 217, 138, 0.16 );
}

body.search-open {
	overflow: hidden;
}

/* ---------- 404 ---------- */

.not-found {
	max-width: 620px;
	margin: 2.5rem auto;
	text-align: center;
}

.not-found .page-title {
	font-size: 2.4rem;
	margin-bottom: 0.75rem;
}

.not-found p {
	color: var( --muted );
}

.not-found .search-form {
	max-width: 440px;
	margin: 1.5rem auto 0;
}

/* ---------- Footer ---------- */

.site-footer {
	background: #2b1e10;
	color: #cdbb9d;
	margin-top: 3rem;
}

.footer-nav {
	max-width: var( --maxw );
	margin: 0 auto;
	padding: 2.75rem 1.5rem 1.75rem;
}

.footer-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 190px, 1fr ) );
	gap: 1.75rem;
}

.footer-heading {
	display: block;
	font-family: var( --serif );
	font-size: 1.05rem;
	color: #f2e6cf;
	margin-bottom: 0.7rem;
}

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

.footer-sub li {
	margin: 0.4rem 0;
}

.footer-sub a {
	color: #c7b696;
	font-size: 0.92rem;
}

.footer-sub a:hover {
	color: #ffd98a;
}

.footer-bottom {
	max-width: var( --maxw );
	margin: 0 auto;
	padding: 1.25rem 1.5rem 1.5rem;
	border-top: 1px solid rgba( 246, 234, 211, 0.14 );
	font-size: 0.85rem;
	color: #a9977b;
}

.copyright {
	margin: 0;
}

.footer-note {
	margin: 0.35rem 0 0;
	color: #8f7f66;
}

/* ---------- Responsive ---------- */

@media ( max-width: 1020px ) {
	.content-area.with-sidebar {
		grid-template-columns: 1fr;
	}

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

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

@media ( max-width: 900px ) {
	.menu-toggle {
		display: inline-flex;
	}

	.main-nav .nav-list {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: linear-gradient( 112deg, #2c1e10, #573b18 );
		padding: 0.75rem 1rem 1.25rem;
		border-top: 1px solid rgba( 246, 234, 211, 0.15 );
		box-shadow: 0 18px 30px rgba( 44, 30, 16, 0.35 );
		z-index: 80;
	}

	.main-nav.nav-open .nav-list {
		display: flex;
	}

	.nav-list a {
		padding: 0.8rem 0.5rem;
		border-radius: 10px;
	}

	.nav-list li > .sub-menu,
	.nav-list li:hover > .sub-menu,
	.nav-list li:focus-within > .sub-menu {
		display: none;
		position: static;
		min-width: 0;
		margin: 0.1rem 0 0.4rem;
		padding: 0.35rem 0.5rem;
		background: rgba( 255, 255, 255, 0.05 );
		border: none;
		border-radius: 12px;
		box-shadow: none;
	}

	.nav-list li.submenu-open > .sub-menu {
		display: block;
	}

	.sub-menu a {
		color: #efe2c8;
	}

	.sub-menu a:hover {
		background: rgba( 255, 217, 138, 0.12 );
		color: #ffd98a;
	}

	.menu-item-has-children > a {
		padding-right: 2.75rem;
	}

	.menu-item-has-children > a::after {
		display: none;
	}

	.submenu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		right: 0.35rem;
		top: 0.3rem;
		width: 38px;
		height: 38px;
		padding: 0;
		background: transparent;
		border: none;
		border-radius: 10px;
		color: #f6ead3;
		cursor: pointer;
	}

	.submenu-toggle::after {
		content: "";
		border: 5px solid transparent;
		border-top-color: currentColor;
		transform: translateY( 2px );
	}

	.menu-item-has-children.submenu-open > .submenu-toggle::after {
		transform: rotate( 180deg ) translateY( -2px );
	}

	.submenu-toggle:hover {
		background: rgba( 255, 217, 138, 0.16 );
	}

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

	.hero-media .post-media-img {
		height: auto;
		aspect-ratio: var( --media-ratio );
		border-radius: var( --radius ) var( --radius ) 0 0;
	}
}

@media ( max-width: 560px ) {
	.header-inner {
		padding: 0.9rem 1rem;
	}

	.page-wrap {
		padding: 1.25rem 1rem 2.5rem;
	}

	.breadcrumb {
		padding: 1rem 1rem 0;
	}

	.single-title {
		font-size: 1.8rem;
	}

	.hero-body {
		padding: 1.5rem 1.4rem 1.7rem;
	}

	.hero-title {
		font-size: 1.5rem;
	}

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

	.author-bio {
		flex-direction: column;
	}
}
