/* ==========================================
   1. GLOBAL STYLES & VARIABLES
   ========================================== */
:root {
  --bg-color: #fcfaf7;          /* Soft paper off-white */
  --card-bg: #ffffff;          /* Pure white for content cards */
  --text-main: #2b2927;        /* Deep charcoal for readable text */
  --text-muted: #615c57;       /* Soft dark gray for subtitles */
  --accent-burgundy: #6b1d2f;   /* Rich burgundy primary color */
  --accent-terracotta: #c85a32; /* Warm terracotta highlight */
  --border-color: #e5dfd5;     /* Light warm gray border */
  --nav-bg: #2b2927;           /* Dark header background */
  --nav-text: #fcfaf7;         /* Header text color */
  --max-width: 1000px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Merriweather', serif;
  color: var(--text-main);
  line-height: 1.3;
}

/* ==========================================
   2. NAVBAR
   ========================================== */
.navbar {
  position: sticky;
  top: 0;
  background-color: var(--nav-bg);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo {
  font-family: 'Merriweather', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--nav-text);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.logo:hover {
  color: var(--accent-terracotta);
}

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

.nav-links a {
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-terracotta);
}

/* ==========================================
   3. HERO SECTION
   ========================================== */
.hero {
  background-color: var(--accent-burgundy);
  color: #ffffff;
  padding: 4rem 1.5rem;
  text-align: center;
  border-bottom: 4px solid var(--accent-terracotta);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: #ffffff;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.hero .subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  opacity: 0.9;
}

/* ==========================================
   4. MAIN CONTAINER & SECTIONS
   ========================================== */
.container {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.archive-section {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.archive-section h2 {
  font-size: 1.75rem;
  color: var(--accent-burgundy);
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.section-desc {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* ==========================================
   5. TIMELINE SECTION STYLES
   ========================================== */
.timeline {
  position: relative;
  padding: 1rem 0;
}

/* Vertical line connecting timeline cards */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 120px;
  width: 3px;
  background-color: var(--border-color);
}

.timeline-item {
  position: relative;
  display: flex;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.timeline-date {
  width: 100px;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-burgundy);
  text-align: right;
  padding-right: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.timeline-body {
  position: relative;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1.25rem;
  margin-left: 2rem;
  flex-grow: 1;
}

/* Circle marker on line */
.timeline-body::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 1.2rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--accent-terracotta);
  border: 3px solid var(--card-bg);
}

.timeline-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.timeline-body p {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.timeline-tag {
  display: inline-block;
  background-color: rgba(107, 29, 47, 0.08);
  color: var(--accent-burgundy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================
   6. CARDS GRID (READING LIST & PODCASTS)
   ========================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.resource-card {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.card-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-terracotta);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.resource-card h3 {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.resource-card .author {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.resource-card .card-text {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.card-link {
  color: var(--accent-burgundy);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

/* ==========================================
   7. CONTACT FORM STYLES
   ========================================== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--bg-color);
  color: var(--text-main);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-burgundy);
  box-shadow: 0 0 0 2px rgba(107, 29, 47, 0.15);
}

.submit-btn {
  background-color: var(--accent-burgundy);
  color: #ffffff;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: 100%;
}

.submit-btn:hover {
  background-color: var(--accent-terracotta);
}

/* ==========================================
   8. FOOTER
   ========================================== */
.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  background-color: var(--nav-bg);
  color: var(--nav-text);
  font-size: 0.9rem;
  margin-top: 3rem;
}

/* ==========================================
   9. RESPONSIVE DESIGN (MOBILE)
   ========================================== */
@media (max-width: 650px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .archive-section {
    padding: 1.25rem;
  }

  .timeline::before {
    left: 15px;
  }

  .timeline-item {
    flex-direction: column;
  }

  .timeline-date {
    width: auto;
    text-align: left;
    padding-left: 2rem;
    margin-bottom: 0.5rem;
  }

  .timeline-body {
    margin-left: 2rem;
  }

  .timeline-body::before {
    left: -2.35rem;
    top: -1.75rem;
  }
}
