:root {
  --bg: #f7f7f9;
  --bg-accent: #e9eef5;
  --text: #1b1d20;
  --muted: #5c6470;
  --card: #ffffff;
  --accent: #d36b12;
  --accent-soft: #f4d3b4;
  --tag: #f1c94f;
  --shadow: 0 14px 34px rgba(9, 23, 44, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, var(--bg-accent), var(--bg));
  line-height: 1.6;
}

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

a:hover {
  color: var(--accent);
}

.site-header {
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  background: #0b2a4a;
  color: #ffffff;
  border-bottom: none;
}

.site-title {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2.5rem, 3vw, 3.5rem);
  margin: 0;
  letter-spacing: 0.02em;
}

.site-subtitle {
  margin: 0.75rem auto 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.main {
  padding: 2.5rem 0 4rem;
}

.page-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  max-width: 1100px;
  margin: 0 auto;
}

.category-section {
  margin-bottom: 3rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0 0 1.5rem;
}

.category-title {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(1.6rem, 2vw, 2.1rem);
  margin: 0;
  text-transform: none;
}

.category-rule {
  flex: 1;
  height: 1px;
  background: #d1d8e3;
}

.subcategory-block {
  margin-bottom: 2.5rem;
}

.subcategory-title {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.2rem;
  margin: 0 0 1rem;
  color: #4b433b;
}

.recipe-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.card-image-placeholder {
  height: 190px;
  background: linear-gradient(145deg, #f1d2b1, #f7e4c9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7f5a3c;
  font-size: 0.95rem;
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.card-title {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.35rem;
  margin: 0;
}

.card-desc {
  color: var(--muted);
  margin: 0;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--accent-soft);
  color: #6b2d00;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.tag {
  background: var(--tag);
  color: #5a3b00;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
}

.tag-vegetarisch {
  background: #bfe6b3;
  color: #1f4a1b;
}

.tag-veganistisch {
  background: #79c173;
  color: #0f3a1a;
}

.tag-vlees {
  background: #e9a4a4;
  color: #5a1b1b;
}

.tag-vis {
  background: #9fc4f2;
  color: #1b3657;
}

.tag-gebak {
  background: #e18a3a;
  color: #3b1b00;
}

.tag-toetje {
  background: #caa0d6;
  color: #3f1a4c;
}

.tag-lunch {
  background: #f2b28c;
  color: #5a2a0b;
}

.recipe-hero {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 2rem;
}

.recipe-hero img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.recipe-article {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.recipe-title {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2rem, 2.5vw, 2.8rem);
  margin-top: 0;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}

.meta-item {
  background: #e9eef5;
  color: #2b3a4f;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
}

footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .site-header {
    padding: 2.5rem 1.25rem 2rem;
  }

  .card-image,
  .card-image-placeholder {
    height: 160px;
  }

  .recipe-article {
    padding: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 700px) {
  .card-grid {
    grid-template-columns: repeat(1, minmax(260px, 1fr));
  }
}
