*,
*:before,
*:after {
	box-sizing: border-box;
	font-family: inherit;
	max-width: 100%;
}

main {
	width: 100%;
	max-width: 90%;
	margin: 4rem auto;
	padding: 0 1rem;
}

.layout {
	display: grid;
	grid-template-columns: 100%;
	grid-template-rows: auto 1fr auto;
	min-height: 100vh;
}

img {
	width: auto;
	height: 270px;
}

.post {
	/* 
	  将基础字号从默认的 1rem (通常是 16px) 调整为 0.9rem (约 14.4px)。
	  您可以根据喜好微调这个值，比如 0.95rem (稍大) 或 0.875rem (更小)。
	  使用 'rem' 单位是最佳实践，因为它能很好地适应用户的浏览器设置。
	*/
	font-size: 1.2rem;
}

.post {
	h1 {
		margin-bottom: 1rem;
	}

	p {
		line-height: 1.4;
		/* 增加行高，让阅读更舒适 */
	}

	img {
		width: auto;
		height: auto;
	}

	.meta {
		font-size: 0.7rem;
		margin-bottom: 4rem;
	}

	img+h1 {
		margin-top: 1rem;
	}
}

li {
	margin-bottom: 0.25rem;
}

.posts-list {
	list-style-type: none;
	padding: 0;

	li {
		margin-bottom: 6rem;
	}

	img+h2 {
		margin-top: 1rem;
	}

	a {
		display: block;
	}
}

.post-footer__categories {
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.post-footer li {
	display: inline-block;
	font-size: 0.8rem;
}

.post-footer a {
	background-color: var(--lightAccent);
	padding: .5rem 0.75rem;
	text-transform: uppercase;
	font-family: var(--primaryFont);
	font-weight: bold;
}

.icon-link {
	position: relative;
}

.icon-link::before {
	content: url('/link.svg');
	fill: currentColor;
	position: absolute;
	left: -1rem;
	width: 1rem;
	height: 1rem;
	top: 0;
	opacity: 0.2;
	transition: opacity .2s;
}

@media (min-width: 48rem) {
	.icon-link::before {
		left: -1.5rem;
	}
}

.icon-link:hover::before {
	opacity: 1;
}