/* Blog list: featured post + card grid. Colors are variables so the dark
   theme (html[data-an-theme="dark"], set by an-blog-nav.js) only swaps them. */
.an-blog-list {
	--an-bg: #ffffff;
	--an-text: #151322;
	--an-muted: #5b5b66;
	--an-card: #ffffff;
	--an-line: #e6e6ef;
	--an-tag-bg: #eef0ff;
	--an-tag-text: #3452ff;
	--an-accent: #3452ff;
	background: var(--an-bg);
	color: var(--an-text);
	font-family: Outfit, Arial, Helvetica, sans-serif;
	padding: 130px 0 120px;
}
html[data-an-theme="dark"] .an-blog-list {
	--an-bg: #0f0d1a;
	--an-text: #ffffff;
	--an-muted: #a8a8b8;
	--an-card: #181627;
	--an-line: #2d2a42;
	--an-tag-bg: rgba(143, 160, 255, 0.16);
	--an-tag-text: #8fa0ff;
	--an-accent: #8fa0ff;
}
/* same left edge as the header logo and article text */
.an-blog-list__inner {
	width: min(1550px, 100% - 180px);
	margin: 0 auto;
}
.an-blog-list__head h1 {
	font-size: 56px;
	line-height: 1.05;
	font-weight: 200;
	color: var(--an-text) !important;
	margin: 0 0 16px;
}
.an-blog-list__head p {
	font-family: "Mrs Saint Delafield", "Segoe Script", "Snell Roundhand", "Brush Script MT", cursive;
	font-size: 56px;
	line-height: 1.2;
	color: var(--an-muted) !important;
	margin: 0;
}
.an-blog-list__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 32px 0 0;
}
.an-blog-list__chips a {
	padding: 8px 18px;
	border: 1px solid var(--an-line);
	border-radius: 999px;
	font-size: 16px;
	color: var(--an-text);
	text-decoration: none;
	transition: background-color 0.3s ease, color 0.3s ease;
}
.an-blog-list__chips a:hover,
.an-blog-list__chips a.is-active {
	background: var(--an-text);
	color: var(--an-bg);
}

/* cards */
.an-card {
	display: flex;
	flex-direction: column;
	background: var(--an-card);
	border: 1px solid var(--an-line);
	border-radius: 20px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.an-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}
.an-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--an-line);
}
.an-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.an-card:hover .an-card__media img {
	transform: scale(1.03);
}
.an-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 96px;
	font-weight: 200;
	color: #ffffff;
	background: linear-gradient(135deg, #3452ff, #151322);
}
.an-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 28px;
}
.an-card__tag {
	align-self: flex-start;
	padding: 5px 14px;
	border-radius: 999px;
	background: var(--an-tag-bg);
	color: var(--an-tag-text) !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}
.an-card__title {
	margin: 16px 0 12px;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 500;
	text-transform: none;
}
.an-card__title a {
	color: var(--an-text) !important;
	text-decoration: none;
}
.an-card__title a:hover {
	color: var(--an-accent) !important;
}
.an-card__excerpt {
	flex: 1;
	margin: 0 0 24px;
	font-size: 17px;
	line-height: 1.55;
	color: var(--an-muted) !important;
}
.an-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	font-size: 14px;
	color: var(--an-muted);
}
.an-card__meta span + span::before {
	content: "";
	display: inline-block;
	width: 3px;
	height: 3px;
	margin-right: 14px;
	border-radius: 50%;
	background: currentColor;
	vertical-align: middle;
}
.an-card__avatar {
	width: 28px !important;
	height: 28px !important;
	border-radius: 50%;
	object-fit: cover;
}

/* featured: image left, text right */
.an-card--featured {
	flex-direction: row;
	margin-top: 56px;
}
.an-card--featured .an-card__media {
	flex: 0 0 66%;
	aspect-ratio: 16 / 10;
	min-height: 0;
}
.an-card--featured .an-card__body {
	flex: 1;
	justify-content: center;
	padding: 40px;
}
.an-card--featured .an-card__title {
	font-size: 32px;
	line-height: 1.12;
	font-weight: 300;
}
.an-card--featured .an-card__excerpt {
	flex: 0 0 auto;
	font-size: 17px;
}

.an-blog-list__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 32px;
	margin-top: 32px;
}

/* pagination */
.an-blog-list .pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 64px;
}
.an-blog-list .pagination a,
.an-blog-list .pagination span {
	padding: 10px 18px;
	border: 1px solid var(--an-line);
	border-radius: 999px;
	color: var(--an-text);
	text-decoration: none;
}
.an-blog-list .pagination .current {
	background: var(--an-text);
	color: var(--an-bg);
}

@media (max-width: 999px) {
	.an-blog-list { padding-top: 110px; }
	.an-blog-list__inner { width: calc(100% - 48px); }
	.an-card--featured { flex-direction: column; }
	.an-card--featured .an-card__media { flex: none; width: 100%; }
	.an-card--featured .an-card__body { padding: 28px; }
	.an-card--featured .an-card__title { font-size: 30px; }
}
@media (max-width: 767px) {
	.an-blog-list { padding-bottom: 80px; }
	.an-blog-list__head h1 { font-size: 42px; }
	.an-blog-list__head p { font-size: 42px; }
	.an-blog-list__grid { grid-template-columns: 1fr; }
}

/* Title and cursive tagline share one line (wrap on narrow screens). */
.an-blog-list__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 24px;
}
.an-blog-list__head h1 { margin-bottom: 0; }
.an-blog-list__head p { margin: 0; }
.an-blog-list__chips { flex: 0 0 100%; }
.an-blog-list__head p .an-or { opacity: 0.5; }
