/* ---
Theme: Storytelling / Blog Focus
Font: Merriweather (Serif), Montserrat (Sans-Serif)
Primary Colours: Off-White, Charcoal, Warm Tan
--- */

/* CSS Variables */
:root {
  --bg-color: #fdfdfc;
  --surface-color: #faf8f5;
  --text-color: #4a4a4a;
  --heading-color: #333333;
  --border-color: #e6e2de;
  --accent-color: #c58a47;
  --font-family-headings: 'Montserrat', sans-serif;
  --font-family-body: 'Merriweather', serif;
}

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

body {
  font-family: var(--font-family-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.8;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headings);
  color: var(--heading-color);
  margin-bottom: 1.5rem;
  line-height: 1.3;
  font-weight: 600;
}

h1 { font-size: 2.8rem; text-align: center; }
h2 { font-size: 2rem; margin-top: 3rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); }
h3 { font-size: 1.4rem; font-weight: 600; }

p {
  margin-bottom: 1.75rem;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
}

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

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

.site-title {
  font-size: 1.5rem;
  font-family: var(--font-family-headings);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.site-title a {
  text-decoration: none;
  color: var(--heading-color);
}

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

.main-nav a {
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-family-headings);
  color: var(--text-color);
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

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

/* Intro Section */
.intro-section {
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.intro-section p {
    font-size: 1.2rem;
    max-width: 750px;
    margin: 1rem auto 0;
    color: #555;
}

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

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

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

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

.article-card {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.article-card-content {
    padding: 2rem;
    flex-grow: 1;
}

.article-card h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.3rem;
}

.article-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}

.read-more-btn {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-family: var(--font-family-headings);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-decoration: none;
}

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

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

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

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

.sidebar-widget ul li a {
    color: var(--text-color);
    font-weight: 400;
    font-family: var(--font-family-body);
}

.promo-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
}

/* Single Article & Content Page */
.article-content, .content-wrapper {
  background: var(--bg-color);
  padding: 1rem;
}
.content-wrapper {
    margin-top: 2rem;
    max-width: 800px; /* Constrain line length for readability */
    margin-left: auto;
    margin-right: auto;
}

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

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

.article-meta {
  font-size: 0.9rem;
  color: #777;
  font-family: var(--font-family-headings);
}

/* Call to Action Section */
.cta-section {
  margin-top: 3rem;
  padding: 2.5rem;
  text-align: center;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background-color: var(--surface-color);
}

.cta-section h2 {
    border: none;
    margin: 0 0 1rem 0;
    font-size: 1.6rem;
}

.cta-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 1rem 2.5rem;
  background-color: var(--accent-color);
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-family-headings);
  transition: all 0.3s ease;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-btn:hover {
  background-color: #333;
  color: #fff;
  text-decoration: none;
}

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

.site-footer p {
    color: #777;
    margin: 0;
    font-family: var(--font-family-headings);
    font-weight: 400;
}

/* Responsive Styles */
@media (max-width: 768px) {
  body { font-size: 16px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  
  .header-container {
    flex-direction: column;
    gap: 1.5rem;
  }

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

  .article-content, .content-wrapper {
      padding: 0;
  }

  .articles-grid {
      grid-template-columns: 1fr;
  }
}