@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Quicksand:wght@300;400;500;600;700&display=swap');

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:          #FFF7ED;
  --card:        #FFFFFF;
  --text:        #1C1410;
  --muted:       #7C6A5E;
  --primary:     #C4522A;
  --primary-dk:  #A3411F;
  --accent:      #F5A623;
  --green:       #2D5A27;
  --border:      #EDD9C8;
  --font-head:   'Caveat', cursive;
  --font-body:   'Quicksand', sans-serif;
  --radius:      12px;
  --shadow:      0 2px 16px rgba(28,20,16,0.08);
  --shadow-lg:   0 6px 28px rgba(28,20,16,0.14);
  --transition:  200ms ease;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.65;
  font-size: 1rem;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; transform: none !important; }
}

/* ─── Focus ──────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* ─── Utilities ──────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.text-muted { color: var(--muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dk); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ─── Tags / Pills ───────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(196,82,42,0.1);
  color: var(--primary);
}
.tag.freezer { background: rgba(45,90,39,0.1); color: var(--green); }
.tag.quick   { background: rgba(245,166,35,0.15); color: #8a6000; }

/* ─── Navigation ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-cta {
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background var(--transition);
}
.nav-cta:hover { background: var(--primary-dk); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem 1.5rem;
  gap: 1rem;
}
.nav-mobile a { font-weight: 500; color: var(--muted); padding: 0.25rem 0; }
.nav-mobile a:hover { color: var(--primary); }
.nav-mobile.open { display: flex; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  padding: 5rem 2rem 4rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.hero-title .accent { color: var(--primary); }
.hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── Section Header ─────────────────────────────────────── */
.section-header { margin-bottom: 2.5rem; }
.section-header h2 {
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.section-header p { color: var(--muted); font-size: 1rem; }

/* ─── Recipes Section ────────────────────────────────────── */
.recipes-section { padding: 4rem 0; }

/* ─── Filter Bar ─────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ─── Recipe Grid ────────────────────────────────────────── */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

/* ─── Recipe Card ────────────────────────────────────────── */
.recipe-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.recipe-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.recipe-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.recipe-card-placeholder {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}
.recipe-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.recipe-card-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.recipe-card-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.recipe-card-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}
.recipe-card-meta {
  display: flex;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
}
.recipe-card-meta span { display: flex; align-items: center; gap: 0.3rem; }
.recipe-card-meta svg { flex-shrink: 0; }
.recipe-card-link {
  display: block;
  text-align: right;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  transition: opacity var(--transition);
}
.recipe-card-link:hover { opacity: 0.75; }

/* ─── About Strip ────────────────────────────────────────── */
.about-strip {
  padding: 5rem 2rem;
  background: var(--card);
  border-top: 1px solid var(--border);
}
.about-inner {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3.5rem;
  align-items: center;
}
.about-avatar {
  width: 200px;
  height: 200px;
  border-radius: 999px;
  border: 4px solid var(--accent);
  object-fit: cover;
  flex-shrink: 0;
}
.about-avatar-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 999px;
  border: 4px solid var(--accent);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 4rem;
  color: #fff;
  flex-shrink: 0;
}
.about-text h2 {
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.about-text p { color: var(--muted); line-height: 1.75; margin-bottom: 0.9rem; }
.about-link { color: var(--primary); font-weight: 600; }
.about-link:hover { text-decoration: underline; }

/* ─── Page Header ────────────────────────────────────────── */
.page-header {
  padding: 4rem 2rem 3rem;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.page-header p { color: var(--muted); max-width: 520px; margin: 0 auto; }

/* ─── Recipe Page ────────────────────────────────────────── */
.recipe-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}
.recipe-page-img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}
.recipe-page-img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  margin-bottom: 2rem;
}
.recipe-page h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}
.recipe-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.recipe-meta-bar {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.recipe-meta-bar span { display: flex; align-items: center; gap: 0.4rem; }
.recipe-meta-bar strong { color: var(--text); font-weight: 600; }
.recipe-intro {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 2.5rem;
}
.recipe-section-title {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}
.ingredients-list { padding: 0; }
.ingredients-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(237,217,200,0.5);
  font-size: 0.95rem;
}
.ingredients-list li:last-child { border-bottom: none; }
.steps-list { padding: 0; counter-reset: steps; }
.steps-list li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  margin-bottom: 1.75rem;
  align-items: start;
}
.steps-list li::before {
  content: counter(steps);
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.steps-list li p { font-size: 0.95rem; line-height: 1.7; padding-top: 0.25rem; }
.freeze-box {
  background: rgba(245,166,35,0.12);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
}
.freeze-box-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.freeze-box p { font-size: 0.9rem; line-height: 1.65; color: var(--text); }

/* ─── About Page ─────────────────────────────────────────── */
.about-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}
.about-page h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  margin-top: 3rem;
}
.about-page p { color: var(--muted); line-height: 1.8; margin-bottom: 1rem; }
.about-page .lead { font-size: 1.125rem; color: var(--text); }
.cuisine-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0;
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: #1C1410;
  color: rgba(255,255,255,0.6);
  padding: 3rem 2rem;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}
.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.75rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.25); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1023px) {
  .about-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

@media (max-width: 767px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .recipes-grid { grid-template-columns: 1fr; }
  .recipe-meta-bar { gap: 1rem; }
  .recipe-page { padding: 2rem 1.25rem 3rem; }
  .container { padding: 0 1.25rem; }
  .about-strip { padding: 3rem 1.25rem; }
  .recipes-section { padding: 2.5rem 0; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .recipes-grid { grid-template-columns: repeat(2, 1fr); }
}
