
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&display=swap');

:root {
  --primary-text-color: #3D405B; /* Muted Blue-Gray */
  --secondary-text-color: #5a5e83;
  --accent-color-1: #81B29A; /* Sage Green */
  --accent-color-2: #E07A5F; /* Terracotta */
  --bg-color: #F4F1DE; /* Earthy Beige */
  --card-bg-color: #FFFFFF;
  --border-color: #e0e0e0;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  --font-family: 'Merriweather', serif;
}

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

body {
  font-family: var(--font-family);
  color: var(--primary-text-color);
  background-color: var(--bg-color);
  background-image: linear-gradient(to bottom right, #f4f1de, #f1eee4);
  background-attachment: fixed;
  line-height: 1.7;
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* --- Header & Navigation --- */
.site-header {
  background: var(--card-bg-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-text-color);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--primary-text-color);
  text-decoration: none;
  font-weight: 400;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--accent-color-1);
  transition: width 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--accent-color-1);
}

.main-nav a:hover::after, .main-nav a.active::after {
  width: 100%;
}

/* --- Main Content --- */
main {
  flex: 1;
  padding: 2rem 0;
}

.main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .main-layout {
    grid-template-columns: 3fr 1fr;
  }
}

.content-area {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.card {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

h1, h2, h3 {
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--primary-text-color);
  line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }

p {
  margin-bottom: 1.5rem;
  color: var(--secondary-text-color);
}

a {
  color: var(--accent-color-2);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
}

a:hover {
  color: #c96850;
  text-decoration: underline;
}

.btn {
  display: inline-block;
  background: var(--accent-color-1);
  color: #fff;
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
}

.btn:hover {
  background: #6aa382;
  transform: translateY(-3px);
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(129, 178, 154, 0.4);
}

/* --- Blog Post Grid --- */
.blog-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .blog-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.blog-post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-post-card h3 {
  font-size: 1.4rem;
  margin-top: 0;
}

.blog-post-card p {
  flex-grow: 1;
}

/* --- Article Page --- */
.article-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.article-meta {
  font-size: 0.9rem;
  color: #888;
  margin-top: 0.5rem;
}

.article-content h2, .article-content h3 {
  margin-top: 2.5rem;
}

.article-content ul {
  list-style-position: inside;
  padding-left: 1rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-text-color);
}

/* --- Sidebar --- */
.sidebar-widget ul {
  list-style: none;
}

.sidebar-widget li {
  margin-bottom: 0.75rem;
}

.sidebar-widget a {
  color: var(--secondary-text-color);
  font-weight: 400;
}

.sidebar-widget a:hover {
  color: var(--accent-color-2);
  text-decoration: none;
}

.promo-text {
  font-style: italic;
  font-weight: 400;
  color: var(--secondary-text-color);
  border-left: 4px solid var(--accent-color-1);
  padding: 1rem 1.5rem;
  background: #f8f6f0;
  border-radius: 8px;
}

/* --- Footer --- */
.site-footer {
  background: #e9e5d6;
  padding: 2rem 0;
  text-align: center;
  color: #6c6a62;
  margin-top: 2rem;
  font-size: 0.9rem;
}

/* --- Contact Form --- */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #fcfaf3;
    color: var(--primary-text-color);
    font-family: var(--font-family);
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color-1);
    box-shadow: 0 0 0 3px rgba(129, 178, 154, 0.3);
}
