/* /changelog — release notes. Builds on styles.css tokens. */

.cl-main {
	padding-block: clamp(40px, 7vw, 84px) clamp(64px, 9vw, 108px);
}

.cl-hero {
	margin-bottom: clamp(40px, 6vw, 72px);
}
.cl-hero a,
.release-body a {
	color: var(--amber);
	text-decoration: underline;
	text-decoration-color: var(--amber-border);
	text-underline-offset: 3px;
}
.cl-hero a:hover,
.release-body a:hover {
	text-decoration-color: currentColor;
}
.cl-note {
	margin: 18px 0 0;
	font-family: var(--font-mono);
	font-size: 12.5px;
	letter-spacing: 0.02em;
	color: var(--text-dim);
}

/* ───────────────────────── A release ───────────────────────── */

.release {
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr);
	gap: clamp(32px, 5vw, 72px);
	padding-top: clamp(32px, 5vw, 56px);
	border-top: 1px solid var(--border-strong);
}
.release + .release {
	margin-top: clamp(56px, 8vw, 96px);
}

.release-head {
	align-self: start;
	position: sticky;
	top: 96px;
}
.release-head h2 {
	font-size: clamp(40px, 5vw, 56px);
	font-weight: 450;
	letter-spacing: -0.025em;
	line-height: 1;
}
.release-head h2 a {
	color: inherit;
	text-decoration: none;
}
.release-head h2 a:hover {
	color: var(--amber);
}
.release-date {
	display: block;
	margin-top: 10px;
	font-family: var(--font-mono);
	font-size: 12.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-muted);
}
.release-jump {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 28px;
}
.release-jump a {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
	border-bottom: 1px solid var(--border);
	color: var(--text-muted);
	font-size: 14px;
	text-decoration: none;
	transition: color 0.15s var(--ease);
}
.release-jump a:hover {
	color: var(--text-strong);
}
.release-jump span {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text-dim);
}

.release-headline {
	margin: 0 0 18px;
	font-family: var(--font-serif);
	font-size: clamp(30px, 4.2vw, 44px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--text-strong);
	text-wrap: balance;
	font-variation-settings:
		'opsz' 96,
		'SOFT' 30,
		'WONK' 1;
}

.release-summary {
	margin: 0 0 clamp(36px, 5vw, 56px);
	font-size: clamp(17px, 2vw, 20px);
	line-height: 1.6;
	color: var(--text-strong);
	max-width: 60ch;
}

/* ───────────────────────── Sections inside a release ───────────────────────── */

.cl-section + .cl-section {
	margin-top: clamp(48px, 7vw, 80px);
}
.cl-section > h3 {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: clamp(24px, 4vw, 40px);
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--amber);
}
.cl-section > h3::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--border-strong);
}

/* New features: a screenshot and a few sentences each */

.feature + .feature {
	margin-top: clamp(40px, 6vw, 64px);
}
.feature h4 {
	margin-bottom: 12px;
	font-size: clamp(24px, 3vw, 30px);
	font-weight: 500;
}
.feature p {
	margin: 0 0 14px;
	max-width: 64ch;
}
.feature .shots,
.feature .shot {
	margin-bottom: 22px;
}

.shot {
	margin: 0;
}
.shot img {
	width: 100%;
	height: auto;
	background: #0a0a09;
	border: 1px solid var(--border-strong);
	box-shadow: var(--shadow-card);
}
.shot figcaption {
	margin-top: 10px;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.02em;
	color: var(--text-dim);
}

.shots {
	display: grid;
	gap: 12px;
}
.shots.is-pair {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* A landscape screenshot beside a 2:3 clip, sized so both come out the same height */
.shots.is-media {
	grid-template-columns: 2.28fr 1fr;
}
.shots figure {
	position: relative;
	margin: 0;
}
.shots img,
.shots video {
	display: block;
	width: 100%;
	height: auto;
	background: #0a0a09;
	border: 1px solid var(--border-strong);
	box-shadow: var(--shadow-card);
}
.shot-tag {
	position: absolute;
	left: 10px;
	top: 10px;
	padding: 3px 8px;
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-strong);
	background: rgba(12, 12, 11, 0.78);
	border: 1px solid var(--border-strong);
}

/* Improvements: a title and a short description */

.improvements {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(28px, 4vw, 40px) clamp(28px, 4vw, 48px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.improvements li {
	padding-top: 16px;
	border-top: 1px solid var(--border);
}
.improvements h4 {
	margin-bottom: 8px;
	font-family: var(--font-display);
	font-size: 16.5px;
	font-weight: 600;
	letter-spacing: -0.01em;
}
.improvements p {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--text-muted);
}

/* Bug fixes: a plain list */

.fixes {
	margin: 0;
	padding: 0 0 0 1.2em;
	list-style: square;
}
.fixes li {
	padding-left: 6px;
	margin-bottom: 10px;
	max-width: 70ch;
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--text);
}
.fixes li::marker {
	color: var(--amber);
}

/* ───────────────────────── Small screens ───────────────────────── */

@media (max-width: 900px) {
	.release {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}
	.release-head {
		position: static;
	}
	.release-jump {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px 20px;
	}
	.release-jump a {
		border-bottom: 0;
		padding: 0;
	}
}

@media (max-width: 640px) {
	.shots.is-pair,
	.shots.is-media,
	.improvements {
		grid-template-columns: minmax(0, 1fr);
	}
}
