/* Slow Cooker Recipes — design tokens + base */
:root {
  --bg: #fbf8f3;
  --paper: #ffffff;
  --ink-900: #1a1612;
  --ink-700: #3d3530;
  --ink-500: #6b6056;
  --ink-300: #a89f93;
  --ink-100: #ece6dc;
  --line: #e3dccf;
  --brand-700: #8b3a1f;
  --brand-600: #a04525;
  --brand-500: #c25530;
  --brand-100: #f4e4d8;
  --accent: #4a6741;
  --gold: #c9994a;
  --shadow-sm: 0 1px 2px rgba(26, 22, 18, 0.04);
  --shadow-md: 0 4px 14px rgba(26, 22, 18, 0.08);
  --shadow-lg: 0 12px 36px rgba(26, 22, 18, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container: 1180px;
  --serif: "Fraunces", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-900);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-700); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-500); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink-900); margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--ink-700); }
.lede { font-size: 1.15rem; color: var(--ink-700); line-height: 1.55; max-width: 60ch; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section-tight { padding: clamp(1.5rem, 3vw, 2.5rem) 0; }
.section--cream { background: var(--ink-100); }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-700);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

/* ── Header / Nav ── */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0; gap: 1.5rem;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--serif); font-weight: 700;
  font-size: 1.25rem; color: var(--ink-900);
}
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  background: var(--brand-600); color: white;
  border-radius: 10px; font-family: var(--serif); font-weight: 700; font-size: 1rem;
}
.brand-sub { display: block; font-family: var(--sans); font-size: 0.72rem; font-weight: 500; color: var(--ink-500); letter-spacing: 0.04em; text-transform: uppercase; }
.nav-links {
  display: flex; align-items: center; gap: 1.6rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink-700); font-weight: 500; font-size: 0.95rem;
  padding: 0.4rem 0; position: relative;
}
.nav-links a:hover { color: var(--brand-700); }
.nav-links a.active { color: var(--brand-700); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--brand-600);
}
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; color: var(--ink-700);
}
@media (max-width: 820px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    transition: all .2s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(194, 85, 48, 0.08), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--paper) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center;
}
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; } }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 0.4em; }
.hero h1 em { font-style: italic; color: var(--brand-700); font-weight: 600; }
.hero-image {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--brand-100), var(--ink-100));
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem;
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.hero-stat strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--ink-900); }
.hero-stat span { font-size: 0.85rem; color: var(--ink-500); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  border: 0; cursor: pointer; text-decoration: none;
  transition: all .15s ease;
}
.btn-primary { background: var(--brand-600); color: white; }
.btn-primary:hover { background: var(--brand-700); color: white; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink-900); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--paper); border-color: var(--ink-300); color: var(--ink-900); }
.btn-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ── Recipe cards (latest grid) ── */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.recipe-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.recipe-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-100);
  text-decoration: none;
}
.recipe-card-image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-100); }
.recipe-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.recipe-card:hover .recipe-card-image img { transform: scale(1.04); }
.recipe-card-body { padding: 1.25rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.recipe-card-tag {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-700); font-weight: 600; margin-bottom: 0.5rem;
}
.recipe-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; line-height: 1.25; }
.recipe-card p { font-size: 0.95rem; color: var(--ink-500); line-height: 1.5; margin: 0 0 1rem; }
.recipe-card-meta {
  display: flex; gap: 1rem; margin-top: auto;
  font-size: 0.85rem; color: var(--ink-500);
}
.recipe-card-meta strong { color: var(--ink-700); font-weight: 600; }

/* ── Category tiles ── */
.category-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.category-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1.8rem 1.2rem; gap: 0.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none; color: inherit;
  transition: all .2s ease;
  text-align: center;
}
.category-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--brand-100); color: var(--brand-700); }
.category-tile-icon { font-size: 2.2rem; line-height: 1; }
.category-tile-name { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--ink-900); }
.category-tile-count { font-size: 0.8rem; color: var(--ink-500); }

/* ── Recipe page ── */
.recipe-hero {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.recipe-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center;
}
@media (max-width: 820px) { .recipe-hero-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.recipe-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 0.4em; }
.recipe-hero-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--ink-100);
}
.recipe-meta-strip {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  padding: 1rem 0; margin-top: 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.recipe-meta-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; color: var(--ink-700); }
.recipe-meta-item strong { color: var(--ink-900); font-weight: 600; }
.recipe-meta-item .meta-icon { font-size: 1.2rem; }

.recipe-byline {
  display: flex; align-items: center; gap: 0.8rem;
  margin-top: 1rem; font-size: 0.92rem; color: var(--ink-500);
}
.recipe-byline-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-600); color: white;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 0.95rem;
}
.recipe-byline a { color: var(--ink-700); font-weight: 600; }

.recipe-body {
  display: grid; grid-template-columns: 2fr 1fr; gap: 3rem;
  margin-top: 3rem;
}
@media (max-width: 900px) { .recipe-body { grid-template-columns: 1fr; gap: 2rem; } }
.recipe-main h2 { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.recipe-main h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.recipe-main p { font-size: 1.05rem; line-height: 1.7; color: var(--ink-700); }
.recipe-main p strong, .recipe-main p b { color: var(--ink-900); }

.ingredients-list { list-style: none; padding: 0; margin: 0; }
.ingredients-list li {
  padding: 0.7rem 0; border-bottom: 1px dashed var(--line);
  display: flex; gap: 0.8rem; align-items: baseline;
}
.ingredients-list li:last-child { border-bottom: 0; }
.ingredient-qty { font-family: var(--serif); font-weight: 600; color: var(--brand-700); flex: 0 0 auto; min-width: 80px; }
.ingredient-name { color: var(--ink-700); flex: 1; }
.ingredient-prep { color: var(--ink-500); font-size: 0.92em; font-style: italic; }
.ingredient-group-label {
  font-family: var(--sans); font-size: 0.75rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-500); font-weight: 600;
  margin: 1rem 0 0.4rem;
}

.steps-list { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps-list li {
  position: relative;
  padding: 1rem 0 1rem 3.5rem;
  counter-increment: step;
  border-bottom: 1px solid var(--line);
}
.steps-list li:last-child { border-bottom: 0; }
.steps-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: 1rem;
  width: 2.4rem; height: 2.4rem;
  background: var(--brand-600); color: white;
  border-radius: 50%;
  font-family: var(--serif); font-weight: 700; font-size: 1.05rem;
  display: grid; place-items: center;
}
.steps-list p { margin: 0; line-height: 1.6; }
.steps-list .step-duration {
  display: inline-block; margin-top: 0.4rem;
  font-size: 0.82rem; color: var(--ink-500);
  background: var(--ink-100); padding: 0.15rem 0.55rem; border-radius: 4px;
}

/* ── Aside ── */
.recipe-aside {
  position: sticky; top: 6rem; align-self: start;
}
.aside-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.aside-card h3 { font-size: 1.1rem; margin: 0 0 0.8rem; }
.aside-card .servings-control {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--ink-100);
  border-radius: 999px;
  padding: 0.25rem 0.4rem;
  width: fit-content;
}
.aside-card .servings-control button {
  width: 30px; height: 30px; border: 0; background: var(--paper); border-radius: 50%;
  cursor: pointer; font-size: 1rem; color: var(--ink-700); font-weight: 600;
}
.aside-card .servings-control button:hover { background: var(--brand-100); color: var(--brand-700); }
.aside-card .servings-value { font-family: var(--serif); font-weight: 600; min-width: 1.4ch; text-align: center; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 0.6rem; }
.faq-item {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-md); overflow: hidden;
}
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; cursor: pointer; font-family: var(--serif); font-weight: 600;
  color: var(--ink-900); list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: '+'; font-family: var(--sans); font-size: 1.4rem; color: var(--brand-700); transition: transform .15s ease; }
details[open] .faq-question::after { content: '−'; }
.faq-answer { padding: 0 1.25rem 1.25rem; color: var(--ink-700); }

/* ── Footer ── */
.site-footer {
  background: var(--ink-900); color: var(--ink-300);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: white; margin-bottom: 0.5rem; }
.footer-tag { font-size: 0.92rem; line-height: 1.55; max-width: 30ch; }
.footer-col h4 { color: white; font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--ink-300); font-size: 0.92rem; }
.footer-col a:hover { color: white; }
.footer-bottom {
  padding-top: 1.5rem; border-top: 1px solid #2a221c;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  font-size: 0.85rem; color: var(--ink-500);
}

/* ── Breadcrumbs ── */
.breadcrumbs { font-size: 0.85rem; color: var(--ink-500); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--ink-500); }
.breadcrumbs a:hover { color: var(--brand-700); }

/* ── Pull quote / callout ── */
.callout {
  background: var(--brand-100); border-left: 3px solid var(--brand-600);
  padding: 1.2rem 1.5rem; border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
}
.callout p { margin: 0; color: var(--ink-700); }
.callout strong { color: var(--brand-700); }

/* ── Utility ── */
.text-center { text-align: center; }
.section-head { text-align: center; max-width: 56ch; margin: 0 auto 2.5rem; }
.section-head h2 { margin-bottom: 0.5rem; }
.section-head p { color: var(--ink-500); margin: 0; }

/* Updated badge */
.updated-stamp { display: inline-block; font-size: 0.82rem; color: var(--ink-500); }
.updated-stamp strong { color: var(--ink-700); }

/* Video embed */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  margin: 1rem 0 2rem;
  box-shadow: var(--shadow-md);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-credit {
  font-size: 0.9rem; color: var(--ink-500);
  margin: -1rem 0 2rem;
}
.video-credit a { color: var(--ink-700); }

/* Scaled qty highlight + base for JS scaling */
.ingredient-qty.scaled { color: var(--brand-600); }

/* Units toggle (metric / imperial) */
.units-control {
  display: inline-flex;
  background: var(--ink-100);
  border-radius: 999px;
  padding: 0.2rem;
  width: fit-content;
  gap: 0;
}
.units-control button {
  border: 0; background: transparent;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-family: var(--sans); font-size: 0.85rem; font-weight: 600;
  color: var(--ink-500); cursor: pointer;
  transition: all .15s ease;
}
.units-control button:hover { color: var(--ink-900); }
.units-control button.active {
  background: var(--paper); color: var(--brand-700);
  box-shadow: 0 1px 2px rgba(26,22,18,0.08);
}

/* Source stats inline next to byline */
.source-stats {
  display: inline-flex; gap: 0.9rem;
  margin-top: 0.4rem; font-size: 0.85rem; color: var(--ink-500);
}
.source-stats span { display: inline-flex; align-items: center; gap: 0.3rem; }
.source-stats strong { color: var(--ink-700); font-weight: 600; }

/* Rotating tagline (home hero) */
.tagline-rotator {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--brand-700);
  margin: 0 0 1.5rem;
  min-height: 1.6em;
  position: relative;
}
.tagline-rotator::before { content: '"'; opacity: 0.6; margin-right: 0.15em; }
.tagline-rotator::after  { content: '"'; opacity: 0.6; margin-left: 0.15em; }
.tagline-rotator span {
  display: inline-block;
  transition: opacity .4s ease, transform .4s ease;
}
.tagline-rotator span.fade-out { opacity: 0; transform: translateY(-4px); }
.tagline-rotator span.fade-in  { opacity: 1; transform: translateY(0); }

/* Funny blurb under the rotating tagline */
.tagline-blurb {
  font-size: 1rem;
  color: var(--ink-500);
  margin: -0.6rem 0 1.5rem;
  max-width: 52ch;
  line-height: 1.55;
}
