/* Version history timeline (Figma: Doppi-Web, node 54:84).
   Columns: 250px date, 18px gap, 5px dot, 18px gap, 507px notes. */

body {
	min-height: 100vh;
	background: linear-gradient(#fff, #efeff4);
	color: #454547;
}

main {
	width: 798px; /* 250 + 18 + 5 + 18 + 507 */
	max-width: 100%;
	margin: 0 auto;
	padding: 120px 0 0;
}

/* "Doppi Version History" on one line; the icon sits left of the rule, the D starts on it. */
.intro {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 0.25em;
	margin: 0 0 60px 203px; /* 270px rule − 64px icon + gap − 3px D side bearing (SF, 36px semibold) */
	font-size: 36px;
}

.intro h1, .intro h2 {
	font-size: 36px;
	line-height: 52px;
	letter-spacing: -0.9px;
}

.intro h1 {
	padding-left: 64px;
	background-size: 52px 52px;
}

.intro a {
	color: inherit;
}

.timeline {
	list-style: none;
	padding-bottom: 120px;
}

/* The vertical rule runs through the dots' centers and fades in above the first one. */
.timeline::before {
	content: "";
	position: absolute;
	top: -40px;
	bottom: 0;
	left: 270px;
	width: 1px;
	background: linear-gradient(rgba(91, 84, 232, 0), #5B54E8 48px);
	opacity: 0.5;
}

.release {
	display: grid;
	grid-template-columns: 250px 5px 1fr;
	grid-template-areas: "time dot body";
	column-gap: 18px;
	align-items: start;
}

.release + .release {
	margin-top: 60px;
}

.release time {
	grid-area: time;
	text-align: right;
	font-size: 18px;
	line-height: 24px;
	letter-spacing: -0.4px;
}

.release .dot {
	grid-area: dot;
	display: block;
	margin-top: 9.5px;
}

.release .body {
	grid-area: body;
	gap: 10px;
}

.release h3 {
	font-size: 18px;
	line-height: 24px;
	letter-spacing: -0.4px;
}

.notes {
	max-width: 507px;
	font-size: 14px;
	line-height: 21px;
	font-weight: 400;
	white-space: pre-wrap;
	overflow-wrap: break-word;
}

/* Narrow screens: dates move above each version, the rule moves to the left edge. */
@media (max-width: 830px) {
	main {
		padding: 60px 20px 0;
	}

	.intro {
		margin-left: 0;
	}

	.intro h1, .intro h2 {
		font-size: 28px;
		line-height: 44px;
		letter-spacing: -0.6px;
	}

	.intro h1 {
		padding-left: 54px;
		background-size: 44px 44px;
	}

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

	.release {
		grid-template-columns: 5px 1fr;
		grid-template-areas: "dot time" ". body";
		row-gap: 2px;
	}

	.release time {
		text-align: left;
		font-size: 15px;
		line-height: 20px;
		letter-spacing: -0.2px;
		opacity: 0.75;
	}

	.release .dot {
		margin-top: 7.5px;
	}
}
