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

:root {
  --cream: #faf6f0;
  --warm-white: #fff9f2;
  --sand: #e8dcc8;
  --terracotta: #c4633a;
  --terracotta-light: #d97c50;
  --deep: #1a1208;
  --muted: #7a6a55;
  --green: #4a7c59;
  --green-light: #6aab7a;
  --accent-yellow: #f0c040;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--deep);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── HERO ── */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1a1208 0%, #2e1f0a 50%, #3d2a10 100%);
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  padding: 0 6vw 80px;
  overflow: hidden;
}

.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  pointer-events: none;
}
.hero-bg-circle.c1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--terracotta), transparent);
  top: -200px; right: -100px;
  animation: pulse 8s ease-in-out infinite;
}
.hero-bg-circle.c2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--accent-yellow), transparent);
  bottom: -100px; left: 10%;
  opacity: 0.06;
  animation: pulse 10s ease-in-out infinite reverse;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.hero-emoji {
  position: absolute;
  font-size: clamp(120px, 25vw, 260px);
  right: 5vw;
  top: 50%;
  transform: translateY(-50%) rotate(-10deg);
  opacity: 0.18;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
  filter: grayscale(20%);
}
@keyframes float {
  0%, 100% { transform: translateY(-50%) rotate(-10deg); }
  50% { transform: translateY(calc(-50% - 18px)) rotate(-8deg); }
}

.hero-content { position: relative; z-index: 2; max-width: 680px; }

.hero-tag {
  display: inline-block;
  background: var(--terracotta);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 24px;
  animation: slideUp 0.6s ease both;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 7vw, 90px);
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 20px;
  animation: slideUp 0.7s ease 0.1s both;
}
.hero-title em {
  font-style: italic;
  color: var(--terracotta-light);
}

.hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(250,246,240,0.65);
  max-width: 480px;
  margin-bottom: 40px;
  animation: slideUp 0.7s ease 0.2s both;
}

.hero-stats {
  display: flex;
  gap: 36px;
  animation: slideUp 0.7s ease 0.3s both;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--accent-yellow);
  line-height: 1;
}
.stat-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(250,246,240,0.45); }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── LAYOUT ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 6vw;
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  padding: 80px 0;
  align-items: start;
}

/* ── SECTION HEADERS ── */
.section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  margin-bottom: 32px;
  color: var(--deep);
}

/* ── STEPS ── */
.steps { display: flex; flex-direction: column; gap: 0; }

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--sand);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.step.visible { opacity: 1; transform: translateY(0); }
.step:last-child { border-bottom: none; }

.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--deep);
  color: var(--cream);
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  top: 2px;
  transition: background 0.3s, transform 0.3s;
}
.step:hover .step-num { background: var(--terracotta); transform: scale(1.1); }

.step-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--deep);
}
.step-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.airfryer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--terracotta), #a84e2a);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  margin-top: 12px;
}

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 28px; }

.card {
  background: var(--warm-white);
  border: 1px solid var(--sand);
  border-radius: 16px;
  padding: 28px;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.card.visible { opacity: 1; transform: translateX(0); }

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-title span { font-size: 22px; }

/* Ingredients */
.ingredient-list { display: flex; flex-direction: column; gap: 0; }
.ingredient {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--sand);
  font-size: 14px;
}
.ingredient:last-child { border-bottom: none; }
.ing-name { color: var(--deep); }
.ing-amount {
  font-weight: 500;
  color: var(--terracotta);
  white-space: nowrap;
  margin-left: 12px;
}

.spice-tag {
  display: inline-block;
  background: rgba(74,124,89,0.12);
  color: var(--green);
  border: 1px solid rgba(74,124,89,0.25);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 4px;
  vertical-align: middle;
}

/* Buy list */
.buy-list { display: flex; flex-direction: column; gap: 8px; }
.buy-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.buy-item::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--terracotta-light);
  flex-shrink: 0;
}

/* Dark card (air fryer etc) */
.dark-card {
  background: linear-gradient(135deg, var(--deep) 0%, #2e1f0a 100%);
  border: none;
  color: var(--cream);
}
.dark-card .card-title { color: var(--cream); }

.af-params { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.af-param {
  display: flex;
  align-items: center;
  gap: 14px;
}
.af-icon {
  width: 40px; height: 40px;
  background: rgba(250,246,240,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.af-label { font-size: 11px; color: rgba(250,246,240,0.5); text-transform: uppercase; letter-spacing: 0.1em; }
.af-value { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--accent-yellow); }
.af-value.small { font-size: 16px; }

.card-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: rgba(250,246,240,0.45);
}

/* Photo card */
.photo-card img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}
.photo-caption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

/* Tips */
.tips-list { display: flex; flex-direction: column; gap: 10px; }
.tip {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}
.tip::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--terracotta-light);
  font-size: 12px;
}

/* ── TIME BAR ── */
.time-bar {
  background: var(--deep);
  padding: 40px 6vw;
}
.time-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  align-items: center;
  flex-wrap: wrap;
}
.time-label-main {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,246,240,0.4);
  margin-bottom: 4px;
}
.time-segments { display: flex; gap: 40px; flex-wrap: wrap; }
.time-seg { display: flex; flex-direction: column; gap: 3px; }
.time-seg-label { font-size: 11px; color: rgba(250,246,240,0.4); }
.time-seg-val {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--accent-yellow);
}
.time-divider { width: 1px; height: 40px; background: rgba(250,246,240,0.12); }
.time-total-val {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  color: var(--cream);
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 40px 6vw;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--sand);
}

/* ══════════════════════════════════════════
   INDEX PAGE
   ══════════════════════════════════════════ */

.site-header {
  background: var(--deep);
  padding: 48px 6vw 56px;
  text-align: center;
}

.site-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 64px);
  color: var(--cream);
  margin-bottom: 8px;
}

.site-header p {
  color: rgba(250,246,240,0.5);
  font-size: 14px;
  letter-spacing: 0.1em;
}

/* Search */
.search-wrap {
  max-width: 480px;
  margin: -24px auto 0;
  padding: 0 6vw;
  position: relative;
  z-index: 2;
}

.search-input {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--sand);
  border-radius: 12px;
  background: var(--warm-white);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--deep);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.search-input::placeholder { color: var(--muted); }
.search-input:focus {
  border-color: var(--terracotta-light);
  box-shadow: 0 0 0 3px rgba(196,99,58,0.12);
}

/* Recipe grid */
.recipe-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 6vw 80px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.recipe-card {
  background: var(--warm-white);
  border: 1px solid var(--sand);
  border-radius: 16px;
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s;
}
.recipe-card.visible { opacity: 1; transform: translateY(0); }
.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26,18,8,0.1);
}

.recipe-card-emoji { font-size: 48px; }

.recipe-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--deep);
  line-height: 1.2;
}

.recipe-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
  font-size: 16px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .main-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { min-height: 70vh; padding-bottom: 60px; }
  .hero-emoji { font-size: 100px; top: 20px; right: 16px; transform: none; }
  .time-segments { gap: 24px; }
  .recipe-grid { grid-template-columns: 1fr; }
}
