:root {
  --red: #d61f26;
  --red-dark: #9b1218;
  --gold: #f5c518;
  --gold-deep: #c99212;
  --wood: #6b3e1f;
  --wood-light: #8b5a2b;
  --cream: #fff6e8;
  --ink: #1a120c;
  --white: #fffdf8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
}

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

a { color: inherit; }

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.topbar {
  background: linear-gradient(#1a120c, #2b1a10);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  flex-wrap: wrap;
}
.topbar a { color: var(--gold); text-decoration: none; }

header.site {
  background: #fff;
  border-bottom: 6px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  background: #000;
  border-radius: 50%;
  border: 3px solid var(--gold);
}
.brand-text strong {
  display: block;
  font-size: 1.35rem;
  color: var(--red);
  letter-spacing: 0.5px;
}
.brand-text span {
  font-size: 0.82rem;
  color: var(--wood);
  font-style: italic;
}

nav.main {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
nav.main a {
  text-decoration: none;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
}
nav.main a:hover,
nav.main a.active {
  background: var(--red);
  color: #fff;
}

.menu-btn {
  display: none;
  background: var(--red);
  color: #fff;
  border: 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
}

/* Hero */
.hero {
  background:
    linear-gradient(180deg, rgba(26,18,12,.55), rgba(26,18,12,.72)),
    radial-gradient(circle at 70% 20%, #ff7a1a 0%, transparent 40%),
    #1a120c;
  color: #fff;
  padding: 36px 0 48px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}
.hero img.logo-hero {
  width: min(460px, 100%);
  margin: 0 auto;
  filter: drop-shadow(0 16px 24px rgba(0,0,0,.45));
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.95;
  text-transform: uppercase;
}
.hero h1 em {
  color: var(--gold);
  font-style: normal;
}
.tag {
  margin: 14px 0 22px;
  font-size: 1.15rem;
  color: #ffe7a8;
}
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
}
.btn.gold { background: var(--gold); color: #1a120c; }
.btn.ghost {
  background: transparent;
  border: 2px solid #fff;
}

/* Sections */
section { padding: 56px 0; }
h2.section {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}
.lede { margin-bottom: 28px; color: #4a3426; max-width: 720px; }

.cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cat {
  background: #fff;
  border: 3px solid #1a120c;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 6px 6px 0 #1a120c;
}
.cat .art {
  height: 150px;
  display: grid;
  place-items: center;
  font-size: 3.2rem;
  background: linear-gradient(135deg, #ffd36a, #ff7a1a 60%, #d61f26);
}
.cat .body { padding: 16px; }
.cat h3 { margin-bottom: 6px; }
.cat p { color: #5b4332; font-size: 0.95rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #e8d3b8;
}
.card .thumb {
  height: 170px;
  display: grid;
  place-items: center;
  font-size: 3.4rem;
  background: #2b1a10;
  color: var(--gold);
}
.card .body { padding: 16px; }
.pill {
  display: inline-block;
  background: #ffe7a8;
  color: #6b3e1f;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.meta { color: #6b5343; font-size: 0.9rem; margin-top: 8px; }

/* Recipe page */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}
.filters button {
  border: 2px solid #1a120c;
  background: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}
.filters button.on,
.filters button:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.recipe {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  border: 2px solid #e8d3b8;
  margin-bottom: 18px;
}
.recipe h3 { color: var(--red); }
.recipe ul, .recipe ol { margin: 10px 0 0 20px; }

/* Gallery */
.uploader {
  background: #fff;
  border: 3px dashed var(--wood);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 22px;
}
.uploader h3 { margin-bottom: 8px; }
.uploader input[type="file"],
.uploader input[type="text"] {
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  border: 2px solid #d8c2a6;
  border-radius: 10px;
  font-size: 1rem;
}
.note { font-size: 0.9rem; color: #6b5343; margin-top: 8px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.g-item {
  position: relative;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  min-height: 160px;
}
.g-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.g-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
  color: #fff;
  padding: 24px 10px 8px;
  font-size: 0.85rem;
}
.g-item button.del {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #d61f26;
  color: #fff;
  border: 0;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-weight: 800;
}

/* About / contact */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}
.panel {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  border: 2px solid #e8d3b8;
}
label { display: block; font-weight: 700; margin: 10px 0 4px; }
input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #d8c2a6;
  border-radius: 10px;
  font: inherit;
}
textarea { min-height: 120px; resize: vertical; }

footer {
  background: #1a120c;
  color: #f3e2c8;
  padding: 28px 0 18px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
footer a { color: var(--gold); }

@media (max-width: 900px) {
  .hero-grid, .cats, .cards, .gallery, .split {
    grid-template-columns: 1fr;
  }
  .gallery { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: block; }
  nav.main {
    display: none;
    width: 100%;
    flex-direction: column;
  }
  nav.main.open { display: flex; }
  header.site .wrap { flex-wrap: wrap; }
}