/* The Daily Whisk — main stylesheet (vanilla CSS, mobile-first) */
/* Design language: warm food-magazine. Photography leads; editorial serif
   typography; paprika + honey palette; generous whitespace. */

:root {
  --bg: #fdf7ec;
  --card: #fffdf8;
  --ink: #2c2216;
  --muted: #77644e;
  --brand: #bc5227;          /* paprika — decorative accents */
  --brand-dark: #8f3b1c;     /* buttons & key text (contrast-safe on cream) */
  --brand-soft: #f9e7d3;
  --line: #ead9bd;
  --radius: 20px;
  --shadow: 0 12px 40px rgba(64, 40, 18, 0.08);
  --shadow-lift: 0 24px 64px rgba(64, 40, 18, 0.13);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.18; margin: 0 0 0.6em; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.6rem; margin-top: 1.8em; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.container { width: min(1140px, 92%); margin-inline: auto; }

/* Accessibility */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 0.75rem 1.25rem; z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 253, 248, 0.97);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 14px rgba(64, 40, 18, 0.05);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 0.75rem; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.brand-mark { display: inline-flex; flex: none; }
.brand-mark svg { width: 46px; height: 46px; display: block; }
.brand-word { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-top {
  font-family: var(--font-body); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--brand-dark);
}
.brand-name {
  font-family: var(--font-display); font-size: 1.65rem; font-weight: 700;
  letter-spacing: -0.01em; color: var(--ink);
}
.brand:hover .brand-name { color: var(--brand-dark); }

.nav-toggle {
  display: none;
  background: var(--brand-soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.5rem 0.9rem; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer;
}
.nav-menu { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: block; padding: 0.55rem 0.95rem; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-menu a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.nav-menu a[aria-current="page"] { background: var(--ink); color: #fff; }

/* ---------- Hero: calm, generous, one accent ---------- */
.hero {
  background: #fffdf8;
  padding: 5rem 0 4.5rem;
  border-bottom: 1px solid var(--line);
  overflow: clip;
}
.hero-inner { display: grid; gap: 2.25rem; align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand-dark); margin: 0 0 0.9rem;
}
.hero-kicker::before { content: ""; width: 2rem; height: 2px; background: var(--brand); border-radius: 2px; }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); margin-bottom: 0.35em; font-weight: 700; }
.hero h1 em { font-style: italic; color: var(--brand-dark); }
.hero .lede { font-size: 1.14rem; color: var(--muted); max-width: 40rem; }

.hero-photo { margin: 0; position: relative; }
.hero-photo::before {
  content: ""; position: absolute; inset: 0;
  transform: rotate(2.5deg);
  background: var(--brand-soft); border: 1px solid var(--line);
  border-radius: 22px;
}
.hero-photo img {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover;
  border-radius: 22px; box-shadow: var(--shadow-lift);
}
.hero-photo figcaption {
  position: absolute; z-index: 2; left: 1rem; bottom: 1rem;
  background: rgba(30, 20, 10, 0.82); color: #fff;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 0.45rem 0.95rem; border-radius: 999px;
  backdrop-filter: blur(4px);
}

.search-wrap { margin-top: 1.5rem; max-width: 36rem; }
.search-wrap label { display: block; font-weight: 600; margin-bottom: 0.45rem; }
.search-row { display: flex; gap: 0.5rem; }
.search-row input[type="search"] {
  flex: 1; padding: 0.95rem 1.3rem; font: inherit;
  border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
  box-shadow: inset 0 1px 3px rgba(64, 40, 18, 0.05);
}
.search-row input[type="search"]:focus { border-color: var(--brand-dark); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }

/* ---------- AI recipe assistant ---------- */
.hero-search-inner { display: flex; flex-direction: column; align-items: center; }
.hero-search-copy { max-width: 46rem; width: 100%; text-align: center; }
.hero-search-copy .hero-kicker { justify-content: center; }
/* Hero ask card: one inviting card on top, stat tiles beneath (dashboard pattern) */
.hero-search-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow-lift); padding: 2.25rem 2.5rem; margin-top: 2rem;
}
#hero-search { text-align: left; }
#hero-search > label { display: block; font-weight: 700; margin-bottom: 0.5rem; }
.stat-tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin-top: 1.25rem; text-align: left;
}
.stat-tile {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); padding: 1.3rem 1.5rem;
}
.stat-num {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 2.4rem; line-height: 1; letter-spacing: -0.02em; color: var(--ink);
}
.stat-label {
  display: block; margin-top: 0.45rem; font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted);
}
@media (max-width: 560px) {
  .hero-search-card { padding: 1.5rem 1.25rem; }
  .stat-tiles { grid-template-columns: 1fr; }
  .recipe-hero-card { padding: 1.6rem 1.4rem; }
}
/* (mic button removed — text-only AI assistant) */
.hero-search-hint { font-size: 0.85rem; color: var(--muted); margin: 0.55rem 0 0; }
@media (max-width: 560px) {
      }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: 0; cursor: pointer; font: inherit; font-weight: 700;
  background: var(--brand-dark); color: #fff; border-radius: 999px;
  padding: 0.9rem 1.6rem; text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
  box-shadow: 0 4px 14px rgba(143, 59, 28, 0.28);
}
.btn:hover { background: var(--brand); color: #fff; transform: translateY(-1px); }

/* ---------- Ad slots (AdSense-ready): positions are HTML comments only.
   Paste ad code into the marked comments in build.py templates when approved.
   No visible placeholder boxes are rendered. ---------- */

/* ---------- Spotlight: Recipe of the Day ---------- */
.spotlight { padding: 3.5rem 0 1rem; }
.spotlight-card {
  display: grid; gap: 0; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; box-shadow: var(--shadow);
}
.spotlight-media { position: relative; overflow: hidden; min-height: 260px; }
.spotlight-media a { display: block; height: 100%; }
.spotlight-media img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10;
  transition: transform 0.6s ease;
}
.spotlight-card:hover .spotlight-media img { transform: scale(1.03); }
.spotlight-body { padding: 2rem 2rem 2.2rem; display: flex; flex-direction: column; justify-content: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem; align-self: flex-start;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.35rem 0.9rem; margin-bottom: 0.9rem;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.spotlight-cat {
  margin: 0 0 0.3rem;
  color: var(--brand-dark); font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.spotlight-title { margin: 0 0 0.5rem; font-size: clamp(1.7rem, 3.4vw, 2.45rem); }
.spotlight-title a { color: var(--ink); text-decoration: none; }
.spotlight-title a:hover { color: var(--brand-dark); }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0; color: var(--muted); font-size: 0.9rem; margin: 0.7rem 0 1rem; }
.meta-row > span { display: inline-flex; align-items: center; }
.meta-row > span + span::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: #d8cbb4; margin: 0 0.75rem; flex: none;
}
.meta-row strong { color: var(--ink); font-weight: 700; }
.spotlight-blurb { color: var(--muted); font-size: 1.02rem; max-width: 34rem; }
.spotlight-link { align-self: flex-start; margin-top: 0.4rem; }

/* ---------- Filter + grid ---------- */
.browse { padding: 3rem 0 4.5rem; }
#browse-heading {
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  display: flex; align-items: center; gap: 1rem;
}
#browse-heading::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  background: rgba(255, 253, 248, 0.75);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 0.6rem; margin: 1.4rem 0 0.5rem;
}
.chip {
  border: 1.5px solid transparent; background: transparent; color: var(--ink);
  border-radius: 999px; padding: 0.5rem 1.15rem; font: inherit; font-weight: 600; font-size: 0.93rem;
  cursor: pointer; transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.chip:hover { background: var(--brand-soft); color: var(--brand-dark); }
.chip[aria-pressed="true"] { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; box-shadow: 0 3px 10px rgba(143, 59, 28, 0.25); }
.result-note { color: var(--muted); font-size: 0.93rem; min-height: 1.6em; font-style: italic; }

.recipe-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin-top: 1.75rem;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card-media { position: relative; display: block; overflow: hidden; text-decoration: none; }
.card-media img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform 0.55s ease;
}
.card:hover .card-media img { transform: scale(1.05); }
.card-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24, 14, 6, 0.05) 30%, rgba(24, 14, 6, 0.82) 100%);
}
.badge {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2;
  background: rgba(255, 253, 248, 0.94); color: var(--brand-dark);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.32rem 0.8rem; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(24, 14, 6, 0.2);
}
.card-photo-title {
  position: absolute; z-index: 2; left: 1.15rem; right: 1.15rem; bottom: 1rem;
  color: #fff; font-family: var(--font-display); font-weight: 700;
  font-size: 1.38rem; line-height: 1.22; letter-spacing: -0.01em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.card-body { padding: 1.2rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.22rem; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--brand-dark); }
.card-meta { color: var(--muted); font-size: 0.86rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0; font-weight: 600; }
.card-meta > span { display: inline-flex; align-items: center; }
.card-meta > span + span::before {
  content: ""; width: 3px; height: 3px; border-radius: 50%;
  background: #d8cbb4; margin: 0 0.6rem; flex: none;
}
.card-blurb { color: var(--muted); font-size: 0.94rem; margin: 0; flex: 1; }
.card-link {
  font-weight: 700; align-self: flex-start; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.15rem;
}
.card-link::after { content: "\2192"; transition: transform 0.18s ease; }
.card-link:hover::after, .card:hover .card-link::after { transform: translateX(4px); }
.empty-state { display: none; text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state.show { display: block; }
.empty-state .web-links { margin-top: 1rem; display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Web-search panel (hybrid search: site library + the web) ---------- */
.web-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.25rem 1.5rem; margin: 0 0 1.75rem;
}
.web-panel h3 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.web-panel p { margin: 0 0 0.9rem; color: var(--muted); font-size: 0.95rem; }
.web-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---------- Load more (pagination for a growing library) ---------- */
.load-more-wrap { text-align: center; margin: 2rem 0 0.5rem; }

/* ---------- Video tutorial facade (click-to-load YouTube embed) ---------- */
.video-tutorial { margin: 2.5rem 0; }
.video-note { color: var(--muted); }
.video-facade {
  position: relative; border-radius: 20px; overflow: hidden;
  background-size: cover; background-position: center;
  aspect-ratio: 16 / 9; box-shadow: var(--shadow-lift);
  border: 1px solid var(--line);
}
.video-facade::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,16,6,0.15) 0%, rgba(28,16,6,0.62) 100%);
}
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute; inset: 0; width: 100%; height: auto; border: 0; padding: 1.5rem;
  background: none; cursor: pointer; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem;
  font: inherit;
}
.video-play-icon {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--brand-dark); display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}
.video-play-icon::before {
  content: ""; margin-left: 6px;
  border-left: 26px solid #fff; border-top: 16px solid transparent; border-bottom: 16px solid transparent;
}
.video-play:hover .video-play-icon { transform: scale(1.08); background: var(--brand); }
.video-play-text { font-weight: 700; font-size: 1.02rem; text-shadow: 0 2px 8px rgba(0,0,0,0.6); max-width: 30rem; }
.video-fallback { font-size: 0.9rem; color: var(--muted); margin-top: 0.6rem; }

/* ---------- Recipe detail page ---------- */
.recipe-hero-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow); padding: 2.25rem 2.5rem; margin-top: 2.5rem;
}
.breadcrumb { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.breadcrumb a { text-decoration: none; }
.recipe-title { font-size: clamp(2.1rem, 5vw, 3.1rem); max-width: 46rem; margin-bottom: 0.2em; }
.recipe-layout { display: grid; gap: 2.5rem; margin-top: 1.8rem; }
.recipe-main figure { margin: 0 0 1.8rem; }
.recipe-main figure img { border-radius: 20px; box-shadow: var(--shadow-lift); width: 100%; }
.recipe-main figcaption { font-size: 0.86rem; color: var(--muted); margin-top: 0.6rem; font-style: italic; }

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1rem 0.8rem;
  background: var(--ink); color: #f5ead6;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin: 0; list-style: none;
  box-shadow: var(--shadow);
}
.facts li { display: flex; flex-direction: column; gap: 0.15rem; }
.facts li + li { border-left: 1px solid rgba(243, 223, 174, 0.18); padding-left: 0.9rem; }
.facts .fact-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: #c9b795; font-weight: 700; }
.facts .fact-value { font-weight: 700; font-size: 1.2rem; line-height: 1.1; color: #fff; }

.recipe-lede {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.28rem; line-height: 1.6; color: #4a3a28;
  margin: 1.8rem 0 2.2rem; max-width: 44rem;
}
.recipe-lede::first-letter {
  font-style: normal; font-weight: 700; float: left;
  font-size: 3.4em; line-height: 0.85;
  padding-right: 0.14em; padding-top: 0.08em;
  color: var(--brand-dark);
}

.recipe-main section > h2 { font-size: 1.75rem; margin-bottom: 0.9em; }
.recipe-main section > h2::after {
  content: ""; display: block; width: 48px; height: 2px; border-radius: 2px;
  background: var(--brand);
  margin-top: 0.45rem;
}

.ingredients {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.9rem; box-shadow: var(--shadow); margin-bottom: 2.4rem;
}
.ingredients h2 { margin-top: 0; }
.ingredients ul { margin: 0; padding: 0; list-style: none; }
.ingredients li {
  position: relative; padding-left: 1.5rem;
  margin-bottom: 0.55rem; padding-bottom: 0.55rem;
  border-bottom: 1px dashed var(--line);
  break-inside: avoid;
}
.ingredients li::before {
  content: ""; position: absolute; left: 0.15rem; top: 0.62em;
  width: 7px; height: 7px; background: var(--brand);
  transform: rotate(45deg); border-radius: 1.5px;
}

.method { margin-bottom: 2.4rem; }
.method ol { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.method li {
  counter-increment: step; position: relative;
  padding-left: 3.6rem; margin-bottom: 1.45rem; max-width: 44rem;
}
.method li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -0.32em;
  font-family: var(--font-display); font-weight: 700; font-size: 2.05rem; line-height: 1;
  color: var(--brand); opacity: 0.9;
}
.method li::after {
  content: ""; position: absolute; left: 0; bottom: -0.75rem;
  width: 100%; height: 1px; background: var(--line);
}
.method li:last-child::after { display: none; }

.tips {
  background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius); padding: 1.35rem 1.6rem; margin-bottom: 2.4rem;
}
.tips h2 { margin-top: 0; font-size: 1.35rem; }
.tips h2::after { display: none; }
.tips ul { margin: 0; padding-left: 1.25rem; }
.tips li { margin-bottom: 0.4rem; }
.tips li::marker { color: var(--brand); }

.recipe-aside .aside-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.45rem; margin-bottom: 1.4rem; box-shadow: var(--shadow);
}
.recipe-aside h2 { font-size: 1.2rem; margin-top: 0; }
.recipe-aside ul { list-style: none; margin: 0; padding: 0; }
.recipe-aside li { margin-bottom: 0.65rem; line-height: 1.45; }
.recipe-aside li a { text-decoration: none; font-weight: 600; }
.recipe-aside li a:hover { text-decoration: underline; }
.aside-note { margin: 0; font-size: 0.95rem; color: var(--muted); }

.pager { display: flex; justify-content: space-between; gap: 0.8rem; margin: 2.75rem 0 1rem; flex-wrap: wrap; }
.pager a {
  font-weight: 700; text-decoration: none;
  border: 1.5px solid var(--line); background: var(--card);
  border-radius: 12px; padding: 0.75rem 1.15rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.pager a:hover { border-color: var(--brand-dark); transform: translateY(-1px); }

/* ---------- Static pages ---------- */
.page { padding: 2.75rem 0 3.75rem; max-width: 46rem; }
.page h1 { margin-bottom: 0.4rem; font-size: clamp(2rem, 4.5vw, 2.7rem); }
.page > h1::after {
  content: ""; display: block; width: 48px; height: 2px; border-radius: 2px;
  background: var(--brand);
  margin-top: 0.5rem;
}
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; margin-top: 1.7rem; box-shadow: var(--shadow); }
.contact-card h2 { margin-top: 0; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field input, .field textarea {
  width: 100%; padding: 0.75rem 0.9rem; font: inherit;
  border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus { border-color: var(--brand-dark); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.field .error { color: var(--brand-dark); font-size: 0.88rem; display: none; }
.field.invalid .error { display: block; }
.form-note { font-size: 0.9rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: #211710; color: #f3e9d8; margin-top: 3.5rem; border-top: 4px solid var(--brand-dark); }
.site-footer a { color: #f3e9d8; }
.site-footer a:hover { color: var(--brand); }
.footer-inner { display: grid; gap: 1.8rem; padding: 2.75rem 0 1.6rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; color: #fff; }
.footer-tag { color: #cbbc9f; font-size: 0.95rem; max-width: 26rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.footer-nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.footer-nav a:hover { text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid #463827; padding: 1.1rem 0 1.6rem;
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; justify-content: space-between;
  font-size: 0.88rem; color: #cbbc9f;
}
.updated-stamp { font-style: italic; }

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .spotlight-card { grid-template-columns: 1.05fr 1fr; }
  .spotlight-media { min-height: 340px; }
  .spotlight-media img { height: 100%; aspect-ratio: auto; position: absolute; inset: 0; }
  .spotlight-body { padding: 2.4rem 2.4rem 2.6rem; }
  .ingredients ul { columns: 2; column-gap: 2.75rem; }
  .footer-inner { grid-template-columns: 1.4fr 1fr; }
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; }
}
@media (min-width: 1024px) {
  .recipe-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .recipe-aside { position: sticky; top: 92px; }
}
@media (max-width: 719px) {
  .nav-toggle { display: inline-block; }
  .nav-menu {
    display: none; position: absolute; top: 100%; right: 4%;
    background: var(--card); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow); padding: 0.5rem; flex-direction: column; min-width: 200px;
  }
  .nav-menu.open { display: flex; }
  .site-header .header-inner { position: relative; }
  .search-row { flex-direction: column; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li + li { border-left: 0; padding-left: 0; }
  .facts li:nth-child(even) { border-left: 1px solid rgba(243, 223, 174, 0.18); padding-left: 0.9rem; }
  .recipe-lede { font-size: 1.16rem; }
}

@media print {
  .site-header nav, .site-footer, .filter-bar, .search-wrap, .pager, .recipe-aside, .hero-photo { display: none; }
  body { background: #fff; }
  .card, .spotlight-card, .ingredients, .facts { box-shadow: none; }
  .facts { background: #fff; color: var(--ink); border: 1px solid #ccc; }
  .facts .fact-value { color: var(--ink); }
  .facts .fact-label { color: var(--muted); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .card:hover .card-media img, .spotlight-card:hover .spotlight-media img { transform: none; }
}
