/**
 * Blog list shortcode [blog]
 */

.ak-blog-list {
	--ak-blog-accent: #c5a985;
	--ak-blog-text: #1a1a1a;
	--ak-blog-muted: #8a8a8a;
	--ak-blog-body: #4a4a4a;
	--ak-blog-line: #e5e5e5;
	--ak-blog-serif: 'Playfair Display', Georgia, "Times New Roman", serif;
	--ak-blog-sans: "Open Sans", Helvetica, Arial, sans-serif;

	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	color: var(--ak-blog-text);
	font-family: var(--ak-blog-sans);
}

.ak-blog-list *,
.ak-blog-list *::before,
.ak-blog-list *::after {
	box-sizing: border-box;
}

.ak-blog-list__header {
	margin: 0 0 1.75rem;
}

.ak-blog-list__title {
	margin: 0;
	padding: 0;
	font-family: var(--ak-blog-serif);
	font-size: clamp(1.75rem, 2.5vw, 2.25rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--ak-blog-text);
	letter-spacing: 0.01em;
}

.ak-blog-list__title::after {
	content: "";
	display: block;
	width: 75px;
	height: 4px;
	margin-top: 0.85rem;
	background-color: #aa9166;
}

.ak-blog-list__items {
	list-style: none !important;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--ak-blog-line);
}

.ak-blog-list__item {
	list-style: none !important;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--ak-blog-line);
}

.ak-blog-list__item::marker,
.ak-blog-list__item::before {
	content: none !important;
	display: none !important;
}

.ak-blog-list__row {
	display: grid;
	grid-template-columns: 6.5rem minmax(0, 1fr) auto;
	gap: 1.5rem 2rem;
	align-items: start;
	padding: 1.75rem 0;
}

.ak-blog-list__date {
	display: block;
	font-family: var(--ak-blog-sans);
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.4;
	color: var(--ak-blog-muted);
	white-space: nowrap;
	padding-top: 0.35rem;
}

.ak-blog-list__content {
	min-width: 0;
}

.ak-blog-list__post-title {
	margin: 0 0 0.65rem;
	padding: 0;
	font-family: var(--ak-blog-serif);
	font-size: clamp(1.25rem, 2vw, 1.625rem);
	font-weight: 700;
	line-height: 1.3;
	color: var(--ak-blog-text);
}

.ak-blog-list__post-link {
	color: inherit;
	text-decoration: none;
}

.ak-blog-list__post-link:hover,
.ak-blog-list__post-link:focus-visible {
	color: var(--ak-blog-accent);
	outline: none;
}

.ak-blog-list__post-link:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.ak-blog-list__excerpt {
	margin: 0;
	padding: 0;
	font-family: var(--ak-blog-sans);
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.7;
	color: var(--ak-blog-body);
}

.ak-blog-list__more {
	display: inline-block;
	align-self: center;
	font-family: var(--ak-blog-sans);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--ak-blog-accent);
	text-decoration: none;
	white-space: nowrap;
	padding: 0.25rem 0;
}

.ak-blog-list__more:hover,
.ak-blog-list__more:focus-visible {
	color: #a88b65;
	outline: none;
}

.ak-blog-list__more:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* Mobile: stack */
@media (max-width: 767px) {
	.ak-blog-list__header {
		margin-bottom: 1.25rem;
	}

	.ak-blog-list__row {
		grid-template-columns: 1fr;
		gap: 0.5rem;
		padding: 1.35rem 0;
	}

	.ak-blog-list__date {
		padding-top: 0;
		order: 1;
	}

	.ak-blog-list__content {
		order: 2;
	}

	.ak-blog-list__post-title {
		margin-bottom: 0.5rem;
	}

	.ak-blog-list__more {
		order: 3;
		align-self: start;
		margin-top: 0.35rem;
	}
}
