/* ------------------------------------------------------------
   WARM EDITORIAL SYSTEM — CSS ROOT VARIABLES
   Soft cream, rich black, burnt terracotta, magazine elegance
------------------------------------------------------------ */
:root {
  /* Backgrounds — warm ivory & soft cream */
  --bg-parchment: #fef8f0;
  --bg-soft-cream: #fffcf7;
  --bg-warm-card: #ffffff;
  --bg-deep-section: #faf5ed;
  
  /* Typography — rich black & warm grays */
  --text-rich-black: #1e1b1a;
  --text-secondary: #5c5552;
  --text-muted: #8a7f7a;
  
  /* Accent — burnt terracotta / burnt orange */
  --accent-terracotta: #c95f2b;
  --accent-burnt: #b84a1c;
  --accent-glow: rgba(201, 95, 43, 0.08);
  
  /* Borders & dividers */
  --border-warm: #e8e0d8;
  --border-soft: #efe6dd;
  
  /* Shadows — soft, editorial depth */
  --shadow-sm: 0 6px 14px rgba(0, 0, 0, 0.02), 0 2px 4px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 12px 28px -8px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.01);
  --shadow-lg: 0 25px 35px -12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 30px 40px -16px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--accent-terracotta);
  
  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;
  
  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  
  /* Container */
  --container-max: 1280px;
}

/* DARK MODE — moody editorial */
body.dark {
  --bg-parchment: #13100e;
  --bg-soft-cream: #1a1715;
  --bg-warm-card: #201d1a;
  --bg-deep-section: #171412;
  --text-rich-black: #f2ebe4;
  --text-secondary: #c7bcb2;
  --text-muted: #9c8f86;
  --border-warm: #2f2a26;
  --border-soft: #2a2521;
  --accent-terracotta: #e07a45;
  --accent-burnt: #d16b34;
  --shadow-md: 0 12px 28px -8px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-parchment);
  color: var(--text-rich-black);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.2s ease;
}

/* Global Typography — editorial elegance */
h1, h2, h3, h4, .serif-headline {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text-rich-black);
}

h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

h3 {
  font-size: 1.65rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Navigation */
.navbar {
  background: var(--bg-soft-cream);
  border-bottom: 1px solid var(--border-warm);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(2px);
  transition: background 0.2s;
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1rem var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-rich-black);
  text-decoration: none;
  transition: color 0.2s;
}

.logo:hover {
  color: var(--accent-terracotta);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text-rich-black);
  transition: color 0.2s;
  font-size: 1rem;
}

.nav-links a:hover {
  color: var(--accent-terracotta);
}

.theme-toggle-btn {
  background: var(--bg-warm-card);
  border: 1px solid var(--border-warm);
  border-radius: 40px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s;
  color: var(--text-rich-black);
}

.theme-toggle-btn:hover {
  background: var(--accent-terracotta);
  color: white;
  border-color: var(--accent-terracotta);
  transform: scale(0.96);
}

/* Hero Section */
.hero {
  max-width: var(--container-max);
  margin: var(--space-xl) auto var(--space-lg);
  padding: 0 var(--space-md);
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
  background: var(--bg-warm-card);
  border-radius: 2rem;
  padding: 2.5rem;
  border: 1px solid var(--border-warm);
  box-shadow: var(--shadow-md);
}

.hero-text {
  flex: 1.2;
}

.hero-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-terracotta);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  display: inline-block;
}

.hero-description {
  font-size: 1.2rem;
  margin: var(--space-sm) 0 var(--space-md);
  color: var(--text-secondary);
  max-width: 90%;
}

.hero-tags {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-tags span {
  background: var(--bg-deep-section);
  padding: 0.3rem 1rem;
  border-radius: 40px;
  font-size: 0.8rem;
  color: var(--text-rich-black);
  border: 1px solid var(--border-soft);
}

.hero-image {
  flex: 1;
  min-width: 260px;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hero-image img:hover {
  transform: scale(1.02);
}

/* Section Heading */
.section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: var(--space-xl) 0 var(--space-lg) 0;
}

.heading-accent {
  width: 48px;
  height: 3px;
  background: var(--accent-terracotta);
  border-radius: 4px;
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 2rem;
  margin-bottom: var(--space-xl);
}

.post-card {
  background: var(--bg-warm-card);
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border-warm);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-terracotta);
}

.card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .card-image img {
  transform: scale(1.04);
}

.card-content {
  padding: 1.5rem;
}

.card-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-terracotta);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.card-title a {
  text-decoration: none;
  color: var(--text-rich-black);
  transition: color 0.2s;
}

.card-title a:hover {
  color: var(--accent-terracotta);
}

.card-excerpt {
  margin: 0.75rem 0 1rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-soft);
  padding-top: 0.8rem;
  margin: 0.8rem 0;
}

.read-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-terracotta);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s;
}

.read-link .arrow {
  transition: transform 0.2s;
}

.read-link:hover .arrow {
  transform: translateX(4px);
}

/* Photo Gallery */
.photo-gallery-section {
  background: var(--bg-deep-section);
  margin: var(--space-xl) 0;
  padding: var(--space-xl) 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: var(--space-lg) 0;
}

.gallery-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 1.25rem;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-warm);
}

.gallery-grid img:hover {
  transform: scale(0.98);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-terracotta);
}

.gallery-caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
  letter-spacing: 0.3px;
}

/* Newsletter & Support Cards */
.newsletter-card, .support-card {
  background: var(--bg-warm-card);
  border-radius: 1.75rem;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border-warm);
  box-shadow: var(--shadow-md);
  margin: var(--space-lg) 0;
}

.newsletter-card h3, .support-card h3 {
  font-family: var(--font-serif);
  margin-bottom: 0.5rem;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.newsletter-form input {
  padding: 0.9rem 1.2rem;
  border-radius: 60px;
  border: 1px solid var(--border-warm);
  background: var(--bg-parchment);
  color: var(--text-rich-black);
  width: 280px;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent-terracotta);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.newsletter-form button, .coffee-btn {
  background: var(--accent-terracotta);
  border: none;
  padding: 0.9rem 1.8rem;
  border-radius: 60px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
  text-decoration: none;
  display: inline-block;
}

.newsletter-form button:hover, .coffee-btn:hover {
  background: var(--accent-burnt);
  transform: scale(0.97);
}

.coffee-btn {
  margin-top: 1rem;
  display: inline-block;
}

/* Footer */
footer {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  border-top: 1px solid var(--border-warm);
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: var(--space-xl);
}

/* ============================================
   AFFILIATE SECTION - Warm Editorial Style
   For inside blog posts
   ============================================ */

/* Main affiliate block container */
.post-affiliate-block {
  background: var(--bg-deep-section);
  border: 1px solid var(--border-warm);
  border-radius: 1.5rem;
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all 0.25s ease;
}

/* Decorative top accent line */
.post-affiliate-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  width: 80px;
  height: 3px;
  background: var(--accent-terracotta);
  border-radius: 3px;
}

/* Header area */
.affiliate-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.affiliate-icon {
  font-size: 1.5rem;
}

.affiliate-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-terracotta);
  font-weight: 600;
  background: var(--accent-glow);
  padding: 0.25rem 0.75rem;
  border-radius: 40px;
}

/* Heading inside affiliate block */
.affiliate-heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-rich-black);
}

/* List of affiliate items */
.affiliate-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Individual affiliate item card */
.post-affiliate-item {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-warm-card);
  border-radius: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--border-soft);
  transition: all 0.25s ease;
}

.post-affiliate-item:hover {
  transform: translateX(4px);
  border-color: var(--accent-terracotta);
  box-shadow: var(--shadow-sm);
}

/* Image container */
.affiliate-item-image {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--bg-deep-section);
}

.affiliate-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-affiliate-item:hover .affiliate-item-image img {
  transform: scale(1.05);
}

/* Details container */
.affiliate-item-details {
  flex: 1;
}

.affiliate-item-details h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-rich-black);
}

.affiliate-item-details p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

/* Meta info (rating + price) */
.affiliate-item-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.rating {
  font-size: 0.8rem;
  color: #e6b422;
  letter-spacing: 1px;
}

.price {
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-terracotta);
}

/* Affiliate link button */
.affiliate-item-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-terracotta);
  text-decoration: none;
  transition: gap 0.2s ease;
  border-bottom: 1px dashed var(--accent-terracotta);
  padding-bottom: 2px;
}

.affiliate-item-link:hover {
  gap: 0.75rem;
  color: var(--accent-burnt);
  border-bottom-style: solid;
}

.affiliate-item-link::after {
  content: '→';
  transition: transform 0.2s;
}

.affiliate-item-link:hover::after {
  transform: translateX(3px);
}

/* Footer note / disclosure */
.affiliate-footer-note {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
}

.affiliate-footer-note p {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Dark mode adjustments for affiliate */
body.dark .post-affiliate-block {
  background: var(--bg-deep-section);
}

body.dark .post-affiliate-item {
  background: var(--bg-warm-card);
}

body.dark .rating {
  color: #e6b422;
}

/* Responsive for affiliate section */
@media (max-width: 640px) {
  .post-affiliate-block {
    padding: 1.25rem;
    margin: 1.5rem 0;
  }
  
  .post-affiliate-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .affiliate-item-image {
    width: 100%;
    height: 160px;
  }
  
  .affiliate-heading {
    font-size: 1.3rem;
  }
  
  .affiliate-item-details h4 {
    font-size: 1.1rem;
  }
}

/* Optional badge for featured products */
.affiliate-badge {
  position: absolute;
  top: -10px;
  right: 1.5rem;
  background: var(--accent-terracotta);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.25rem 0.8rem;
  border-radius: 40px;
  letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-grid {
    flex-direction: column;
    padding: 1.5rem;
  }
  .hero-description {
    max-width: 100%;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .nav-container {
    flex-wrap: wrap;
    justify-content: center;
  }
  .section-heading {
    margin-top: var(--space-lg);
  }
}/* ============================================
   POST PAGE STYLES + AFFILIATE SECTION
   ============================================ */

/* Post container */
.post-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.post-header {
  margin-bottom: 2rem;
  text-align: center;
}

.post-category {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-terracotta);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

.post-header h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.post-featured-image {
  border-radius: 1.5rem;
  overflow: hidden;
  margin-bottom: 2rem;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.7;
}

.post-content h2 {
  margin: 2rem 0 1rem;
  font-size: 1.8rem;
}

.post-content p {
  margin-bottom: 1.25rem;
}

.post-tags {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 3rem 0;
}

.post-tags span {
  background: var(--bg-deep-section);
  padding: 0.3rem 1rem;
  border-radius: 40px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-soft);
}

/* AFFILIATE SECTION */
.post-affiliate-block {
  background: var(--bg-deep-section);
  border: 1px solid var(--border-warm);
  border-radius: 1.5rem;
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-md);
  position: relative;
}

.post-affiliate-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  width: 80px;
  height: 3px;
  background: var(--accent-terracotta);
  border-radius: 3px;
}

.affiliate-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.affiliate-icon {
  font-size: 1.5rem;
}

.affiliate-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-terracotta);
  font-weight: 600;
  background: rgba(201, 95, 43, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 40px;
}

.affiliate-heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-rich-black);
}

.affiliate-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-affiliate-item {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-warm-card);
  border-radius: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--border-soft);
  transition: all 0.25s ease;
}

.post-affiliate-item:hover {
  transform: translateX(4px);
  border-color: var(--accent-terracotta);
  box-shadow: var(--shadow-sm);
}

.affiliate-item-image {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 1rem;
  overflow: hidden;
}

.affiliate-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-affiliate-item:hover .affiliate-item-image img {
  transform: scale(1.05);
}

.affiliate-item-details {
  flex: 1;
}

.affiliate-item-details h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-rich-black);
}

.affiliate-item-details p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.affiliate-item-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.rating {
  font-size: 0.8rem;
  color: #e6b422;
  letter-spacing: 1px;
}

.price {
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-terracotta);
}

.affiliate-item-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-terracotta);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent-terracotta);
  padding-bottom: 2px;
}

.affiliate-item-link:hover {
  gap: 0.75rem;
  color: var(--accent-burnt);
  border-bottom-style: solid;
}

.affiliate-item-link::after {
  content: '→';
  transition: transform 0.2s;
}

.affiliate-item-link:hover::after {
  transform: translateX(3px);
}

.affiliate-footer-note {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}

.affiliate-footer-note p {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 640px) {
  .post-affiliate-block {
    padding: 1.25rem;
  }
  
  .post-affiliate-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .affiliate-item-image {
    width: 100%;
    height: 160px;
  }
  
  .post-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
}