/* ==========================================================================
   Family Dinners - Warm Editorial Design System
   A rustic cookbook aesthetic with modern sophistication
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables - Warm Palette
   -------------------------------------------------------------------------- */
:root {
  /* Primary Colors - Warm Terracotta & Cream */
  --color-primary: #c75b39;
  --color-primary-dark: #a3472a;
  --color-primary-light: #e07a5f;
  
  /* Secondary - Sage & Olive */
  --color-secondary: #7c8c6b;
  --color-secondary-dark: #5e6b50;
  --color-secondary-light: #9aad88;
  
  /* Neutrals - Cream to Charcoal */
  --color-cream: #faf8f5;
  --color-cream-dark: #f2ede6;
  --color-warm-gray: #8a8075;
  --color-charcoal: #3d3833;
  --color-black: #1a1816;
  
  /* Accents */
  --color-gold: #c9a227;
  --color-rose: #d4a5a5;
  
  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Layout */
  --max-width: 1400px;
  --content-width: 800px;
  --border-radius: 2px;
  
  /* Shadows - Warm & Subtle */
  --shadow-sm: 0 1px 2px rgba(61, 56, 51, 0.05);
  --shadow-md: 0 4px 12px rgba(61, 56, 51, 0.08);
  --shadow-lg: 0 8px 24px rgba(61, 56, 51, 0.12);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* --------------------------------------------------------------------------
   Google Fonts Import
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-charcoal);
  background-color: var(--color-cream);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-blend-mode: soft-light;
  background-size: 200px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-black);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  margin-bottom: var(--space-md);
}

/* Decorative text accents */
.text-accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
}

.label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-warm-gray);
}

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

.content-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(138, 128, 117, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-black);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.site-logo::before {
  content: '◈';
  color: var(--color-primary);
  font-size: 1.25rem;
}

.site-logo:hover {
  color: var(--color-primary);
}

.site-nav {
  display: flex;
  gap: var(--space-xl);
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-charcoal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-xs) 0;
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.site-nav a:hover {
  color: var(--color-primary);
}

.site-nav a:hover::after {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Main Content Area
   -------------------------------------------------------------------------- */
.site-main {
  padding: var(--space-2xl) 0;
}

/* --------------------------------------------------------------------------
   Page Header
   -------------------------------------------------------------------------- */
.page-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-xl);
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.page-header h1 {
  margin-bottom: var(--space-sm);
}

.page-header p {
  font-family: var(--font-accent);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-warm-gray);
  max-width: 600px;
  margin: 0 auto;
}

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

.recipe-card {
  background: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.recipe-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid rgba(138, 128, 117, 0.2);
  pointer-events: none;
  z-index: 1;
}

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

.recipe-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

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

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

.recipe-card-meta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 0.8rem;
  color: var(--color-warm-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.recipe-card-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.recipe-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-black);
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}

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

.recipe-card a {
  color: inherit;
  display: block;
}

.recipe-card a:hover {
  color: inherit;
}

/* Staggered grid for visual interest */
@media (min-width: 768px) {
  .recipe-grid.staggered {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .recipe-grid.staggered .recipe-card:nth-child(6n+1),
  .recipe-grid.staggered .recipe-card:nth-child(6n+4) {
    grid-row: span 2;
  }
  
  .recipe-grid.staggered .recipe-card:nth-child(6n+1) .recipe-card-image,
  .recipe-grid.staggered .recipe-card:nth-child(6n+4) .recipe-card-image {
    aspect-ratio: 3/4;
  }
}

/* --------------------------------------------------------------------------
   Recipe Single Page
   -------------------------------------------------------------------------- */
.recipe-hero {
  margin-bottom: var(--space-2xl);
}

.recipe-hero-image {
  position: relative;
  width: 100%;
  max-height: 60vh;
  overflow: hidden;
}

.recipe-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-hero-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(transparent, var(--color-cream));
  pointer-events: none;
}

.recipe-header {
  text-align: center;
  margin-top: -var(--space-2xl);
  position: relative;
  z-index: 2;
  padding: 0 var(--space-lg);
}

.recipe-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-md);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.recipe-meta-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
  max-width: fit-content;
  margin: 0 auto var(--space-xl);
  border: 1px solid rgba(138, 128, 117, 0.15);
}

.recipe-meta-item {
  text-align: center;
}

.recipe-meta-item .label {
  display: block;
  margin-bottom: var(--space-xs);
}

.recipe-meta-item .value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-black);
}

.recipe-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.tag {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: var(--color-cream-dark);
  border: 1px solid rgba(138, 128, 117, 0.2);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-charcoal);
  transition: all var(--transition-fast);
}

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

.recipe-source {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-warm-gray);
  margin-bottom: var(--space-xl);
}

.recipe-source a {
  border-bottom: 1px solid var(--color-primary-light);
  padding-bottom: 1px;
}

/* Recipe Content - Two Column */
.recipe-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-3xl);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (max-width: 900px) {
  .recipe-content-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

.recipe-ingredients {
  background: #fff;
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(138, 128, 117, 0.15);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.recipe-ingredients h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-cream-dark);
}

.recipe-ingredients ul {
  list-style: none;
}

.recipe-ingredients li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-cream-dark);
  font-size: 0.95rem;
  position: relative;
  padding-left: var(--space-md);
}

.recipe-ingredients li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

.recipe-ingredients li:last-child {
  border-bottom: none;
}

.recipe-method h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-cream-dark);
}

.recipe-method ol {
  list-style: none;
  counter-reset: step;
}

.recipe-method li {
  position: relative;
  padding-left: 3rem;
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(138, 128, 117, 0.15);
}

.recipe-method li:last-child {
  border-bottom: none;
}

.recipe-method li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.recipe-method h3 {
  font-size: 1.25rem;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  color: var(--color-secondary-dark);
}

/* Recipe Content - Full Width Elegant Layout */
.recipe-content-full {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.recipe-content-full h2 {
  font-size: 1.5rem;
  margin: var(--space-2xl) 0 var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-cream-dark);
}

.recipe-content-full h2:first-of-type {
  margin-top: 0;
}

/* Ingredients List */
.recipe-content-full ul {
  list-style: none;
  margin-bottom: var(--space-xl);
  background: #fff;
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(138, 128, 117, 0.15);
}

.recipe-content-full ul li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-cream-dark);
  font-size: 0.95rem;
  position: relative;
  padding-left: var(--space-md);
}

.recipe-content-full ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

.recipe-content-full ul li:last-child {
  border-bottom: none;
}

/* Method Steps */
.recipe-content-full ol {
  list-style: none;
  counter-reset: step;
  margin-bottom: var(--space-xl);
}

.recipe-content-full ol li {
  position: relative;
  padding-left: 3.5rem;
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(138, 128, 117, 0.15);
}

.recipe-content-full ol li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.recipe-content-full ol li:last-child {
  border-bottom: none;
}

/* Tips/Notes Section */
.recipe-content-full h3 {
  font-size: 1.25rem;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  color: var(--color-secondary-dark);
}

.recipe-content-full p {
  margin-bottom: var(--space-md);
}

/* --------------------------------------------------------------------------
   Simple Navigation Cards (for homepage without current menu)
   -------------------------------------------------------------------------- */
.simple-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
}

.nav-card {
  background: #fff;
  padding: var(--space-xl);
  border: 1px solid rgba(138, 128, 117, 0.2);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.nav-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.nav-card h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--color-black);
}

.nav-card p {
  color: var(--color-warm-gray);
  margin-bottom: 0;
}

.nav-card:hover h2 {
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Current Menu Section - Compact for Family Use
   -------------------------------------------------------------------------- */
.current-menu-section {
  padding: var(--space-xl) 0;
}

.current-menu-section.compact {
  padding-top: var(--space-lg);
}

.current-menu-section.compact .current-menu-header {
  text-align: left;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(138, 128, 117, 0.2);
}

.current-menu-section.compact .current-menu-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-xs);
}

.current-menu-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-xs);
}

.current-menu-date {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-warm-gray);
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.day-card {
  background: #fff;
  padding: var(--space-md);
  border: 1px solid rgba(138, 128, 117, 0.15);
  transition: all var(--transition-base);
}

.day-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.day-card h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-warm-gray);
  margin-bottom: var(--space-xs);
}

.day-date {
  font-size: 0.8rem;
  color: var(--color-warm-gray);
  margin-bottom: var(--space-sm);
}

.day-recipe {
  margin-top: var(--space-sm);
}

.day-recipe img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  margin-bottom: var(--space-sm);
  border-radius: var(--border-radius);
}

.day-recipe a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-black);
  display: block;
  line-height: 1.3;
}

.day-recipe a:hover {
  color: var(--color-primary);
}

.day-recipe .recipe-meta {
  font-size: 0.75rem;
  color: var(--color-warm-gray);
  margin-top: var(--space-xs);
}

.day-notes {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-warm-gray);
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(138, 128, 117, 0.2);
}

.meal-section-label {
  font-family: var(--font-accent);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-secondary-dark);
  margin: var(--space-lg) 0 var(--space-md);
}

.days-grid--lunch {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.day-card--lunch {
  border-left: 3px solid var(--color-secondary);
}

.no-recipe {
  font-size: 0.85rem;
  color: var(--color-warm-gray);
  font-style: italic;
  margin-top: var(--space-sm);
}

.menu-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid var(--color-primary);
  transition: all var(--transition-base);
  cursor: pointer;
}

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

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

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

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

/* --------------------------------------------------------------------------
   Menu List Page
   -------------------------------------------------------------------------- */
.menu-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-xl);
}

.menu-card {
  background: #fff;
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(138, 128, 117, 0.15);
  transition: all var(--transition-base);
  position: relative;
}

.menu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-primary);
  transform: scaleY(0);
  transition: transform var(--transition-base);
}

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

.menu-card:hover::before {
  transform: scaleY(1);
}

.menu-card a {
  color: inherit;
  display: block;
}

.menu-card h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.menu-card:hover h2 {
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Menu Single Page
   -------------------------------------------------------------------------- */
.menu-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.menu-header h1 {
  margin-bottom: var(--space-sm);
}

.menu-header .menu-date {
  font-family: var(--font-accent);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-warm-gray);
}

.menu-header .menu-source {
  margin-top: var(--space-md);
}

.menu-content h2 {
  font-size: 1.5rem;
  margin: var(--space-2xl) 0 var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-cream-dark);
}

/* Shopping List */
.shopping-list {
  background: #fff;
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(138, 128, 117, 0.15);
  margin-top: var(--space-2xl);
}

.shopping-list h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0;
  border-bottom: 2px solid var(--color-cream-dark);
}

.shopping-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.category {
  background: var(--color-cream);
  padding: var(--space-md);
  border: 1px solid rgba(138, 128, 117, 0.1);
}

.category h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(138, 128, 117, 0.2);
}

.category ul {
  list-style: none;
}

.category li {
  font-size: 0.9rem;
  padding: var(--space-xs) 0;
  border-bottom: 1px dotted rgba(138, 128, 117, 0.3);
}

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

/* --------------------------------------------------------------------------
   Print Actions
   -------------------------------------------------------------------------- */
.print-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-md);
}

.print-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-cream-dark);
  border: 1px solid rgba(138, 128, 117, 0.3);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-charcoal);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-charcoal);
  color: var(--color-cream);
  padding: var(--space-2xl) 0;
  margin-top: var(--space-3xl);
}

.site-footer .container {
  text-align: center;
}

.site-footer p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Taxonomy Terms Grid
   -------------------------------------------------------------------------- */
.terms-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.term-card {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: #fff;
  border: 1px solid rgba(138, 128, 117, 0.2);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  color: var(--color-charcoal);
}

.term-card:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.term-card .term-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.term-card .term-count {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
  :root {
    --color-primary: #333;
    --color-charcoal: #000;
  }
  
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
    line-height: 1.5;
  }
  
  /* Hide navigation and interactive elements */
  .site-header,
  .site-footer,
  .print-actions,
  .print-btn,
  .hero-cta,
  .menu-actions,
  .btn,
  .recipe-source {
    display: none !important;
  }
  
  /* Reset layout */
  .site-main {
    padding: 0;
  }
  
  /* Recipe print styles */
  .recipe-hero-image {
    max-height: 200px;
    page-break-inside: avoid;
  }
  
  .recipe-hero-image::after {
    display: none;
  }
  
  .recipe-header {
    margin-top: 0;
    text-align: left;
  }
  
  .recipe-header h1 {
    font-size: 24pt;
    margin-bottom: 0.5rem;
  }
  
  .recipe-meta-bar {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    box-shadow: none;
    border: 1px solid #ddd;
    padding: 0.5rem;
    margin: 1rem 0;
  }
  
  .recipe-meta-item .value {
    font-size: 12pt;
  }
  
  .recipe-tags {
    justify-content: flex-start;
    page-break-inside: avoid;
  }
  
  .tag {
    border: 1px solid #ddd;
    background: none;
  }
  
  /* Content layout */
  .recipe-content-wrapper {
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
  }
  
  .recipe-ingredients {
    position: static;
    box-shadow: none;
    border: 1px solid #ddd;
    padding: 1rem;
  }
  
  .recipe-method li {
    padding-left: 2.5rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .recipe-method li::before {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 10pt;
  }
  
  /* Shopping list */
  .shopping-list {
    box-shadow: none;
    border: 2px solid #333;
    page-break-before: always;
    margin-top: 2rem;
  }
  
  .shopping-list h2 {
    font-size: 16pt;
    border-bottom: 2px solid #333;
  }
  
  .category {
    background: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
  
  .category h3 {
    color: #333;
    border-bottom: 1px solid #ddd;
  }
  
  /* Menu page */
  .days-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .day-card {
    page-break-inside: avoid;
  }
  
  /* Links */
  a {
    color: #000;
  }
  
  a[href]:after {
    content: '';
  }
  
  /* Page breaks */
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .category, .day-card, .recipe-card {
    page-break-inside: avoid;
  }
}

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .site-nav {
    gap: var(--space-md);
  }
  
  .recipe-grid {
    grid-template-columns: 1fr;
  }
  
  .recipe-content-wrapper {
    grid-template-columns: 1fr;
  }
  
  .recipe-ingredients {
    position: static;
  }
  
  .days-grid {
    grid-template-columns: 1fr;
  }
  
  .shopping-categories {
    grid-template-columns: 1fr;
  }
  
  .menu-list {
    grid-template-columns: 1fr;
  }
}
