/* GoedOnline — process timeline. */

.timeline {
  display: grid;
  gap: var(--sp-7);
  position: relative;
  counter-reset: tl;
}

@media (min-width: 880px) {
  .timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-5);
  }

  .timeline::before {
    content: "";
    position: absolute;
    top: 26px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-line) 10%, var(--color-line) 90%, transparent);
  }

  .timeline--dark::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .15) 10%, rgba(255, 255, 255, .15) 90%, transparent);
  }
}

.timeline__item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  position: relative;
  counter-increment: tl;
}

.timeline__node {
  width: 52px;
  height: 52px;
  border-radius: var(--r-full);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-3);
  z-index: 1;
  position: relative;
  font-feature-settings: "tnum";
  letter-spacing: -0.01em;
  box-shadow: var(--sh-sm);
}

.timeline__node::before {
  content: "0" counter(tl);
}

.timeline--dark .timeline__node {
  background: var(--color-slate-900);
  border-color: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}

.timeline__time {
  font-size: 0.6875rem;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-accent);
  font-feature-settings: "tnum";
}

.timeline--dark .timeline__time {
  color: var(--color-cobalt-300);
}

.timeline__title {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: 1.0625rem;
  margin: 0;
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-snug);
}

.timeline__desc {
  font-size: 0.9375rem;
  color: var(--color-ink-soft);
  margin: 0;
  line-height: var(--lh-relaxed);
}

.timeline--dark .timeline__title { color: #fff; }
.timeline--dark .timeline__desc  { color: rgba(255, 255, 255, .65); }
