/*
 * blog.css — blog index, archives, search, single post, related posts,
 * pagination and comments.
 *
 * Built only from the design system already present in style.css:
 * colors (--ink, --paper, --gold, --muted, --line), Italiana for headings,
 * DM Sans for body, flat 1px rules and the #356a8d action blue.
 */

/* ---------------------------------------------------------------- ----------
   1. Card grid
   -------------------------------------------------------------------------- */

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 40px 34px;
}

.post-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: #fff;
	border: 1px solid var(--line, #d3e4ef);
	transition: border-color .2s ease, transform .2s ease;
}

.post-card:hover {
	border-color: #b7d2e3;
}

.post-card-media {
	display: block;
	overflow: hidden;
	border-bottom: 1px solid var(--line, #d3e4ef);
	background: #e3f1fa;
}

.post-card-media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 640 / 420;
	object-fit: cover;
}

.post-card-placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 640 / 420;
	background:
		radial-gradient(circle at 60% 45%, rgba(184, 220, 237, .9), rgba(227, 241, 250, .55) 55%, rgba(245, 250, 255, 0) 70%),
		linear-gradient(135deg, #e3f1fa, #f5faff);
}

.post-card-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 24px 26px 28px;
}

.post-card-meta {
	margin: 0 0 12px;
	font-size: 11px;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: #547d99;
}

.post-card-meta .meta-sep {
	margin: 0 6px;
	color: #9fb9cc;
}

.post-card-meta .cat-links a {
	color: #547d99;
	border-bottom: 1px solid transparent;
}

.post-card-meta .cat-links a:hover,
.post-card-meta .cat-links a:focus {
	color: #356a8d;
	border-bottom-color: #356a8d;
}

.post-card-title {
	margin: 0 0 12px;
	font-family: 'Italiana', Georgia, serif;
	font-size: clamp(26px, 2vw, 32px);
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: -.3px;
	color: var(--ink, #25465e);
	overflow-wrap: break-word;
}

.post-card-title a {
	color: inherit;
}

.post-card-title a:hover,
.post-card-title a:focus {
	color: #356a8d;
}

.post-card-excerpt {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--muted, #5c7588);
}

.post-card-excerpt p {
	margin: 0;
}

.post-card-more {
	margin-top: auto;
	align-self: flex-start;
}

/* ---------------------------------------------------------------- ----------
   2. Pagination
   -------------------------------------------------------------------------- */

.navigation.pagination {
	margin: 54px 0 0;
}

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

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 10px 16px;
	font-size: 14px;
	color: var(--ink, #25465e);
	text-decoration: none;
	border: 1px solid var(--line, #d3e4ef);
	background: transparent;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers:focus {
	border-color: #7aa5c1;
	background: #eaf5fc;
	color: #25465e;
}

.pagination .page-numbers.current {
	background: #356a8d;
	border-color: #356a8d;
	color: #fff;
}

.pagination .page-numbers.dots {
	border-color: transparent;
}

/* ---------------------------------------------------------------- ----------
   3. Single post
   -------------------------------------------------------------------------- */

.pos-article .entry-header {
	margin-bottom: 30px;
}

.entry-share {
	margin-top: 38px;
	padding-top: 24px;
	border-top: 1px solid var(--line, #d3e4ef);
}

.share-title {
	margin: 0 0 18px;
	font-family: 'Italiana', Georgia, serif;
	font-size: 24px;
	font-weight: 400;
	color: var(--ink, #25465e);
}

.share-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.share-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .5px;
	color: var(--ink, #25465e);
	border: 1px solid var(--line, #d3e4ef);
	background: transparent;
	text-decoration: none;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.share-link:hover,
.share-link:focus {
	background: #e3f1fa;
	border-color: #7aa5c1;
	color: #356a8d;
}

/* Related posts */

.related-posts {
	margin-top: 56px;
	padding-top: 40px;
	border-top: 1px solid var(--line, #d3e4ef);
}

/* Previous / next navigation */

.post-navigation {
	margin-top: 48px;
	padding-top: 30px;
	border-top: 1px solid var(--line, #d3e4ef);
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 22px;
}

.post-navigation a {
	display: block;
	padding: 22px 24px;
	border: 1px solid var(--line, #d3e4ef);
	text-decoration: none;
	transition: border-color .2s ease, background .2s ease;
}

.post-navigation a:hover,
.post-navigation a:focus {
	border-color: #7aa5c1;
	background: #f0f8fd;
}

.post-navigation .nav-label {
	display: block;
	margin-bottom: 8px;
	font-size: 10px;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: #5b819b;
}

.post-navigation .nav-title {
	display: block;
	font-family: 'Italiana', Georgia, serif;
	font-size: 24px;
	line-height: 1.3;
	color: var(--ink, #25465e);
}

.post-navigation .nav-next {
	text-align: right;
}

/* ---------------------------------------------------------------- ----------
   4. Comments
   -------------------------------------------------------------------------- */

.comments-area {
	margin-top: 56px;
	padding-top: 36px;
	border-top: 1px solid var(--line, #d3e4ef);
}

.comments-title,
.comment-reply-title {
	margin: 0 0 26px;
	font-family: 'Italiana', Georgia, serif;
	font-size: clamp(26px, 2.4vw, 34px);
	font-weight: 400;
	line-height: 1.25;
	color: var(--ink, #25465e);
}

.comment-list,
.comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin-left: 34px;
	border-left: 1px solid var(--line, #d3e4ef);
	padding-left: 22px;
}

.comment-body {
	padding: 22px 0;
	border-bottom: 1px solid var(--line, #d3e4ef);
}

.comment-list > li:first-child .comment-body {
	padding-top: 0;
}

.comment-author .avatar {
	display: inline-block;
	vertical-align: middle;
	margin-right: 12px;
	border: 1px solid var(--line, #d3e4ef);
	border-radius: 50%;
}

.comment-author .fn {
	font-family: 'Italiana', Georgia, serif;
	font-size: 19px;
	font-style: normal;
	color: var(--ink, #25465e);
}

.comment-metadata {
	margin: 4px 0 12px;
	font-size: 11px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.comment-metadata a {
	color: #547d99;
}

.comment-metadata a:hover,
.comment-metadata a:focus {
	color: #356a8d;
}

.comment-content {
	font-size: 15px;
	line-height: 1.75;
	color: var(--muted, #5c7588);
}

.comment-content p {
	margin: 0 0 12px;
}

.reply {
	font-size: 13px;
}

.reply a {
	color: #356a8d;
	border-bottom: 1px solid transparent;
}

.reply a:hover,
.reply a:focus {
	border-bottom-color: #356a8d;
}

.comment-respond {
	margin-top: 34px;
}

.comment-form label {
	display: block;
	margin-bottom: 7px;
	font-size: 11px;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: #5b819b;
}

.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url {
	display: inline-block;
	width: calc(50% - 8px);
	margin-right: 12px;
}

.comment-form .comment-form-url {
	margin-right: 0;
}

.comment-form .comment-form-comment {
	clear: both;
	padding-top: 16px;
}

.comment-notes,
.logged-in-as,
.comment-form-cookies-consent {
	font-size: 13px;
	color: var(--muted, #5c7588);
}

.comment-form input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 51px;
	margin-top: 14px;
	padding: 14px 25px;
	font-size: 14px;
	font-weight: 500;
	color: #fff;
	background: #356a8d;
	border: 0;
	cursor: pointer;
	transition: background .2s ease;
}

.comment-form input[type="submit"]:hover,
.comment-form input[type="submit"]:focus {
	background: #285574;
}

.no-comments {
	padding: 20px 0;
	font-size: 14px;
	color: var(--muted, #5c7588);
}

@media (max-width: 600px) {
	.comment-form .comment-form-author,
	.comment-form .comment-form-email,
	.comment-form .comment-form-url {
		display: block;
		width: 100%;
		margin-right: 0;
		margin-bottom: 14px;
	}

	.comment-list .children {
		margin-left: 16px;
		padding-left: 12px;
	}

	.post-card-body {
		padding: 20px 20px 24px;
	}
}
