/*
Theme Name: Herb & Bonsai
Theme URI: https://bonsai-wbff.org
Author: Kostas
Description: A clean, minimal WordPress blog theme for bonsai, herbs, lifestyle, and gardening content.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: herbandbonsai
Tags: blog, clean, minimal, green, gardening, bonsai
*/

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Colours */
  --color-bg:         #FAFAF7;
  --color-bg-alt:     #F2F5EE;
  --color-surface:    #E8EDE1;
  --color-border:     #D4DBC8;
  --color-text:       #2C2C2C;
  --color-text-muted: #69727D;
  --color-primary:    #4A7C59;
  --color-primary-dk: #355A40;
  --color-secondary:  #8B9E6B;
  --color-hero-bg:    #0D2B1E;
  --color-white:      #FFFFFF;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-size-base:   1.0625rem;   /* 17px */
  --line-height-body: 1.75;
  --line-height-heading: 1.2;

  /* Spacing (4px base grid) */
  --space-1:  0.25rem;   /*  4px */
  --space-2:  0.5rem;    /*  8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */

  /* Layout */
  --content-width: 780px;
  --wide-width:    1200px;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-pill:   999px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.07);
  --shadow-nav:  0 2px 16px rgba(0, 0, 0, 0.08);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dk);
}

ul, ol {
  padding-left: var(--space-6);
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ============================================
   LAYOUT HELPERS
   ============================================ */
.container {
  width: 100%;
  max-width: var(--wide-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--content-width);
}

/* ============================================
   SITE HEADER & NAV
   ============================================ */
.site-header {
  background-color: var(--color-hero-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-nav);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--wide-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}

.site-logo__text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.02em;
  line-height: 1;
}

.site-logo__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-secondary);
  border-radius: 50%;
  margin-bottom: 2px;
}

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

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-nav__list a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.primary-nav__list a:hover,
.primary-nav__list .current-menu-item a {
  color: var(--color-white);
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu drawer */
.mobile-nav {
  display: none;
  background: var(--color-hero-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-6);
}

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

.mobile-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mobile-nav__list a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  display: block;
  padding-block: var(--space-2);
}

.mobile-nav__list a:hover {
  color: var(--color-white);
}

/* ============================================
   HERO — HOME PAGE
   ============================================ */
.hero {
  background-color: var(--color-hero-bg);
  padding-block: var(--space-20) var(--space-16);
  text-align: center;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: var(--line-height-heading);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.hero__description {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ============================================
   CATEGORY PILLS
   ============================================ */
.cat-pill {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-surface);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.cat-pill:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ============================================
   POST CARDS — GRID (index / archive)
   ============================================ */
.posts-section {
  padding-block: var(--space-16);
}

.posts-header {
  margin-bottom: var(--space-10);
}

.posts-header__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: var(--line-height-heading);
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

/* Card */
.post-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.post-card__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card__thumb img {
  transform: scale(1.03);
}

.post-card__thumb--placeholder {
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card__thumb--placeholder svg {
  opacity: 0.3;
  width: 48px;
  height: 48px;
}

.post-card__body {
  padding: var(--space-6);
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

.post-card__date {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.post-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: var(--space-3);
}

.post-card__title a {
  color: inherit;
  text-decoration: none;
}

.post-card__title a:hover {
  color: var(--color-primary);
}

.post-card__excerpt {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-5);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.post-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.post-card__author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.read-more {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease, color 0.2s ease;
}

.read-more:hover {
  color: var(--color-primary-dk);
  gap: 8px;
}

.read-more::after {
  content: '→';
}

/* ============================================
   FEATURED POST (first post, larger)
   ============================================ */
.post-card--featured {
  grid-column: 1 / -1;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  margin-top: var(--space-12);
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: var(--space-3);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* ============================================
   SINGLE POST
   ============================================ */
.single-post {
  padding-block: var(--space-12) var(--space-20);
}

.post-hero {
  background: var(--color-hero-bg);
  padding-block: var(--space-16) var(--space-12);
}

.post-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.post-hero__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.post-hero__byline {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
}

.post-hero__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.post-hero__author-name {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.post-hero__sep {
  opacity: 0.4;
}

/* Featured image */
.post-featured-image {
  margin-bottom: var(--space-12);
}

.post-featured-image figure {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.post-featured-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Article body */
.entry-content {
  max-width: var(--content-width);
  margin-inline: auto;
}

.entry-content > * + * {
  margin-top: var(--space-6);
}

.entry-content h2 {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: var(--line-height-heading);
  margin-top: var(--space-10);
}

.entry-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin-top: var(--space-8);
}

.entry-content p {
  color: var(--color-text);
  line-height: var(--line-height-body);
}

.entry-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content ul,
.entry-content ol {
  padding-left: var(--space-6);
  color: var(--color-text);
}

.entry-content li {
  margin-bottom: var(--space-2);
  line-height: var(--line-height-body);
}

.entry-content blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-6);
  margin-left: 0;
  color: var(--color-text-muted);
  font-style: italic;
  font-size: 1.0625rem;
}

.entry-content blockquote p {
  color: inherit;
}

.entry-content figure {
  margin-block: var(--space-8);
}

.entry-content figure img {
  border-radius: var(--radius-sm);
  width: 100%;
}

.entry-content figcaption {
  margin-top: var(--space-2);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-align: center;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.entry-content th,
.entry-content td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.entry-content th {
  font-weight: 600;
  background: var(--color-surface);
  color: var(--color-text);
}

.entry-content code {
  font-family: 'Courier New', monospace;
  font-size: 0.875em;
  background: var(--color-surface);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--color-primary-dk);
}

.entry-content pre {
  background: var(--color-hero-bg);
  color: #e2e8f0;
  padding: var(--space-6);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 0.875rem;
}

.entry-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* Post tags */
.post-tags {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.post-tags__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tag-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-surface);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 1px solid var(--color-border);
  transition: background 0.2s ease, color 0.2s ease;
}

.tag-pill:hover {
  background: var(--color-surface);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ============================================
   AUTHOR BIO BOX
   ============================================ */
.author-bio {
  margin-top: var(--space-12);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
}

.author-bio__avatar {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.author-bio__name {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.author-bio__desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ============================================
   RELATED POSTS
   ============================================ */
.related-posts {
  margin-top: var(--space-16);
  padding-top: var(--space-10);
  border-top: 1px solid var(--color-border);
}

.related-posts__title {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  margin-top: var(--space-12);
}

.widget {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-surface);
}

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

.widget ul li {
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

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

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

.widget ul a:hover {
  color: var(--color-primary);
}

/* Search widget */
.search-form {
  display: flex;
  gap: var(--space-2);
}

.search-form input[type="search"] {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9375rem;
  background: var(--color-bg);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s ease;
}

.search-form input[type="search"]:focus {
  border-color: var(--color-primary);
}

.search-form button[type="submit"] {
  padding: var(--space-3) var(--space-4);
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.search-form button[type="submit"]:hover {
  background: var(--color-primary-dk);
}

/* ============================================
   PAGE TITLE BANNER (archive, search, page)
   ============================================ */
.page-banner {
  background: var(--color-hero-bg);
  padding-block: var(--space-12) var(--space-10);
  text-align: center;
}

.page-banner__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: var(--line-height-heading);
}

.page-banner__subtitle {
  margin-top: var(--space-3);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ============================================
   STATIC PAGE
   ============================================ */
.page-content {
  padding-block: var(--space-16);
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404 {
  padding-block: var(--space-24);
  text-align: center;
}

.error-404__code {
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 700;
  color: var(--color-surface);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.error-404__title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.error-404__text {
  color: var(--color-text-muted);
  max-width: 440px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-primary-dk);
  color: var(--color-white);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--ghost:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ============================================
   NO RESULTS
   ============================================ */
.no-results {
  padding-block: var(--space-16);
  text-align: center;
}

.no-results__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.no-results__text {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-area {
  margin-top: var(--space-16);
  padding-top: var(--space-10);
  border-top: 1px solid var(--color-border);
  max-width: var(--content-width);
  margin-inline: auto;
}

.comments-title {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-10);
}

.comment {
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.comment-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

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

.comment-author-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text);
}

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

.comment-content p {
  font-size: 0.9375rem;
  line-height: var(--line-height-body);
  color: var(--color-text);
}

/* Comment form */
.comment-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9375rem;
  background: var(--color-white);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s ease;
  margin-bottom: var(--space-4);
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--color-primary);
}

.comment-form textarea {
  min-height: 140px;
  resize: vertical;
}

.comment-form .submit {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.comment-form .submit:hover {
  background: var(--color-primary-dk);
}

/* ============================================
   SITE FOOTER
   ============================================ */
.site-footer {
  background: var(--color-hero-bg);
  padding-block: var(--space-16) var(--space-8);
  margin-top: var(--space-20);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-8);
}

.footer-brand__name {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.footer-brand__tagline {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

.footer-col__title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col ul a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col ul a:hover {
  color: var(--color-white);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
  text-align: center;
}

.footer-bottom__copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom__links {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-bottom__links a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom__links a:hover {
  color: var(--color-white);
}

/* ============================================
   RESPONSIVE — TABLET (min-width: 640px)
   ============================================ */
@media (min-width: 640px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   RESPONSIVE — TABLET (min-width: 768px)
   ============================================ */
@media (min-width: 768px) {
  .hero__title {
    font-size: 3.25rem;
  }

  .post-hero__title {
    font-size: 2.75rem;
  }

  .page-banner__title {
    font-size: 2.5rem;
  }
}

/* ============================================
   RESPONSIVE — DESKTOP (min-width: 1024px)
   ============================================ */
@media (min-width: 1024px) {
  /* Show desktop nav, hide hamburger */
  .primary-nav {
    display: block;
  }

  .nav-toggle {
    display: none;
  }

  .hero {
    padding-block: var(--space-24) var(--space-20);
  }

  .hero__title {
    font-size: 4rem;
  }

  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .post-card--featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .post-card--featured .post-card__thumb {
    aspect-ratio: unset;
    height: 100%;
  }

  .post-hero__title {
    font-size: 3.25rem;
  }

  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ============================================
   WORDPRESS CORE CLASSES (alignment, gallery)
   ============================================ */
.alignleft {
  float: left;
  margin-right: var(--space-6);
  margin-bottom: var(--space-4);
}

.alignright {
  float: right;
  margin-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.aligncenter {
  display: block;
  margin-inline: auto;
}

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

.wp-caption-text {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-2);
}

.sticky {
  /* WP sticky posts — no special visual treatment */
}

.bypostauthor {
  /* WP bypostauthor comment class */
}
