:root {
  --red: #023020;
  --red-dark: #011a14;
  --ink: #2a2420;
  --muted: #6b6158;
  --cream: #faf6f0;
  --paper: #fffdf9;
  --tan: #f3e6c8;
  --tan-dark: #e2d3b0;
  --line: #e6dcd0;
  --chip: #f3ebe1;
  --shadow: 0 8px 24px rgba(42, 36, 32, 0.08);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.site-header { background: #f3e6c8; color: #2a2420; }
.wrap {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.15rem;
  padding-right: 1.15rem;
}
.utility-bar {
  width: 100%;
  background: #f3e6c8;
  border-bottom: 1px solid #e2d3b0;
}
.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.25rem;
  padding-top: .42rem;
  padding-bottom: .42rem;
}
.utility-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .85rem 1rem;
}
.mast-date { margin: 0; font-size: .84rem; letter-spacing: .03em; }
.utility-bar a, .nav-toggle { color: #2a2420; font-weight: 600; text-decoration: none; }
.utility-bar a:hover { text-decoration: underline; text-underline-offset: .15em; }
.nameplate {
  width: 100%;
  background: #023020;
  color: #f4efe4;
  padding: .55rem 0;
  text-align: left;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #f4efe4;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(92vw, 560px);
  margin: 0;
}
.recipe-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  display: block;
  background: #f3e6c8;
  border-top: 1px solid #e2d3b0;
  border-bottom: 1px solid #e2d3b0;
  padding: .45rem 0;
}
.recipe-nav-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0;
}
.recipe-nav a {
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .74rem;
  font-weight: 700;
  padding: .28rem .72rem;
  border-right: 1px solid var(--tan-dark);
}
.recipe-nav a:last-child { border-right: 0; }
.recipe-nav a:hover, .recipe-nav a.active {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: .22em;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--ink);
  font: inherit;
  font-size: .84rem;
  padding: .2rem .65rem;
  cursor: pointer;
}
.site-main { max-width: 1120px; margin: 0 auto; padding: .75rem 1.25rem 2.5rem; }
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 1.25rem; display: flex; justify-content: space-between; color: var(--muted); font-size: .9rem; }
.hero {
  background: linear-gradient(135deg, #fff 0%, #f7e8df 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
}
.eyebrow { letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; color: var(--red); font-weight: 700; margin: 0 0 .4rem; }
.hero h1 { margin-bottom: .75rem; }
.hero p { max-width: 38rem; color: var(--muted); }
.btn {
  display: inline-block;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: .7rem 1.15rem;
  border-radius: 999px;
  text-decoration: none !important;
}
.btn.primary { background: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-dark); }
.btn.ghost { background: transparent; color: var(--red); border: 1px solid var(--red); }
.btn.danger { background: #8a1f16; color: #fff; }
.btn.danger:hover { background: #6b1510; }
.actions a, .actions input { margin-right: .75rem; white-space: nowrap; }
.actions { white-space: nowrap; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: .85rem 0 .65rem; }
.home-cats .section-head { margin-top: .15rem; }
.chip-row, .subcats { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1.5rem; list-style: none; }
.chip, .subcats a {
  background: var(--chip);
  color: var(--ink);
  padding: .45rem .85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
}
.subcats a { display: inline-block; }
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.recipe-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  color: inherit;
  display: flex;
  flex-direction: column;
}
.recipe-card:hover { text-decoration: none; transform: translateY(-2px); }
.card-photo {
  display: block;
  height: 180px;
  background: #efe6db center/cover no-repeat;
}
.card-body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .25rem; }
.muted, .hint { color: var(--muted); font-size: .9rem; }
.stars { color: #d4a017; letter-spacing: 1px; }
.rating-count { color: var(--muted); font-size: .85rem; }
.crumbs { color: var(--muted); font-size: .92rem; margin-bottom: .75rem; }
.crumbs span { margin: 0 .35rem; }
.page-head p { color: var(--muted); max-width: 46rem; }
.category-list { columns: 2; padding-left: 1.2rem; }
.category-list li { break-inside: avoid; margin: .35rem 0; }
.category-list a { color: var(--ink); font-weight: 600; }
.category-list.compact { columns: 3; }
.az-block { margin: 1.5rem 0; }
.category-hero {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.1rem;
  margin-bottom: 1.5rem;
}
.lead { color: var(--muted); max-width: 46rem; }
.explore { margin: 0 0 1rem; font-size: 1.4rem; }
.recipe-title { margin-top: .25rem; }
.recipe-meta { color: var(--muted); display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.recipe-top {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: start;
  margin: 1.25rem 0 2rem;
}
.ingredients-col, .directions-block, .review-block, .panel, .login-card, .admin-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
}
.recipe-photo {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  max-height: 260px;
  box-shadow: var(--shadow);
  background: #efe6db;
}
.ingredient-list, .direction-list { margin: .5rem 0 0; padding-left: 1.1rem; }
.ingredient-list li, .direction-list li { margin: .4rem 0; }
.direction-list li { padding-left: .25rem; }
.review-block { margin-top: 1.5rem; }
.review { border-top: 1px solid var(--line); padding: 1rem 0; }
.review time { display: block; color: var(--muted); font-size: .85rem; }
.review-form { margin: 1rem 0 1.5rem; }
.field { margin: .85rem 0; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; }
input[type=text], input[type=password], textarea, select {
  width: 100%;
  font: inherit;
  padding: .55rem .7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.field-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.load-row { display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: start; }
.search-bar {
  display: flex;
  gap: .6rem;
  align-items: center;
  margin: 0 0 1.1rem;
  max-width: 40rem;
}
.search-bar input[type=text] { flex: 1; width: auto; }
.photo-preview { display: block; max-width: 140px; margin-top: .6rem; border-radius: 10px; }
.photo-url { margin-top: .5rem; }
input[type=file] { display: block; margin: .35rem 0 .5rem; }
.cat-toolbar {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .25rem;
}
.cat-heading { font-weight: 700; }
.cat-filter {
  flex: 1;
  min-width: 12rem;
  max-width: 22rem;
  margin: 0;
  font: inherit;
  padding: .4rem .6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.cat-board { display: grid; gap: .4rem; }
.cat-group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .3rem .55rem .35rem;
}
.cat-parent { font-weight: 700; margin: 0 0 .15rem; line-height: 1.25; font-size: .95rem; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: .4rem;
  row-gap: 0;
}
.cat-item { font-weight: 400; font-size: .86rem; line-height: 1.25; }
#categories .cat-item label,
#categories .cat-parent label {
  display: inline;
  margin: 0;
  font-weight: inherit;
  cursor: pointer;
}
#categories .cat-item input[type=checkbox],
#categories .cat-parent input[type=checkbox] {
  margin: 0 .3rem 0 0;
  vertical-align: middle;
}
.cat-item label, .cat-parent { cursor: pointer; }
.cat-group.is-hidden, .cat-item.is-hidden { display: none; }
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.data { width: 100%; border-collapse: collapse; background: #fff; }
.data th, .data td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
.notice, .error, .empty { padding: .8rem 1rem; border-radius: 10px; }
.notice { background: #eef6ea; }
.notice.ok { background: #eef6ea; color: #215c2a; }
.error { background: #fdecea; color: #8a1f16; }
.empty { color: var(--muted); }
.login-card { max-width: 420px; margin: 2rem auto; }
.instagram-load { margin: 1rem 0 1.5rem; }
@media (max-width: 900px) {
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .category-list, .category-list.compact { columns: 2; }
  .recipe-top { grid-template-columns: 1fr; }
  .photo-col { order: -1; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .recipe-grid { grid-template-columns: 1fr; }
  .category-list, .category-list.compact { columns: 1; }
  .nav-toggle { display: inline-flex; }
  .recipe-nav { display: none; position: static; padding: 0; }
  .recipe-nav.open { display: block; }
  .recipe-nav-inner { flex-direction: column; }
  .recipe-nav a { border-right: 0; border-bottom: 1px solid var(--tan-dark); padding: .55rem 1.15rem; font-size: .9rem; }
  .brand-logo { height: 40px; }
  .utility-inner { flex-wrap: wrap; }
  .load-row { grid-template-columns: 1fr; }
}
