/* ============================================================
   Recipe Database — Modern Layout
   ============================================================ */

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

:root {
  /* Palette */
  --bg:             #FDFAF5;
  --surface:        #FFFFFF;
  --surface-tinted: #FAF7F2;
  --border:         #EDE9E3;
  --border-strong:  #D6CFC6;
  --text:           #1C1917;
  --text-muted:     #78716C;
  --text-faint:     #A8A29E;
  --accent:         #C2410C;
  --accent-hover:   #9A3412;
  --accent-tint:    #FFF3EE;
  --accent-tint2:   #FEE2D5;

  /* Type */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shape */
  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  18px;
  --radius-xl:  24px;

  /* Shadow */
  --shadow-xs:  0 1px 2px rgba(0,0,0,.06);
  --shadow-sm:  0 2px 8px rgba(0,0,0,.07);
  --shadow-md:  0 8px 24px rgba(0,0,0,.09);
  --shadow-lg:  0 20px 48px rgba(0,0,0,.12);

  /* Layout */
  --max-width: 1200px;
  --gutter:    clamp(1rem, 4vw, 2rem);
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Navigation ------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(253, 250, 245, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo--footer { color: rgba(255,255,255,.9); }
.logo-mark { width: 28px; height: 28px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.site-nav a {
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .15s, background .15s;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: var(--surface-tinted);
}
.site-nav a.active { color: var(--accent); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    box-shadow: var(--shadow-md);
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a { padding: .6rem .75rem; }
}

/* ---------- Helpers --------------------------------------- */
.section-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: .4rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}
.section-header .section-title { margin-bottom: 0; }
.section-more {
  font-size: .875rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}
.section-more:hover { text-decoration: underline; }

.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--tinted { background: var(--surface-tinted); }

/* Pills / tags */
.pill {
  display: inline-block;
  padding: .25rem .7rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
}
.pill--cat {
  background: var(--accent-tint);
  color: var(--accent);
}
.pill--cat:hover { background: var(--accent-tint2); text-decoration: none; }
.pill--tag {
  background: var(--surface-tinted);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.pill--tag:hover { border-color: var(--border-strong); color: var(--text); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: background .15s, transform .1s, box-shadow .15s;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(194,65,12,.35);
}
.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(194,65,12,.4);
}
.btn--ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}
.btn--ghost:hover { background: rgba(255,255,255,.2); }

/* ---------- Hero ------------------------------------------ */
.hero {
  position: relative;
  background: var(--text);
  color: #fff;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-glow--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(194,65,12,.55) 0%, transparent 70%);
  top: -160px;
  right: -80px;
}
.hero-glow--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(120,30,8,.4) 0%, transparent 70%);
  bottom: -80px;
  left: 5%;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 1.25rem;
  padding: .3rem .8rem;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  letter-spacing: -.02em;
}
.hero-title em {
  font-style: italic;
  color: #f97316;
}
.hero-sub {
  font-size: clamp(.9rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  margin-bottom: 2.25rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Featured Card --------------------------------- */
.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
}
.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(0,0,0,.14);
  text-decoration: none;
}
.featured-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surface-tinted);
}
.featured-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.featured-card:hover .featured-card-image img { transform: scale(1.04); }
.featured-card-image--empty {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5ede6, #e8d5c4);
}
.featured-card-body {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-card-cats { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.featured-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: .85rem;
}
.featured-card-desc {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.featured-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  color: var(--text-muted);
}
.meta-item svg { flex-shrink: 0; }
.meta-item--source { font-style: italic; }
.featured-card-cta {
  font-size: .875rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .01em;
}

@media (max-width: 700px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-card-image { aspect-ratio: 16/9; }
}

/* ---------- Recipe Grid ----------------------------------- */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

/* ---------- Recipe Card ----------------------------------- */
.recipe-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.recipe-card-link { display: block; color: inherit; text-decoration: none; }

.recipe-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface-tinted);
}
.recipe-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.recipe-card:hover .recipe-card-image img { transform: scale(1.06); }
.recipe-card-image--placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5ede6 0%, #e8d5c4 100%);
}

.card-category-pill {
  position: absolute;
  bottom: .65rem;
  left: .65rem;
  padding: .2rem .65rem;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.recipe-card-body { padding: 1rem 1.1rem 1.2rem; }
.recipe-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: .4rem;
  color: var(--text);
}
.recipe-card-desc {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: .75rem;
}
.recipe-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}
.recipe-card-meta { display: flex; gap: .9rem; flex-wrap: wrap; }
.card-source {
  font-size: .72rem;
  color: var(--text-faint);
  white-space: nowrap;
  font-style: italic;
}

/* ---------- Category Grid --------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

/* Base card — no image */
.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  background: var(--surface);
  border: 1px solid var(--border);
  min-height: 120px;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

/* Image variant */
.category-card--image {
  border: none;
  min-height: 160px;
}
.category-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s;
}
.category-card--image:hover .category-card-bg { transform: scale(1.06); }

/* Overlay text */
.category-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: 1rem 1.1rem;
  margin-top: auto;          /* push to bottom when image present */
}
.category-card--image .category-card-body {
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 100%);
  padding: 1.25rem 1.1rem 1rem;
}
.category-card--image .category-name  { color: #fff; }
.category-card--image .category-count { color: rgba(255,255,255,.7); }

/* No-image card hover state */
.category-card:not(.category-card--image):hover .category-card-body {
  background: var(--accent-tint);
}
.category-card:not(.category-card--image):hover .category-name  { color: var(--accent); }
.category-card:not(.category-card--image):hover .category-count { color: var(--accent); }

.category-name {
  font-size: .95rem;
  font-weight: 700;
  text-transform: capitalize;
  color: var(--text);
}
.category-count {
  font-size: .75rem;
  color: var(--text-faint);
}

/* ---------- List Page ------------------------------------- */
.list-header {
  position: relative;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
/* Plain header (no image) */
.list-header:not(.list-header--image) {
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
}
/* Image header */
.list-header--image {
  min-height: 320px;
  display: flex;
  align-items: flex-end;
}
.list-header-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.list-header-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
}
.list-header--image .list-header-overlay {
  background: linear-gradient(to top, rgba(10,5,2,.85) 0%, rgba(10,5,2,.35) 60%, transparent 100%);
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}
.list-header--image .section-label { color: rgba(255,255,255,.6); }
.list-header--image .list-title    { color: #fff; }
.list-header--image .list-desc     { color: rgba(255,255,255,.7); }
.list-header--image .list-count    { color: rgba(255,255,255,.5); }

.list-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: .5rem;
  text-transform: capitalize;
}
.list-desc {
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.list-count {
  font-size: .82rem;
  color: var(--text-faint);
  font-weight: 500;
}
.list-body { padding: 2.5rem 0 5rem; }

/* ---------- Empty State ----------------------------------- */
.empty-state-hero {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
}
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state-hero h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: .5rem;
}
.empty-state-hero p { color: var(--text-muted); margin-bottom: 1.25rem; }
.getting-started {
  display: inline-block;
  padding: .8rem 1.25rem;
  background: var(--surface-tinted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  color: var(--text);
  text-align: left;
  white-space: pre-wrap;
  word-break: break-all;
  max-width: 100%;
}

/* ---------- Single Recipe ─ Hero ─────────────────────── */
.recipe-hero {
  position: relative;
  height: clamp(380px, 60vh, 620px);
  overflow: hidden;
  background: #2a1a0e;
}
.recipe-hero--no-image {
  height: auto;
  min-height: 280px;
  background: linear-gradient(135deg, var(--text) 0%, #3d1f0d 100%);
  display: flex;
  align-items: flex-end;
}
.recipe-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.recipe-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 8, 3, .90) 0%,
    rgba(15, 8, 3, .55) 45%,
    rgba(15, 8, 3, .10) 100%
  );
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.recipe-hero--no-image .recipe-hero-overlay {
  position: static;
  background: none;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}
.recipe-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  margin-bottom: .85rem;
}
.recipe-breadcrumb a { color: rgba(255,255,255,.55); text-decoration: none; }
.recipe-breadcrumb a:hover { color: #fff; }
.recipe-breadcrumb span { opacity: .4; }

.recipe-pills { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.recipe-pills .pill--cat {
  background: rgba(194,65,12,.7);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}
.recipe-pills .pill--tag {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.18);
}

.recipe-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
  max-width: 800px;
}
.recipe-hero-desc {
  font-size: clamp(.875rem, 1.2vw, 1rem);
  color: rgba(255,255,255,.72);
  line-height: 1.65;
  max-width: 640px;
}

/* ---------- Stats Bar ------------------------------------- */
.stats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.stats-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  border-right: 1px solid var(--border);
  min-width: 100px;
  text-align: center;
  gap: .2rem;
}
.stat-item:last-child { border-right: none; }
.stat-item--accent .stat-value { color: var(--accent); }
.stat-item--source { margin-left: auto; border-right: none; }
.stat-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-faint);
}
.stat-value {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
}
.stat-source-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.stat-source-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .stats-bar-inner { padding: .5rem 0; }
  .stat-item {
    flex-direction: row;
    gap: .5rem;
    padding: .65rem var(--gutter);
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-width: 0;
    width: 100%;
    text-align: left;
    justify-content: flex-start;
  }
  .stat-item:last-child { border-bottom: none; }
  .stat-item--source { margin-left: 0; }
  .stat-label { min-width: 70px; }
}

/* ---------- Recipe Content -------------------------------- */
.recipe-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 6rem);
}
@media (max-width: 900px) {
  .recipe-content { grid-template-columns: 1fr; }
}

/* Sidebar / Ingredients */
.recipe-sidebar .sidebar-inner {
  position: sticky;
  top: 80px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.content-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .25rem;
}
.content-heading-note {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 400;
  color: var(--text-faint);
  margin-left: .5rem;
}
.ingredient-hint {
  font-size: .75rem;
  color: var(--text-faint);
  margin-bottom: 1rem;
}

.ingredient-list {
  list-style: none;
  padding: 0;
}
.ingredient-item { border-bottom: 1px solid var(--border); }
.ingredient-item:last-child { border-bottom: none; }
.ingredient-item label {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  padding: .55rem .1rem;
  cursor: pointer;
  transition: opacity .15s;
}
.ingredient-check {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-strong);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  top: 2px;
  transition: background .15s, border-color .15s;
}
.ingredient-check:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.ingredient-check:checked::after {
  content: '';
  position: absolute;
  left: 2px;
  top: -1px;
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.ingredient-text {
  font-size: .9rem;
  line-height: 1.45;
  transition: color .15s;
}
.ingredient-item:has(.ingredient-check:checked) .ingredient-text {
  color: var(--text-faint);
  text-decoration: line-through;
  text-decoration-color: var(--border-strong);
}

/* ---------- Instructions ---------------------------------- */
.recipe-section { margin-bottom: 3rem; }
.recipe-main .content-heading { margin-bottom: 1.25rem; }

.instruction-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.instruction-step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.25rem 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.instruction-step:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.step-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  padding-top: .15rem;
  user-select: none;
}
.step-body {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--text);
}

/* ---------- Notes ----------------------------------------- */
.recipe-notes .notes-body p { margin-bottom: .75rem; font-size: .95rem; line-height: 1.75; }
.recipe-notes .notes-body ul,
.recipe-notes .notes-body ol { margin: .5rem 0 1rem 1.5rem; }

/* ---------- Nutrition ------------------------------------- */
.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: .75rem;
}
.nutrition-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem .75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  align-items: center;
}
.n-val {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.n-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-faint);
}

/* ---------- Footer ---------------------------------------- */
.site-footer {
  background: #1C1917;
  color: rgba(255,255,255,.7);
  padding: 3.5rem 0 1.5rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 1.5rem;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.footer-tagline {
  margin-top: .75rem;
  font-size: .875rem;
  color: rgba(255,255,255,.45);
  line-height: 1.6;
}
.footer-col h4 {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.5);
  margin-bottom: .85rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.footer-col ul a { color: rgba(255,255,255,.65); font-size: .875rem; text-decoration: none; }
.footer-col ul a:hover { color: #fff; }
.footer-about { font-size: .82rem; color: rgba(255,255,255,.45); line-height: 1.65; }
.footer-bottom {
  font-size: .78rem;
  color: rgba(255,255,255,.3);
  text-align: center;
}
