:root {
  --bg: #1a140e;
  --bg-soft: #241b12;
  --card: #2b2015;
  --card-hover: #332516;
  --text: #f3e9d7;
  --text-soft: #c9b896;
  --muted: #9a876a;
  --accent: #e0a458;
  --accent-2: #c97b3d;
  --gold: #d9a441;
  --border: #453524;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.65);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Avenir", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(224, 164, 88, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(201, 123, 61, 0.1), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

/* ===== Header / Hero ===== */
header {
  position: relative;
  text-align: center;
  padding: 4.5rem 1.5rem 4rem;
  background: linear-gradient(135deg, #31230f 0%, #23160a 55%, #1a120a 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

header::before,
header::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

header::before {
  width: 340px;
  height: 340px;
  background: rgba(224, 164, 88, 0.35);
  top: -120px;
  left: 8%;
}

header::after {
  width: 300px;
  height: 300px;
  background: rgba(201, 123, 61, 0.35);
  bottom: -140px;
  right: 6%;
}

header h1 {
  position: relative;
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(120deg, #f7dfae, var(--gold), #e0a458);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 0.6rem;
}

header p {
  position: relative;
  color: var(--text-soft);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

.badge {
  position: relative;
  display: inline-block;
  margin-bottom: 1.4rem;
  padding: 0.4rem 1.1rem;
  border: 1px solid rgba(224, 164, 88, 0.45);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(224, 164, 88, 0.08);
}

/* ===== Layout ===== */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1.5rem;
}

/* ===== Recipe card ===== */
.recipe {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.8rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
  counter-increment: recipe;
}

.recipe::before {
  content: "0" counter(recipe);
  position: absolute;
  top: -10px;
  right: 6px;
  font-family: Georgia, serif;
  font-size: 5.2rem;
  font-weight: 700;
  color: rgba(224, 164, 88, 0.07);
  line-height: 1;
  pointer-events: none;
}

main {
  counter-reset: recipe;
}

.recipe:hover {
  transform: translateY(-6px);
  border-color: rgba(224, 164, 88, 0.5);
  background: var(--card-hover);
  box-shadow: 0 30px 55px -22px rgba(0, 0, 0, 0.8);
}

.recipe h2 {
  position: relative;
  font-family: Georgia, "Palatino Linotype", Palatino, serif;
  color: var(--gold);
  font-size: 1.45rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed var(--border);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.meta span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(224, 164, 88, 0.1);
  border: 1px solid rgba(224, 164, 88, 0.25);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  letter-spacing: 0.4px;
}

h3 {
  position: relative;
  font-family: Georgia, serif;
  color: var(--text);
  font-size: 1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 1.2rem 0 0.55rem;
}

h3::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 0.3rem;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

ul,
ol {
  margin-left: 1.15rem;
  margin-bottom: 0.4rem;
}

li {
  margin-bottom: 0.32rem;
  color: var(--text-soft);
}

li::marker {
  color: var(--accent);
}

.tip {
  margin-top: 1.1rem;
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
  color: var(--text-soft);
  background: linear-gradient(90deg, rgba(224, 164, 88, 0.12), transparent 80%);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

/* ===== Nav / Back ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: flex-start;
  padding: 0.7rem 1.2rem;
  background: rgba(26, 20, 14, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(224, 164, 88, 0.4);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  background: rgba(224, 164, 88, 0.08);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.back-link:hover {
  background: var(--accent);
  color: #1a140e;
  border-color: var(--accent);
}

.footer-back {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  padding-bottom: 1rem;
  display: inline-block;
}

.footer-back:hover {
  text-decoration: underline;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

footer::before {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  margin: 0 auto 1.4rem;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

@media (max-width: 700px) {
  header {
    padding: 3rem 1rem 2.6rem;
  }

  header h1 {
    font-size: 2.1rem;
  }

  main {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem 2rem;
  }

  .recipe {
    padding: 1.4rem;
  }
}

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