:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --surface: #fffdf8;
  --ink: #211f1b;
  --muted: #766f64;
  --line: #e5ddd0;
  --accent: #1d7c63;
  --accent-2: #d24a2f;
  --sun: #efb443;
  --shadow: 0 10px 30px rgba(33, 31, 27, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 16px;
  background: rgba(247, 244, 238, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brandbtn,
.iconbtn,
.ghostLink,
.chip,
.tab {
  border: 0;
  cursor: pointer;
}

.brandbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  color: var(--ink);
}

.title {
  font-weight: 800;
  font-size: 20px;
}

.betaBadge {
  padding: 3px 7px;
  border-radius: 999px;
  background: #1d7c6318;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.spacer {
  flex: 1;
}

.iconbtn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
}

.container {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 18px 16px 96px;
}

.summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 18px;
}

.eyebrow {
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 34px;
  line-height: 1.05;
}

h2 {
  font-size: 19px;
}

.ghostLink {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--accent);
  font-weight: 800;
}

.controls {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 16px;
  scrollbar-width: none;
}

.chip {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-weight: 800;
}

.chip.active {
  background: var(--accent);
  color: white;
  box-shadow: none;
}

.searchRow {
  padding-bottom: 16px;
}

.searchRow input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.section {
  padding-top: 8px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-head a {
  color: var(--accent);
  font-weight: 800;
}

.recipeGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.recipeCard {
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.recipeArt {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e4ddd2;
}

.recipeBody {
  padding: 12px;
}

.recipeBody h3 {
  min-height: 42px;
  font-size: 16px;
  line-height: 1.25;
}

.recipeMeta,
.recipeTags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.recipeMeta {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.tag {
  margin-top: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #efb44324;
  color: #806018;
  font-size: 12px;
  font-weight: 800;
}

.recipeHero {
  display: grid;
  gap: 16px;
}

.recipeHero img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.recipeIntro {
  display: grid;
  gap: 10px;
}

.recipeIntro p {
  color: var(--muted);
  line-height: 1.5;
}

.panel {
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel h2 {
  margin-bottom: 12px;
}

.checkList,
.steps {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.checkList li,
.steps li,
.listItem {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.stepNum {
  display: inline-grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.list {
  display: grid;
  gap: 10px;
}

.listItem {
  justify-content: space-between;
  align-items: center;
}

.listTitle {
  font-weight: 850;
}

.listSub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.empty {
  padding: 22px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
  box-shadow: inset 0 0 0 1px var(--line);
}

.tabbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 12px max(10px, env(safe-area-inset-bottom));
  background: rgba(247, 244, 238, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.tab {
  display: grid;
  min-height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.tab.active {
  background: var(--ink);
  color: white;
}

@media (max-width: 430px) {
  .recipeGrid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 30px;
  }
}

