﻿/*
Theme Name: The Happy Gardening
Theme URI: https://example.com/the-happy-gardening
Author: The Happy Gardening
Author URI: https://example.com
Description: A modern, premium-feel WordPress blog theme for gardening publishers. Soft green aesthetic, clean cards, sticky navbar, fast and lightweight.
Version: 2.5.3
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: the-happy-gardening
Tags: blog, custom-logo, custom-header, featured-images, right-sidebar, threaded-comments
*/

/* =========================================================
   1. Tokens
   ========================================================= */
:root {
  --hg-green-900: #143a23;
  --hg-green-800: #1a4a2c;
  --hg-green-700: #1f5f3a;
  --hg-green-500: #4caf50;
  --hg-green-300: #a5d6a7;
  --hg-mint: #e8f5e9;
  --hg-cream: #fdf9ef;
  --hg-sun: #f6c85f;
  --hg-clay: #b8663b;
  --hg-ink: #0f1a13;
  --hg-text: #2a3a31;
  --hg-muted: #6b7a72;
  --hg-line: #e3ece5;
  --hg-bg: #f9fafb;
  --hg-white: #ffffff;
  --hg-radius-sm: 10px;
  --hg-radius: 16px;
  --hg-radius-lg: 24px;
  --hg-shadow-xs: 0 2px 6px rgba(20, 58, 35, 0.05);
  --hg-shadow-sm: 0 4px 14px rgba(20, 58, 35, 0.06);
  --hg-shadow: 0 14px 32px rgba(20, 58, 35, 0.10);
  --hg-shadow-lg: 0 24px 60px rgba(20, 58, 35, 0.18);
  --hg-tr: 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --hg-tr-slow: 380ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --hg-font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --hg-font-display: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* =========================================================
   2. Reset & base
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--hg-text);
  background: var(--hg-bg);
  font-family: var(--hg-font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--hg-font-display);
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--hg-green-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--hg-green-700);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.18em;
  transition: color var(--hg-tr);
}

a:hover,
a:focus {
  color: var(--hg-green-500);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--hg-green-500);
  outline-offset: 2px;
}

::selection {
  background: var(--hg-green-500);
  color: #fff;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 8px 14px;
  background: var(--hg-green-900);
  color: #fff;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

.container {
  width: min(1200px, calc(100% - 36px));
  margin-inline: auto;
}

/* =========================================================
   3. Header & nav (sticky w/ scroll state)
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 250, 251, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--hg-tr), border-color var(--hg-tr), box-shadow var(--hg-tr);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--hg-line);
  box-shadow: var(--hg-shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.site-branding {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-title {
  margin: 0;
  font-family: var(--hg-font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--hg-green-900);
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-title .leaf-mark {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 6px;
  vertical-align: -4px;
  background: var(--hg-green-500);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M17 8C8 10 5 16 3 21c5-2 11-5 13-13 1-3 1-6 1-6s-3 0-6 1Z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M17 8C8 10 5 16 3 21c5-2 11-5 13-13 1-3 1-6 1-6s-3 0-6 1Z'/></svg>") center / contain no-repeat;
}

.site-description {
  margin: 0;
  color: var(--hg-muted);
  font-size: 0.85rem;
  line-height: 1.3;
}

.main-navigation ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation a {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  color: var(--hg-ink);
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--hg-tr);
}

.main-navigation a::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 2px;
  background: var(--hg-green-500);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--hg-tr);
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: var(--hg-green-700);
}

.main-navigation a:hover::after,
.main-navigation a:focus::after,
.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after {
  transform: scaleX(1);
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--hg-line);
  border-radius: 12px;
  background: var(--hg-white);
  color: var(--hg-green-900);
  cursor: pointer;
  transition: background var(--hg-tr), border-color var(--hg-tr);
}
.menu-toggle:hover { background: var(--hg-mint); border-color: var(--hg-green-300); }
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* =========================================================
   4. Buttons
   ========================================================= */
.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--hg-green-500);
  color: var(--hg-white);
  font-family: var(--hg-font-body);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(76, 175, 80, 0.30);
  transition: transform var(--hg-tr), background var(--hg-tr), box-shadow var(--hg-tr), color var(--hg-tr);
}

.button:hover,
.button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
button:hover,
input[type="submit"]:hover {
  background: var(--hg-green-700);
  color: var(--hg-white);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(31, 95, 58, 0.40);
}

.button.is-secondary,
.button.secondary {
  background: var(--hg-sun);
  color: var(--hg-ink);
  box-shadow: 0 8px 22px rgba(246, 200, 95, 0.40);
}
.button.is-secondary:hover,
.button.secondary:hover {
  background: #f0b945;
  color: var(--hg-ink);
}

.button.is-ghost {
  background: transparent;
  color: var(--hg-white);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
}
.button.is-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--hg-white);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.85);
}

.button.is-link {
  min-height: 0;
  padding: 0;
  background: transparent;
  color: var(--hg-green-700);
  box-shadow: none;
  font-weight: 700;
}
.button.is-link:hover {
  background: transparent;
  color: var(--hg-green-500);
  transform: translateX(3px);
  box-shadow: none;
}
.button.is-link::after {
  content: "\2192";
  transition: transform var(--hg-tr);
}

/* =========================================================
   5. Hero
   ========================================================= */
.site-main {
  padding: 0 0 64px;
}

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(72px, 10vw, 124px) 0 clamp(56px, 8vw, 92px);
  color: var(--hg-white);
  background-color: var(--hg-green-900);
  background-image:
    linear-gradient(135deg, rgba(20, 58, 35, 0.78) 0%, rgba(31, 95, 58, 0.55) 55%, rgba(76, 175, 80, 0.32) 100%),
    var(--hg-hero-image, radial-gradient(circle at 78% 18%, rgba(246, 200, 95, 0.42), transparent 28%)),
    linear-gradient(135deg, #244c37 0%, #1f5f3a 45%, #4caf50 100%);
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 90%, rgba(255, 255, 255, 0.08), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(246, 200, 95, 0.18), transparent 38%);
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hg-green-300);
  box-shadow: 0 0 0 4px rgba(165, 214, 167, 0.35);
}

.hero-title {
  margin: 0 0 22px;
  color: var(--hg-white);
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.hero-title .accent {
  color: var(--hg-green-300);
}

.hero-lead {
  max-width: 620px;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}

.hero-meta strong {
  display: block;
  color: var(--hg-white);
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 4px;
  font-family: var(--hg-font-display);
}

.hero-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: var(--hg-radius-lg);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--hg-white);
}

.hero-card h2 {
  margin: 0;
  color: var(--hg-white);
  font-size: 1.15rem;
}

.hero-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.97rem;
  line-height: 1.5;
}

.hero-card li::before {
  content: "\2713";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hg-green-500);
  border-radius: 50%;
  color: var(--hg-white);
  font-size: 0.78rem;
  font-weight: 800;
}

/* =========================================================
   6. Sections
   ========================================================= */
.section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.section--tinted {
  background: linear-gradient(180deg, var(--hg-bg) 0%, var(--hg-mint) 100%);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 32px;
}

.section-header > div {
  max-width: 720px;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 14px;
  background: var(--hg-mint);
  border-radius: 999px;
  color: var(--hg-green-700);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-header h2,
.archive-header h1 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  line-height: 1.15;
}

.section-header p,
.archive-description {
  max-width: 640px;
  margin: 8px 0 0;
  color: var(--hg-muted);
  font-size: 1.04rem;
}

/* =========================================================
   7. Post grid & cards
   ========================================================= */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.post-grid.is-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--hg-white);
  border: 1px solid var(--hg-line);
  border-radius: var(--hg-radius);
  box-shadow: var(--hg-shadow-xs);
  transition: transform var(--hg-tr), box-shadow var(--hg-tr), border-color var(--hg-tr);
}

.post-card:hover,
.post-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--hg-shadow);
  border-color: rgba(76, 175, 80, 0.28);
}

.post-card .post-thumbnail {
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--hg-mint), #d6ead8);
  overflow: hidden;
  position: relative;
}

.post-card .post-thumbnail::after {
  content: "ðŸŒ¿";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(31, 95, 58, 0.18);
  font-size: clamp(2.4rem, 6vw, 4rem);
  pointer-events: none;
  transition: transform var(--hg-tr-slow);
}

.post-card .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--hg-tr-slow);
}

.post-card .post-thumbnail:has(img)::after {
  display: none;
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.05);
}

.post-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  padding: 22px 22px 24px;
}

.post-card .post-meta,
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  color: var(--hg-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.post-card .post-category {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 12px;
  background: var(--hg-mint);
  color: var(--hg-green-700);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--hg-tr), color var(--hg-tr);
}

.post-card .post-category:hover {
  background: var(--hg-green-700);
  color: var(--hg-white);
}

.post-card h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.32;
}

.post-card h3 a {
  color: var(--hg-green-900);
  text-decoration: none;
  background-image: linear-gradient(var(--hg-green-500), var(--hg-green-500));
  background-repeat: no-repeat;
  background-size: 0 2px;
  background-position: 0 100%;
  transition: background-size var(--hg-tr), color var(--hg-tr);
}

.post-card h3 a:hover {
  color: var(--hg-green-700);
  background-size: 100% 2px;
}

.post-card .excerpt {
  margin: 0;
  color: var(--hg-muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.post-card .read-more {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hg-green-700);
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  transition: gap var(--hg-tr), color var(--hg-tr);
}

.post-card .read-more::after {
  content: "\2192";
  transition: transform var(--hg-tr);
}

.post-card .read-more:hover {
  color: var(--hg-green-500);
  gap: 10px;
}

.post-card .read-more:hover::after {
  transform: translateX(2px);
}

/* =========================================================
   8. Category pills
   ========================================================= */
.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-links a,
.category-links li > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--hg-white);
  border: 1px solid var(--hg-line);
  border-radius: 999px;
  color: var(--hg-green-900);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform var(--hg-tr), background var(--hg-tr), color var(--hg-tr), border-color var(--hg-tr), box-shadow var(--hg-tr);
}

.category-links a::before,
.category-links li > a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hg-green-500);
  transition: background var(--hg-tr);
}

.category-links a:hover,
.category-links a:focus,
.category-links li > a:hover,
.category-links li > a:focus {
  background: var(--hg-green-700);
  color: var(--hg-white);
  border-color: var(--hg-green-700);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(31, 95, 58, 0.25);
}

.category-links a:hover::before,
.category-links li > a:hover::before {
  background: var(--hg-green-300);
}

/* =========================================================
   9. Subscribe band
   ========================================================= */
.subscribe-band {
  position: relative;
  isolation: isolate;
  margin: clamp(24px, 4vw, 48px) 0;
  padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px);
  border-radius: var(--hg-radius-lg);
  background:
    radial-gradient(circle at 85% 18%, rgba(246, 200, 95, 0.22), transparent 36%),
    linear-gradient(135deg, var(--hg-green-900) 0%, var(--hg-green-700) 100%);
  color: var(--hg-white);
  overflow: hidden;
}

.subscribe-band::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(76, 175, 80, 0.36), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.subscribe-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 36px;
  align-items: center;
}

.subscribe-inner h2 {
  margin: 0 0 8px;
  color: var(--hg-white);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.subscribe-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.subscribe-form {
  display: flex;
  gap: 10px;
}

.subscribe-form input[type="email"] {
  flex: 1;
  background: rgba(255, 255, 255, 0.96);
  border-color: transparent;
}

.subscribe-form button {
  background: var(--hg-sun);
  color: var(--hg-ink);
  box-shadow: 0 8px 22px rgba(246, 200, 95, 0.34);
}

.subscribe-form button:hover {
  background: #f0b945;
  color: var(--hg-ink);
}

/* =========================================================
   10. Forms
   ========================================================= */
input[type="search"],
input[type="email"],
input[type="text"],
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--hg-line);
  border-radius: 999px;
  background: var(--hg-white);
  color: var(--hg-ink);
  font: inherit;
  transition: border-color var(--hg-tr), box-shadow var(--hg-tr);
}

textarea {
  border-radius: var(--hg-radius);
  min-height: 130px;
  padding-top: 14px;
}

input[type="search"]:focus,
input[type="email"]:focus,
input[type="text"]:focus,
textarea:focus {
  border-color: var(--hg-green-500);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.18);
}

/* =========================================================
   11. Sidebar
   ========================================================= */
.content-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  align-items: start;
}

.sidebar .widget {
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid var(--hg-line);
  border-radius: var(--hg-radius);
  background: var(--hg-white);
  box-shadow: var(--hg-shadow-xs);
}

.sidebar .widget-title,
.sidebar h2 {
  margin: 0 0 14px;
  color: var(--hg-green-900);
  font-size: 1.05rem;
  line-height: 1.25;
}

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

.sidebar li + li {
  margin-top: 8px;
}

.sidebar a {
  display: inline-block;
  padding: 6px 0;
  color: var(--hg-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--hg-tr), border-color var(--hg-tr);
}

.sidebar a:hover {
  color: var(--hg-green-700);
  border-bottom-color: var(--hg-green-300);
}

/* =========================================================
   12. Pagination
   ========================================================= */
.pagination {
  margin-top: 40px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.page-numbers {
  min-width: 44px;
  padding: 10px 14px;
  border: 1px solid var(--hg-line);
  border-radius: 999px;
  background: var(--hg-white);
  color: var(--hg-ink);
  text-align: center;
  text-decoration: none;
  transition: all var(--hg-tr);
}

.page-numbers:hover,
.page-numbers:focus {
  background: var(--hg-mint);
  color: var(--hg-green-700);
  border-color: var(--hg-green-300);
}

.page-numbers.current {
  background: var(--hg-green-700);
  color: var(--hg-white);
  border-color: var(--hg-green-700);
}

/* =========================================================
   13. Breadcrumb
   ========================================================= */
.breadcrumb {
  margin-bottom: 22px;
  color: var(--hg-muted);
  font-size: 0.9rem;
}

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

.breadcrumb a:hover {
  color: var(--hg-green-700);
}

.breadcrumb span {
  margin: 0 6px;
  color: var(--hg-green-300);
}

/* =========================================================
   14. Single post
   ========================================================= */
.archive-header,
.page-header {
  margin-bottom: 28px;
}

.single-layout {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) 0;
}

.entry-header {
  margin-bottom: 28px;
}

.entry-header .post-category {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 14px;
  background: var(--hg-mint);
  color: var(--hg-green-700);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.single .entry-title,
.entry-title {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1;
}

.entry-meta {
  font-size: 0.92rem;
}

.entry-meta a {
  color: var(--hg-green-700);
  text-decoration: none;
}

.featured-image {
  margin: 28px 0;
  overflow: hidden;
  border-radius: var(--hg-radius);
  box-shadow: var(--hg-shadow);
}

.featured-image img {
  width: 100%;
  display: block;
}

.entry-content {
  font-size: 1.08rem;
  line-height: 1.78;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.entry-content > * + * {
  margin-top: 1.05em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--hg-green-900);
}

.entry-content h2 {
  margin-top: 2em;
  font-size: 1.85rem;
}

.entry-content h3 {
  margin-top: 1.6em;
  font-size: 1.32rem;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.4em;
}

.entry-content li {
  margin-bottom: 0.45em;
}

.entry-content blockquote {
  margin: 1.6em 0;
  padding: 18px 24px;
  border-left: 4px solid var(--hg-green-500);
  background: var(--hg-mint);
  border-radius: 0 var(--hg-radius) var(--hg-radius) 0;
  color: var(--hg-green-900);
  font-style: italic;
}

.entry-content a {
  color: var(--hg-green-700);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.22em;
}

.entry-content code {
  padding: 2px 8px;
  background: var(--hg-mint);
  border-radius: 6px;
  font-size: 0.92em;
}

.table-of-contents,
.cta-box,
.ad-placeholder {
  border-radius: var(--hg-radius);
}

.table-of-contents {
  margin: 28px 0 32px;
  padding: 22px 24px;
  border: 1px solid var(--hg-line);
  background: var(--hg-mint);
  box-shadow: var(--hg-shadow-xs);
}

.table-of-contents h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hg-green-700);
}

.table-of-contents ol {
  margin: 0;
  padding-left: 22px;
  font-size: 0.97rem;
}

.table-of-contents .toc-level-3 {
  margin-left: 18px;
  font-size: 0.93rem;
}

.table-of-contents a {
  color: var(--hg-green-900);
  text-decoration: none;
}
.table-of-contents a:hover {
  color: var(--hg-green-700);
  text-decoration: underline;
}

.ad-placeholder {
  margin: 32px 0;
  padding: 22px;
  border: 1px dashed var(--hg-green-500);
  background: #fffaf0;
  color: #6b4520;
  font-size: 0.9rem;
  text-align: center;
}

.cta-box {
  margin: 40px 0;
  padding: 32px;
  background: linear-gradient(135deg, var(--hg-green-900), var(--hg-green-700));
  color: var(--hg-white);
}

.cta-box h2 {
  margin: 0 0 8px;
  color: var(--hg-white);
  font-size: 1.5rem;
}

.cta-box p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
}

.related-posts {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--hg-line);
}

.related-posts h2 {
  margin-bottom: 22px;
  color: var(--hg-green-900);
}

.page-content {
  max-width: 880px;
  padding: clamp(24px, 4vw, 48px) 0;
}

/* =========================================================
   15. Footer
   ========================================================= */
.site-footer {
  margin-top: 64px;
  padding: 56px 0 28px;
  background:
    radial-gradient(circle at 90% 0%, rgba(76, 175, 80, 0.18), transparent 36%),
    var(--hg-green-900);
  color: rgba(255, 255, 255, 0.84);
}

.site-footer a {
  color: var(--hg-white);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--hg-tr);
}

.site-footer a:hover {
  border-bottom-color: var(--hg-green-300);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  align-items: start;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.footer-branding .site-title {
  color: var(--hg-white);
}

.footer-branding p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.96rem;
}

.footer-col h3 {
  margin: 0 0 14px;
  color: var(--hg-white);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.88rem;
}

/* =========================================================
   16. Reveal animation
   ========================================================= */
.hg-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hg-reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

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

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

  .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-inline: 18px;
    margin-top: 8px;
    padding: 14px 18px;
    background: var(--hg-white);
    border: 1px solid var(--hg-line);
    border-radius: var(--hg-radius);
    box-shadow: var(--hg-shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--hg-tr), opacity var(--hg-tr);
  }

  .main-navigation.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .main-navigation ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .main-navigation li {
    border-bottom: 1px solid var(--hg-line);
  }

  .main-navigation li:last-child {
    border-bottom: 0;
  }

  .main-navigation a {
    padding: 14px 4px;
    font-size: 1.05rem;
  }

  .main-navigation a::after {
    display: none;
  }

  .hero-grid,
  .subscribe-inner,
  .content-sidebar {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    gap: 36px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 28px, 1200px);
  }

  .hero {
    padding: clamp(72px, 18vw, 110px) 0 clamp(54px, 14vw, 90px);
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    flex: 1 1 auto;
    justify-content: center;
  }

  .post-grid,
  .post-grid.is-two-col,
  .subscribe-form {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

/* =========================================================
   18. Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }

  .hg-reveal {
    opacity: 1;
    transform: none;
  }
}

/* Visual polish: built-in gardening illustrations and author avatar */
.hero-illustration {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--hg-radius);
  background: rgba(255,255,255,.16);
  box-shadow: 0 18px 44px rgba(0,0,0,.18);
  margin-bottom: 6px;
}
.post-card .post-thumbnail::after { display: none; }
.post-card .post-thumbnail .fallback-image,
.featured-image--fallback .fallback-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: var(--hg-mint);
}
.featured-image--fallback {
  aspect-ratio: 16 / 10;
  background: var(--hg-mint);
}
.entry-meta--author { align-items: center; }
.entry-meta--author .author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--hg-white);
  box-shadow: var(--hg-shadow-xs);
  flex: 0 0 auto;
}
.category-links img {
  width: 76px;
  height: 54px;
  object-fit: cover;
  border-radius: calc(var(--hg-radius) - 2px);
  background: var(--hg-mint);
  flex: 0 0 auto;
}
.category-links a:has(img),
.category-links li > a:has(img) {
  gap: 12px;
  min-height: 76px;
  padding: 10px 16px 10px 10px;
  border-radius: var(--hg-radius);
}
.category-links a:has(img)::before,
.category-links li > a:has(img)::before { content: none; }


/* Premium photo fallback cleanup */
.section + .section {
  margin-top: 0;
}
.post-grid {
  align-items: stretch;
}
.post-card .post-thumbnail,
.featured-image--fallback {
  background: #e8f5e9;
}
.hero-illustration {
  filter: saturate(1.05) contrast(1.02);
}
.category-links img {
  filter: saturate(1.05) contrast(1.02);
}



/* Ad slot cleanup */
.ad-slot {
  margin: 28px 0;
  text-align: center;
}
.ad-slot:empty {
  display: none;
}



