.changelog-page {
	--cl-ink: #eee4d6;
	--cl-muted: #b8aaa1;
	--cl-bronze: #d4a06a;
	--cl-red: #d4564f;
	--cl-frost: #8fc7dc;
	--cl-panel: rgba(22, 14, 12, 0.82);
	font-family: 'Inter', sans-serif;
	color: var(--cl-ink);
	padding: 2px 0 22px;
}

.changelog-article {
	position: relative;
	max-width: 610px;
	margin: 0 auto;
}

.changelog-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 9999;
	background: rgba(8, 4, 3, 0.45);
}

.changelog-progress span {
	display: block;
	width: 0;
	height: 100%;
	background: linear-gradient(90deg, var(--cl-red, #d4564f), var(--cl-bronze, #d4a06a), var(--cl-frost, #8fc7dc));
	box-shadow: 0 0 10px rgba(212, 160, 106, 0.5);
	transition: width 80ms linear;
}

.changelog-hero {
	position: relative;
	min-height: 360px;
	margin: 0 0 22px;
	overflow: hidden;
	border: 1px solid rgba(212, 160, 106, 0.32);
	border-radius: 14px;
	background: #100b0a;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
}

.changelog-hero > img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 8s ease;
}

.changelog-hero:hover > img { transform: scale(1.035); }

.changelog-hero__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(9, 6, 5, 0.12) 0%, rgba(9, 6, 5, 0.38) 38%, rgba(9, 6, 5, 0.96) 100%),
		linear-gradient(90deg, rgba(9, 6, 5, 0.52), transparent 70%);
}

.changelog-hero__content {
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: 22px;
	z-index: 1;
}

.changelog-eyebrow,
.changelog-footer__label {
	display: inline-flex;
	padding: 5px 9px;
	border: 1px solid rgba(212, 160, 106, 0.36);
	border-radius: 999px;
	background: rgba(15, 9, 8, 0.68);
	color: #f0c28f;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.changelog-hero h1 {
	margin: 11px 0 0;
	color: #fff7eb;
	font-size: 2.45em;
	line-height: 1.05;
	text-shadow: 0 3px 18px rgba(0, 0, 0, 0.8);
}

.changelog-hero__range {
	margin: 5px 0 11px;
	color: var(--cl-bronze);
	font-family: 'Metamorphous', cursive;
	font-size: 1.08em;
	letter-spacing: 0.04em;
}

.changelog-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #d5c9c0;
	font-size: 11px;
}

.changelog-intro {
	padding: 0 6px 10px;
}

.changelog-lead {
	margin: 0;
	color: #ddd2c8;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	line-height: 1.78;
}

.changelog-highlights {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin: 18px 0 6px;
}

.changelog-highlights div {
	display: flex;
	flex-direction: column;
	padding: 12px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 9px;
	background: linear-gradient(145deg, rgba(212, 160, 106, 0.08), rgba(255, 255, 255, 0.025));
}

.changelog-highlights strong {
	color: #f0c28f;
	font-family: 'Metamorphous', cursive;
	font-size: 20px;
}

.changelog-highlights span {
	margin-top: 2px;
	color: var(--cl-muted);
	font-size: 10px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.changelog-toc {
	position: sticky;
	top: 6px;
	z-index: 20;
	display: flex;
	gap: 6px;
	margin: 14px 0 20px;
	padding: 7px;
	overflow-x: auto;
	border: 1px solid rgba(212, 160, 106, 0.2);
	border-radius: 10px;
	background: rgba(18, 11, 10, 0.94);
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(8px);
	scrollbar-width: thin;
}

.changelog-toc a {
	flex: 0 0 auto;
	padding: 7px 9px;
	border-radius: 6px;
	color: #cdbfb5;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	text-shadow: none;
	transition: color 0.2s ease, background 0.2s ease;
}

.changelog-toc a:hover,
.changelog-toc a.is-active {
	color: #fff5e8;
	background: rgba(200, 71, 65, 0.24);
}

.changelog-section {
	scroll-margin-top: 70px;
	margin: 0 0 16px;
	padding: 20px 19px 16px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	background:
		radial-gradient(circle at top right, rgba(212, 160, 106, 0.07), transparent 30%),
		var(--cl-panel);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.changelog-section--compact {
	background:
		radial-gradient(circle at top right, rgba(143, 199, 220, 0.08), transparent 34%),
		var(--cl-panel);
}

.changelog-section--fixes {
	border-color: rgba(143, 199, 220, 0.18);
	background:
		radial-gradient(circle at top right, rgba(143, 199, 220, 0.1), transparent 36%),
		var(--cl-panel);
}

.changelog-section__heading {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.changelog-section__heading > span {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	border: 1px solid rgba(212, 160, 106, 0.34);
	border-radius: 50%;
	color: var(--cl-bronze);
	font-family: 'Metamorphous', cursive;
	font-size: 12px;
	background: rgba(212, 160, 106, 0.06);
}

.changelog-section__heading p {
	margin: 0 0 2px;
	color: #8f8179;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.changelog-section__heading h2 {
	margin: 0;
	padding: 0;
	border: 0;
	color: #ebddd0;
	font-size: 1.18em;
	line-height: 1.2;
}

.changelog-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.changelog-list > li {
	position: relative;
	margin: 0;
	padding: 11px 4px 11px 21px;
	border-top: 1px solid rgba(255, 255, 255, 0.065);
	color: #c8bdb5;
	font-size: 12px;
	line-height: 1.65;
}

.changelog-list > li:first-child { border-top: 0; }

.changelog-list > li::before {
	content: '';
	position: absolute;
	top: 17px;
	left: 2px;
	width: 6px;
	height: 6px;
	border: 1px solid var(--cl-red);
	transform: rotate(45deg);
	box-shadow: 0 0 7px rgba(212, 86, 79, 0.32);
}

.changelog-list strong { color: #f0c28f; font-weight: 650; }

.changelog-list ul {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.changelog-list ul li {
	padding: 8px;
	border: 1px solid rgba(200, 71, 65, 0.16);
	border-radius: 6px;
	background: rgba(200, 71, 65, 0.06);
	color: #d8cbc2;
	font-size: 10px;
	line-height: 1.4;
	text-align: center;
}

.changelog-list--checks > li::before {
	top: 14px;
	width: 9px;
	height: 5px;
	border-width: 0 0 2px 2px;
	border-color: var(--cl-frost);
	transform: rotate(-45deg);
	box-shadow: none;
}

.changelog-break {
	position: relative;
	margin: 18px 0;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 12px;
	background: #100b0a;
	box-shadow: 0 13px 32px rgba(0, 0, 0, 0.28);
}

.changelog-break img {
	display: block;
	width: 100%;
	max-width: none;
	height: 240px;
	object-fit: cover;
	object-position: center;
}

.changelog-break figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 32px 16px 12px;
	background: linear-gradient(transparent, rgba(10, 6, 5, 0.94));
	color: #e0d3c8;
	font-size: 11px;
	line-height: 1.5;
	text-shadow: 0 2px 5px #000;
}

.changelog-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 22px;
	padding: 20px;
	border-top: 1px solid rgba(212, 160, 106, 0.24);
	border-bottom: 1px solid rgba(212, 160, 106, 0.16);
	background: rgba(212, 160, 106, 0.035);
}

.changelog-footer p {
	margin: 8px 0 0;
	color: #d4c5bb;
	font-size: 12px;
}

.changelog-footer__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 7px;
}

.changelog-footer__actions a,
.changelog-copy {
	padding: 7px 9px;
	border: 1px solid rgba(212, 160, 106, 0.22);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.035);
	color: #e2c6a7;
	font: 600 10px 'Inter', sans-serif;
	text-decoration: none;
	text-shadow: none;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.changelog-footer__actions a:hover,
.changelog-copy:hover {
	background: rgba(212, 160, 106, 0.1);
	border-color: rgba(212, 160, 106, 0.42);
}

.changelog-toc a:focus-visible,
.changelog-footer__actions a:focus-visible,
.changelog-copy:focus-visible {
	outline: 2px solid var(--cl-frost);
	outline-offset: 2px;
}

@media (max-width: 680px) {
	.changelog-hero { min-height: 330px; }
	.changelog-hero__content { left: 18px; right: 18px; bottom: 18px; }
	.changelog-hero h1 { font-size: 2em; }
	.changelog-section { padding: 18px 15px 14px; }
	.changelog-list ul { grid-template-columns: 1fr; }
	.changelog-break img { height: 220px; }
	.changelog-footer { align-items: flex-start; flex-direction: column; }
	.changelog-footer__actions { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	.changelog-hero > img,
	.changelog-progress span { transition: none; }
	.changelog-hero:hover > img { transform: none; }
}
