:root {
  --bg: #f8f3ef;
  --surface: #ffffff;
  --text: #3f3f3f;
  --muted: #6e6e6e;
  --accent: #dfeeff;
  --dark: #2f2f2f;
  --line: #e7dfd9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Barlow", "Montserrat", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

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

.topbar {
  background: var(--dark);
  color: #fff;
  padding: 12px 24px;
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.social-links,
.quick-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
}

.social-links a,
.quick-links a {
  opacity: 0.9;
  transition: opacity 0.25s ease;
}

.social-links a:hover,
.quick-links a:hover {
  opacity: 1;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 72px;
}

.brand-wrap {
  text-align: center;
  margin: 24px 0 28px;
}

.brand-name {
  font-family: "Amsterdam", cursive;
  font-size: clamp(48px, 8vw, 100px);
  margin: 0;
  line-height: 0.9;
  color: #262626;
}

.brand-tagline {
  margin: 10px 0 0;
  font-size: clamp(18px, 2.4vw, 30px);
  font-family: "Amsterdam", cursive;
  color: #4a4a4a;
}

.hero-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: stretch;
}

.hero-card,
.hero-search {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 32px rgba(39, 24, 17, 0.08);
}

.hero-card {
  flex: 1.5;
  min-width: 320px;
  overflow: hidden;
}

.hero-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.hero-card-content {
  padding: 20px;
}

.hero-card h2 {
  margin: 10px 0;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.1;
  font-family: "Amsterdam", cursive;
  font-weight: 400;
}

.chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent);
  font-weight: 700;
  margin: 0;
}

.meta {
  margin: 0 0 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
}

.hero-search {
  flex: 1;
  min-width: 300px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-search label {
  font-weight: 700;
  font-size: 18px;
}

.search-row input {
  width: 100%;
  border: 1px solid #d7d7d7;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.search-row input:focus {
  border-color: #98b3df;
  box-shadow: 0 0 0 4px rgba(146, 175, 223, 0.2);
}

.category-nav {
  margin-top: 4px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-chip {
  border: 1px solid #d8d8d8;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.nav-chip:hover,
.nav-chip.active {
  background: var(--accent);
  border-color: #b8cbea;
  transform: translateY(-2px);
}

.recipes-section {
  margin-top: 34px;
}

.category-block {
  margin-top: 36px;
}

.category-block h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 46px);
  font-family: "Amsterdam", cursive;
  font-weight: 400;
  color: #2e2e2e;
}

.recipe-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.recipe-card {
  flex: 1 1 calc(33.333% - 12px);
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.recipe-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 35px rgba(28, 22, 19, 0.14);
}

.recipe-image-link {
  display: block;
  overflow: hidden;
}

.recipe-image-link img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.recipe-card:hover .recipe-image-link img {
  transform: scale(1.06);
}

.recipe-content {
  padding: 18px;
}

.recipe-content h3 {
  margin: 0 0 8px;
  font-size: 25px;
  line-height: 1.08;
  font-family: "Amsterdam", cursive;
  font-weight: 400;
}

.recipe-content h3 a {
  transition: color 0.2s ease;
}

.recipe-content h3 a:hover {
  color: #1c4f98;
}

.recipe-content h4 {
  margin: 14px 0 8px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.recipe-content p {
  margin: 0 0 10px;
}

.recipe-content ul,
.recipe-content ol {
  margin: 0;
  padding-left: 20px;
}

.recipe-content li {
  margin-bottom: 5px;
}

@media (max-width: 900px) {
  .recipe-card {
    flex: 1 1 calc(50% - 10px);
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 10px 16px;
  }

  main {
    padding: 20px 16px 60px;
  }

  .hero-card img {
    height: 220px;
  }

  .recipe-card {
    flex: 1 1 100%;
  }
}
