/* =========================================================
   LazyCooking — styles.css
   Warm, friendly, fast. Mobile-first. Zero build.
   ========================================================= */

:root {
  --bg: #fffaf3;
  --bg-soft: #fff3e4;
  --surface: #ffffff;
  --ink: #2c2118;
  --ink-soft: #6f5f51;
  --line: #f0e2d2;

  --accent: #ef6f3c;       /* warm tomato/orange */
  --accent-dark: #d8541f;
  --accent-soft: #ffe7d8;
  --green: #4f9d5d;
  --green-soft: #e2f2e4;
  --yellow: #f4b740;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;

  --shadow: 0 6px 24px rgba(80, 50, 20, 0.08);
  --shadow-lg: 0 18px 50px rgba(80, 50, 20, 0.16);

  --sp-1: 6px; --sp-2: 12px; --sp-3: 18px; --sp-4: 26px;
  --sp-5: 40px; --sp-6: 64px; --sp-7: 96px;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Nunito", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--accent-dark); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.12; margin: 0 0 0.4em; font-weight: 600; }

.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--sans); font-weight: 800; font-size: 1rem;
  border: none; border-radius: 999px; padding: 13px 22px; cursor: pointer;
  text-decoration: none; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(239,111,60,.32); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 10px 22px rgba(239,111,60,.4); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-text { background: none; color: var(--ink-soft); padding: 10px 6px; }
.btn-text:hover { color: var(--accent-dark); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,250,243,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.32rem; }
.brand-name-accent { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { text-decoration: none; color: var(--ink-soft); font-weight: 700; font-size: .95rem; }
.site-nav a:hover { color: var(--accent-dark); }
.nav-cta { background: var(--accent-soft); color: var(--accent-dark) !important; padding: 8px 14px; border-radius: 999px; }
@media (max-width: 760px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 360px at 88% -10%, var(--accent-soft) 0%, transparent 60%),
    radial-gradient(700px 320px at 0% 110%, var(--green-soft) 0%, transparent 55%),
    var(--bg);
  padding: var(--sp-6) 0 var(--sp-6);
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 760px; }
.eyebrow {
  display: inline-block; font-weight: 800; font-size: .82rem; letter-spacing: .04em;
  color: var(--accent-dark); background: var(--surface); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 999px; margin: 0 0 var(--sp-3); box-shadow: var(--shadow);
}
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 600; letter-spacing: -.01em; }
.hero h1 .hl { color: var(--accent); }
.lede { font-size: clamp(1.05rem, 2.4vw, 1.28rem); color: var(--ink-soft); max-width: 640px; margin: 0 0 var(--sp-4); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: var(--sp-5); }
.hero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 0; margin: 0; }
.hero-stats li { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.hero-stats b { font-family: var(--serif); color: var(--ink); font-size: 1.4rem; margin-right: 4px; }

/* ---------- Section heads ---------- */
section { padding: var(--sp-6) 0; }
.section-head { margin-bottom: var(--sp-4); max-width: 640px; }
.section-head h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }

/* ---------- Pantry ---------- */
.pantry { background: var(--bg-soft); }
.pantry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.staple {
  display: flex; align-items: center; gap: 9px; background: var(--surface);
  border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px;
  cursor: pointer; font-weight: 700; font-size: .95rem; transition: border-color .15s, background .15s, transform .12s;
  user-select: none;
}
.staple:hover { transform: translateY(-2px); }
.staple .staple-emoji { font-size: 1.15rem; }
.staple input { accent-color: var(--green); width: 17px; height: 17px; }
.staple.on { border-color: var(--green); background: var(--green-soft); }
.pantry-hint { margin: var(--sp-3) 0 0; color: var(--ink-soft); font-weight: 600; }

/* ---------- Finder layout ---------- */
.finder-layout { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
@media (min-width: 880px) {
  .finder-layout { grid-template-columns: 268px 1fr; align-items: start; }
  .filters { position: sticky; top: 84px; }
}

.filters {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-4); box-shadow: var(--shadow);
}
.filter-block { margin-bottom: var(--sp-4); }
.filter-block:last-of-type { margin-bottom: var(--sp-3); }
.filter-label { display: block; font-weight: 800; font-size: .9rem; margin-bottom: 10px; }
.filter-label span { color: var(--accent-dark); }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  background: var(--accent-soft); border-radius: 999px; outline-offset: 4px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--accent);
  border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); cursor: pointer;
}
.range-ticks { display: flex; justify-content: space-between; font-size: .72rem; color: var(--ink-soft); margin-top: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--sans); font-weight: 700; font-size: .85rem; cursor: pointer;
  background: var(--bg-soft); color: var(--ink); border: 2px solid transparent;
  padding: 7px 12px; border-radius: 999px; transition: all .14s ease;
}
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }

.filter-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: var(--sp-2); border-top: 1px solid var(--line); }

/* ---------- Results ---------- */
.results-bar { margin-bottom: var(--sp-3); }
.results-count { margin: 0; font-weight: 800; color: var(--ink-soft); }
.results-count b { color: var(--accent-dark); }

.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

.card {
  position: relative; text-align: left; cursor: pointer; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; overflow: hidden; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
  font-family: var(--sans);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent-soft); }
.card-top {
  display: flex; align-items: center; justify-content: center; font-size: 2.6rem;
  height: 92px; background:
    linear-gradient(135deg, var(--accent-soft), #fff6ec);
}
.card.pantry-match .card-top { background: linear-gradient(135deg, var(--green-soft), #f3fbf4); }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.12rem; margin: 0 0 6px; }
.card-blurb { color: var(--ink-soft); font-size: .9rem; margin: 0 0 12px; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  font-size: .72rem; font-weight: 800; padding: 4px 9px; border-radius: 999px;
  background: var(--bg-soft); color: var(--ink-soft);
}
.pill.time { background: var(--accent-soft); color: var(--accent-dark); }
.pill.effort { background: #eef3fb; color: #3b5b86; }
.pill.diet { background: var(--green-soft); color: #2f6b3a; }

.pantry-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: var(--green); color: #fff; font-size: .7rem; font-weight: 800;
  padding: 4px 9px; border-radius: 999px; box-shadow: 0 3px 8px rgba(0,0,0,.18);
}

.no-results { text-align: center; padding: var(--sp-5); color: var(--ink-soft); font-weight: 700; font-size: 1.1rem; }

/* ---------- Why ---------- */
.why { background: var(--bg-soft); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.why-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-4); box-shadow: var(--shadow); }
.why-emoji { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.why-card h3 { font-size: 1.18rem; }
.why-card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ---------- Acquire ---------- */
.acquire { padding: var(--sp-6) 0; }
.acquire-card {
  background: linear-gradient(135deg, #2c2118, #43321f); color: #fff7ee;
  border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 52px);
  text-align: center; max-width: 720px; margin: 0 auto; box-shadow: var(--shadow-lg);
}
.acquire-card h2 { color: #fff; font-size: clamp(1.5rem, 4vw, 2.1rem); }
.acquire-card p { color: #ecdcc9; max-width: 540px; margin: 0 auto 14px; }
.acquire-card code { background: rgba(255,255,255,.12); padding: 2px 8px; border-radius: 6px; font-weight: 700; color: #ffd9c2; }
.acquire-card .btn { margin: 10px 0 14px; }
.acquire-email { font-size: .92rem; }
.acquire-email a, .acquire-card em { color: #ffd9c2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9cdc0; padding: var(--sp-5) 0; }
.footer-inner { text-align: center; }
.footer-brand { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: #fff; margin: 0 0 4px; }
.footer-tag { margin: 0 0 14px; color: #b8a899; }
.footer-fine { font-size: .82rem; color: #9c8c7d; margin: 0; }
.footer-fine a, .footer-tag a { color: #ffb999; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { .modal { align-items: center; padding: 24px; } }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(44,33,24,.55); backdrop-filter: blur(3px); animation: fade .2s ease; }
.modal-panel {
  position: relative; background: var(--surface); width: 100%; max-width: 640px;
  max-height: 92vh; overflow-y: auto; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-lg); animation: slideUp .26s cubic-bezier(.2,.8,.2,1);
}
@media (min-width: 640px) { .modal-panel { border-radius: var(--radius-lg); } }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 4; width: 38px; height: 38px;
  border-radius: 50%; border: none; background: var(--bg-soft); color: var(--ink);
  font-size: 1rem; cursor: pointer; font-weight: 800;
}
.modal-close:hover { background: var(--accent-soft); color: var(--accent-dark); }
@keyframes slideUp { from { transform: translateY(40px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal-hero { background: linear-gradient(135deg, var(--accent-soft), #fff6ec); padding: 30px 26px 22px; }
.modal-emoji { font-size: 3rem; line-height: 1; }
.modal-hero h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 10px 0 6px; }
.modal-hero .card-meta { margin-top: 12px; }
.modal-blurb { color: var(--ink-soft); margin: 0; font-style: italic; }

.modal-content { padding: 22px 26px 30px; }
.modal-content h3 { font-size: 1.15rem; margin: 22px 0 10px; }
.modal-content h3:first-child { margin-top: 0; }

/* tools row: timer + scaler */
.cook-tools { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 4px 0 8px; }
@media (min-width: 480px) { .cook-tools { grid-template-columns: 1fr 1fr; } }
.tool {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px;
}
.tool-label { font-weight: 800; font-size: .82rem; color: var(--ink-soft); margin: 0 0 8px; text-transform: uppercase; letter-spacing: .03em; }
.timer-display { font-family: var(--serif); font-size: 2.1rem; font-weight: 700; line-height: 1; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.timer-display.ringing { color: var(--accent-dark); animation: pulse .6s ease infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.timer-btns { display: flex; gap: 8px; }
.scaler-btns { display: flex; gap: 8px; }
.scale-btn {
  flex: 1; font-family: var(--sans); font-weight: 800; font-size: .95rem; cursor: pointer;
  padding: 9px 0; border-radius: var(--radius-sm); border: 2px solid var(--line);
  background: var(--surface); color: var(--ink); transition: all .14s;
}
.scale-btn.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.scale-note { font-size: .78rem; color: var(--ink-soft); margin: 8px 0 0; }

.ing-list { list-style: none; padding: 0; margin: 0; }
.ing-list li {
  display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line);
}
.ing-list li:last-child { border-bottom: none; }
.ing-qty { font-weight: 800; color: var(--accent-dark); min-width: 78px; font-variant-numeric: tabular-nums; }
.ing-item { color: var(--ink); }

.steps-list { padding-left: 0; margin: 0; list-style: none; counter-reset: step; }
.steps-list li {
  position: relative; padding: 0 0 16px 44px; counter-increment: step;
}
.steps-list li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff;
  font-family: var(--serif); font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.steps-list li:not(:last-child)::after {
  content: ""; position: absolute; left: 14px; top: 30px; bottom: 4px; width: 2px; background: var(--line);
}

/* JSON-LD has no visual; nothing here */
