/*
Theme Name: From the Inside Out with Lydia
Theme URI: https://insideoutwlydia.com
Author: Lydia
Author URI: https://insideoutwlydia.com
Description: A warm, farmhouse-inspired lifestyle blog theme for InsideOut with Lydia — featuring recipes, mom hacks, and home decor.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: insideoutwlydia
Tags: blog, lifestyle, farmhouse, custom-menu, featured-images, post-formats, responsive-layout
*/

/* =====================================================
   CSS VARIABLES - Brand Colors & Fonts
   ===================================================== */
:root {
  --color-cream: #f9f5f0;
  --color-warm-white: #fdfaf7;
  --color-sage: #8a9e7a;
  --color-sage-dark: #6b7c5e;
  --color-terracotta: #c4795a;
  --color-terracotta-dark: #a85e42;
  --color-brown: #5c4033;
  --color-charcoal: #3a3530;
  --color-light-tan: #e8ddd2;
  --color-medium-tan: #d4c4b0;
  --color-border: #e0d5c8;
  --color-text: #4a3f36;
  --color-text-light: #7a6c62;
  --color-text-muted: #9e9189;

  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --font-accent: 'Dancing Script', cursive;

  --max-width: 1200px;
  --content-width: 760px;
  --sidebar-width: 300px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 6rem;

  --border-radius: 4px;
  --box-shadow: 0 2px 12px rgba(92, 64, 51, 0.08);
  --box-shadow-hover: 0 6px 24px rgba(92, 64, 51, 0.15);
  --transition: all 0.25s ease;
}

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

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

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

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

a {
  color: var(--color-terracotta);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-terracotta-dark);
}

ul, ol {
  list-style: none;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-brown);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-sm);
}

blockquote {
  border-left: 4px solid var(--color-sage);
  padding: var(--spacing-sm) var(--spacing-md);
  margin: var(--spacing-md) 0;
  background: var(--color-warm-white);
  font-style: italic;
  color: var(--color-text-light);
  font-size: 1.1rem;
}

/* =====================================================
   LAYOUT
   ===================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

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

.site-main {
  flex: 1;
}

/* Content + Sidebar layout */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--spacing-xl);
  padding: var(--spacing-xl) 0;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

.content-area {
  min-width: 0;
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  background-color: var(--color-warm-white);
  border-bottom: 1px solid var(--color-border);
}

/* Top bar */
.header-top {
  background-color: var(--color-cream);
  border-bottom: 1px solid var(--color-border);
  padding: 0.4rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* Branding */
.header-branding {
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: center;
}

.site-title {
  font-family: var(--font-accent);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--color-brown);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 0.25rem;
}

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

.site-title a:hover {
  color: var(--color-terracotta);
}

.site-tagline {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Divider flourish */
.header-divider {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  justify-content: center;
  margin: var(--spacing-xs) 0;
  color: var(--color-sage);
}

.header-divider::before,
.header-divider::after {
  content: '';
  display: block;
  height: 1px;
  width: 80px;
  background: var(--color-medium-tan);
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.main-navigation {
  background-color: var(--color-brown);
  position: sticky;
  top: 0;
  z-index: 100;
}

.main-navigation .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-navigation ul li {
  position: relative;
}

.main-navigation ul li a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--color-light-tan);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition);
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
  color: #fff;
  background-color: rgba(255,255,255,0.1);
}

/* Dropdown */
.main-navigation ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-brown);
  min-width: 200px;
  box-shadow: var(--box-shadow);
  flex-direction: column;
}

.main-navigation ul li:hover > ul {
  display: flex;
}

.main-navigation ul li ul li a {
  padding: 0.75rem 1.25rem;
  font-size: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Mobile hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
  color: #fff;
  font-size: 1.5rem;
  margin-left: auto;
}

/* =====================================================
   HERO / FEATURED BANNER
   ===================================================== */
.hero-banner {
  background: linear-gradient(135deg, #8d6652 0%, #b07d68 100%);
  color: #fff;
  text-align: center;
  padding: 5rem var(--spacing-md); /* ~15% shorter than original 6rem */
  position: relative;
  overflow: visible; /* allow photo cards to spill outside */
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  color: var(--color-light-tan);
  margin-bottom: var(--spacing-xs);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #fff;
  margin-bottom: var(--spacing-sm);
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto var(--spacing-lg);
  line-height: 1.7;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-terracotta);
  color: #fff;
  border-color: var(--color-terracotta);
}

.btn-primary:hover {
  background-color: var(--color-terracotta-dark);
  border-color: var(--color-terracotta-dark);
  color: #fff;
}

.btn-outline {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background-color: rgba(255,255,255,0.15);
  color: #fff;
}

/* =====================================================
   HERO PHOTO STRIP
   ===================================================== */

/* Absolutely position the photo row so it straddles the banner's bottom edge */
.hero-photos {
  position: absolute;
  bottom: -368px;          /* 368px hangs below, ~80px sits inside the banner */
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: var(--max-width);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  z-index: 10;
}

.hero-photo-card {
  height: 448px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(30, 16, 10, 0.45);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}

.hero-photo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(30, 16, 10, 0.55);
}

.hero-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 1rem 1.1rem;
  background: linear-gradient(to top, rgba(40,20,10,0.82) 0%, transparent 100%);
  color: #fff;
  font-family: var(--font-accent);
  font-size: 1.4rem;
  text-align: center;
  letter-spacing: 0.02em;
}

/* The section after the hero needs a top gap to clear the overhanging cards */
.hero-banner + section {
  padding-top: calc(368px + var(--spacing-xl));
}

@media (max-width: 900px) {
  .hero-photos {
    grid-template-columns: repeat(2, 1fr);
    bottom: -836px; /* 2 rows of 448px + gap, minus ~80px overlap */
  }
  .hero-banner + section {
    padding-top: calc(836px + var(--spacing-xl));
  }
}

@media (max-width: 480px) {
  .hero-photos {
    gap: 0.75rem;
    width: calc(100% - 2rem);
  }
}

/* =====================================================
   CATEGORY FEATURE CARDS (Homepage)
   ===================================================== */
.category-features {
  padding: var(--spacing-xl) var(--spacing-md);
  background: var(--color-warm-white);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-eyebrow {
  font-family: var(--font-accent);
  font-size: 1.25rem;
  color: var(--color-terracotta);
  margin-bottom: 0.25rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--color-brown);
}

.section-divider {
  width: 60px;
  height: 2px;
  background: var(--color-sage);
  margin: var(--spacing-sm) auto 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.category-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/5;
  background: var(--color-light-tan);
  transition: var(--transition);
  box-shadow: var(--box-shadow);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--box-shadow-hover);
}

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

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

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(58, 35, 26, 0.75) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--spacing-md);
}

.category-card-label {
  font-family: var(--font-accent);
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.category-card-count {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =====================================================
   BLOG POST GRID
   ===================================================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
}

.post-card {
  background: var(--color-warm-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
}

.post-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-light-tan);
}

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

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

.post-card-body {
  padding: var(--spacing-md);
}

.post-category-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: var(--spacing-xs);
}

.post-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-brown);
  line-height: 1.3;
  margin-bottom: var(--spacing-xs);
}

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

.post-card-title a:hover {
  color: var(--color-terracotta);
}

.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.65;
  margin-bottom: var(--spacing-sm);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.post-meta span + span::before {
  content: '·';
  margin-right: var(--spacing-xs);
}

.read-more {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

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

.read-more:hover {
  color: var(--color-terracotta-dark);
  gap: 0.5rem;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.sidebar {
  position: relative;
}

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

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-brown);
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-xs);
  border-bottom: 2px solid var(--color-light-tan);
}

.widget ul li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

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

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

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

/* About widget */
.widget-about .about-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--spacing-sm);
  background: var(--color-light-tan);
  border: 3px solid var(--color-medium-tan);
}

.widget-about .about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.widget-about p {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.widget-about .about-name {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  color: var(--color-brown);
  text-align: center;
  display: block;
  margin-bottom: 0.25rem;
}

/* =====================================================
   SINGLE POST
   ===================================================== */
.single-post-header {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg);
  max-width: 800px;
  margin: 0 auto;
}

.post-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-brown);
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

.featured-image-wrap {
  aspect-ratio: 16/7;
  overflow: hidden;
  background: var(--color-light-tan);
  margin-bottom: var(--spacing-lg);
  border-radius: var(--border-radius);
}

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

.post-content {
  max-width: var(--content-width);
  font-size: 1.05rem;
  line-height: 1.8;
}

.post-content h2 { margin: var(--spacing-lg) 0 var(--spacing-sm); }
.post-content h3 { margin: var(--spacing-md) 0 var(--spacing-sm); }
.post-content p { margin-bottom: var(--spacing-md); }
.post-content ul, .post-content ol {
  margin: var(--spacing-sm) 0 var(--spacing-md) var(--spacing-md);
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 0.4rem; }

/* Recipe card styling */
.recipe-card {
  background: var(--color-warm-white);
  border: 2px solid var(--color-light-tan);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
}

.recipe-card h3 {
  font-family: var(--font-heading);
  border-bottom: 2px solid var(--color-light-tan);
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.recipe-meta-row {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-md);
}

.recipe-meta-item {
  text-align: center;
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--color-cream);
  border-radius: var(--border-radius);
  flex: 1;
  min-width: 80px;
}

.recipe-meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  display: block;
}

.recipe-meta-value {
  font-weight: 700;
  color: var(--color-brown);
  font-size: 1rem;
}

/* =====================================================
   NEWSLETTER SECTION
   ===================================================== */
.newsletter-section {
  background: var(--color-sage);
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
}

.newsletter-section h2 {
  font-family: var(--font-accent);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: #fff;
  margin-bottom: var(--spacing-xs);
}

.newsletter-section p {
  color: rgba(255,255,255,0.9);
  max-width: 500px;
  margin: 0 auto var(--spacing-md);
}

.newsletter-form {
  display: flex;
  gap: var(--spacing-xs);
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
}

.newsletter-form button {
  padding: 0.85rem 1.5rem;
  background: var(--color-brown);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.newsletter-form button:hover {
  background: var(--color-charcoal);
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--color-charcoal);
  color: rgba(255,255,255,0.75);
  padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-xl);
  max-width: var(--max-width);
  margin: 0 auto var(--spacing-xl);
}

.footer-brand .site-title {
  font-family: var(--font-accent);
  font-size: 2rem;
  color: #fff;
  margin-bottom: var(--spacing-xs);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--spacing-md);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--spacing-sm);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-terracotta);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--spacing-md);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Social icons */
.social-links {
  display: flex;
  gap: var(--spacing-xs);
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background: var(--color-terracotta);
  color: #fff;
}

/* =====================================================
   PAGE BANNER
   ===================================================== */
.page-banner {
  background: var(--color-light-tan);
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.page-banner h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-brown);
}

.page-banner .accent-line {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  color: var(--color-terracotta);
  margin-bottom: 0.25rem;
}

.breadcrumb {
  margin-top: var(--spacing-xs);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

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

.breadcrumb a:hover {
  color: var(--color-terracotta);
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-xl);
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
}

.pagination a {
  background: var(--color-warm-white);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.pagination a:hover,
.pagination .current {
  background: var(--color-terracotta);
  color: #fff;
  border-color: var(--color-terracotta);
}

/* =====================================================
   UTILITY
   ===================================================== */
.text-center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .content-sidebar-wrap {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
  }
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .main-navigation ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--color-brown);
    position: absolute;
    top: 100%;
    left: 0;
  }

  .main-navigation ul.is-open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .main-navigation .container {
    justify-content: space-between;
    padding: 0 var(--spacing-sm);
    position: relative;
  }

  .category-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .newsletter-form {
    flex-direction: column;
  }

  .hero-banner {
    padding: var(--spacing-xl) var(--spacing-md);
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-xl: 2.5rem;
    --spacing-xxl: 4rem;
  }
}
