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

/* Define a brighter yet subtle color palette using CSS variables */
:root {
	--primaryColor: #4CAF50; /* Bright green */
	--secondaryColor: #FF9800; /* Subtle orange */
	--lightAccent: #E3F2FD; /* Light blue */
	--darkAccent: #37474F; /* Dark gray */
	--textColor: #212121; /* Dark text */
	--backgroundColor: #FAFAFA; /* Light background */
}

/* Apply the new color palette */
body {
	background-color: var(--backgroundColor);
	color: var(--textColor);
	font-family: 'Arial', sans-serif;
}

main {
	width: 100%;
	max-width: 42rem;
	margin: 6rem auto;
	padding: 0 1rem;
	background-color: var(--lightAccent);
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.layout {
	display: grid;
	grid-template-columns: 100%;
	grid-template-rows: auto 1fr auto;
	min-height: 100vh;
	background-color: var(--backgroundColor);
}

img {
	width: 100%;
	max-width: 100%;
	height: auto;
}

.post {
	h1 {
		margin-bottom: 1rem;
		color: var(--primaryColor);
	}

	.meta {
		font-size: 0.8rem;
		margin-bottom: 4rem;
		color: var(--secondaryColor);
	}

	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;
		color: var(--primaryColor);
		text-decoration: none;
		transition: color 0.3s;
	}

	a:hover {
		color: var(--secondaryColor);
	}
}

.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(--primaryColor);
	padding: .5rem 0.75rem;
	text-transform: uppercase;
	font-family: var(--primaryFont);
	font-weight: bold;
	color: #fff;
	border-radius: 4px;
	transition: background-color 0.3s;
}

.post-footer a:hover {
	background-color: var(--secondaryColor);
}

.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;
	filter: brightness(1.2);
}

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

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