/* Home page timeline: a vertical line with a dot per post, grouped by year. */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.4rem;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.3rem;
  width: 1px;
  background: var(--border-color);
}

.tl-year {
  margin: 1.6rem 0 0.8rem -1.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--accent-green);
}

.tl-year:first-child { margin-top: 0; }

.tl-year span {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-glow);
  border-radius: 999px;
  position: relative;
}

.tl-item {
  position: relative;
  margin: 0 0 0.6rem;
  padding: 0;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: -1.4rem;
  top: 1.35rem;
  width: 0.6rem;
  height: 0.6rem;
  margin-left: 0.0rem;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-green);
  transition: background 0.2s, box-shadow 0.2s;
}

.tl-item.tl-external::before { border-color: var(--accent-cyan); }

.tl-item:hover::before {
  background: var(--accent-green);
  box-shadow: 0 0 10px rgba(0, 255, 156, 0.5);
}

.tl-item.tl-external:hover::before {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.tl-card {
  display: block;
  padding: 0.9rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tl-card:hover {
  border-color: rgba(0, 255, 156, 0.3);
  background: var(--bg-card-hover);
  box-shadow: 0 0 20px rgba(0, 255, 156, 0.06);
  transform: translateX(3px);
  text-shadow: none;
}

.tl-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.tl-badge {
  padding: 0.05rem 0.45rem;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 999px;
  color: var(--accent-cyan);
}

.tl-title {
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-primary);
  transition: color 0.2s;
}

.tl-card:hover .tl-title { color: var(--accent-green); }
.tl-external .tl-card:hover .tl-title { color: var(--accent-cyan); }

@media (max-width: 640px) {
  .tl-card { padding: 0.8rem 0.9rem; }
  .tl-title { font-size: 0.86rem; }
}
