/*
Theme Name:  Klushuis
Theme URI:   https://klushuis.nl
Author:      Klushuis.nl
Author URI:  https://klushuis.nl
Description: Warm, redactioneel WordPress-thema voor Klushuis.nl – de Nederlandse blog over klussen, wonen, interieur en tuin. Gebouwd op de 'Elevated Craftsperson' designtaal van Google Stitch.
Version:     1.0.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: klushuis
Tags: blog, two-columns, right-sidebar, custom-colors, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
	/* Background */
	--bg:                 #F5F0E8;
	--surface:            #f9faf5;
	--surface-low:        #f3f4ef;
	--surface-container:  #edeeea;
	--surface-card:       #ffffff;
	--surface-highest:    #e2e3de;

	/* Text */
	--text:               #1a1c1a;
	--text-muted:         #414942;
	--text-subtle:        #717971;

	/* Brand */
	--primary:            #144227;
	--primary-mid:        #2d5a3d;
	--secondary:          #7c572d;
	--accent:             #C67D3E;
	--beige:              #D4A574;
	--border:             #c1c9c0;

	/* Footer */
	--footer-bg:          #14110E;
	--footer-text:        #f0f1ec;

	/* Newsletter */
	--newsletter-bg:      #2d5a3d;

	/* Radius */
	--radius-sm:   0.25rem;
	--radius:      0.5rem;
	--radius-lg:   0.75rem;
	--radius-xl:   1.5rem;
	--radius-full: 9999px;

	/* Spacing */
	--space-xs:  4px;
	--space-sm:  8px;
	--space-md:  24px;
	--space-lg:  48px;
	--space-xl:  80px;

	/* Container */
	--container: 1200px;
	--gutter:    24px;

	/* Typography */
	--font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
	--font-sans:  'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

	/* Font sizes */
	--text-display:  clamp(2.25rem, 4vw, 3rem);
	--text-xl:       clamp(1.75rem, 3vw, 2.25rem);
	--text-lg:       clamp(1.375rem, 2vw, 1.75rem);
	--text-md:       1.375rem;
	--text-sm:       1rem;
	--text-xs:       0.875rem;
	--text-label:    0.75rem;

	/* Shadows */
	--shadow-sm: 0 1px 3px rgba(44, 36, 24, 0.06), 0 1px 2px rgba(44, 36, 24, 0.04);
	--shadow-md: 0 4px 12px rgba(44, 36, 24, 0.10), 0 2px 4px rgba(44, 36, 24, 0.06);
	--shadow-lg: 0 8px 24px rgba(44, 36, 24, 0.12), 0 4px 8px rgba(44, 36, 24, 0.08);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

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

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

body {
	font-family:      var(--font-sans);
	font-size:        1rem;
	line-height:      1.6;
	color:            var(--text);
	background-color: var(--bg);
	-webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

button, input, textarea, select {
	font: inherit;
	border: none;
	background: none;
	cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
	font-family:  var(--font-serif);
	font-weight:  600;
	line-height:  1.2;
	color:        var(--primary);
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

.font-serif    { font-family: var(--font-serif); }
.font-sans     { font-family: var(--font-sans); }

/* Sizes */
.text-display  { font-size: var(--text-display); line-height: 1.1; font-weight: 600; }
.text-xl       { font-size: var(--text-xl);      line-height: 1.1; font-weight: 600; }
.text-lg       { font-size: var(--text-lg);      line-height: 1.2; font-weight: 600; }
.text-md       { font-size: var(--text-md);      line-height: 1.3; font-weight: 500; }
.text-sm       { font-size: 1.375rem;            line-height: 1.4; font-weight: 500; }
.text-body-lg  { font-size: 1.125rem;            line-height: 1.6; font-weight: 400; }
.text-body     { font-size: 1rem;                line-height: 1.6; font-weight: 400; }
.text-body-sm  { font-size: 0.875rem;            line-height: 1.5; font-weight: 400; }
.text-label    { font-size: 0.75rem;             line-height: 1.0; font-weight: 600; letter-spacing: 0.05em; }

/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

.container {
	width: 100%;
	max-width: var(--container);
	margin-left:  auto;
	margin-right: auto;
	padding-left:  var(--gutter);
	padding-right: var(--gutter);
}

@media (min-width: 768px) {
	.container { padding-left: 2.5rem; padding-right: 2.5rem; }
}

.site-wrap { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }

/* Two-col layout: 8 + 4 grid */
.content-sidebar-wrap {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--gutter);
	align-items: start;
}

@media (min-width: 1024px) {
	.content-sidebar-wrap {
		grid-template-columns: 1fr 340px;
		gap: 2rem;
	}
}

/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */

.site-header {
	position:   fixed;
	top:        0;
	left:       0;
	right:      0;
	z-index:    100;
	height:     80px;
	background: rgba(245, 240, 232, 0.95);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(212, 165, 116, 0.30);
	box-shadow: var(--shadow-sm);
	transition: background 0.25s, box-shadow 0.25s;
}

.site-header .container {
	display:         flex;
	align-items:     center;
	justify-content: space-between;
	height:          100%;
}

/* Logo */
.site-logo a {
	font-family:  var(--font-serif);
	font-size:    1.5rem;
	font-weight:  700;
	color:        var(--primary-mid);
	letter-spacing: -0.02em;
	transition:   color 0.2s;
}
.site-logo a:hover { color: var(--accent); }

/* Primary nav */
.primary-nav { display: none; }

@media (min-width: 768px) {
	.primary-nav {
		display:     flex;
		align-items: center;
	}
}

.primary-nav ul,
.primary-nav > ul {
	display:     flex;
	align-items: center;
	gap:         2rem;
	list-style:  none;
	margin:      0;
	padding:     0;
}

.primary-nav li { margin: 0; padding: 0; }

.primary-nav a {
	font-family: var(--font-serif);
	font-size:   0.9375rem;
	color:       rgba(26, 28, 26, 0.65);
	font-weight: 500;
	transition:  color 0.2s;
	padding-bottom: 2px;
	display:     block;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
	color: var(--accent);
	border-bottom: 2px solid var(--accent);
}
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
	color: var(--text);
}

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

.search-toggle,
.menu-toggle {
	display:         flex;
	align-items:     center;
	justify-content: center;
	width:           40px;
	height:          40px;
	border-radius:   var(--radius-full);
	background:      transparent;
	transition:      background 0.2s;
}
.search-toggle:hover,
.menu-toggle:hover {
	background: var(--surface-container);
}
.search-toggle svg,
.menu-toggle svg { color: var(--primary-mid); }

.menu-toggle { display: flex; }
@media (min-width: 768px) { .menu-toggle { display: none; } }

/* Search bar */
.header-search {
	display:    none;
	position:   absolute;
	top:        100%;
	left:       0;
	right:      0;
	background: var(--bg);
	border-bottom: 1px solid rgba(212, 165, 116, 0.30);
	padding:    1rem;
	box-shadow: var(--shadow-md);
}
.header-search.is-open { display: block; }

.header-search form {
	display:   flex;
	max-width: var(--container);
	margin:    0 auto;
	gap:       0.5rem;
}
.header-search input[type="search"] {
	flex:           1;
	padding:        0.625rem 1rem;
	background:     var(--surface-card);
	border:         2px solid var(--border);
	border-radius:  var(--radius);
	font-size:      1rem;
	color:          var(--text);
	transition:     border-color 0.2s;
}
.header-search input[type="search"]:focus {
	outline:      none;
	border-color: var(--primary-mid);
}
.header-search button[type="submit"] {
	padding:        0.625rem 1.25rem;
	background:     var(--primary-mid);
	color:          #fff;
	border-radius:  var(--radius);
	font-weight:    600;
	font-size:      0.875rem;
	transition:     background 0.2s, transform 0.1s;
}
.header-search button[type="submit"]:hover  { background: var(--primary); }
.header-search button[type="submit"]:active { transform: scale(0.97); }

/* Mobile menu */
.mobile-nav {
	display:         none;
	position:        fixed;
	inset:           0;
	z-index:         99;
	background:      rgba(26, 28, 26, 0.50);
}
.mobile-nav.is-open { display: block; }

.mobile-nav-inner {
	position:   absolute;
	top:        0;
	right:      0;
	bottom:     0;
	width:      min(320px, 85vw);
	background: var(--bg);
	padding:    6rem 2rem 2rem;
	overflow-y: auto;
}
.mobile-nav-inner ul { display: flex; flex-direction: column; gap: 0; list-style: none; padding: 0; margin: 0; }
.mobile-nav-inner li { margin: 0; padding: 0; }
.mobile-nav-inner a {
	display:        block;
	font-family:    var(--font-serif);
	font-size:      1.125rem;
	font-weight:    500;
	color:          var(--text);
	padding:        1rem 0;
	border-bottom:  1px solid rgba(212, 165, 116, 0.25);
	transition:     color 0.2s;
}
.mobile-nav-inner a:hover { color: var(--accent); }
.mobile-nav-close {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	font-size: 1.5rem;
	color: var(--text-muted);
}

/* Page offset */
.page-offset { margin-top: 80px; }

/* ==========================================================================
   6. HERO / FEATURED POST
   ========================================================================== */

.hero-section {
	margin-top:    var(--space-lg);
	position:      relative;
	border-radius: var(--radius-xl);
	overflow:      hidden;
	box-shadow:    var(--shadow-lg);
	border:        1px solid rgba(193, 201, 192, 0.30);
	cursor:        pointer;
}
.hero-section:hover .hero-image img { transform: scale(1.03); }

.hero-image {
	aspect-ratio: 21/9;
	overflow:     hidden;
}

@media (max-width: 767px) {
	.hero-image { aspect-ratio: 4/3; }
}

.hero-image img {
	width:      100%;
	height:     100%;
	object-fit: cover;
	transition: transform 0.7s ease;
}

.hero-gradient {
	position:   absolute;
	inset:      0;
	background: linear-gradient(0deg, rgba(20,17,14,0.85) 0%, rgba(20,17,14,0) 60%);
}

.hero-content {
	position:       absolute;
	bottom:         0;
	left:           0;
	right:          0;
	padding:        2rem;
	display:        flex;
	flex-direction: column;
	align-items:    flex-start;
}

@media (min-width: 768px) {
	.hero-content { padding: 3rem; }
}

.hero-title {
	font-family:  var(--font-serif);
	font-size:    clamp(1.5rem, 3.5vw, 2.5rem);
	font-weight:  600;
	line-height:  1.15;
	color:        #fff;
	margin-bottom: 0.75rem;
	max-width:    640px;
}

.hero-excerpt {
	font-size:    1.0625rem;
	color:        rgba(255,255,255,0.88);
	line-height:  1.55;
	max-width:    560px;
	margin-bottom: 1.25rem;
	display:      -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow:     hidden;
}

.hero-meta {
	display:     flex;
	flex-wrap:   wrap;
	gap:         1rem;
	color:       rgba(255,255,255,0.75);
	font-size:   0.8125rem;
	font-weight: 500;
}

.hero-meta span {
	display:     flex;
	align-items: center;
	gap:         0.25rem;
}

/* ==========================================================================
   7. CATEGORY TAGS / LABELS
   ========================================================================== */

.cat-tag {
	display:        inline-block;
	padding:        0.25rem 0.75rem;
	font-family:    var(--font-sans);
	font-size:      0.6875rem;
	font-weight:    700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color:          #9ed0ab;
	background:     var(--primary-mid);
	border-radius:  var(--radius-full);
	line-height:    1;
}

.cat-tag-outline {
	display:        inline-block;
	padding:        0.25rem 0.75rem;
	font-family:    var(--font-sans);
	font-size:      0.6875rem;
	font-weight:    700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color:          var(--primary);
	background:     rgba(45, 90, 61, 0.10);
	border:         1px solid rgba(45, 90, 61, 0.25);
	border-radius:  var(--radius-full);
	transition:     background 0.2s, color 0.2s;
}
.cat-tag-outline:hover {
	background: var(--primary-mid);
	color:      #9ed0ab;
}

/* ==========================================================================
   8. ARTICLE GRID
   ========================================================================== */

.section-title {
	font-family:  var(--font-serif);
	font-size:    1.375rem;
	font-weight:  500;
	color:        var(--text);
	margin-bottom: 1.5rem;
}

.article-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.article-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
	.article-grid-3 { grid-template-columns: repeat(3, 1fr); }
	.article-grid-2 { grid-template-columns: repeat(2, 1fr); }
}

/* Article card */
.article-card {
	background:    var(--surface-card);
	border-radius: var(--radius-xl);
	overflow:      hidden;
	border:        1px solid rgba(212, 165, 116, 0.20);
	box-shadow:    var(--shadow-sm);
	display:       flex;
	flex-direction: column;
	transition:    box-shadow 0.2s, transform 0.2s;
}
.article-card:hover {
	box-shadow: var(--shadow-md);
	transform:  translateY(-2px);
}

.article-card-image {
	aspect-ratio: 16/10;
	overflow:     hidden;
	flex-shrink:  0;
}
.article-card-image img {
	width:      100%;
	height:     100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.article-card:hover .article-card-image img { transform: scale(1.04); }

.article-card-body {
	padding:        1.5rem;
	display:        flex;
	flex-direction: column;
	flex-grow:      1;
}

.article-card-cat {
	font-family:    var(--font-sans);
	font-size:      0.6875rem;
	font-weight:    700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color:          var(--primary-mid);
	margin-bottom:  0.5rem;
	display:        block;
}

.article-card-title {
	font-family:  var(--font-serif);
	font-size:    1.0625rem;
	font-weight:  500;
	line-height:  1.35;
	color:        var(--text);
	margin-bottom: 0.5rem;
	transition:   color 0.2s;
}
.article-card:hover .article-card-title { color: var(--accent); }

.article-card-excerpt {
	font-size:  0.875rem;
	color:      var(--text-muted);
	line-height: 1.5;
	margin-bottom: 1rem;
	display:    -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow:   hidden;
	flex-grow:  1;
}

.article-card-footer {
	display:         flex;
	align-items:     center;
	justify-content: space-between;
	font-family:     var(--font-sans);
	font-size:       0.75rem;
	font-weight:     600;
	letter-spacing:  0.05em;
	color:           var(--text-subtle);
	margin-top:      auto;
}

.article-card-footer .read-more {
	color:      var(--accent);
	transition: gap 0.2s;
	display:    flex;
	align-items: center;
	gap:        0.25rem;
	font-weight: 700;
}
.article-card:hover .article-card-footer .read-more { gap: 0.5rem; }

/* ==========================================================================
   9. LOAD MORE / PAGINATION
   ========================================================================== */

.load-more-wrap {
	text-align:  center;
	margin-top:  var(--space-lg);
}

.btn-primary {
	display:        inline-flex;
	align-items:    center;
	gap:            0.5rem;
	padding:        0.75rem 2rem;
	background:     var(--accent);
	color:          #fff;
	font-family:    var(--font-sans);
	font-size:      0.9375rem;
	font-weight:    700;
	border-radius:  var(--radius-lg);
	box-shadow:     0 2px 6px rgba(198, 125, 62, 0.35);
	transition:     background 0.2s, box-shadow 0.2s, transform 0.1s;
	cursor:         pointer;
}
.btn-primary:hover  { background: #b3703a; box-shadow: 0 4px 12px rgba(198, 125, 62, 0.40); }
.btn-primary:active { transform: scale(0.97); }

/* WordPress the_posts_pagination() output:
   <nav class="navigation pagination"><div class="nav-links">
     <a class="page-numbers">...
     <span class="page-numbers current">...
   </div></nav>

   paginate_links(type=list) output:
   <ul class="page-numbers"><li>...</li></ul>
*/

.pagination,
.load-more-wrap {
	margin-top: var(--space-lg);
}

.pagination .screen-reader-text { display: none; }

.pagination .nav-links,
.load-more-wrap .page-numbers {
	display:         flex;
	align-items:     center;
	justify-content: center;
	gap:             0.375rem;
	list-style:      none;
	padding:         0;
	margin:          0;
}

.nav-links a,
.nav-links span,
.page-numbers a,
.page-numbers > li > a,
.page-numbers > li > span {
	display:         inline-flex;
	align-items:     center;
	justify-content: center;
	min-width:       40px;
	height:          40px;
	padding:         0 0.5rem;
	border-radius:   var(--radius);
	font-family:     var(--font-sans);
	font-size:       0.875rem;
	font-weight:     600;
	transition:      background 0.2s, color 0.2s;
}

.nav-links a.page-numbers,
.page-numbers > li > a {
	background: var(--surface-container);
	color:      var(--primary);
}
.nav-links a.page-numbers:hover,
.page-numbers > li > a:hover {
	background: rgba(212, 165, 116, 0.30);
}

.nav-links span.current,
.page-numbers > li > .current {
	background: var(--secondary);
	color:      #fff;
}

.page-numbers li { list-style: none; }

/* ==========================================================================
   10. SIDEBAR
   ========================================================================== */

.sidebar {
	display:        flex;
	flex-direction: column;
	gap:            1.5rem;
}

.widget {
	background:    var(--surface-low);
	border-radius: var(--radius-xl);
	padding:       1.5rem;
	border:        1px solid rgba(212, 165, 116, 0.20);
}

.widget-title {
	font-family:  var(--font-serif);
	font-size:    1.0625rem;
	font-weight:  600;
	color:        var(--text);
	margin-bottom: 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgba(212, 165, 116, 0.30);
}

/* Popular posts widget */
.popular-posts-list { display: flex; flex-direction: column; gap: 1.25rem; }

.popular-post-item {
	display:     flex;
	gap:         0.875rem;
	align-items: flex-start;
}

.popular-post-thumb {
	flex-shrink:   0;
	width:         76px;
	height:        76px;
	border-radius: var(--radius);
	overflow:      hidden;
}
.popular-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.popular-post-thumb .no-image {
	width:      100%;
	height:     100%;
	background: var(--surface-container);
}

.popular-post-info { flex: 1; min-width: 0; }

.popular-post-title {
	font-family:  var(--font-serif);
	font-size:    0.9375rem;
	font-weight:  500;
	color:        var(--text);
	line-height:  1.35;
	margin-bottom: 0.25rem;
	transition:   color 0.2s;
	display:      -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow:     hidden;
}
.popular-post-item:hover .popular-post-title { color: var(--accent); }

.popular-post-meta {
	font-size:   0.6875rem;
	font-weight: 600;
	color:       var(--text-subtle);
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

/* Categories widget */
.categories-list { display: flex; flex-direction: column; }

.categories-list li {
	border-bottom: 1px solid rgba(193, 201, 192, 0.40);
}
.categories-list li:last-child { border-bottom: none; }

.categories-list a {
	display:         flex;
	justify-content: space-between;
	align-items:     center;
	padding:         0.625rem 0;
	font-size:       0.9375rem;
	font-weight:     500;
	color:           var(--text-muted);
	transition:      color 0.2s;
}
.categories-list a:hover { color: var(--accent); }

.categories-list .cat-count {
	font-size:   0.6875rem;
	font-weight: 600;
	color:       var(--text-subtle);
	background:  var(--surface-highest);
	padding:     0.2rem 0.5rem;
	border-radius: var(--radius-sm);
}

/* Newsletter widget */
.widget-newsletter {
	background:    var(--newsletter-bg);
	border-color:  transparent;
	color:         #fff;
}

.widget-newsletter .widget-title {
	color:        #fff;
	border-color: rgba(255,255,255,0.20);
}

.widget-newsletter p {
	font-size:     0.875rem;
	color:         rgba(255,255,255,0.80);
	font-style:    italic;
	margin-bottom: 1rem;
	line-height:   1.55;
}

.newsletter-form { display: flex; flex-direction: column; gap: 0.75rem; }

.newsletter-form input[type="email"] {
	width:        100%;
	padding:      0.75rem 1rem;
	background:   rgba(255,255,255,0.12);
	border:       1px solid rgba(255,255,255,0.22);
	border-radius: var(--radius);
	color:        #fff;
	font-size:    0.9375rem;
	transition:   border-color 0.2s, box-shadow 0.2s;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.50); }
.newsletter-form input[type="email"]:focus {
	outline:      none;
	border-color: var(--accent);
	box-shadow:   0 0 0 3px rgba(198, 125, 62, 0.25);
}

.newsletter-form button {
	padding:        0.75rem 1rem;
	background:     #fff;
	color:          var(--primary-mid);
	font-family:    var(--font-sans);
	font-weight:    700;
	font-size:      0.9375rem;
	border-radius:  var(--radius);
	transition:     background 0.2s, transform 0.1s;
}
.newsletter-form button:hover  { background: #f0f1ec; }
.newsletter-form button:active { transform: scale(0.97); }

/* ==========================================================================
   11. SINGLE ARTICLE
   ========================================================================== */

.article-header { margin-bottom: 2rem; }

/* Breadcrumb */
.breadcrumb {
	display:        flex;
	flex-wrap:      wrap;
	align-items:    center;
	gap:            0.375rem;
	font-family:    var(--font-sans);
	font-size:      0.75rem;
	font-weight:    600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color:          var(--text-subtle);
	margin-bottom:  1.5rem;
}

.breadcrumb a { color: var(--text-subtle); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }

.breadcrumb-sep {
	color:     var(--border);
	font-size: 0.875rem;
}

/* Article title */
.article-title {
	font-family:  var(--font-serif);
	font-size:    clamp(1.75rem, 4vw, 3rem);
	font-weight:  600;
	line-height:  1.1;
	color:        var(--text);
	margin-bottom: 1.25rem;
	max-width:    800px;
}

/* Article meta */
.article-meta {
	display:     flex;
	flex-wrap:   wrap;
	gap:         1.25rem;
	font-size:   0.875rem;
	color:       var(--text-muted);
	padding-bottom: 1.25rem;
	border-bottom:  1px solid rgba(212, 165, 116, 0.35);
	margin-bottom: 2rem;
}

.article-meta-item {
	display:     flex;
	align-items: center;
	gap:         0.3rem;
	font-weight: 500;
}

/* Featured image */
.article-featured-image {
	width:         100%;
	height:        460px;
	border-radius: var(--radius);
	overflow:      hidden;
	margin-bottom: 3rem;
}

.article-featured-image img {
	width:      100%;
	height:     100%;
	object-fit: cover;
}

@media (max-width: 767px) {
	.article-featured-image { height: 240px; }
}

/* Article content */
.article-body {
	font-family:  var(--font-sans);
	font-size:    1.0625rem;
	line-height:  1.75;
	color:        var(--text);
	max-width:    720px;
}

.article-body p { margin-bottom: 1.5rem; }

.article-body > p:first-child {
	font-size:   1.125rem;
	font-style:  italic;
	color:       var(--text-muted);
	line-height: 1.7;
}

.article-body h2 {
	font-family:    var(--font-serif);
	font-size:      1.5rem;
	font-weight:    600;
	line-height:    1.3;
	color:          var(--primary);
	margin-top:     2.5rem;
	margin-bottom:  1rem;
	padding-left:   1rem;
	border-left:    4px solid var(--primary-mid);
}

.article-body h3 {
	font-family:  var(--font-serif);
	font-size:    1.25rem;
	font-weight:  500;
	color:        var(--primary);
	margin-top:   2rem;
	margin-bottom: 0.75rem;
}

.article-body h4 {
	font-size:    1.0625rem;
	font-weight:  600;
	color:        var(--text);
	margin-top:   1.5rem;
	margin-bottom: 0.5rem;
}

.article-body ul,
.article-body ol {
	margin-bottom: 1.5rem;
	padding-left:  1.5rem;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li {
	margin-bottom: 0.5rem;
	line-height:   1.65;
}

.article-body a {
	color:           var(--accent);
	text-decoration: underline;
	text-decoration-color: rgba(198, 125, 62, 0.4);
	transition: text-decoration-color 0.2s, color 0.2s;
}
.article-body a:hover { color: #b3703a; text-decoration-color: #b3703a; }

.article-body blockquote {
	margin:        1.5rem 0;
	padding:       1.25rem 1.5rem;
	background:    var(--surface-low);
	border-left:   4px solid var(--beige);
	border-radius: 0 var(--radius) var(--radius) 0;
	font-style:    italic;
	color:         var(--text-muted);
}

.article-body figure { margin: 2rem 0; }
.article-body figure img {
	width:         100%;
	border-radius: var(--radius-sm);
	border:        1px solid rgba(212, 165, 116, 0.30);
}
.article-body figcaption {
	font-size:  0.8125rem;
	color:      var(--text-subtle);
	font-style: italic;
	text-align: center;
	margin-top: 0.625rem;
}

.article-body table {
	width:         100%;
	border-collapse: collapse;
	margin-bottom: 1.5rem;
	font-size:     0.9375rem;
}
.article-body th,
.article-body td {
	padding:      0.625rem 0.875rem;
	border:       1px solid var(--border);
	text-align:   left;
}
.article-body th {
	background:  var(--surface-container);
	font-weight: 600;
}
.article-body tr:nth-child(even) td { background: var(--surface-low); }

.article-body hr {
	border:     none;
	border-top: 2px solid var(--primary-mid);
	margin:     2.5rem 0;
	opacity:    0.2;
}

.article-body .wp-block-image,
.article-body .aligncenter { text-align: center; }

.article-body .wp-caption-text,
.article-body .wp-element-caption {
	font-size:  0.8125rem;
	color:      var(--text-subtle);
	font-style: italic;
	text-align: center;
	margin-top: 0.5rem;
}

/* ==========================================================================
   12. RELATED ARTICLES
   ========================================================================== */

.related-articles {
	margin-top:    3rem;
	padding-top:   2rem;
	border-top:    3px solid var(--primary-mid);
}

.related-articles-title {
	font-family:  var(--font-serif);
	font-size:    1.75rem;
	font-weight:  600;
	color:        var(--text);
	margin-bottom: 1.5rem;
}

.related-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

@media (min-width: 640px) {
	.related-grid { grid-template-columns: repeat(3, 1fr); }
}

.related-card {
	display:     flex;
	align-items: center;
	gap:         1rem;
	padding:     1rem;
	border:      1px solid rgba(212, 165, 116, 0.35);
	background:  rgba(255,255,255,0.50);
	border-radius: var(--radius);
	transition:  background 0.2s, box-shadow 0.2s;
}
.related-card:hover { background: var(--surface-card); box-shadow: var(--shadow-sm); }

.related-card-thumb {
	flex-shrink:   0;
	width:         80px;
	height:        80px;
	border-radius: var(--radius-sm);
	overflow:      hidden;
}
.related-card-thumb img {
	width:      100%;
	height:     100%;
	object-fit: cover;
	filter:     grayscale(30%);
	transition: filter 0.3s;
}
.related-card:hover .related-card-thumb img { filter: grayscale(0); }

.related-card-title {
	font-family:  var(--font-serif);
	font-size:    0.9375rem;
	font-weight:  500;
	color:        var(--text);
	line-height:  1.35;
	transition:   color 0.2s;
}
.related-card:hover .related-card-title { color: var(--secondary); }

/* ==========================================================================
   13. CATEGORY / ARCHIVE PAGE
   ========================================================================== */

.category-header {
	margin-bottom: 3rem;
	padding-left:  1.5rem;
	border-left:   4px solid var(--primary-mid);
}

.category-header-meta {
	display:     flex;
	align-items: baseline;
	gap:         1rem;
	margin-bottom: 0.75rem;
}

.category-name {
	font-family:  var(--font-serif);
	font-size:    clamp(2rem, 4vw, 3rem);
	font-weight:  600;
	line-height:  1.1;
	color:        var(--primary);
}

.category-count {
	font-family:    var(--font-sans);
	font-size:      0.75rem;
	font-weight:    600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color:          var(--secondary);
	padding-bottom: 0.25rem;
}

.category-description {
	font-size:   1.0625rem;
	color:       var(--text-muted);
	line-height: 1.65;
	max-width:   640px;
}

/* ==========================================================================
   14. PAGE / STATIC
   ========================================================================== */

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

.page-title {
	font-family:  var(--font-serif);
	font-size:    clamp(1.75rem, 4vw, 2.75rem);
	font-weight:  600;
	color:        var(--primary);
	margin-bottom: 0.75rem;
}

.page-content {
	font-size:   1.0625rem;
	line-height: 1.75;
	max-width:   760px;
}

.page-content h2,
.page-content h3 {
	font-family:  var(--font-serif);
	font-weight:  600;
	color:        var(--primary);
	margin-top:   2rem;
	margin-bottom: 0.75rem;
}
.page-content h2 { font-size: 1.5rem; }
.page-content h3 { font-size: 1.25rem; }

.page-content p      { margin-bottom: 1.25rem; }
.page-content ul     { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.page-content ol     { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.page-content li     { margin-bottom: 0.375rem; }
.page-content a      { color: var(--accent); text-decoration: underline; }

/* ==========================================================================
   15. SEARCH
   ========================================================================== */

.search-header { margin-bottom: 2rem; }

.search-title {
	font-family:  var(--font-serif);
	font-size:    1.75rem;
	font-weight:  600;
	color:        var(--primary);
	margin-bottom: 0.5rem;
}

.search-form-wrap {
	margin-bottom: 2.5rem;
}

.search-form-wrap form {
	display:  flex;
	gap:      0.5rem;
	max-width: 560px;
}

.search-form-wrap input[type="search"] {
	flex:          1;
	padding:       0.75rem 1rem;
	background:    var(--surface-card);
	border:        2px solid var(--border);
	border-radius: var(--radius);
	font-size:     1rem;
	color:         var(--text);
	transition:    border-color 0.2s;
}
.search-form-wrap input[type="search"]:focus {
	outline:      none;
	border-color: var(--primary-mid);
}
.search-form-wrap button {
	padding:       0.75rem 1.25rem;
	background:    var(--primary-mid);
	color:         #fff;
	border-radius: var(--radius);
	font-weight:   700;
	font-size:     0.875rem;
	transition:    background 0.2s;
}
.search-form-wrap button:hover { background: var(--primary); }

.no-results-msg {
	font-size:   1.0625rem;
	color:       var(--text-muted);
	padding:     2rem 0;
}

/* ==========================================================================
   16. 404
   ========================================================================== */

.error-404 {
	text-align: center;
	padding:    var(--space-xl) var(--gutter);
}

.error-code {
	font-family:  var(--font-serif);
	font-size:    clamp(5rem, 15vw, 9rem);
	font-weight:  700;
	line-height:  1;
	color:        var(--primary-mid);
	opacity:      0.20;
	display:      block;
	margin-bottom: -1rem;
}

.error-title {
	font-family:  var(--font-serif);
	font-size:    clamp(1.5rem, 3vw, 2.25rem);
	color:        var(--primary);
	margin-bottom: 1rem;
}

.error-body {
	font-size:     1.0625rem;
	color:         var(--text-muted);
	margin-bottom: 2rem;
	max-width:     480px;
	margin-left:   auto;
	margin-right:  auto;
}

/* ==========================================================================
   17. FOOTER
   ========================================================================== */

.site-footer {
	background:   var(--footer-bg);
	border-top:   1px solid rgba(212, 165, 116, 0.15);
	margin-top:   var(--space-xl);
	padding:      3rem 0;
}

.site-footer .container {
	display:         flex;
	flex-direction:  column;
	align-items:     center;
	gap:             1.75rem;
	text-align:      center;
}

@media (min-width: 768px) {
	.site-footer .container {
		flex-direction: row;
		justify-content: space-between;
		text-align:      left;
	}
}

.footer-brand .footer-logo {
	font-family:  var(--font-serif);
	font-size:    1.375rem;
	font-weight:  700;
	color:        var(--footer-text);
	letter-spacing: -0.02em;
	display:      block;
	margin-bottom: 0.25rem;
}

.footer-tagline {
	font-family: var(--font-serif);
	font-size:   0.875rem;
	font-style:  italic;
	color:       #4A8F5F;
}

.footer-links {
	display:   flex;
	flex-wrap: wrap;
	gap:       1.5rem;
	justify-content: center;
}

.footer-links ul {
	display:    flex;
	flex-wrap:  wrap;
	gap:        1.5rem;
	list-style: none;
	margin:     0;
	padding:    0;
}
.footer-links li { margin: 0; padding: 0; }

.footer-links a {
	font-family:    var(--font-serif);
	font-size:      0.8125rem;
	letter-spacing: 0.03em;
	color:          rgba(240, 241, 236, 0.65);
	font-style:     italic;
	transition:     color 0.2s;
}
.footer-links a:hover { color: var(--footer-text); }

.footer-copy {
	font-family:    var(--font-serif);
	font-size:      0.8125rem;
	font-style:     italic;
	color:          rgba(240, 241, 236, 0.45);
	white-space:    nowrap;
}

/* ==========================================================================
   18. UTILITY CLASSES
   ========================================================================== */

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

.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.py-lg  { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }

/* ==========================================================================
   19. RESPONSIVE
   ========================================================================== */

@media (max-width: 767px) {
	.hero-content { padding: 1.5rem; }
	.hero-excerpt { display: none; }
	.article-card-body { padding: 1.125rem; }
	.widget { padding: 1.25rem; }
}

@media (min-width: 768px) and (max-width: 1023px) {
	.content-sidebar-wrap { grid-template-columns: 1fr; }
	.sidebar { flex-direction: row; flex-wrap: wrap; }
	.sidebar .widget { flex: 1 1 300px; }
}
