/* ---
Theme: Retro / Vintage
Font: Playfair Display (Serif)
Primary Colors: Off-White, Burnt Orange, Slate Blue, Dark Grey
--- */

/* CSS Variables */
:root {
  --bg-color: #fdf6e3; /* Solarized Light / Vintage Paper */
  --surface-color: #fefcf5;
  --primary-accent: #cb4b16; /* Burnt Orange */
  --secondary-accent: #268bd2; /* Slate Blue */
  --text-color: #586e75; /* Dark Slate Gray */
  --heading-color: #073642; /* Darker Slate */
  --border-color: #93a1a1;
  --font-family-headings: 'Playfair Display', serif;
  --font-family-body: 'Montserrat', sans-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.7;
  font-size: 16px;
  -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: 1rem;
  line-height: 1.3;
  font-weight: 700;
}

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

p {
  margin-bottom: 1.25rem;
}

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

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

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

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

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

.site-title {
  font-family: var(--font-family-headings);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--heading-color);
}

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

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

.main-nav a {
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-family-body);
  text-decoration: none;
  color: var(--text-color);
  padding-bottom: 5px;
  transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-accent);
  text-decoration: underline;
}

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

.intro-section h1 {
    font-weight: 800;
    font-style: italic;
}

.intro-section p {
    font-size: 1.2rem;
    max-width: 750px;
    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: 3fr 1fr;
  }
}

/* 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: 2px solid var(--heading-color);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 5px 5px 0px var(--heading-color);
}

.article-card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 10px 10px 0px var(--primary-accent);
}

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

.article-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.4rem;
}

.article-card p {
    font-size: 1rem;
}

.read-more-btn {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
}

/* Sidebar */
.sidebar-widget {
  background-color: var(--surface-color);
  border: 2px solid var(--heading-color);
  border-radius: 5px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 5px 5px 0px var(--border-color);
}

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

.sidebar-widget ul {
  list-style-position: inside;
  padding-left: 5px;
}

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

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

/* Single Article & Content Page */
.article-content, .content-wrapper {
  background: var(--surface-color);
  padding: 2.5rem;
  border: 2px solid var(--heading-color);
  border-radius: 5px;
  box-shadow: 5px 5px 0px var(--border-color);
}
.content-wrapper {
    margin-top: 2rem;
}

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

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

.article-meta {
  font-size: 1rem;
  font-style: italic;
  font-weight: 600;
}

/* Call to Action Section */
.cta-section {
  margin-top: 3rem;
  padding: 2.5rem;
  text-align: center;
  border: 2px dashed var(--primary-accent);
  border-radius: 5px;
}

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

.cta-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.8rem;
  background-color: var(--primary-accent);
  color: white;
  text-decoration: none;
  font-weight: 700;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 1.1rem;
  border: 2px solid var(--heading-color);
  box-shadow: 3px 3px 0px var(--heading-color);
}

.cta-btn:hover {
  background-color: var(--secondary-accent);
  text-decoration: none;
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0px var(--heading-color);
}


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

.site-footer p {
    color: var(--bg-color);
    margin: 0;
    font-weight: 600;
}

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

  .main-nav ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .main-nav a {
      font-size: 1rem;
  }

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