/* Fonts are enqueued via functions.php based on Customizer choices. */

/*
 * Default CSS variables. Customizer values override them via wp_add_inline_style().
 * Keep them as fallbacks so the theme renders correctly even if the inline CSS fails.
 */
:root {
  --cream: #FAF7F2;
  --charcoal: #1A1A1A;
  --warm-gray: #6B6560;
  --terracotta: #C4785B;
  --sage: #8B9A7D;
  --gold: #D4A853;
  --white: #FFFFFF;
  --deep-brown: #3D2E2A;
  --cream-dark: #F0EBE3;
  
  --font-display: 'Playfair Display', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-accent: 'Outfit', -apple-system, sans-serif;
  
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;
  
  --transition-fast: 200ms ease;
  --transition-medium: 400ms ease;
  --transition-slow: 600ms ease-out;
  
  --shadow-sm: 0 2px 8px rgba(26, 26, 26, 0.06);
  --shadow-md: 0 8px 30px rgba(26, 26, 26, 0.08);
  --shadow-lg: 0 20px 60px rgba(26, 26, 26, 0.12);
  --shadow-xl: 0 30px 80px rgba(26, 26, 26, 0.16);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--terracotta);
  color: var(--white);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--warm-gray);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--deep-brown);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-sm);
  }
}

/* Typography */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.headline {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

.subhead {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
}

.label {
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Animation Classes */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(26, 26, 26, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}

.logo span {
  color: var(--terracotta);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--terracotta);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.icon-btn:hover {
  background: rgba(26, 26, 26, 0.05);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--charcoal);
}

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: all var(--transition-fast);
}

@media (max-width: 968px) {
  .nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--cream);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  transition: right var(--transition-medium);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu .nav-link {
  font-size: 32px;
  font-family: var(--font-display);
  opacity: 0;
  transform: translateX(20px);
  transition: all var(--transition-medium);
}

.mobile-menu.open .nav-link {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu.open .nav-link:nth-child(1) { transition-delay: 100ms; }
.mobile-menu.open .nav-link:nth-child(2) { transition-delay: 150ms; }
.mobile-menu.open .nav-link:nth-child(3) { transition-delay: 200ms; }
.mobile-menu.open .nav-link:nth-child(4) { transition-delay: 250ms; }
.mobile-menu.open .nav-link:nth-child(5) { transition-delay: 300ms; }

.mobile-menu-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-close span {
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transform: rotate(45deg);
  position: relative;
}

.mobile-menu-close span::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transform: rotate(-90deg);
}

/* Hero */
.hero {
  height: 100vh;
  min-height: 700px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-2xl);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 8s ease-out;
}

.hero:hover .hero-bg img {
  transform: scale(1);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 26, 26, 0.8) 0%,
    rgba(26, 26, 26, 0.3) 50%,
    rgba(26, 26, 26, 0.1) 100%
  );
}

.hero-content {
  max-width: 800px;
  padding: 0 var(--space-md);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  color: var(--white);
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 500;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: var(--space-md);
}

.hero-excerpt {
  font-family: var(--font-serif);
  font-size: 20px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-accent);
  font-size: 14px;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-family: var(--font-accent);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
}

/* Section Styles */
.section {
  padding: var(--space-2xl) 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.section-label {
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: var(--space-xs);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 500;
  line-height: 1.2;
}

.section-link {
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 500;
  color: var(--terracotta);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap var(--transition-fast);
}

.section-link:hover {
  gap: 12px;
}

.section-link svg {
  width: 16px;
  height: 16px;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: var(--space-md);
}

.bento-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.bento-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.bento-item:hover img {
  transform: scale(1.05);
}

.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.bento-item:hover .bento-overlay {
  opacity: 1;
}

.bento-tag {
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 8px;
}

.bento-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 8px;
}

.bento-item:first-child .bento-title {
  font-size: 32px;
}

.bento-meta {
  font-family: var(--font-accent);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 968px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  
  .bento-item:first-child {
    grid-column: span 1;
    grid-row: span 1;
    height: 400px;
  }
  
  .bento-item:not(:first-child) {
    height: 200px;
  }
}

/* Recipe Cards */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-lg);
}

.recipe-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
  cursor: pointer;
}

.recipe-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.recipe-card-image {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.recipe-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.recipe-card:hover .recipe-card-image img {
  transform: scale(1.08);
}

.recipe-card-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--white);
  border-radius: 20px;
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.recipe-card-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
}

.recipe-card-badge.sage::before {
  background: var(--sage);
}

.recipe-card-badge.gold::before {
  background: var(--gold);
}

.recipe-card-content {
  padding: var(--space-md);
}

.recipe-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: var(--space-xs);
  transition: color var(--transition-fast);
}

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

.recipe-card-excerpt {
  font-size: 15px;
  color: var(--warm-gray);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--cream);
}

.recipe-card-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.recipe-card-author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.recipe-card-author-info {
  font-family: var(--font-accent);
  font-size: 13px;
}

.recipe-card-author-name {
  font-weight: 500;
  color: var(--charcoal);
}

.recipe-card-date {
  color: var(--warm-gray);
}

.recipe-card-time {
  font-family: var(--font-accent);
  font-size: 13px;
  color: var(--warm-gray);
  display: flex;
  align-items: center;
  gap: 4px;
}

.recipe-card-time svg {
  width: 14px;
  height: 14px;
}

/* Category Filter */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 30px;
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 500;
  background: var(--white);
  color: var(--warm-gray);
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.filter-btn:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.filter-btn.active {
  background: var(--terracotta);
  color: var(--white);
}

/* About Section */
.about-section {
  background: var(--deep-brown);
  color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 20px;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 2px solid var(--terracotta);
  border-radius: 20px;
  z-index: -1;
}

.about-content {
  max-width: 520px;
}

.about-label {
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: var(--space-sm);
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.about-text {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-md);
  font-style: italic;
}

.about-signature {
  font-family: var(--font-display);
  font-size: 24px;
  font-style: italic;
  color: var(--gold);
}

@media (max-width: 968px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Newsletter */
.newsletter {
  background: linear-gradient(135deg, var(--cream-dark) 0%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(196, 120, 91, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.newsletter-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.newsletter-text {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--warm-gray);
  font-style: italic;
  margin-bottom: var(--space-lg);
}

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

.newsletter-input {
  flex: 1;
  padding: 16px 24px;
  border: 2px solid transparent;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: var(--shadow-md);
}

.newsletter-input::placeholder {
  color: var(--warm-gray);
}

.newsletter-btn {
  padding: 16px 32px;
  background: var(--terracotta);
  color: var(--white);
  border-radius: 50px;
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.newsletter-btn:hover {
  background: var(--deep-brown);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-btn {
    width: 100%;
  }
}

/* Footer */
.footer {
  background: var(--charcoal);
  color: var(--white);
  padding: var(--space-2xl) 0 var(--space-lg);
}

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

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.footer-logo span {
  color: var(--terracotta);
}

.footer-text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--terracotta);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

.footer-column h4 {
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  color: var(--white);
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-accent);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

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

@media (max-width: 968px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
  
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--terracotta);
  color: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-medium);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--deep-brown);
  transform: translateY(-4px);
}

/* Single Post Page */
.post-hero {
  height: 70vh;
  min-height: 500px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-xl);
}

.post-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.post-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.9) 0%, rgba(26, 26, 26, 0.2) 100%);
}

.post-content {
  padding: var(--space-xl) 0;
}

.post-header {
  max-width: 800px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}

.post-category {
  display: inline-block;
  padding: 6px 16px;
  background: var(--terracotta);
  color: var(--white);
  border-radius: 20px;
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.post-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-accent);
  font-size: 14px;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-meta svg {
  width: 16px;
  height: 16px;
}

.post-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.post-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--white);
  object-fit: cover;
}

/* Recipe Details */
.recipe-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-xl);
}

.recipe-detail {
  text-align: center;
  padding: var(--space-md);
}

.recipe-detail-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: 50%;
  color: var(--terracotta);
}

.recipe-detail-icon svg {
  width: 24px;
  height: 24px;
}

.recipe-detail-label {
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 4px;
}

.recipe-detail-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .recipe-details {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Post Body */
.post-body {
  max-width: 720px;
  margin: 0 auto;
}

.post-body p {
  font-size: 18px;
  line-height: 1.9;
  margin-bottom: var(--space-md);
  color: var(--charcoal);
}

.post-body h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  margin: var(--space-lg) 0 var(--space-md);
}

.post-body h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  margin: var(--space-md) 0 var(--space-sm);
}

.post-body img {
  border-radius: 16px;
  margin: var(--space-lg) 0;
}

/* Recipe Layout */
.recipe-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 968px) {
  .recipe-layout {
    grid-template-columns: 1fr;
  }
}

/* Ingredients */
.ingredients-card {
  background: var(--white);
  border-radius: 20px;
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
}

.ingredients-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--cream);
}

.ingredients-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ingredient-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: 12px;
  border-radius: 12px;
  transition: background var(--transition-fast);
  cursor: pointer;
}

.ingredient-item:hover {
  background: var(--cream);
}

.ingredient-item.checked {
  opacity: 0.5;
}

.ingredient-item.checked .ingredient-text {
  text-decoration: line-through;
}

.ingredient-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid var(--warm-gray);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.ingredient-item.checked .ingredient-checkbox {
  background: var(--terracotta);
  border-color: var(--terracotta);
}

.ingredient-checkbox svg {
  width: 14px;
  height: 14px;
  stroke: var(--white);
  opacity: 0;
  transform: scale(0);
  transition: all var(--transition-fast);
}

.ingredient-item.checked .ingredient-checkbox svg {
  opacity: 1;
  transform: scale(1);
}

.ingredient-text {
  font-size: 15px;
  line-height: 1.5;
  transition: all var(--transition-fast);
}

/* Instructions */
.instructions {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.instruction-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--space-md);
  align-items: start;
}

.step-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 500;
  color: var(--terracotta);
  opacity: 0.3;
  line-height: 1;
}

.step-content h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.step-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--warm-gray);
}

.step-image {
  margin-top: var(--space-md);
  border-radius: 16px;
  overflow: hidden;
}

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

/* Blog Page */
.page-header {
  padding: 180px 0 80px;
  background: var(--cream-dark);
  text-align: center;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

.page-subtitle {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--warm-gray);
  font-style: italic;
}

/* Related Posts */
.related-posts {
  border-top: 1px solid var(--cream);
  padding-top: var(--space-xl);
  margin-top: var(--space-xl);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

@media (max-width: 968px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--cream) 25%, var(--cream-dark) 50%, var(--cream) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Grain Overlay */
.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Reading Progress */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--terracotta);
  z-index: 1001;
  transition: width 50ms linear;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ===========================================================================
   WORDPRESS-SPECIFIC ADDITIONS
   =========================================================================== */

/* Screen-reader text / skip link */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px; width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  word-wrap: normal !important;
}
.skip-link:focus {
  background: var(--terracotta);
  color: var(--white);
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  padding: 12px 20px;
  left: var(--space-md);
  top: var(--space-md);
  z-index: 100000;
  border-radius: 30px;
  font-family: var(--font-accent);
}

/* Custom logo (image uploaded via Site Identity) */
.custom-logo-link {
  display: inline-block;
}
.custom-logo {
  max-height: 60px;
  width: auto;
  height: auto;
}

/* Single-column recipe layout when sidebar is hidden */
.recipe-layout-full { grid-template-columns: 1fr !important; }
.recipe-layout-full .post-body { max-width: 800px; margin: 0 auto; }

/* Pagination */
.pagination-wrap a,
.pagination-wrap span.current,
.pagination-wrap span.dots {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 30px;
  font-family: var(--font-accent);
  font-size: 14px;
  color: var(--charcoal);
  text-decoration: none;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.pagination-wrap a:hover { background: var(--terracotta); color: var(--white); }
.pagination-wrap span.current { background: var(--terracotta); color: var(--white); }

/* Comments */
.comments-area {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--cream-dark);
}
.comments-area h2,
.comments-area h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin-bottom: 24px;
}
.comment-list {
  list-style: none;
  padding: 0;
}
.comment-body {
  padding: 20px 0;
  border-bottom: 1px solid var(--cream-dark);
}
.comment-meta { font-family: var(--font-accent); font-size: 13px; color: var(--warm-gray); margin-bottom: 8px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--cream-dark);
  border-radius: 8px;
  font-family: var(--font-body);
  margin-top: 6px;
  background: var(--white);
}
.comment-form label {
  font-family: var(--font-accent);
  font-size: 13px;
  color: var(--warm-gray);
  display: block;
  margin-top: 16px;
}
.comment-form .submit {
  margin-top: 20px;
  padding: 14px 28px;
  background: var(--terracotta);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.comment-form .submit:hover { background: var(--deep-brown); }

/* WordPress core blocks */
.alignwide  { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull  { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-image figcaption { text-align: center; font-family: var(--font-serif); font-style: italic; color: var(--warm-gray); font-size: 14px; margin-top: 8px; }
.wp-block-quote, blockquote {
  border-left: 3px solid var(--terracotta);
  padding-left: 24px;
  margin: 32px 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--warm-gray);
  line-height: 1.6;
}
.wp-block-pullquote {
  padding: 32px 0;
  text-align: center;
  border-top: 2px solid var(--terracotta);
  border-bottom: 2px solid var(--terracotta);
}

/* Footer menu lists (when WP nav menus are used with the Footer walker) */
.footer-column > div > ul,
.footer-column > .menu,
.footer-column ul.menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
}

/* Widget defaults inside the recipe sidebar */
.ingredients-card .widget + .widget { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--cream-dark); }
.ingredients-card .widget_search .search-form { display: flex; gap: 8px; }
.ingredients-card .widget_search .search-field { flex: 1; padding: 10px 14px; border-radius: 30px; border: 1px solid var(--cream-dark); }
.ingredients-card .widget_search .search-submit { padding: 10px 18px; border-radius: 30px; background: var(--terracotta); color: var(--white); border: none; cursor: pointer; }

/* Gutenberg gallery tidy */
.wp-block-gallery { margin: 32px 0; }

/* Post body content */
.post-body a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--deep-brown); }
.post-body ul, .post-body ol { margin: 0 0 24px 24px; font-size: 18px; line-height: 1.8; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: 6px; }

/* Full-width recipe layout fallback */
.recipe-layout-full .post-body > *:first-child { margin-top: 0; }

/* Search overlay (injected by JS) — keep clean WP typography */
.search-overlay .search-container { position: relative; }

/* Customizer preview bump: ensure .active nav underline renders when class is current-menu-item */
.current-menu-item > a.nav-link::after,
a.nav-link.current-menu-item::after { width: 100%; }

/* Helper: hide grain for users who turned it off via body class */
body.no-animations .fade-up { opacity: 1 !important; transform: none !important; transition: none !important; }

