/* Bennett's Bites - shared styles */
:root {
  --cream: #fff8ec;
  --ink: #2d2a32;
  --muted: #6b6475;
  --tomato: #ff6b5b;
  --sunny: #ffc93c;
  --leaf: #5cc479;
  --berry: #8b6cf0;
  --sky: #4fb3ff;
  --card: #ffffff;
  --radius: 22px;
  --shadow: 0 6px 0 rgba(45, 42, 50, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  background-image: radial-gradient(rgba(255, 201, 60, 0.18) 2px, transparent 2px);
  background-size: 28px 28px;
}

h1, h2, h3, .logo {
  font-family: "Fredoka", "Nunito", system-ui, sans-serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

a { color: var(--berry); }

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

.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 4px solid var(--sunny);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  margin: 0;
}
.logo span { color: var(--tomato); }
.logo svg { width: 42px; height: 42px; flex: none; }

.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--sunny); }

/* Hero */
.hero { padding: 56px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
.hero h1 .pop { color: var(--tomato); }
.hero p { font-size: 1.2rem; color: var(--muted); max-width: 40ch; margin: 0 auto 24px; }

.btn {
  display: inline-block;
  background: var(--tomato);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
}
.btn:hover { transform: translateY(-3px); }

/* Recipe cards */
.section-title { text-align: center; font-size: 2rem; margin: 24px 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  padding-bottom: 56px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, rotate 0.15s;
}
.card:hover { transform: translateY(-4px); rotate: -1deg; }
.card-art {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  font-size: 4rem;
  white-space: nowrap;
}
.card-body { padding: 16px 20px 20px; }
.card-body h3 { font-size: 1.35rem; margin-bottom: 6px; }
.card-body p { margin: 0; color: var(--muted); font-size: 1rem; }

.bg-tomato { background: #ffe1dd; }
.bg-sunny { background: #fff1c4; }
.bg-leaf { background: #d9f4e0; }
.bg-berry { background: #e7e0ff; }
.bg-sky { background: #daefff; }

.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tag {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--cream);
}

/* Recipe page */
.recipe { padding: 40px 0 64px; }
.recipe-hero {
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}
.recipe-hero .emoji { font-size: clamp(3rem, 12vw, 5rem); line-height: 1; white-space: nowrap; }
.recipe-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-top: 12px; }
.recipe-hero p { max-width: 50ch; margin: 0 auto; color: var(--muted); }

.facts {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.fact {
  background: var(--card);
  border-radius: 14px;
  padding: 8px 16px;
  font-weight: 800;
  font-size: 0.95rem;
}

.recipe-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 760px) {
  .recipe-grid { grid-template-columns: 1fr; }
}

.panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.panel h2 { font-size: 1.5rem; }

.ingredients { list-style: none; padding: 0; margin: 0; }
.ingredients li { padding: 8px 0; border-bottom: 2px dashed #f0e6d6; }
.ingredients li:last-child { border-bottom: 0; }
.ingredients label { display: flex; gap: 10px; align-items: baseline; cursor: pointer; }
.ingredients input { accent-color: var(--leaf); transform: scale(1.3); }
.ingredients input:checked + span { text-decoration: line-through; color: var(--muted); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 20px 56px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sunny);
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.who {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 1px 8px;
  border-radius: 999px;
  margin-right: 6px;
  vertical-align: middle;
}
.who.kid { background: #d9f4e0; color: #1f7a3c; }
.who.grownup { background: #ffe1dd; color: #b8382a; }

.tip {
  margin-top: 24px;
  background: #e7e0ff;
  border-radius: var(--radius);
  padding: 18px 22px;
}
.tip strong { font-family: "Fredoka", sans-serif; }

/* About / simple pages */
.page { padding: 48px 0 64px; max-width: 760px; }
.page .panel p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #f3eefc;
  text-align: center;
  padding: 28px 16px;
  font-size: 0.95rem;
}
.site-footer a { color: var(--sunny); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Restaurant reviews */
.stars { letter-spacing: 2px; font-size: 1.1rem; white-space: nowrap; }
.card .stars { display: block; margin: 4px 0 6px; }
.card .meta { font-size: 0.9rem; font-weight: 800; color: var(--muted); }

.scores { list-style: none; padding: 0; margin: 0; }
.scores li { padding: 10px 0; border-bottom: 2px dashed #f0e6d6; }
.scores li:last-child { border-bottom: 0; }
.score-head { display: flex; justify-content: space-between; font-weight: 800; }
.score-bar { height: 14px; border-radius: 999px; background: var(--cream); margin-top: 6px; overflow: hidden; }
.score-bar span { display: block; height: 100%; border-radius: 999px; background: var(--leaf); }

.review-body h2 { font-size: 1.35rem; margin-top: 1.4em; }
.review-body h2:first-child { margin-top: 0; }
.review-body p { margin: 0 0 1em; }

.verdict {
  margin-top: 24px;
  background: #fff1c4;
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 1.15rem;
}
.verdict strong { font-family: "Fredoka", sans-serif; display: block; font-size: 1.3rem; }

.grownup-notes {
  margin-top: 24px;
  background: #daefff;
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 1rem;
}
.grownup-notes ul { margin: 0.4em 0 0; padding-left: 1.2em; }

.sample-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin: -16px 0 24px;
}

.more-link { text-align: center; margin: -24px 0 56px; }
