/* ==========================================================================
   VERDURE — A Garden-Editorial Ghost Theme
   ========================================================================== */

/* ── Design Tokens ── */
:root {
  --forest:       #1b4332;
  --green:        #2d6a4f;
  --sage:         #40916c;
  --mint:         #52b788;
  --pale-green:   #d8f3dc;
  --cream:        #f8f5ee;
  --sand:         #ede8dc;
  --amber:        #d4890a;
  --amber-light:  #f5c842;
  --terracotta:   #b85c38;
  --white:        #ffffff;
  --text:         #1a1a1a;
  --text-muted:   #5a6672;
  --border:       #ddd8cc;
  --bg:           #f8f5ee;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-sm:  0 1px 4px rgba(27,67,50,.08);
  --shadow:     0 4px 20px rgba(27,67,50,.12);
  --shadow-lg:  0 12px 40px rgba(27,67,50,.18);

  --transition: .3s cubic-bezier(.4,0,.2,1);

  --container:      1160px;
  --container-narrow: 740px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: var(--radius-sm); }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--forest);
  font-weight: 700;
}

p { margin-bottom: 1rem; }

/* ── Layout Helpers ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow {
  max-width: var(--container-narrow);
}

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

/* ── Reading Progress Bar ── */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--mint), var(--amber-light));
  z-index: 9999;
  transition: width .1s linear;
  pointer-events: none;
}

/* ── Header & Navigation ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,245,238,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.site-logo-link { flex-shrink: 0; }
.site-logo { height: 44px; width: auto; }
.site-logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--forest);
}

/* Nav */
.site-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: .25rem; }
.nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: .45rem .75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: .3rem;
  left: .75rem;
  right: .75rem;
  height: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
  border-radius: 1px;
}
.nav-link:hover,
.nav-link--active { color: var(--forest); }
.nav-link:hover::after,
.nav-link--active::after { transform: scaleX(1); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  padding: 6px;
  transition: background var(--transition);
  flex-shrink: 0;
}
.menu-toggle:hover { background: var(--pale-green); }
.menu-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}
.menu-toggle.is-active .menu-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active .menu-toggle-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.is-active .menu-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
}
.mobile-menu.is-open { display: block; }
.mobile-nav-list { display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav-link {
  display: block;
  padding: .65rem .75rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav-link:hover,
.mobile-nav-link--active {
  background: var(--pale-green);
  color: var(--forest);
}

/* ── Hero Section ── */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
}

.hero-inner {
  position: relative;
  width: 100%;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
}

.hero-image-wrapper {
  position: absolute;
  inset: 0;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15,35,20,.88) 0%,
    rgba(15,35,20,.55) 50%,
    rgba(15,35,20,.15) 100%
  );
}

.hero-no-image-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--forest) 0%, var(--sage) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 780px;
  padding: 3rem 2rem 3.5rem;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mint);
  background: rgba(82,183,136,.18);
  border: 1px solid rgba(82,183,136,.4);
  padding: .25rem .75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  transition: background var(--transition);
}
.hero-tag:hover { background: rgba(82,183,136,.3); }

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  color: var(--white);
  margin-bottom: .75rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero-title-link { color: inherit; }
.hero-title-link:hover { opacity: .9; }

.hero-excerpt {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 1.25rem;
  max-width: 600px;
  line-height: 1.6;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.hero-author { color: rgba(255,255,255,.85); font-weight: 500; }
.hero-meta-divider { opacity: .5; }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--mint);
  color: var(--forest);
  font-weight: 600;
  font-size: .9rem;
  padding: .7rem 1.4rem;
  border-radius: 100px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.hero-cta:hover {
  background: var(--amber-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.hero-cta-icon { width: 16px; height: 16px; transition: transform var(--transition); }
.hero-cta:hover .hero-cta-icon { transform: translateX(3px); }

/* ── Posts Section ── */
.posts-section {
  padding: 4rem 0;
}

.posts-section-header {
  display: flex;
  align-items: center;
  margin-bottom: 2.5rem;
}

.posts-section-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.5rem;
  color: var(--forest);
}

.leaf-accent {
  display: flex;
  align-items: center;
  color: var(--mint);
  width: 22px;
  height: 22px;
}
.leaf-accent svg { width: 100%; height: 100%; }

/* ── Post Grid ── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

/* ── Post Card ── */
.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.post-card-image-link { display: block; overflow: hidden; }
.post-card-image-wrapper {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--pale-green);
}
.post-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.post-card:hover .post-card-image { transform: scale(1.04); }

.post-card-content {
  padding: 1.25rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--sage);
  background: var(--pale-green);
  padding: .2rem .6rem;
  border-radius: 100px;
  margin-bottom: .75rem;
  align-self: flex-start;
  transition: background var(--transition), color var(--transition);
}
.post-card-tag:hover { background: var(--mint); color: var(--white); }

.post-card-title {
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: .6rem;
  color: var(--forest);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-title-link { color: inherit; transition: color var(--transition); }
.post-card-title-link:hover { color: var(--sage); }

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

.post-card-meta {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .775rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.post-card-author-image {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.post-card-author-name { font-weight: 500; color: var(--text); }
.post-card-meta-divider { opacity: .4; }

.post-card--no-image .post-card-content { padding-top: 1.5rem; }

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.older-posts, .newer-posts {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--green);
  padding: .55rem 1.2rem;
  border: 1.5px solid var(--mint);
  border-radius: 100px;
  transition: background var(--transition), color var(--transition);
}
.older-posts:hover, .newer-posts:hover {
  background: var(--mint);
  color: var(--white);
}
.page-number {
  font-size: .875rem;
  color: var(--text-muted);
}

/* ── Post / Article ── */
.post-wrapper { padding-bottom: 5rem; }

.post-header {
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
}
.post-header .container--narrow { margin: 0 auto; }

.post-primary-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sage);
  background: var(--pale-green);
  padding: .25rem .75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  transition: background var(--transition), color var(--transition);
}
.post-primary-tag:hover { background: var(--mint); color: var(--white); }

.post-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.18;
  color: var(--forest);
  margin-bottom: 1rem;
}

.post-excerpt-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.post-meta { display: flex; justify-content: center; }
.post-author-block {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.post-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--pale-green);
}
.post-author-info { text-align: left; }
.post-author-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--forest);
}
.post-author-name:hover { color: var(--sage); }
.post-meta-secondary {
  font-size: .8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-top: .15rem;
}
.post-meta-dot { opacity: .4; }

/* Feature image */
.post-feature-image-figure {
  margin: 0 0 3rem;
}
.post-feature-image {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
}
.post-feature-caption {
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .75rem;
  font-style: italic;
  padding: 0 1.5rem;
}

/* Post content */
.post-content-wrapper { padding: 0 1.5rem; }
.post-content-wrapper .container--narrow { margin: 0 auto; }

.post-content.gh-content {
  font-size: 1.08rem;
  line-height: 1.8;
  color: #2a2a2a;
}

.gh-content h2 {
  font-size: 1.65rem;
  margin: 2.5rem 0 .75rem;
  color: var(--forest);
}
.gh-content h3 {
  font-size: 1.3rem;
  margin: 2rem 0 .6rem;
  color: var(--green);
}
.gh-content h4 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.gh-content p { margin-bottom: 1.4rem; }

.gh-content a {
  color: var(--sage);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--transition);
}
.gh-content a:hover { color: var(--forest); }

.gh-content ul, .gh-content ol {
  list-style: none;
  margin: 1rem 0 1.4rem 0;
  padding: 0;
}
.gh-content ul li, .gh-content ol li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: .5rem;
}
.gh-content ul li::before {
  content: '';
  position: absolute;
  left: .2rem;
  top: .7rem;
  width: 8px;
  height: 8px;
  background: var(--mint);
  border-radius: 50%;
}
.gh-content ol { counter-reset: ol-counter; }
.gh-content ol li { counter-increment: ol-counter; }
.gh-content ol li::before {
  content: counter(ol-counter) '.';
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 600;
  font-size: .85rem;
}

.gh-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem 1.25rem 2rem;
  border-left: 4px solid var(--mint);
  background: linear-gradient(135deg, var(--pale-green), rgba(248,245,238,.8));
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--forest);
  position: relative;
}
.gh-content blockquote::before {
  content: '"';
  position: absolute;
  top: -.2rem;
  left: .75rem;
  font-size: 3.5rem;
  font-family: var(--font-serif);
  color: var(--mint);
  line-height: 1;
  opacity: .5;
}

.gh-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--mint), transparent);
  margin: 2.5rem 0;
}

.gh-content img {
  border-radius: var(--radius);
  margin: 1.5rem auto;
}

.gh-content code {
  font-family: 'Courier New', Courier, monospace;
  font-size: .88em;
  background: var(--pale-green);
  color: var(--forest);
  padding: .15em .4em;
  border-radius: var(--radius-sm);
}
.gh-content pre {
  background: var(--forest);
  color: var(--pale-green);
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: .9rem;
}
.gh-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* Koenig Cards */
.kg-width-wide { margin: 1.5rem -5%; }
.kg-width-full { margin: 1.5rem calc(50% - 50vw); width: 100vw; }
.kg-image-card img, .kg-gallery-card img { border-radius: var(--radius); }
.kg-gallery-container { display: flex; flex-wrap: wrap; gap: .5rem; }
.kg-gallery-image { flex: 1 1 calc(50% - .25rem); min-width: 200px; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.kg-bookmark-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0;
}
.kg-bookmark-container {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  padding: 1rem;
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
}
.kg-bookmark-container:hover { background: var(--pale-green); }
.kg-bookmark-content { flex: 1; }
.kg-bookmark-title { font-weight: 600; font-size: .95rem; margin-bottom: .25rem; }
.kg-bookmark-description { font-size: .8rem; color: var(--text-muted); }
.kg-bookmark-thumbnail { width: 140px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }

/* Post Tags Footer */
.post-tags-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.post-tags-label {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-right: .25rem;
}
.post-tag-pill {
  display: inline-block;
  font-size: .78rem;
  font-weight: 500;
  color: var(--sage);
  background: var(--pale-green);
  border: 1px solid rgba(82,183,136,.3);
  padding: .28rem .75rem;
  border-radius: 100px;
  transition: background var(--transition), color var(--transition);
}
.post-tag-pill:hover { background: var(--mint); color: var(--white); border-color: transparent; }

/* Author Box */
.post-author-box-wrapper {
  margin: 3rem auto 0;
  padding: 0 1.5rem;
}
.post-author-box-wrapper .container--narrow { margin: 0 auto; }

.post-author-box {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: linear-gradient(135deg, var(--pale-green), var(--white));
  border: 1px solid rgba(82,183,136,.3);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
}
.author-box-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.author-box-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--mint);
  margin-bottom: .2rem;
}
.author-box-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: .35rem;
  transition: color var(--transition);
}
.author-box-name:hover { color: var(--sage); }
.author-box-bio { font-size: .875rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ── Taxonomy (Tag / Author pages) ── */
.taxonomy-header {
  background: linear-gradient(150deg, var(--forest) 0%, var(--green) 100%);
  color: var(--white);
  padding: 4rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.taxonomy-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(82,183,136,.15) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(212,137,10,.1) 0%, transparent 50%);
}
.taxonomy-header-inner { position: relative; }

.taxonomy-cover {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.taxonomy-type-label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--mint);
  margin-bottom: .75rem;
}
.taxonomy-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: .75rem;
}
.taxonomy-description {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  max-width: 540px;
  margin: 0 auto .75rem;
  line-height: 1.65;
}
.taxonomy-post-count {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}

.author-header-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,.3);
  margin: 0 auto 1rem;
}
.author-header-socials {
  display: flex;
  justify-content: center;
  gap: .75rem;
  margin-top: .75rem;
}
.author-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: var(--white);
  transition: background var(--transition);
}
.author-social-link:hover { background: rgba(82,183,136,.5); }

/* ── Page ── */
.page-header {
  padding: 3.5rem 1.5rem 2rem;
  text-align: center;
}
.page-header .container--narrow { margin: 0 auto; }
.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--forest);
  margin-bottom: .75rem;
}
.page-excerpt {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.65;
}

/* ── Error Page ── */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 2rem;
  text-align: center;
}
.error-content {
  margin: 0 auto;
}
.error-illustration {
  margin: 0 auto 2rem;
  width: fit-content;
}
.error-title {
  font-size: 2rem;
  color: var(--forest);
  margin-bottom: .75rem;
}
.error-message {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 600;
  padding: .7rem 1.6rem;
  border-radius: 100px;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.btn--primary {
  background: var(--green);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--forest);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* ── Footer ── */
.site-footer {
  background: var(--forest);
  color: rgba(255,255,255,.8);
  padding: 3rem 1.5rem 0;
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: var(--container);
  margin: 0 auto;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.footer-logo { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.footer-logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}
.footer-logo-link { display: inline-block; margin-bottom: .75rem; }
.footer-description {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
  max-width: 320px;
  margin: 0;
}

.footer-nav { display: flex; align-items: flex-start; justify-content: flex-end; }
.footer-nav-list { display: flex; flex-direction: column; gap: .4rem; text-align: right; }
.footer-nav-link {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
  padding: .2rem 0;
}
.footer-nav-link:hover { color: var(--mint); }

.site-footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.25rem 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copyright, .footer-theme-credit {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  margin: 0;
}
.footer-copyright a { color: rgba(255,255,255,.55); transition: color var(--transition); }
.footer-copyright a:hover { color: var(--mint); }
.footer-theme-name { color: var(--mint); }

.footer-leaf {
  position: absolute;
  bottom: -1rem;
  right: -2rem;
  width: 200px;
  opacity: .15;
  pointer-events: none;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}

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

  .hero-content { padding: 2rem 1.25rem 2.5rem; }
  .hero-title { font-size: clamp(1.6rem, 5vw, 2.5rem); }
  .hero-section { min-height: 420px; }
  .hero-inner { min-height: 420px; }

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

  .posts-section { padding: 2.5rem 0; }

  .post-header { padding: 2rem 1rem 1.5rem; }
  .post-title { font-size: clamp(1.6rem, 5vw, 2.5rem); }

  .post-author-box { flex-direction: column; text-align: center; padding: 1.25rem; }
  .author-box-avatar { margin: 0 auto; }

  .site-footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-nav { justify-content: flex-start; }
  .footer-nav-list { text-align: left; }

  .site-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: .4rem;
  }

  .post-content-wrapper, .post-author-box-wrapper { padding: 0 1rem; }

  .taxonomy-header { padding: 2.5rem 1rem 2rem; }

  .kg-width-wide { margin: 1rem 0; }
  .kg-width-full { margin: 1rem calc(50% - 50vw); }
}

@media (max-width: 480px) {
  .post-card-meta { gap: .3rem; font-size: .72rem; }
  .hero-meta { font-size: .8rem; gap: .4rem; }
  .hero-tag { font-size: .7rem; }
  .hero-cta { font-size: .85rem; padding: .6rem 1.1rem; }

  .pagination { flex-wrap: wrap; gap: .75rem; }
}
