:root {
  --main-color: #d62828;
  --accent-color: #f77f00;
  --bg-color: #fff8f0;
  --text-color: #2b2b2b;
  --light: #f4f4f4;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

header {
  background-color: var(--main-color);
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  flex-wrap: wrap;
}

header h1 {
  font-size: 1.8rem;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 1.2rem;
  font-weight: 500;
}

nav a:hover,
nav a.active {
  color: var(--accent-color);
}

.hamburger-icon {
  display: none;
  width: 180px;
  height: 100vh;
  position: absolute;
  right: 0;
  top: 0;
  background-color: #d62828;
}
.hamburger-icon a {
  display: flex;
  height: 40px;
  flex-direction: column;
  padding-left: 10px;
  color: #eeeeee;
  text-decoration: none;
  font-weight: 600;
  padding-top: 10px;
}

.hamburger-icon a:hover {
  cursor: pointer;
}
.hamburger {
  display: none;
}
.page-title {
  text-align: center;
  padding: 2rem 1rem 1rem;
}

.page-title h2 {
  font-size: 2rem;
  color: var(--main-color);
  margin-bottom: 0.5rem;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.recipe-card {
  background-color: var(--light);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
}

.recipe-card h3 {
  margin-bottom: 1rem;
  color: var(--main-color);
}

.recipe-card p {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.recipe-card span {
  color: #ffc107;
  font-size: 1.1rem;
}

footer {
  background-color: var(--main-color);
  color: white;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}

@media (max-width: 750px) {
  header {
    align-items: flex-start;
  }

  .hamburger {
    display: inline;
  }
  .hamburger-icon {
    display: block;
  }
  nav {
    display: none;
  }

  nav a {
    margin: 0.3rem 0;
    display: block;
  }

  .recipe-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}
