:root {
  --primary-color: #8B5544;
  --secondary-color: #5C3D2E;
  --bg-color: #ffffff;
  --text-color: #171717;
  --light-accent: #FAF7F2;
  --transition-speed: 0.3s ease;
  --serif-font: 'Playfair Display', serif;
  --sans-font: 'Montserrat', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--sans-font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .site-title {
  font-family: var(--serif-font);
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1.2;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}

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

/* Header & Navigation */
header {
  padding: 2rem 5%;
  border-bottom: 1px solid var(--light-accent);
  text-align: center;
}

.site-title {
  font-size: 2.5rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}

nav ul li a {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-weight: 500;
  color: var(--text-color);
}

nav ul li a:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  position: relative;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 4rem;
  background-color: var(--secondary-color);
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

.hero-content {
  text-align: center;
  z-index: 2;
  padding: 2rem;
  max-width: 800px;
  color: #ffffff;
}

.hero h1, .hero h2 {
  color: #ffffff;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Layout & Grid */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 3rem;
  margin-bottom: 5rem;
}

/* Cards & Magazine Style */
.recipe-card {
  transition: transform var(--transition-speed);
}

.recipe-card:hover {
  transform: translateY(-5px);
}

.recipe-card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.recipe-category {
  color: var(--primary-color);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 0.5rem;
}

.recipe-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 1rem 2.5rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.btn:hover {
  background-color: var(--secondary-color);
  color: #ffffff;
  transform: scale(1.02);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: #ffffff;
}

/* Article Styling */
.article-header {
  max-width: 800px;
  margin: 4rem auto;
  text-align: center;
}

.article-content {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-content p {
  margin-bottom: 2rem;
}

.recipe-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--light-accent);
  border-bottom: 1px solid var(--light-accent);
  font-size: 0.9rem;
  color: var(--secondary-color);
  font-weight: 500;
}

/* Footer */
footer {
  background-color: var(--light-accent);
  padding: 5rem 2rem;
  text-align: center;
  margin-top: 5rem;
}

.footer-nav {
  margin-bottom: 2rem;
}

.footer-nav a {
  margin: 0 1rem;
  color: var(--secondary-color);
  font-size: 0.9rem;
}

.copyright {
  font-size: 0.8rem;
  color: #888;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .site-title { font-size: 1.8rem; }
  nav ul { flex-direction: column; gap: 1rem; }
    .hero h1, .hero h2 { font-size: 2.2rem; }
  .recipe-grid { grid-template-columns: 1fr; }
}