/* Fresh Vietnamese Kitchen — single stylesheet, mobile-first, no frameworks */

:root {
  --green: #2e7d5b;
  --green-dark: #1f5c41;
  --red: #b3402e;
  --cream: #fdf9f2;
  --ink: #2b2b2b;
  --muted: #6b6b6b;
  --card-border: #e8ddd0;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

a { color: var(--green-dark); }
a:hover { color: var(--red); }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--green);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-dark);
  text-decoration: none;
}
.site-name span { color: var(--red); }
.site-nav a {
  margin-left: 18px;
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
}
.site-nav a:hover { color: var(--red); }

/* Hero */
.hero {
  text-align: center;
  padding: 40px 16px 28px;
}
.hero h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 10px; }
.hero p { color: var(--muted); max-width: 620px; margin: 0 auto; font-size: 1.05rem; }

/* Recipe card grid */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 8px 0 40px;
}
@media (min-width: 700px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-body { padding: 16px; display: flex; flex-direction: column; flex-grow: 1; }
.card-body h2, .card-body h3 { font-size: 1.15rem; margin: 0 0 8px; line-height: 1.35; }
.card-body h2 a, .card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h2 a:hover, .card-body h3 a:hover { color: var(--red); }
.card-body p { color: var(--muted); font-size: 0.95rem; margin: 0 0 12px; }
.card-meta { font-size: 0.85rem; color: var(--muted); margin-top: auto; }

/* Photo placeholders — replace with real images */
.photo-placeholder {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #dcefe4, #f7e8d8);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 16px;
}
.photo-placeholder.hero-photo { aspect-ratio: 16 / 9; font-size: 1.05rem; }

/* Article pages */
.article { background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius); padding: 24px 20px; margin: 24px 0 40px; }
.article h1 { font-size: 1.7rem; line-height: 1.3; margin: 12px 0 8px; }
.article h2 { font-size: 1.25rem; color: var(--green-dark); border-bottom: 2px solid #eef3ee; padding-bottom: 6px; margin-top: 32px; }
.back-link { font-size: 0.9rem; text-decoration: none; font-weight: 600; }
.recipe-meta { color: var(--muted); font-size: 0.95rem; margin: 0 0 16px; }
.recipe-meta strong { color: var(--ink); }
.tips {
  background: #f2f7f2;
  border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
}
.tips h2 { margin-top: 0; border: none; padding: 0; }
.shop-list { list-style: none; padding: 0; }
.shop-list li { margin-bottom: 10px; }
.shop-list a { font-weight: 600; }
.pin-note { font-size: 0.9rem; color: var(--muted); }

/* Footer */
.site-footer {
  background: #fff;
  border-top: 3px solid var(--green);
  padding: 24px 0 32px;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer h2 { font-size: 1rem; color: var(--ink); margin: 0 0 6px; }
