.gon-substack-section {
	--gon-ink: #1B1810;
	--gon-ink-soft: #6b6656;
	--gon-paper: #EAE2CC;
	--gon-clay: #B23A2E;
	--gon-moss: #5C6142;
	--gon-gold: #C98A2C;
	--gon-cream: #F7F2E7;
	--gon-line: rgba(27, 24, 16, .14);
	--gon-radius: 8px;
	max-width: 1140px;
	margin: 0 auto;
	padding: 40px 20px 80px;
}

.gon-substack-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

@media (max-width: 900px) {
	.gon-substack-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.gon-substack-grid { grid-template-columns: 1fr; }
}

/* Chặn gạch chân ở mọi cấp - theme hay đè text-decoration lên thẻ a và con của nó */
.gon-substack-card,
.gon-substack-card:hover,
.gon-substack-card:visited,
.gon-substack-card *,
.gon-substack-card *:hover {
	text-decoration: none !important;
}

.gon-substack-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--gon-cream);
	border: 1px solid var(--gon-line);
	border-radius: var(--gon-radius);
	overflow: hidden;
	color: var(--gon-ink);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.gon-substack-card:hover {
	transform: translate(-4px, -4px);
	box-shadow: 6px 6px 0 var(--gon-ink);
	border-color: var(--gon-ink);
}

/* --- Thumbnail: đồng bộ 3 ảnh khác phong cách bằng lớp phủ duotone theo tông brand --- */
.gon-substack-thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	background-size: cover;
	background-position: center;
	background-color: var(--gon-paper);
	filter: grayscale(35%) contrast(1.05);
	transition: filter .35s ease;
}

.gon-substack-thumb::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(155deg, rgba(27, 24, 16, .62) 0%, rgba(92, 97, 66, .38) 55%, rgba(27, 24, 16, .5) 100%);
	mix-blend-mode: multiply;
	transition: opacity .35s ease;
}

.gon-substack-card:hover .gon-substack-thumb {
	filter: grayscale(10%) contrast(1.02);
}
.gon-substack-card:hover .gon-substack-thumb::after {
	opacity: .55;
}

/* Số thứ tự kiểu nhãn ledger, góc trên-trái ảnh */
.gon-substack-index {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 11px;
	letter-spacing: .05em;
	color: var(--gon-cream);
	background: var(--gon-ink);
	padding: 4px 9px;
	border-radius: 3px;
}

.gon-substack-body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 22px 22px 24px;
}

.gon-substack-date {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--gon-moss);
	margin-bottom: 10px;
}

.gon-substack-title {
	margin: 0 0 8px;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 19px;
	line-height: 1.32;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--gon-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gon-substack-excerpt {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: var(--gon-ink-soft);
	margin: 0 0 18px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex-grow: 1;
}

.gon-substack-readmore {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--gon-line);
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .03em;
	color: var(--gon-clay);
	transition: gap .2s ease, color .2s ease;
}

.gon-substack-card:hover .gon-substack-readmore {
	gap: 10px;
	color: var(--gon-ink);
}
