/* =========================================================
   Strikes Market — recipes.css
   Garden Tree-inspired · Bricolage + Inter · 0 radius
   ========================================================= */

:root {
  --ink: #021e05;
  --forest: #374629;
  --forest-med: #546a40;
  --lemon: #d1e437;
  --lemon-soft: #f0fa99;
  --olive: #798c4f;
  --cream: #f9f7ef;
  --cream-deep: #f0ebd9;
  --rust: #9a3718;
  --line: rgba(2, 30, 5, 0.12);
  --line-soft: rgba(2, 30, 5, 0.06);
  --white: #ffffff;

  --font-display: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --container: 1140px;
  --gutter: clamp(20px, 4vw, 64px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-slow: cubic-bezier(0.33, 1, 0.68, 1);

  --nav-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
ul, ol, li { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
p:last-child { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--ink);
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--lemon-soft); padding: 10px 16px;
  z-index: 9999;
}
.skip-link:focus { left: 0; top: 0; }

/* ================= NAV ================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line-soft);
}
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 32px;
  height: var(--nav-h);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark { width: 42px; height: 42px; object-fit: contain; mix-blend-mode: multiply; }
.brand-word {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}
.brand-word em {
  font-style: italic;
  letter-spacing: 0.03em;
  margin-right: 2px;
}

.nav-links { display: flex; justify-content: center; gap: clamp(16px, 2.4vw, 32px); }
.nav-links a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
  opacity: .75;
  transition: opacity .2s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a.is-current { opacity: 1; font-weight: 500; }
.nav-links a.is-current::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--lemon);
}

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  background: var(--forest);
  color: var(--lemon-soft);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-cta:hover { background: var(--lemon-soft); color: var(--forest); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; gap: 6px;
  align-items: center; justify-content: center;
  color: var(--ink);
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 12px var(--gutter) 28px;
  gap: 2px;
  background: var(--white);
  border-top: 1px solid var(--line-soft);
}
.nav-mobile a { padding: 16px 0; font-family: var(--font-display); font-size: 24px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.nav-mobile a.is-current { color: var(--forest); }
.nav-mobile .mobile-phone { margin-top: 14px; background: var(--forest); color: var(--lemon-soft); padding: 16px; text-align: center; font-size: 16px; border: none; }

@media (max-width: 920px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-inner { grid-template-columns: auto 1fr auto; }
  .nav.is-open .nav-mobile { display: flex; }
}

main { padding-top: var(--nav-h); }

/* ================= LABEL + BIG HEADING ================= */
.label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--forest);
  margin: 0 0 20px;
}
.big-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 28px;
}
.big-heading em { font-style: italic; color: var(--forest); font-weight: 500; }

/* ================= PAGE INTRO ================= */
.page-intro {
  padding: clamp(72px, 10vw, 120px) var(--gutter) clamp(48px, 7vw, 80px);
  max-width: 920px;
  margin: 0 auto;
}
.lede {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.65;
  color: var(--ink);
  opacity: .82;
  max-width: 42em;
  margin: 0;
}

/* ================= CONTROLS ================= */
.controls {
  max-width: var(--container);
  margin: 0 auto clamp(40px, 5vw, 56px);
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.season-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 14px;
}
.season-link {
  position: relative;
  padding: 10px 18px;
  font-family: inherit;
  font-size: inherit;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.season-link:hover { background: var(--cream); }
.season-link.is-active {
  background: var(--forest);
  color: var(--lemon-soft);
  border-color: var(--forest);
}
.season-nav .divider { display: none; }

.search {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink);
  min-width: 260px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.search:focus-within { border-color: var(--forest); background: var(--white); }
.search input {
  flex: 1;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  padding: 4px 0;
}
.search input::placeholder { color: var(--ink); opacity: .5; }

/* ================= RECIPE INDEX ================= */
.recipes-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(80px, 10vw, 140px);
}

.season-group { margin-bottom: clamp(56px, 8vw, 96px); }
.season-group:last-child { margin-bottom: 0; }
.season-group.is-hidden { display: none; }

.season-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--ink);
}
.season-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.012em;
}
.season-head .season-count {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest);
}

.recipe-list { display: flex; flex-direction: column; }
.recipe-row { border-bottom: 1px solid var(--line-soft); }
.recipe-row.is-hidden { display: none; }
.recipe-row:last-child { border-bottom: none; }

.row-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 20px 2px;
  text-align: left;
  cursor: pointer;
  transition: padding .3s var(--ease);
}
.row-btn:hover { padding-left: 14px; }
.row-btn:focus-visible { outline: 2px solid var(--lemon); outline-offset: 3px; }
.row-thumb {
  width: 80px;
  height: 80px;
  overflow: hidden;
  background: var(--cream-deep);
  flex-shrink: 0;
  align-self: center;
}
.row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease-slow), opacity .3s var(--ease);
}
.row-thumb img[data-src] { opacity: 0; }
.row-btn:hover .row-thumb img { transform: scale(1.06); }
.row-num { display: none; }
.row-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
  transition: color .3s var(--ease);
  align-self: center;
}
.row-btn:hover .row-title { color: var(--forest); }
.row-source {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--forest-med);
  opacity: .75;
  white-space: nowrap;
  align-self: center;
}
@media (max-width: 560px) {
  .row-btn { grid-template-columns: 60px 1fr; gap: 16px; padding: 16px 2px; }
  .row-thumb { width: 60px; height: 60px; }
  .row-source { display: none; }
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  font-family: var(--font-display);
  color: var(--forest-med);
  font-size: 22px;
}

/* ================= DIALOG ================= */
.recipe-dialog {
  position: fixed; inset: 0;
  background: rgba(2, 30, 5, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.recipe-dialog.is-open { display: flex; opacity: 1; }
.recipe-view {
  position: relative;
  width: 100%;
  max-width: 860px;
  max-height: calc(100vh - 48px);
  background: var(--white);
  color: var(--ink);
  overflow: auto;
  padding: clamp(40px, 5vw, 72px) clamp(28px, 5vw, 72px);
  outline: none;
}
.recipe-view::-webkit-scrollbar { width: 6px; }
.recipe-view::-webkit-scrollbar-track { background: transparent; }
.recipe-view::-webkit-scrollbar-thumb { background: var(--line); }

.rv-head {
  padding-bottom: 28px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.rv-season {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest);
  background: var(--lemon-soft);
  padding: 5px 12px;
  margin: 0 0 20px;
}
.rv-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  color: var(--ink);
}
.rv-meta {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--forest);
  letter-spacing: 0.04em;
  margin: 0 0 20px;
}
.rv-story {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.65;
  color: var(--ink);
  opacity: .82;
  max-width: 40em;
  margin: 0;
}

.rv-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 720px) { .rv-body { grid-template-columns: 1fr; gap: 40px; } }

.rv-ingredients h3, .rv-directions h3 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}

.rv-ingredients ul { display: flex; flex-direction: column; }
.rv-ingredients li {
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.rv-ingredients li:last-child { border-bottom: none; }
.rv-ingredients li.ing-group {
  margin-top: 16px;
  padding: 6px 0;
  border-bottom: none;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest);
}
.rv-ingredients li.ing-group:first-child { margin-top: 0; }

.rv-directions ol {
  counter-reset: dir;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.rv-directions li {
  counter-increment: dir;
  position: relative;
  padding-left: 44px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}
.rv-directions li::before {
  content: counter(dir, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--forest);
  width: 36px;
  letter-spacing: -0.01em;
}

.rv-foot {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.rv-note {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--forest-med);
  margin: 0;
  font-style: italic;
}
.rv-note::before { content: "Note — "; color: var(--forest); font-weight: 500; font-style: normal; }

.rv-close, .rv-nav {
  position: fixed;
  width: 44px; height: 44px;
  background: var(--white);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease);
}
.rv-close:hover, .rv-nav:hover { background: var(--lemon); }
.rv-close { top: 22px; right: 22px; }
.rv-prev  { left: 22px; top: 50%; transform: translateY(-50%); }
.rv-next  { right: 22px; top: 50%; transform: translateY(-50%); }
@media (max-width: 900px) {
  .rv-prev, .rv-next { display: none; }
  .rv-close { top: 12px; right: 12px; }
}

/* ================= FOOTER ================= */
.footer {
  background: var(--ink);
  color: var(--lemon-soft);
  padding: clamp(80px, 9vw, 130px) var(--gutter) clamp(32px, 4vw, 60px);
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(240, 250, 153, 0.15);
  margin-bottom: 32px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo { width: 56px; height: 56px; object-fit: contain; margin-bottom: 8px; }
.footer-mark { font-family: var(--font-display); font-size: 26px; font-weight: 500; color: var(--lemon-soft); margin: 0; line-height: 1; }
.footer-tag { font-family: var(--font-body); font-size: 14px; color: rgba(240, 250, 153, 0.65); margin: 0; }
.footer-col p { margin: 0 0 .6em; font-size: 15px; line-height: 1.6; color: rgba(240, 250, 153, 0.82); }
.footer-col a { transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--lemon); }
.footer-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lemon);
  margin: 0 0 16px !important;
}
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(240, 250, 153, 0.82);
  transition: color .2s var(--ease);
}
.footer-nav a:hover { color: var(--lemon); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(240, 250, 153, 0.55);
}
.footer-bottom p { margin: 0; }

@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }

/* ================= FOCUS + MOTION ================= */
:focus-visible { outline: 2px solid var(--lemon); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.nav { padding-top: env(safe-area-inset-top, 0px); }

@media (max-width: 720px) {
  .season-link {
    padding: 10px 14px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
