/* Crockpot Kitchen — 1970s harvest-kitchen design system */
:root {
  --bg: #f3e6c8;
  --paper: #fffaf0;
  --ink-900: #2b2018;
  --ink-700: #4a3a2a;
  --ink-500: #7a6650;
  --ink-300: #b3a082;
  --ink-100: #ecdcb5;
  --line: #d8c294;
  --rust-700: #8f3a1f;
  --rust-600: #b8471f;
  --rust-500: #c1502e;
  --rust-100: #f2d6c4;
  --avocado-700: #4a5a26;
  --avocado-600: #6b7a3a;
  --gold-600: #b8791a;
  --gold-500: #d9a441;
  --shadow-sm: 0 1px 0 rgba(43, 32, 24, 0.08);
  --shadow-md: 3px 3px 0 rgba(43, 32, 24, 0.12);
  --shadow-lg: 6px 6px 0 rgba(43, 32, 24, 0.14);
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --container: 1180px;
  --display: "Bevan", "Georgia", serif;
  --sans: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
}

*, *::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(--rust-700); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--rust-500); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.1; letter-spacing: 0; color: var(--ink-900); margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h3 { font-size: 1.25rem; }
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(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust-700);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

/* ── Header / Nav ── */
.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--ink-900);
  position: sticky; top: 0; z-index: 50;
}
.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(--display); font-weight: 400;
  font-size: 1.25rem; color: var(--ink-900);
}
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  background: var(--rust-600); color: var(--paper);
  border-radius: 50%; border: 3px solid var(--ink-900);
  font-family: var(--display); font-weight: 400; font-size: 1.1rem;
}
.brand-sub { display: block; font-family: var(--mono); font-size: 0.68rem; font-weight: 500; color: var(--ink-500); letter-spacing: 0.06em; 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: 700; font-size: 0.92rem;
  padding: 0.4rem 0; position: relative;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.nav-links a:hover { color: var(--rust-700); }
.nav-links a.active { color: var(--rust-700); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 3px; background: var(--rust-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: 3px solid var(--ink-900);
    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, 5.5rem) 0;
  background: var(--rust-600);
  color: var(--paper);
  overflow: hidden;
  border-bottom: 3px solid var(--ink-900);
}
.hero--compact { padding: clamp(2rem, 4vw, 3rem) 0; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center;
}
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; } }
.hero .eyebrow { color: var(--gold-500); }
.hero h1 { color: var(--paper); font-size: clamp(2.3rem, 4.6vw, 3.6rem); margin-bottom: 0.4em; }
.hero h1 em { font-style: normal; color: var(--gold-500); }
.hero .lede { color: #fbeadc; }
.hero-image {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
}
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem;
  margin-top: 2rem; padding-top: 1.5rem; border-top: 2px solid rgba(255,250,240,0.35);
}
.hero-stat strong { display: block; font-family: var(--display); font-size: 1.6rem; color: var(--paper); }
.hero-stat span { font-size: 0.85rem; color: #fbeadc; }

/* ── Dial (signature element) ── */
.dial {
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
}
.dial-face { fill: var(--paper); stroke: var(--ink-900); stroke-width: 6; }
.dial-tick { stroke: var(--ink-900); stroke-width: 4; stroke-linecap: round; }
.dial-label { font-family: var(--mono); font-size: 13px; font-weight: 700; fill: var(--ink-900); text-anchor: middle; text-transform: uppercase; }
.dial-needle { stroke: var(--rust-700); stroke-width: 6; stroke-linecap: round; }
.dial-hub { fill: var(--gold-500); stroke: var(--ink-900); stroke-width: 5; }
.dial-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border: 2px solid var(--ink-900); border-radius: 999px;
  background: var(--paper); color: var(--ink-900);
}
.dial-badge svg { width: 14px; height: 14px; }
.dial-badge.setting-low { color: var(--avocado-700); }
.dial-badge.setting-high { color: var(--rust-700); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 700; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.03em;
  border: 3px solid var(--ink-900); cursor: pointer; text-decoration: none;
  transition: all .1s ease;
}
.btn-primary { background: var(--gold-500); color: var(--ink-900); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--gold-600); color: var(--ink-900); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 rgba(43,32,24,0.14); }
.hero .btn-ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.hero .btn-ghost:hover { background: rgba(255,250,240,0.12); }
.btn-ghost { background: transparent; color: var(--ink-900); border: 3px solid var(--ink-900); }
.btn-ghost:hover { background: var(--ink-100); transform: translate(-2px, -2px); box-shadow: var(--shadow-md); }
.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: 3px solid var(--ink-900);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: var(--shadow-sm);
}
.recipe-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.recipe-card-image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-100); border-bottom: 3px solid var(--ink-900); }
.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-family: var(--mono);
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--rust-700); font-weight: 700; margin-bottom: 0.5rem;
}
.recipe-card h3 { font-size: 1.15rem; 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: 700; }

/* ── 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: 3px solid var(--ink-900);
  border-radius: var(--radius-md);
  text-decoration: none; color: inherit;
  transition: all .12s ease;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.category-tile:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-md); color: var(--rust-700); }
.category-tile-icon { font-size: 2.2rem; line-height: 1; }
.category-tile-name { font-family: var(--display); font-weight: 400; font-size: 1.1rem; color: var(--ink-900); }
.category-tile-count { font-size: 0.8rem; color: var(--ink-500); font-family: var(--mono); }

/* ── Recipe page ── */
.recipe-hero {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  background: var(--ink-100);
  border-bottom: 3px solid var(--ink-900);
}
.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(1.9rem, 3.8vw, 3rem); margin-bottom: 0.4em; }
.recipe-hero-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid var(--ink-900);
  box-shadow: var(--shadow-lg);
  background: var(--paper);
}
.recipe-meta-strip {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  padding: 1rem 0; margin-top: 1rem;
  border-top: 2px solid var(--line);
  border-bottom: 2px 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: 700; }
.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(--rust-600); color: var(--paper);
  border: 2px solid var(--ink-900);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 400; font-size: 0.95rem;
}
.recipe-byline a { color: var(--ink-700); font-weight: 700; }

.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: 2px 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(--mono); font-weight: 700; color: var(--rust-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(--mono); font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-500); font-weight: 700;
  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(--gold-500); color: var(--ink-900);
  border: 3px solid var(--ink-900);
  border-radius: 50%;
  font-family: var(--display); font-weight: 400; 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-family: var(--mono);
  font-size: 0.82rem; color: var(--ink-700);
  background: var(--ink-100); border: 1px solid var(--line); padding: 0.15rem 0.55rem; border-radius: 4px;
}

/* ── Aside ── */
.recipe-aside {
  position: sticky; top: 6rem; align-self: start;
}
.aside-card {
  background: var(--paper);
  border: 3px solid var(--ink-900);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.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: 2px solid var(--ink-900);
  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: 700;
}
.aside-card .servings-control button:hover { background: var(--rust-100); color: var(--rust-700); }
.aside-card .servings-value { font-family: var(--display); font-weight: 400; min-width: 1.4ch; text-align: center; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 0.6rem; }
.faq-item {
  background: var(--paper); border: 3px solid var(--ink-900);
  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(--display); font-weight: 400;
  color: var(--ink-900); list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: '+'; font-family: var(--sans); font-weight: 700; font-size: 1.4rem; color: var(--rust-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;
  border-top: 6px solid var(--gold-500);
}
.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(--display); font-weight: 400; font-size: 1.4rem; color: var(--paper); margin-bottom: 0.5rem; }
.footer-tag { font-size: 0.92rem; line-height: 1.55; max-width: 30ch; }
.footer-col h4 { color: var(--paper); font-family: var(--mono); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; 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: var(--paper); }
.footer-bottom {
  padding-top: 1.5rem; border-top: 1px solid #4a3a2a;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  font-size: 0.85rem; color: var(--ink-500);
}

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

/* ── Pull quote / callout ── */
.callout {
  background: var(--rust-100); border-left: 5px solid var(--rust-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(--rust-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-family: var(--mono); 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);
  border: 3px solid var(--ink-900);
  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(--rust-600); }

/* Units toggle (metric / imperial) */
.units-control {
  display: inline-flex;
  background: var(--ink-100);
  border: 2px solid var(--ink-900);
  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(--mono); font-size: 0.82rem; font-weight: 700;
  color: var(--ink-500); cursor: pointer;
  transition: all .15s ease;
}
.units-control button:hover { color: var(--ink-900); }
.units-control button.active {
  background: var(--gold-500); color: var(--ink-900);
}

/* 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: 700; }

/* Rotating tagline (home hero) */
.tagline-rotator {
  display: inline-block;
  font-family: var(--display);
  font-style: normal;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--gold-500);
  margin: 0 0 1.5rem;
  min-height: 1.6em;
  position: relative;
}
.tagline-rotator::before { content: '"'; opacity: 0.7; margin-right: 0.15em; }
.tagline-rotator::after  { content: '"'; opacity: 0.7; 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: #fbeadc;
  margin: -0.6rem 0 1.5rem;
  max-width: 52ch;
  line-height: 1.55;
}
