/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Merriweather:wght@400;700&display=swap');

/* --- CSS Variables (Retro / Vintage Theme) --- */
:root {
  --bg-color: #fdfaf3; /* Creamy off-white */
  --text-color: #4a4a4a;
  --heading-color: #333333;
  --accent-color: #b96a43; /* Burnt Sienna */
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Merriweather', serif;
}

/* --- Global & Reset Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.8;
  font-size: 17px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--heading-color);
  margin-bottom: 1rem;
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1.5rem; }

a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

a:hover {
  color: #000;
  border-bottom: 1px solid #000;
}

/* --- Layout --- */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 0;
}

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

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

/* --- Header & Navigation --- */
.site-header {
  background-color: var(--bg-color);
  padding: 1.5rem 0;
  border-bottom: 2px solid var(--border-color);
  text-align: center;
}

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

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

.main-nav a {
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.5rem 0;
  border: none;
}

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


/* --- Main Content & Articles --- */
.article-list {
  display: grid;
  gap: 2.5rem;
}

.article-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.article-card h2 {
    margin-top: 0;
}

.btn-read-more {
  display: inline-block;
  background-color: var(--accent-color);
  border: 2px solid var(--accent-color);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 5px;
  font-weight: 700;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-bottom: none;
}

.btn-read-more:hover {
  background-color: var(--heading-color);
  border-color: var(--heading-color);
  color: #fff;
  border-bottom: none;
}

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

.article-meta {
  font-size: 0.9rem;
  color: #777;
  margin-top: -0.5rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.article-content {
    background: var(--card-bg);
    border-radius: 5px;
    border: 1px solid var(--border-color);
    padding: 2.5rem;
}

.article-content h2, .article-content h3 {
    margin-top: 2.5rem;
    color: var(--heading-color);
}

.article-content ul {
    list-style-position: inside;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.article-content ul li {
    margin-bottom: 0.75rem;
}

.cta-box {
    background-color: #fff9f2;
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--accent-color);
    padding: 2rem;
    border-radius: 5px;
    margin: 2.5rem auto 0;
    text-align: center;
}

/* --- Sidebar --- */
.sidebar-widget {
  background: var(--card-bg);
  border-radius: 5px;
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.sidebar-widget h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 1.3rem;
}

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

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

.sidebar-widget ul li a {
    font-weight: 400;
    border: none;
}

.sidebar-widget ul li a:hover {
    color: var(--heading-color);
    border: none;
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 2.5rem 0;
  margin-top: 2rem;
  border-top: 2px solid var(--border-color);
  font-size: 0.9rem;
  color: #888;
  background-color: var(--bg-color);
}

/* --- Media Queries --- */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.8rem; }
  
  .site-header {
    padding: 1rem 0;
  }

  .site-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .main-nav ul {
    gap: 0.5rem 1.5rem;
  }

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