/* =============================================================================
   POSTS LISTING PAGE
   ============================================================================= */

.posts-page {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	padding: 0 0 4em;
	max-width: 720px;
	margin: 0 auto;
	box-sizing: border-box;
}

/* --- Intro --- */

.posts-page-intro {
	margin: 2.5em auto 3em;
}

.posts-page-title {
	font-size: clamp(26px, 5vw, 38px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0 0 0.5em;
}

.posts-page-content p {
	font-size: 18px;
	line-height: 1.6;
	color: #333;
	border: 0;
	margin: 0 0 1em;
	padding: 0;
}

/* --- Year groups --- */

.posts-year-group {
	margin-bottom: 0.5em;
}

.posts-year-label {
	font-size: clamp(42px, 8vw, 72px);
	font-weight: 800;
	letter-spacing: -0.04em;
	color: #111;
	line-height: 1;
	margin: 1.5em 0 0.25em;
	border: 0;
	padding: 0;
}

/* --- Post list item --- */

.post-list-item {
	display: flex;
	gap: 1.25em;
	padding: 0.9em 0;
	border-bottom: 1px solid #f0f0f0;
	align-items: flex-start;
}

.post-list-date {
	flex-shrink: 0;
	width: 3.92em;
	font-size: 12px;
	color: #aaa;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding-top: 0.2em;
	line-height: 1.3;
}

.post-list-body {
	flex: 1;
	min-width: 0;
}

.post-list-title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 0.3em;
}

.post-list-title a {
	color: #000;
	text-decoration: none;
}

.post-list-title a:hover {
	color: #e91e63;
	background-color: transparent;
}

.post-list-summary {
	font-size: 14px;
	line-height: 1.5;
	color: #555;
	margin: 0 0 0.5em;
	border: 0;
	padding: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	line-clamp: 3;
	overflow: hidden;
}

/* --- Tags --- */

.post-list-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3em;
}

.post-list-tag {
	display: inline-block;
	padding: 0.15em 0.55em;
	border-radius: 100px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	background: #f0f0f0;
	color: #666;
	text-decoration: none;
	line-height: 1.6;
}

.post-list-tag:hover {
	background: #e0e0e0;
	color: #000;
}

/* --- Responsive --- */

@media (max-width: 480px) {
	.post-list-item {
		flex-direction: column;
		gap: 0.35em;
	}

	.post-list-date {
		width: auto;
		padding-top: 0;
	}
}
