/* ==========================================================================
   Nepali Taste — Modern 2026 Design System
   ========================================================================== */

/* -------- Design Tokens ---------------------------------------------------*/
:root {
  /* Palette — inspired by Nepali spice market: turmeric, paprika, sesame, charcoal */
  --color-bg: #fbf7f0;
  --color-bg-elev: #ffffff;
  --color-surface: #fff8ec;
  --color-ink: #1a1614;
  --color-ink-soft: #4a423d;
  --color-muted: #8a7f76;
  --color-line: #ece4d6;
  --color-line-strong: #d8cdb8;

  --color-brand: #c0392b;      /* paprika red */
  --color-brand-deep: #8e2a1f;
  --color-accent: #e8a33d;     /* turmeric */
  --color-accent-soft: #fce4b6;
  --color-leaf: #386641;       /* coriander */

  --color-overlay: rgba(26, 22, 20, 0.55);

  /* Footer — intentionally dark in BOTH light & dark modes (anchor at page end) */
  --color-footer-bg: #14110f;
  --color-footer-bg-elev: rgba(255, 255, 255, 0.06);
  --color-footer-ink: #f5efe4;
  --color-footer-ink-soft: rgba(245, 239, 228, 0.78);
  --color-footer-muted: rgba(245, 239, 228, 0.5);
  --color-footer-line: rgba(255, 255, 255, 0.08);

  /* Fluid type scale */
  --fs-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.82rem);
  --fs-sm: clamp(0.875rem, 0.84rem + 0.18vw, 0.95rem);
  --fs-base: clamp(1rem, 0.96rem + 0.22vw, 1.1rem);
  --fs-md: clamp(1.125rem, 1.06rem + 0.32vw, 1.25rem);
  --fs-lg: clamp(1.35rem, 1.2rem + 0.7vw, 1.65rem);
  --fs-xl: clamp(1.7rem, 1.4rem + 1.4vw, 2.4rem);
  --fs-2xl: clamp(2.25rem, 1.7rem + 2.6vw, 3.6rem);
  --fs-3xl: clamp(2.8rem, 2rem + 4vw, 5rem);

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;
  --sp-9: 6rem;

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(26, 22, 20, 0.06), 0 1px 3px rgba(26, 22, 20, 0.04);
  --sh-md: 0 4px 12px rgba(26, 22, 20, 0.08), 0 2px 4px rgba(26, 22, 20, 0.04);
  --sh-lg: 0 18px 40px -12px rgba(26, 22, 20, 0.18), 0 6px 12px rgba(26, 22, 20, 0.06);
  --sh-xl: 0 30px 60px -20px rgba(26, 22, 20, 0.25);

  /* Layout */
  --container: 1200px;
  --container-narrow: 760px;
  --container-wide: 1400px;
  --header-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 240ms;

  /* Fonts */
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --color-bg: #14110f;
    --color-bg-elev: #1c1916;
    --color-surface: #221d18;
    --color-ink: #f5efe4;
    --color-ink-soft: #c8bfb2;
    --color-muted: #8a8175;
    --color-line: #2c2620;
    --color-line-strong: #3b332b;
    --color-accent-soft: #4a3a1d;
    --sh-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --sh-md: 0 4px 12px rgba(0, 0, 0, 0.45);
    --sh-lg: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
  }
}

:root[data-theme="dark"] {
  --color-bg: #14110f;
  --color-bg-elev: #1c1916;
  --color-surface: #221d18;
  --color-ink: #f5efe4;
  --color-ink-soft: #c8bfb2;
  --color-muted: #8a8175;
  --color-line: #2c2620;
  --color-line-strong: #3b332b;
  --color-accent-soft: #4a3a1d;
  --sh-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --sh-md: 0 4px 12px rgba(0, 0, 0, 0.45);
  --sh-lg: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
}

/* -------- Reset -----------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
/* Picture wraps responsive sources; let parent constraints apply through to <img>. */
picture { line-height: 0; }
.hero-art picture, .recipe-card-img picture, .recipe-image picture { width: 100%; height: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--color-brand); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--color-brand-deep); }
:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; border-radius: 4px; }

/* -------- Typography -----------------------------------------------------*/
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--color-ink);
}
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p  { font-size: var(--fs-base); color: var(--color-ink-soft); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-brand);
}

/* -------- Layout helpers -------------------------------------------------*/
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5); }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--sp-5); }
.container-wide { width: 100%; max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--sp-5); }
.section { padding-block: var(--sp-8); }
.section-sm { padding-block: var(--sp-7); }

main { flex: 1 0 auto; }

/* -------- Skip link ------------------------------------------------------*/
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-brand); color: #fff; padding: var(--sp-3) var(--sp-4);
  border-radius: 0 0 var(--r-md) 0; z-index: 1000;
}
.skip-link:focus { left: 0; color: #fff; }

/* -------- Header / Nav ---------------------------------------------------*/
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--color-bg) 85%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--color-line);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--sh-sm); }
.nav {
  display: flex; align-items: center; gap: var(--sp-5);
  height: var(--header-h);
}
.nav-brand {
  display: flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-display); font-size: var(--fs-md); font-weight: 700;
  color: var(--color-ink); letter-spacing: -0.02em;
}
.nav-brand:hover { color: var(--color-brand); }
.nav-brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-accent) 100%);
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  box-shadow: var(--sh-sm);
}
.nav-brand-text small {
  display: block; font-family: var(--font-body); font-size: 0.7rem;
  font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-muted); margin-top: 2px;
}
.nav-menu { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; }
.nav-link {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-pill);
  color: var(--color-ink-soft); font-weight: 500; font-size: var(--fs-sm);
  transition: all var(--dur) var(--ease);
}
.nav-link:hover { color: var(--color-ink); background: var(--color-surface); }
.nav-link.active { color: var(--color-brand); background: var(--color-accent-soft); }

.nav-actions { display: flex; align-items: center; gap: var(--sp-2); }
.nav-icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: var(--color-ink-soft);
  transition: all var(--dur) var(--ease);
}
.nav-icon-btn:hover { background: var(--color-surface); color: var(--color-brand); }

.nav-burger { display: none; }

@media (max-width: 880px) {
  .nav-menu {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--sp-4); background: var(--color-bg-elev);
    border-bottom: 1px solid var(--color-line);
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    transition: all var(--dur) var(--ease); margin-left: 0;
  }
  .nav-menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-link { padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); }
  .nav-burger {
    display: grid; place-items: center; width: 40px; height: 40px;
    border-radius: 50%; color: var(--color-ink); margin-left: auto;
  }
  .nav-burger:hover { background: var(--color-surface); }
}

/* -------- Buttons --------------------------------------------------------*/
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2); padding: var(--sp-3) var(--sp-5);
  font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0.01em;
  border-radius: var(--r-pill); transition: all var(--dur) var(--ease);
  border: 1px solid transparent; white-space: nowrap;
}
.btn-primary {
  background: var(--color-brand); color: #fff;
  box-shadow: 0 6px 18px -6px rgba(192, 57, 43, 0.5);
}
.btn-primary:hover { background: var(--color-brand-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px -6px rgba(192, 57, 43, 0.55); }
.btn-ghost { background: transparent; color: var(--color-ink); border-color: var(--color-line-strong); }
.btn-ghost:hover { background: var(--color-surface); color: var(--color-brand); border-color: var(--color-brand); }
.btn-light { background: var(--color-bg-elev); color: var(--color-ink); box-shadow: var(--sh-sm); }
.btn-light:hover { background: #fff; color: var(--color-brand); transform: translateY(-1px); }
.btn-lg { padding: var(--sp-4) var(--sp-6); font-size: var(--fs-base); }

/* -------- Hero -----------------------------------------------------------*/
.hero {
  position: relative; overflow: hidden;
  padding-block: var(--sp-8) var(--sp-9);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(232, 163, 61, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(192, 57, 43, 0.12), transparent 55%),
    var(--color-bg);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: var(--sp-7); align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: var(--sp-6); } }
.hero-title {
  font-size: var(--fs-3xl); line-height: 1.02; letter-spacing: -0.025em;
  margin-bottom: var(--sp-5);
}
.hero-title em {
  font-style: italic; color: var(--color-brand);
  font-family: var(--font-display);
}
.hero-lede {
  font-size: var(--fs-md); color: var(--color-ink-soft);
  max-width: 52ch; margin-bottom: var(--sp-6);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero-stats {
  display: flex; gap: var(--sp-6); margin-top: var(--sp-7);
  padding-top: var(--sp-5); border-top: 1px solid var(--color-line);
}
.hero-stat strong {
  display: block; font-family: var(--font-display);
  font-size: var(--fs-xl); color: var(--color-ink); line-height: 1;
}
.hero-stat span {
  display: block; font-size: var(--fs-xs); margin-top: var(--sp-2);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted);
}
.hero-art {
  position: relative; aspect-ratio: 4 / 5;
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-xl);
  transform: rotate(2deg);
  background: var(--color-surface);
}
.hero-art::after {
  content: ""; position: absolute; inset: auto -30% -40% auto;
  width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--color-accent-soft), transparent 70%);
  z-index: -1;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; top: var(--sp-5); left: var(--sp-5);
  background: var(--color-bg-elev); color: var(--color-ink);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; box-shadow: var(--sh-md);
  display: inline-flex; align-items: center; gap: var(--sp-2);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-brand); }

/* -------- Section header -------------------------------------------------*/
.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: var(--sp-4); margin-bottom: var(--sp-6);
}
.section-head h2 { margin: var(--sp-2) 0 0 0; }
.section-head .eyebrow { color: var(--color-brand); }

/* -------- Recipe cards ---------------------------------------------------*/
.recipe-grid {
  display: grid; gap: var(--sp-5);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.recipe-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--color-bg-elev); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm); border: 1px solid var(--color-line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.recipe-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.recipe-card a.cover { display: block; flex: 0 0 auto; }
.recipe-card-img {
  aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-surface);
}
.recipe-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms var(--ease);
}
.recipe-card:hover .recipe-card-img img { transform: scale(1.05); }
/* Related-recipe small thumbnails (rendered via picture partial) */
.related-thumb { text-decoration: none; }
.related-thumb-img, .related-thumb picture, .related-thumb img {
  width: 56px; height: 56px; flex: 0 0 auto;
}
.related-thumb img {
  object-fit: cover; border-radius: var(--r-md);
}
.recipe-card-body {
  padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1;
}
.recipe-card-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--color-accent-soft); color: var(--color-brand-deep);
  transition: all var(--dur) var(--ease);
}
.tag:hover { background: var(--color-accent); color: #fff; }
.recipe-card-title {
  font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600;
  color: var(--color-ink); line-height: 1.25; letter-spacing: -0.01em;
}
.recipe-card-title a { color: inherit; }
.recipe-card-title a:hover { color: var(--color-brand); }
.recipe-card-desc {
  font-size: var(--fs-sm); color: var(--color-ink-soft);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.recipe-card-meta {
  display: flex; gap: var(--sp-4); font-size: var(--fs-xs);
  color: var(--color-muted); margin-top: auto; padding-top: var(--sp-3);
  border-top: 1px solid var(--color-line);
}
.recipe-card-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* Featured (large) card variant */
.recipe-card.featured {
  grid-column: span 2; flex-direction: row;
}
.recipe-card.featured .recipe-card-img { aspect-ratio: 1 / 1; height: 100%; }
.recipe-card.featured a.cover { flex: 1; }
.recipe-card.featured .recipe-card-body { flex: 1; padding: var(--sp-6); justify-content: center; }
.recipe-card.featured .recipe-card-title { font-size: var(--fs-xl); }
.recipe-card.featured .recipe-card-desc { -webkit-line-clamp: 4; font-size: var(--fs-base); }
@media (max-width: 720px) {
  .recipe-card.featured { grid-column: span 1; flex-direction: column; }
  .recipe-card.featured .recipe-card-img { aspect-ratio: 4 / 3; }
}

/* -------- Single recipe page ---------------------------------------------*/
.recipe-hero {
  position: relative; padding-block: var(--sp-7) var(--sp-6);
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
}
.recipe-hero-inner {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-7); align-items: center;
}
@media (max-width: 900px) {
  .recipe-hero-inner { grid-template-columns: 1fr; gap: var(--sp-5); }
}
.recipe-meta-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.recipe-title {
  font-size: var(--fs-3xl); line-height: 1.05; letter-spacing: -0.025em;
  margin-bottom: var(--sp-4);
}
.recipe-byline {
  font-size: var(--fs-sm); color: var(--color-muted);
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
  margin-bottom: var(--sp-5);
}
.recipe-byline strong { color: var(--color-ink); font-weight: 600; }
.recipe-byline .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--color-muted); }
.recipe-description {
  font-size: var(--fs-md); color: var(--color-ink-soft); max-width: 60ch;
  font-family: var(--font-display); font-style: italic;
}
.recipe-image {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--sh-xl); aspect-ratio: 1 / 1;
}
.recipe-image img { width: 100%; height: 100%; object-fit: cover; }
.recipe-image .floating-action {
  position: absolute; bottom: var(--sp-4); right: var(--sp-4);
  display: flex; gap: var(--sp-2);
}
.fab {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--color-bg-elev);
  color: var(--color-ink); box-shadow: var(--sh-md);
  transition: all var(--dur) var(--ease);
}
.fab:hover { color: var(--color-brand); transform: translateY(-2px); box-shadow: var(--sh-lg); }

/* Stats bar */
.recipe-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--color-bg-elev); border: 1px solid var(--color-line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm);
}
@media (max-width: 600px) { .recipe-stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: var(--sp-5) var(--sp-4); text-align: center;
  border-right: 1px solid var(--color-line);
}
.stat:last-child { border-right: 0; }
@media (max-width: 600px) {
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--color-line); }
}
.stat-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-accent-soft); color: var(--color-brand);
  display: grid; place-items: center; margin: 0 auto var(--sp-3);
}
.stat-label {
  font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-muted); font-weight: 600;
}
.stat-value {
  font-family: var(--font-display); font-size: var(--fs-lg);
  color: var(--color-ink); margin-top: var(--sp-1);
}

/* Recipe content layout (sidebar + body) */
.recipe-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--sp-7); align-items: start;
  margin-top: var(--sp-7);
}
@media (max-width: 1000px) { .recipe-layout { grid-template-columns: 1fr; } }

.recipe-content {
  font-size: var(--fs-md); line-height: 1.8;
  color: var(--color-ink-soft); max-width: 68ch;
}
.recipe-content > * + * { margin-top: var(--sp-5); }
.recipe-content h1 { display: none; } /* hide markdown h1 since title is in hero */
.recipe-content h2 {
  font-size: var(--fs-xl); margin-top: var(--sp-7);
  color: var(--color-ink); padding-bottom: var(--sp-2);
  border-bottom: 2px solid var(--color-accent);
  display: inline-block; padding-right: var(--sp-5);
}
.recipe-content h3 { font-size: var(--fs-lg); margin-top: var(--sp-6); color: var(--color-ink); }
.recipe-content p { font-size: var(--fs-md); color: var(--color-ink-soft); }
.recipe-content ul, .recipe-content ol {
  padding-left: 0; list-style: none;
  background: var(--color-surface); border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6); border: 1px solid var(--color-line);
}
.recipe-content ul li, .recipe-content ol li {
  position: relative; padding-left: var(--sp-6); padding-block: var(--sp-2);
  font-size: var(--fs-base); color: var(--color-ink);
  border-bottom: 1px dashed var(--color-line);
}
.recipe-content ul li:last-child, .recipe-content ol li:last-child { border-bottom: 0; }
.recipe-content ul li::before {
  content: ""; position: absolute; left: 0; top: 1.05em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-accent);
}
.recipe-content ol { counter-reset: step; }
.recipe-content ol li {
  counter-increment: step; padding-left: var(--sp-7);
  padding-block: var(--sp-3);
}
.recipe-content ol li::before {
  content: counter(step); position: absolute; left: 0; top: 0.55em;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--color-brand); color: #fff;
  display: grid; place-items: center;
  font-size: 0.85rem; font-weight: 700; font-family: var(--font-body);
}
.recipe-content a { color: var(--color-brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.recipe-content blockquote {
  border-left: 4px solid var(--color-accent);
  padding: var(--sp-4) var(--sp-5); background: var(--color-surface);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-display); font-style: italic; font-size: var(--fs-md);
  color: var(--color-ink);
}

/* Recipe sidebar */
.recipe-sidebar { position: sticky; top: calc(var(--header-h) + var(--sp-4)); display: flex; flex-direction: column; gap: var(--sp-5); }
.sidebar-card {
  background: var(--color-bg-elev); border: 1px solid var(--color-line);
  border-radius: var(--r-lg); padding: var(--sp-5);
}
.sidebar-card h4 {
  font-family: var(--font-body); font-size: var(--fs-xs);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-muted);
  font-weight: 600; margin-bottom: var(--sp-4);
}
.share-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.share-btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-pill);
  background: var(--color-surface); color: var(--color-ink-soft);
  font-size: var(--fs-xs); font-weight: 600;
  transition: all var(--dur) var(--ease);
}
.share-btn:hover { background: var(--color-brand); color: #fff; }

/* -------- Footer ---------------------------------------------------------*/
.site-footer {
  margin-top: var(--sp-8);
  background: var(--color-footer-bg); color: var(--color-footer-ink-soft);
  padding-block: var(--sp-7) var(--sp-5);
}
.site-footer h5 {
  font-family: var(--font-body); color: var(--color-footer-ink); font-size: var(--fs-xs);
  letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  margin-bottom: var(--sp-4);
}
.footer-grid {
  display: grid; gap: var(--sp-6);
  grid-template-columns: 2fr 1fr 1fr 1fr;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: var(--sp-3); color: var(--color-footer-ink); font-family: var(--font-display); font-size: var(--fs-md); margin-bottom: var(--sp-4); }
.footer-brand .nav-brand-mark { width: 44px; height: 44px; }
.footer-tagline { color: var(--color-footer-ink-soft); font-size: var(--fs-sm); max-width: 36ch; }
.footer-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-list a { color: var(--color-footer-ink-soft); font-size: var(--fs-sm); }
.footer-list a:hover { color: var(--color-accent); }
.footer-social { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--color-footer-bg-elev); color: var(--color-footer-ink-soft);
  transition: all var(--dur) var(--ease);
}
.footer-social a:hover { background: var(--color-brand); color: #fff; }
.footer-bottom {
  margin-top: var(--sp-6); padding-top: var(--sp-4);
  border-top: 1px solid var(--color-footer-line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3);
  font-size: var(--fs-xs); color: var(--color-footer-muted);
}

/* -------- Search modal ---------------------------------------------------*/
.search-overlay {
  position: fixed; inset: 0; background: var(--color-overlay);
  z-index: 100; display: none; backdrop-filter: blur(6px);
  align-items: flex-start; justify-content: center; padding: 10vh var(--sp-4) var(--sp-4);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.search-overlay.is-open { display: flex; opacity: 1; }
.search-modal {
  width: 100%; max-width: 720px; background: var(--color-bg-elev);
  border-radius: var(--r-lg); box-shadow: var(--sh-xl); overflow: hidden;
  transform: translateY(-12px); transition: transform var(--dur) var(--ease);
}
.search-overlay.is-open .search-modal { transform: translateY(0); }
.search-input-wrap {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--color-line);
}
.search-input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-family: var(--font-display); font-size: var(--fs-lg); color: var(--color-ink);
}
.search-input::placeholder { color: var(--color-muted); }
.search-results { max-height: 60vh; overflow-y: auto; padding: var(--sp-3); }
.search-result {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-3); border-radius: var(--r-md);
  transition: background var(--dur) var(--ease);
}
.search-result:hover, .search-result:focus { background: var(--color-surface); }
.search-result-img { width: 64px; height: 64px; border-radius: var(--r-md); object-fit: cover; flex: 0 0 auto; background: var(--color-surface); }
.search-result-body { flex: 1; min-width: 0; }
.search-result-title { font-family: var(--font-display); font-weight: 600; color: var(--color-ink); font-size: var(--fs-base); }
.search-result-snippet { font-size: var(--fs-sm); color: var(--color-muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.search-empty { padding: var(--sp-6); text-align: center; color: var(--color-muted); font-size: var(--fs-sm); }

/* -------- Page header (list/taxonomy) ------------------------------------*/
.page-header {
  padding-block: var(--sp-8) var(--sp-6); text-align: center;
  background:
    radial-gradient(800px 400px at 50% -100%, rgba(232, 163, 61, 0.18), transparent 60%),
    var(--color-bg);
}
.page-header h1 { font-size: var(--fs-3xl); margin-top: var(--sp-3); }
.page-header p { max-width: 60ch; margin: var(--sp-4) auto 0; color: var(--color-ink-soft); font-size: var(--fs-md); }

/* -------- Tag chips (taxonomy index) -------------------------------------*/
.tag-cloud { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }
.tag-cloud .tag-chip {
  padding: var(--sp-3) var(--sp-5); border-radius: var(--r-pill);
  background: var(--color-bg-elev); border: 1px solid var(--color-line);
  font-weight: 600; font-size: var(--fs-sm); color: var(--color-ink);
  display: inline-flex; align-items: center; gap: var(--sp-2);
  transition: all var(--dur) var(--ease);
}
.tag-cloud .tag-chip:hover { background: var(--color-brand); color: #fff; border-color: var(--color-brand); transform: translateY(-2px); box-shadow: var(--sh-md); }
.tag-chip .count {
  font-size: 0.72rem; padding: 2px 8px; background: var(--color-accent-soft);
  color: var(--color-brand-deep); border-radius: var(--r-pill);
}
.tag-cloud .tag-chip:hover .count { background: rgba(255,255,255,0.2); color: #fff; }

/* -------- 404 ------------------------------------------------------------*/
.notfound { text-align: center; padding-block: var(--sp-9); }
.notfound .big { font-family: var(--font-display); font-size: clamp(6rem, 18vw, 10rem); line-height: 1; color: var(--color-brand); }
.notfound h2 { margin: var(--sp-4) 0 var(--sp-3); }
.notfound p { color: var(--color-muted); margin-bottom: var(--sp-5); }

/* -------- AdSense slots --------------------------------------------------*/
.ad-slot {
  display: flex; align-items: center; justify-content: center;
  margin-block: var(--sp-6);
  min-height: 120px;
  background: var(--color-surface); border: 1px dashed var(--color-line-strong);
  border-radius: var(--r-md); color: var(--color-muted);
  font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase;
}
.ad-slot[data-loaded="true"] { background: transparent; border: 0; min-height: 0; }
.ad-slot ins { display: block; }
.ad-label { font-size: 0.7rem; color: var(--color-muted); letter-spacing: 0.16em; text-transform: uppercase; text-align: center; margin-bottom: var(--sp-2); }

/* -------- Cookie consent -------------------------------------------------*/
.cookie-banner {
  position: fixed; bottom: var(--sp-4); left: var(--sp-4); right: var(--sp-4);
  max-width: 520px; margin-inline: auto;
  background: var(--color-ink); color: rgba(245, 239, 228, 0.95);
  padding: var(--sp-4) var(--sp-5); border-radius: var(--r-lg);
  box-shadow: var(--sh-xl); z-index: 90;
  display: none; align-items: center; gap: var(--sp-4);
  font-size: var(--fs-sm);
}
.cookie-banner.is-shown { display: flex; }
.cookie-banner p { color: rgba(245, 239, 228, 0.85); margin: 0; flex: 1; }
.cookie-banner a { color: var(--color-accent); }
.cookie-banner button {
  background: var(--color-brand); color: #fff; padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-pill); font-weight: 600; font-size: var(--fs-xs);
  transition: background var(--dur) var(--ease);
}
.cookie-banner button:hover { background: var(--color-brand-deep); }

/* -------- Pagination -----------------------------------------------------*/
.pagination { display: flex; gap: var(--sp-2); justify-content: center; margin-top: var(--sp-7); }
.pagination a, .pagination span {
  display: inline-grid; place-items: center; min-width: 40px; height: 40px;
  padding: 0 var(--sp-3); border-radius: var(--r-md);
  background: var(--color-bg-elev); color: var(--color-ink-soft);
  border: 1px solid var(--color-line); font-weight: 600;
}
.pagination a:hover { color: var(--color-brand); border-color: var(--color-brand); }
.pagination .current { background: var(--color-brand); color: #fff; border-color: var(--color-brand); }

/* -------- Page body content (about/privacy) ------------------------------*/
.page-body {
  font-size: var(--fs-md); line-height: 1.8; color: var(--color-ink-soft);
}
.page-body h2 { margin-top: var(--sp-6); margin-bottom: var(--sp-3); color: var(--color-ink); }
.page-body h3 { margin-top: var(--sp-5); margin-bottom: var(--sp-3); color: var(--color-ink); }
.page-body p + p { margin-top: var(--sp-3); }
.page-body ul, .page-body ol { margin-left: var(--sp-5); padding-left: var(--sp-3); }
.page-body li { margin-bottom: var(--sp-2); }
.page-body a { text-decoration: underline; text-underline-offset: 3px; }

/* -------- Utility --------------------------------------------------------*/
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mb-4 { margin-bottom: var(--sp-4); }
.is-hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* -------- Print ----------------------------------------------------------*/
@media print {
  .site-header, .site-footer, .recipe-sidebar, .ad-slot, .cookie-banner, .floating-action, .recipe-image .floating-action { display: none !important; }
  body { background: #fff; color: #000; }
  .recipe-layout { grid-template-columns: 1fr; }
  .recipe-content ul, .recipe-content ol { background: #fff; border: 1px solid #ddd; }
  a { color: #000 !important; text-decoration: none !important; }
}
