/**
 * Blog posts index (/blog/) — editorial list layout.
 *
 * Styles the loop rendered by home.php: a date rail on the left of each post,
 * serif brand-red titles, byline, excerpt, dark Read More button, hairline
 * dividers between posts, and square pagination with a red active page.
 */

:root {
	--rr-blog-heading: #2a2623;
	--rr-blog-body: #3a3532;
	--rr-blog-muted: #6d675f;
	--rr-blog-red: #8e1f1f;
	--rr-blog-red-hover: #6f1616;
	--rr-blog-rule: rgba(42, 38, 35, 0.12);
}

.rr-blog {
	max-width: 1200px;
	margin: 0 auto;
	padding: 16px 0 48px;
}

/* ------------------------------------------------------------- Entry row */

.rr-blog-entry {
	display: flex;
	align-items: flex-start;
	gap: 40px;
	padding: 48px 0;
	border-bottom: 1px solid var(--rr-blog-rule);
}

.rr-blog-entry:first-of-type {
	padding-top: 16px;
}

.rr-blog-entry:last-of-type {
	border-bottom: 0;
}

/* Date rail */

.rr-blog-entry__date {
	flex: 0 0 64px;
	text-align: center;
	border-right: 1px solid var(--rr-blog-rule);
	padding: 4px 16px 24px 0;
}

.rr-blog-entry__date time {
	display: block;
}

.rr-blog-entry__month {
	display: block;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--rr-blog-heading);
	line-height: 1.2;
}

.rr-blog-entry__day {
	display: block;
	font-size: 30px;
	font-weight: 600;
	color: var(--rr-blog-heading);
	line-height: 1.15;
}

/* Body */

.rr-blog-entry__body {
	flex: 1 1 auto;
	min-width: 0;
}

.rr-blog-entry__title {
	margin: 0 0 10px;
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-weight: 600;
	line-height: 1.2;
}

.rr-blog-entry__title a {
	color: var(--rr-blog-red);
	text-decoration: none;
}

.rr-blog-entry__title a:hover,
.rr-blog-entry__title a:focus-visible {
	color: var(--rr-blog-red-hover);
	text-decoration: none;
}

.rr-blog-entry__meta {
	margin: 0 0 14px;
	font-size: 16px;
	color: var(--rr-blog-body);
}

.rr-blog-entry__sep {
	margin: 0 10px;
	color: var(--rr-blog-rule);
}

.rr-blog-entry__cats a {
	color: var(--rr-blog-body);
	text-decoration: none;
}

.rr-blog-entry__cats a:hover,
.rr-blog-entry__cats a:focus-visible {
	color: var(--rr-blog-red);
	text-decoration: underline;
}

.rr-blog-entry__excerpt p {
	margin: 0 0 22px;
	font-size: 17px;
	line-height: 1.65;
	color: var(--rr-blog-body);
	max-width: 78ch;
}

.rr-blog-entry__actions {
	margin: 0;
}

.rr-blog .rr-blog-entry__more {
	display: inline-block;
	background: #3a3532;
	color: #fff;
	padding: 8px 12px;
	border-radius: 2px;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.rr-blog .rr-blog-entry__more:hover,
.rr-blog .rr-blog-entry__more:focus-visible {
	background: var(--rr-blog-red);
	color: #fff;
}

/* ------------------------------------------------------------ Pagination */

.rr-blog .rr-blog-pagination {
	margin: 40px 0 0;
	border: 0;
	padding: 0;
}

.rr-blog .rr-blog-pagination .nav-links {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.rr-blog .rr-blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 0;
	border-radius: 2px;
	background: transparent;
	color: var(--rr-blog-heading);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.rr-blog .rr-blog-pagination a.page-numbers:hover,
.rr-blog .rr-blog-pagination a.page-numbers:focus-visible {
	background: rgba(142, 31, 31, 0.08);
	color: var(--rr-blog-red);
}

.rr-blog .rr-blog-pagination .page-numbers.current {
	background: var(--rr-blog-red);
	color: #fff;
}

.rr-blog .rr-blog-pagination .page-numbers.dots {
	min-width: auto;
	padding: 0 4px;
	color: var(--rr-blog-muted);
}

.rr-blog-empty {
	margin: 48px 0;
	color: var(--rr-blog-muted);
}

/* ------------------------------------------------------------ Responsive */

@media (max-width: 599px) {
	.rr-blog-entry {
		flex-direction: column;
		gap: 14px;
		padding: 36px 0;
	}

	.rr-blog-entry__date {
		flex: 0 0 auto;
		display: flex;
		align-items: baseline;
		gap: 8px;
		text-align: left;
		border-right: 0;
		border-bottom: 1px solid var(--rr-blog-rule);
		padding: 0 0 8px;
	}

	.rr-blog-entry__date time {
		display: flex;
		align-items: baseline;
		gap: 8px;
	}

	.rr-blog-entry__day {
		font-size: 22px;
	}
}
