/* ---
Theme: Retro / Vintage
Font: Playfair Display (Serif) & Montserrat (Sans-serif)
Primary Colors: Beige, Dark Sepia, Muted Red
--- */

/* CSS Variables */
:root {
  --bg-color: #f5f5dc; /* Beige */
  --surface-color: #ffffff;
  --primary-accent: #8B0000; /* Dark Red */
  --primary-accent-hover: #a52a2a; /* Brown */
  --text-color: #5d4037; /* Dark Sepia */
  --text-color-secondary: #795548;
  --border-color: #d7ccc8;
  --font-family-serif: 'Playfair Display', serif;
  --font-family-sans: 'Montserrat', sans-serif;
}

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

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

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

h1 { font-size: 3rem; color: var(--primary-accent); text-align: center; }
h2 { font-size: 2.2rem; margin-top: 3rem; padding-bottom: 0.8rem; border-bottom: 2px solid var(--border-color); }
h3 { font-size: 1.6rem; color: var(--text-color); font-weight: 600; }

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

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

a:hover {
  color: var(--primary-accent-hover);
  text-decoration: underline;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

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

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

.site-title {
  font-family: var(--font-family-serif);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-color);
}

.site-title a {
  text-decoration: none;
  color: inherit;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

.main-nav a {
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-color);
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

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

/* Intro Section */
.intro-section {
    padding: 4rem 0;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
}

.intro-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Main Layout */
.main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 2rem 0;
}

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

main, aside {
  padding: 0;
}

/* Article Cards */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

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

.article-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 2rem;
  box-shadow: 0 4px 8px 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 8px 16px rgba(0,0,0,0.08);
}

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

.read-more-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  background-color: var(--primary-accent);
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.read-more-btn:hover {
  background-color: var(--primary-accent-hover);
  color: white;
}

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

.sidebar-widget h3 {
  font-family: var(--font-family-serif);
  font-size: 1.4rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-top: 0;
}

.sidebar-widget ul {
  list-style: none;
  margin-top: 1rem;
}

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

.promo-text {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-color);
}

/* Single Article Page */
.article-content {
  background: var(--surface-color);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
}

.article-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
}

.article-header h1 {
    margin-bottom: 0.5rem;
}

.article-meta {
  font-size: 0.9rem;
  color: var(--text-color-secondary);
  font-style: italic;
}

/* Simple Page Wrapper */
.content-wrapper {
    background-color: var(--surface-color);
    padding: 3rem;
    border: 1px solid var(--border-color);
    margin-top: 2rem;
}

/* Call to Action Section */
.cta-section {
  margin-top: 3rem;
  padding: 2rem;
  text-align: center;
  background-color: var(--bg-color);
  border: 1px dashed var(--border-color);
}

.cta-section h2 {
    border: none;
}

.cta-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 1rem 2rem;
  background-color: var(--primary-accent);
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  font-size: 1.1rem;
}

.cta-btn:hover {
  background-color: var(--primary-accent-hover);
  color: white;
}


/* Footer */
.site-footer {
  background-color: var(--text-color);
  color: var(--bg-color);
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 4px solid var(--primary-accent);
}

/* Responsive Styles */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.8rem; }
  
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }

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