/* About Timeline - Brutalist Minimal Design */
/* Uses Chirpy's built-in CSS variables for automatic dark mode support */

/* Section spacing */
.about-timeline-section h2 {
  margin: 3rem 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Year Timeline */
.year-timeline {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 4rem;
}

.year-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  height: 100%;
  width: 2px;
  background: #d1d5db;
}

/* Year Block */
.year-block {
  position: relative;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
}

.year-block::before {
  content: '';
  position: absolute;
  left: calc(-3rem + 5px);
  top: 0.5rem;
  width: 8px;
  height: 8px;
  background: var(--link-color, #3b82f6);
  border-radius: 0;
  transform: rotate(45deg);
  z-index: 1;
}

/* Year Header */
.year-header {
  margin-bottom: 0.75rem;
}

.year-number {
  display: inline-block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--heading-color, #18181b);
  letter-spacing: -0.04em;
  margin-right: 0.5rem;
}

.year-theme {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--text-muted-color, #71717a);
  font-weight: 500;
  position: relative;
  top: -0.25rem;
}

/* Year Story */
.year-story {
  font-size: 0.9375rem;
  color: var(--text-color, #18181b);
  line-height: 1.7;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.year-story strong {
  font-weight: 600;
  color: var(--heading-color, #18181b);
}

/* Year Keywords */
.year-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
}

.keyword {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: var(--card-bg, #f4f4f5);
  color: var(--text-muted-color, #71717a);
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Post Group */
.post-group {
  margin-bottom: 1.5rem;
}

.group-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--heading-color, #18181b);
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  margin-top: 0.5rem;
}

/* Year Posts */
.year-posts {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.year-post {
  display: block;
  padding: 0.75rem 0;
  text-decoration: none;
  transition: all 0.15s ease;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
}

.year-post:hover {
  border-left-color: var(--link-color, #3b82f6);
  padding-left: 1rem;
}

.year-post .post-title-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.125rem;
}

.year-post .post-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--heading-color, #18181b);
  line-height: 1.5;
}

.year-post:hover .post-title {
  color: var(--link-color, #3b82f6);
}

.year-post .post-summary {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted-color, #71717a);
  line-height: 1.5;
}

.year-post .post-month {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted-color, #71717a);
  min-width: 2rem;
  margin-right: 0.5rem;
}

/* Section Note */
.section-note {
  font-size: 0.8125rem;
  color: var(--text-muted-color, #71717a);
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-style: italic;
}

/* Writing Style Section */
.writing-style-section {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.style-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.style-card {
  padding: 0;
  background: transparent;
  border: none;
  border-left: 3px solid var(--link-color, #3b82f6);
  padding-left: 1rem;
}

.style-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading-color, #18181b);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.style-desc {
  font-size: 0.875rem;
  color: var(--text-muted-color, #71717a);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .about-timeline-section h2 {
    font-size: 1.375rem;
  }

  .year-timeline {
    padding-left: 2rem;
  }

  .year-timeline::before {
    left: 3px;
  }

  .year-block::before {
    left: -1.75rem;
    top: 0.5rem;
    width: 7px;
    height: 7px;
  }

  .year-number {
    font-size: 1.75rem;
  }

  .year-theme {
    display: block;
    margin-top: 0.25rem;
    top: 0;
  }

  .year-header {
    margin-bottom: 1rem;
  }

  .style-cards {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .year-number {
    font-size: 1.5rem;
  }

  .year-story {
    font-size: 0.875rem;
  }

  .year-post .post-title {
    font-size: 0.875rem;
  }

  .year-post .post-summary {
    font-size: 0.75rem;
  }

  .year-post .post-month {
    font-size: 0.6875rem;
    min-width: 2.5rem;
  }
}
