.timeline {
  min-height: auto;
  padding: 34px 22px 42px;
  background:
    radial-gradient(circle at 92% 18%, rgba(191,59,11,.08), transparent 18%),
    var(--paper);
  color: var(--primary);
}

.timeline::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -30px;
  width: min(38vw, 260px);
  aspect-ratio: 1;
  background: url("../assets/leaves-soft.png") left top / contain no-repeat;
  opacity: .18;
  transform: rotate(18deg);
  pointer-events: none;
}

.timeline-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 430px);
  margin: 0 auto;
}

.timeline-title {
  margin: 0;
  font-family: "Tangerine Local", cursive;
  font-size: clamp(76px, 18vw, 112px);
  font-weight: 400;
  line-height: .82;
  color: rgba(191,59,11,.72);
}

.timeline-subtitle {
  margin: -7px 0 24px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(15px, 4vw, 22px);
  font-weight: 700;
  letter-spacing: 4px;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(155,74,44,.82);
}

.timeline-path {
  position: absolute;
  top: 150px;
  left: 50%;
  width: 72%;
  height: calc(100% - 116px);
  transform: translateX(-50%);
  pointer-events: none;
}

.timeline-path svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.timeline-path path {
  fill: none;
  stroke: rgba(191,59,11,.58);
  stroke-width: 1.35;
  stroke-linecap: round;
}

.timeline-items {
  position: relative;
  display: grid;
  gap: 12px;
}

.timeline-item {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 16px;
  align-items: center;
  width: min(72%, 292px);
  min-height: 104px;
  color: #9b6e52;
}

.timeline-item > div {
  position: relative;
  z-index: 3;
  padding: 4px 8px;
  background: rgba(255,250,243,.86);
  border-radius: 999px;
}

.timeline-art {
  display: block;
  flex: 0 0 auto;
  width: min(28vw, 108px);
  height: auto;
  opacity: .88;
  filter: sepia(.08) saturate(.95);
}

.timeline-art-large {
  width: min(30vw, 126px);
}

.timeline-art-wide {
  width: min(31vw, 132px);
}

.timeline-art-toast,
.timeline-art-photos {
  width: min(29vw, 118px);
}

.timeline-art-dance-open {
  width: min(31vw, 130px);
}

.timeline-art-cake,
.timeline-art-end {
  width: min(25vw, 96px);
}

.timeline-item.left {
  justify-self: start;
  text-align: left;
  justify-content: flex-start;
}

.timeline-item.right {
  justify-self: end;
  text-align: right;
  justify-content: flex-end;
}

.timeline-icon {
  width: 78px;
  height: 58px;
  margin-bottom: 6px;
  color: rgba(155,74,44,.76);
}

.timeline-item.right .timeline-icon {
  margin-left: auto;
}

.timeline-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline-item h3 {
  margin: 0 0 5px;
  font-family: "Tangerine Local", cursive;
  font-size: clamp(34px, 8.5vw, 46px);
  font-weight: 400;
  line-height: .82;
  color: rgba(191,59,11,.6);
}

.timeline-item p {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(22px, 5.3vw, 28px);
  font-weight: 700;
  line-height: 1;
  color: #9b6e52;
}

.timeline-end-text p {
  font-size: clamp(14px, 4vw, 19px);
  line-height: 1.15;
  text-transform: uppercase;
  color: rgba(155,74,44,.86);
}
