/* Reset */
*,
*::before,
*::after {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	font-size: 100%;
}

/* Variables */
:root {
	--main-bg-color: hsl(47, 88%, 63%);
	--card-bg-color: hsl(0, 0%, 100%);
	--txt-color-dark: hsl(0, 0%, 7%);
	--txt-color-light: hsl(0, 0%, 42%);
}

body {
	font-family: Figtree, Aria;
	color: var(--txt-color-dark);
	background-color: var(--main-bg-color);
	min-height: 100vh;
	font-size: 1rem;
	line-height: 1.5;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	justify-content: center;
	align-items: center;
}
.card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	background-color: var(--card-bg-color);
	max-width: 24rem;
	width: 100%;
	height: auto;
	padding: 1.5rem;
	border-radius: 1.25rem;
	gap: 1.5rem;
	border: 1px solid;
	transition: box-shadow 0.3 ease-in-out;
}
.card:hover {
	box-shadow: 8px 8px 0 hsl(0, 0%, 0%);
}

.card img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0.625rem;
}
.category-label {
	background-color: var(--main-bg-color);
	padding: 0.25rem 0.75rem;
	border-radius: 0.25rem;
	font-weight: bold;
	font-size: 0.875rem;
}

.publish-date {
	font-size: 0.875rem;
}
h1 {
	font-size: 1.5rem;
	font-weight: 800;
	transition: color 0.3 ease-in-out;
}
.card:hover > h1 {
	color: var(--main-bg-color);
}
.description {
	color: var(--txt-color-light);
	font-weight: 500;
	font-size: 1rem;
}
.author {
	display: flex;
	gap: 0.75rem;
}
.author > img {
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
}
.author > p {
	font-size: 0.875rem;
	font-weight: 800;
}

.attribution {
	font-size: 0.875rem;
	font-weight: 600;
}
.attribution > a{
	text-decoration: none;
	color: var(--txt-color-light);
}
.attribution > a:hover{
	text-decoration: underline;
}

@media (max-width: 600px) {
	h1 {
		font-size: 1.25rem;
	}
	.description {
		font-size: 0.875rem;
	}
	.publish-date .category-label {
		font-size: 0.75rem;
	}
	.attribution {
		font-size: .625rem;
	}
}
