/* ============================================
   Regarding Planet — Design System & Styles
   Dark green nature theme: forest, earth, organic
   ============================================ */

/* --- Root: Design Tokens --- */
:root {
  /* Colors */
  --color-primary: #2D6A4F;
  --color-primary-dark: #1B4332;
  --color-primary-light: #52B788;
  --color-primary-bg: rgba(45, 106, 79, 0.08);
  --color-secondary: #40916C;
  --color-secondary-dark: #2D6A4F;
  --color-accent: #D4A373;
  --color-accent-light: #E9C8A0;
  --color-accent-bg: rgba(212, 163, 115, 0.1);
  --color-bg: #F5F7F2;
  --color-bg-alt: #FFFFFF;
  --color-bg-dark: #1B2F1B;
  --color-bg-dark-alt: #0E1F0E;
  --color-text: #1B2F1B;
  --color-text-light: #4A6741;
  --color-text-muted: #6B8F62;
  --color-text-inverse: #F5F7F2;
  --color-heading: #0E1F0E;
  --color-border: #D8E4D0;
  --color-border-light: #E8F0E4;
  --color-shadow: rgba(27, 47, 27, 0.08);
  --color-shadow-hover: rgba(27, 47, 27, 0.15);

  /* Category colors */
  --cat-sustainability: #2D6A4F;
  --cat-nature: #52B788;
  --cat-pollution: #BC6C25;
  --cat-climate: #457B9D;
  --cat-phenomena: #E76F51;

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

  /* Font Sizes */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3.25rem;
  --fs-hero: clamp(2.5rem, 5vw, 4rem);

  /* Font Weights */
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Line Heights */
  --lh-tight: 1.2;
  --lh-normal: 1.6;
  --lh-relaxed: 1.8;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-section: clamp(3rem, 8vw, 6rem);

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --max-width-wide: 1400px;
  --sidebar-width: 320px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px var(--color-shadow);
  --shadow-md: 0 4px 12px var(--color-shadow);
  --shadow-lg: 0 8px 30px var(--color-shadow);
  --shadow-hover: 0 12px 40px var(--color-shadow-hover);
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--color-heading);
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-primary-dark); }

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

::selection {
  background: var(--color-primary-light);
  color: var(--color-bg-alt);
}

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

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

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: var(--fw-semibold);
}
.skip-link:focus {
  top: var(--space-md);
  color: var(--color-text-inverse);
}

.section-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: var(--color-primary-bg);
  color: var(--color-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.js .fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border-light);
  transition: box-shadow var(--transition-base);
}
.header.scrolled {
  box-shadow: var(--shadow-md);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
}
.header__logo {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-heading);
  text-decoration: none;
}
.header__logo span {
  color: var(--color-primary);
}

/* Navigation */
.nav__list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: var(--space-xs);
}
.nav__link {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.nav__link:hover {
  color: var(--color-primary);
  background: var(--color-primary-bg);
}
.nav__link--active {
  color: var(--color-primary);
  background: var(--color-primary-bg);
}
.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: var(--fs-xl);
  color: var(--color-heading);
  cursor: pointer;
  padding: var(--space-sm);
}

/* Dropdown */
.nav__dropdown {
  position: relative;
}
.nav__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-family: var(--font-body);
  cursor: pointer;
}
.nav__dropdown-arrow {
  transition: transform var(--transition-fast);
}
.nav__dropdown-toggle[aria-expanded="true"] .nav__dropdown-arrow {
  transform: rotate(180deg);
}
.nav__dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm);
  list-style: none;
  z-index: 200;
  margin-top: var(--space-sm);
}
.nav__dropdown-menu.open {
  display: block;
}
.nav__dropdown-link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.nav__dropdown-link:hover {
  color: var(--color-primary);
  background: var(--color-primary-bg);
}
.nav__dropdown-link--active {
  color: var(--color-primary);
  background: var(--color-primary-bg);
}

/* --- Hero --- */
.hero {
  padding: var(--space-4xl) 0 var(--space-3xl);
  text-align: center;
  background: linear-gradient(145deg, #0E1F0E 0%, #1B4332 40%, #2D6A4F 70%, #40916C 100%);
  color: var(--color-text-inverse);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(82, 183, 136, 0.15) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -8%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 163, 115, 0.1) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-accent-light);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.hero__title {
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
  color: #FFFFFF;
}
.hero__title span {
  color: #FFFFFF;
}
.hero__subtitle {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: var(--lh-relaxed);
}
.hero__categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.hero__cat-link {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  border-radius: var(--radius-full);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.hero__cat-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}
/* --- Blog Grid --- */
.blog-section {
  padding: var(--space-section) 0;
}
.blog-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
}
.blog-section__title {
  font-size: var(--fs-2xl);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* --- Blog Card --- */
.card {
  position: relative;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}
.card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  cursor: pointer;
}
.card__image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.card:hover .card__image {
  transform: scale(1.03);
}
.card__category {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 2;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.card__body {
  padding: var(--space-lg);
}
.card__title {
  font-size: var(--fs-lg);
  color: var(--color-heading);
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__excerpt {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}
.card__meta-divider {
  width: 3px;
  height: 3px;
  background: var(--color-text-muted);
  border-radius: 50%;
}

/* Featured card (larger) */
.card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.card--featured .card__image-wrapper {
  aspect-ratio: auto;
  min-height: 360px;
}
.card--featured .card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl);
}
.card--featured .card__title {
  font-size: var(--fs-2xl);
  -webkit-line-clamp: 3;
}
.card--featured .card__excerpt {
  font-size: var(--fs-base);
  -webkit-line-clamp: 4;
}

/* --- Post Single --- */
.post-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-2xl);
  padding: var(--space-2xl) 0 var(--space-section);
}

.post-header {
  margin-bottom: var(--space-2xl);
}
.post-header__category {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}
.post-header__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}
.post-header__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  flex-wrap: wrap;
}
.post-header__meta-divider {
  width: 4px;
  height: 4px;
  background: var(--color-border);
  border-radius: 50%;
}

.post-featured-image {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2xl);
}

/* Post content (WP rendered HTML) */
.post-content {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--color-text);
}
.post-content h2 {
  font-size: var(--fs-2xl);
  margin: var(--space-2xl) 0 var(--space-md);
}
.post-content h3 {
  font-size: var(--fs-xl);
  margin: var(--space-xl) 0 var(--space-md);
}
.post-content h4 {
  font-size: var(--fs-lg);
  margin: var(--space-xl) 0 var(--space-sm);
}
.post-content p {
  margin-bottom: var(--space-lg);
}
.post-content img {
  border-radius: var(--radius-md);
  margin: var(--space-xl) 0;
}
.post-content ul, .post-content ol {
  margin: 0 0 var(--space-lg) var(--space-xl);
}
.post-content li {
  margin-bottom: var(--space-sm);
}
.post-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: var(--space-md) var(--space-xl);
  margin: var(--space-xl) 0;
  background: var(--color-primary-bg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-text-light);
}
.post-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-content a:hover {
  color: var(--color-primary-dark);
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-xl) 0;
}
.post-content th, .post-content td {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  text-align: left;
}
.post-content th {
  background: var(--color-bg);
  font-weight: var(--fw-semibold);
}

/* Share buttons */
.share-buttons {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border-light);
  margin-top: var(--space-2xl);
}
.share-buttons__label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-light);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-bg);
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: var(--fs-sm);
  text-decoration: none;
}
.share-btn:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

/* --- Sidebar --- */
.sidebar {
  position: sticky;
  top: calc(60px + var(--space-xl));
  align-self: start;
}
.sidebar__widget {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-sm);
}
.sidebar__widget-title {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-primary-bg);
}
.sidebar__post-list {
  list-style: none;
}
.sidebar__post-item {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border-light);
}
.sidebar__post-item:last-child {
  border-bottom: none;
}
.sidebar__post-link {
  font-size: var(--fs-sm);
  color: var(--color-text);
  line-height: var(--lh-normal);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar__post-link:hover {
  color: var(--color-primary);
}
.sidebar__post-date {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}
.sidebar__cat-list {
  list-style: none;
}
.sidebar__cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border-light);
}
.sidebar__cat-item:last-child {
  border-bottom: none;
}
.sidebar__cat-link {
  font-size: var(--fs-sm);
  color: var(--color-text);
}
.sidebar__cat-link:hover {
  color: var(--color-primary);
}
.sidebar__cat-count {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  background: var(--color-bg);
  padding: 2px var(--space-sm);
  border-radius: var(--radius-full);
}

/* --- Ad Slots --- */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  background: var(--color-bg);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  margin: var(--space-xl) 0;
}
.ad-slot__label {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ad-slot--header { min-height: 90px; max-width: 728px; margin: var(--space-md) auto; }
.ad-slot--sidebar-top { min-height: 250px; }
.ad-slot--sidebar-bottom { min-height: 600px; }
.ad-slot--in-article { margin: var(--space-xl) 0; }
.ad-slot--after-content { max-width: 728px; margin: var(--space-2xl) 0; }
.ad-slot--footer { max-width: 728px; margin: var(--space-xl) auto; }

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: var(--space-lg) 0;
}
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  gap: var(--space-xs);
}
.breadcrumbs__item::after {
  content: '/';
  margin-left: var(--space-xs);
  color: var(--color-border);
}
.breadcrumbs__item:last-child::after {
  display: none;
}
.breadcrumbs__link {
  color: var(--color-text-light);
}
.breadcrumbs__link:hover {
  color: var(--color-primary);
}
.breadcrumbs__current {
  color: var(--color-text);
  font-weight: var(--fw-medium);
}

/* --- Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-2xl) 0;
}
.pagination__link, .pagination__current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  transition: all var(--transition-fast);
}
.pagination__link {
  color: var(--color-text-light);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}
.pagination__link:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: var(--color-primary-bg);
}
.pagination__current {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border: 1px solid var(--color-primary);
}
.pagination__dots {
  color: var(--color-text-muted);
  padding: 0 var(--space-xs);
}

/* --- Category Hero --- */
.category-hero {
  padding: var(--space-3xl) 0 var(--space-xl);
  text-align: center;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border-light);
}
.category-hero__title {
  margin-bottom: var(--space-sm);
}
.category-hero__count {
  font-size: var(--fs-base);
  color: var(--color-text-light);
}

/* --- Related Posts --- */
.related-posts {
  padding: var(--space-section) 0;
  border-top: 1px solid var(--color-border-light);
}
.related-posts__title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-2xl);
}
.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* --- Footer --- */
.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  background: var(--color-bg-dark-alt);
  color: rgba(255,255,255,0.7);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.footer__brand-name {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-md);
}
.footer__brand-name span {
  color: var(--color-primary-light);
}
.footer__brand-desc {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-md);
}
.footer__heading {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-inverse);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}
.footer__list {
  list-style: none;
}
.footer__list li {
  margin-bottom: var(--space-sm);
}
.footer__list a {
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-sm);
  transition: color var(--transition-fast);
}
.footer__list a:hover {
  color: var(--color-primary-light);
}
.footer__bottom {
  text-align: center;
  padding-top: var(--space-2xl);
  margin-top: var(--space-2xl);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.4);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

/* --- 404 Page --- */
.error-page {
  text-align: center;
  padding: var(--space-4xl) 0;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.error-page__code {
  font-size: 8rem;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  color: var(--color-border);
  line-height: 1;
  margin-bottom: var(--space-md);
}
.error-page__title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-md);
}
.error-page__text {
  color: var(--color-text-light);
  margin-bottom: var(--space-2xl);
  max-width: 480px;
}
.error-page__link {
  display: inline-block;
  padding: var(--space-md) var(--space-2xl);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-md);
  font-weight: var(--fw-semibold);
  transition: background var(--transition-fast);
}
.error-page__link:hover {
  background: var(--color-primary-dark);
  color: var(--color-text-inverse);
}

/* --- About / Contact / Static Pages --- */
.page-hero {
  padding: var(--space-3xl) 0;
  text-align: center;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border-light);
}
.page-hero__title {
  margin-bottom: var(--space-sm);
}
.page-hero__subtitle {
  font-size: var(--fs-lg);
  color: var(--color-text-light);
}

.page-content {
  padding: var(--space-section) 0;
}
.page-content section {
  margin-bottom: var(--space-3xl);
}
.page-content h2 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-lg);
}
.page-content p {
  font-size: var(--fs-md);
  color: var(--color-text-light);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-lg);
}
.page-content h3 {
  font-size: var(--fs-xl);
  margin: var(--space-xl) 0 var(--space-md);
}
.page-content ul, .page-content ol {
  margin: 0 0 var(--space-lg) var(--space-xl);
  font-size: var(--fs-md);
  color: var(--color-text-light);
  line-height: var(--lh-relaxed);
}
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li {
  margin-bottom: var(--space-sm);
}
.page-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-content a:hover {
  color: var(--color-primary-dark);
}

/* Contact form */
.contact-form {
  max-width: 640px;
}
.form-group {
  margin-bottom: var(--space-lg);
}
.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-heading);
  margin-bottom: var(--space-sm);
}
.form-input, .form-textarea {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-text);
  background: var(--color-bg-alt);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-bg);
}
.form-textarea {
  resize: vertical;
  min-height: 150px;
}
.form-btn {
  padding: var(--space-md) var(--space-2xl);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.form-btn:hover {
  background: var(--color-primary-dark);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .card--featured { grid-template-columns: 1fr; }
  .card--featured .card__image-wrapper { min-height: 280px; }
  .post-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .related-posts__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav__list { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-bg-alt); border-top: 1px solid var(--color-border-light); box-shadow: var(--shadow-lg); padding: var(--space-md); z-index: 99; }
  .nav__list.open { display: flex; }
  .nav__toggle { display: block; }
  .nav__link { padding: var(--space-md); border-radius: var(--radius-md); }
  .nav__dropdown-menu { position: static; transform: none; box-shadow: none; border: none; padding: 0 0 0 var(--space-md); margin-top: 0; min-width: auto; }
  .nav__dropdown-menu.open { display: block; }
  .nav__dropdown-link { padding: var(--space-sm) var(--space-md); }
  .blog-grid { grid-template-columns: 1fr; }
  .hero { padding: var(--space-2xl) 0; }
  .hero::before, .hero::after { display: none; }
  h1 { font-size: var(--fs-2xl); }
  h2 { font-size: var(--fs-xl); }
  .hero__categories { gap: var(--space-xs); }
  .hero__cat-link { font-size: var(--fs-xs); padding: 6px var(--space-sm); }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .related-posts__grid { grid-template-columns: 1fr; }
  .share-buttons { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-md); }
  .card__body { padding: var(--space-md); }
  .hero__subtitle { font-size: var(--fs-base); }
  .post-header__meta { font-size: var(--fs-xs); }
  .error-page__code { font-size: 4rem; }
}

/* --- Focus Styles (Accessibility) --- */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.card__link:focus-visible {
  outline-offset: -2px;
  border-radius: var(--radius-lg);
}
.skip-link:focus { outline: none; }

/* --- WP Content Table Overflow --- */
.post-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.post-content img { max-width: 100% !important; height: auto !important; }

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; }
}

/* --- Print --- */
@media print {
  .header, .footer, .sidebar, .share-buttons, .ad-slot,
  .nav__toggle, .pagination, .related-posts,
  .breadcrumbs, .skip-link { display: none !important; }
  .post-layout { display: block; }
  body { font-size: 12pt; color: #000; background: #fff; }
  .post-content a { text-decoration: underline; }
  .post-content a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
