:root {
  --primary-color: #8b5a2b;
  --bg-light: #fdfbf7;
  --text-light: #2c2c2c;
  --bg-dark: #121212;
  --text-dark: #e0e0e0;
  --accent: #d2b48c;
  --font-family: 'Inter', system-ui, sans-serif;
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: var(--bg-dark);
    color: var(--text-dark);
  }
  .card {
    background-color: #1e1e1e;
    border: 1px solid #333;
  }
  header {
    background-color: rgba(18, 18, 18, 0.9);
  }
}

@media (prefers-color-scheme: light) {
  body {
    background-color: var(--bg-light);
    color: var(--text-light);
  }
  .card {
    background-color: #ffffff;
    border: 1px solid #eee;
  }
  header {
    background-color: rgba(253, 251, 247, 0.9);
  }
}

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

body {
  font-family: var(--font-family);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: -0.5px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  transition: var(--transition);
}

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

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 90, 43, 0.3);
}

.hero-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-content p {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* Article Page specific styles */
.article-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.article-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.article-featured-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 3rem;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.article-content h2 {
  margin: 2.5rem 0 1rem;
  font-size: 2rem;
}

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

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  nav ul {
    display: none;
  }
}

footer {
  text-align: center;
  padding: 3rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-top: 4rem;
  font-size: 0.9rem;
  opacity: 0.7;
}
