@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap");

* {
	margin: 0px;
	padding: 0px;
	box-sizing: border-box;
}

body {
	width: 100%;
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	font-family: "Figtree", sans-serif;
	font-optical-sizing: auto;
	font-style: normal;
	background-color: hsl(47, 88%, 63%);
}

.card {
	background-color: hsl(0, 0%, 100%);
	width: 384px;
	height: 522px;
	padding: 24px;
	border-radius: 20px;
	display: flex;
	flex-direction: column;
	row-gap: 24px;
	border: 1px solid hsl(0, 0%, 7%);
	box-shadow: 8px 8px 0 0 #000;
}

#blog-image img {
	border-radius: 10px;
	width: 100%;
}

#blog-info {
	display: flex;
	flex-direction: column;
	row-gap: 12px;
}

.category {
	padding: 4px 12px;
	background-color: hsl(47, 88%, 63%);
	color: hsl(0, 0%, 7%);
	width: 82px;
	height: 29px;
	text-align: center;
	border-radius: 4px;
	font-weight: bold;
	line-height: 150%;
	font-size: 14px;
}

.date {
	line-height: 150%;
	font-size: 14px;
}

.title {
	line-height: 150%;
	font-size: 24px;
}

.title a {
	color: hsl(0, 0%, 7%);
	text-decoration: none;
}

.title a:hover,
.title a:focus,
.title a:active,
.title a:invalid {
	color: hsl(47, 88%, 63%);
}

.summary {
	line-height: 150%;
	font-size: 16px;
}

#author {
	display: flex;
	align-items: center;
}

.author-image {
	width: 32px;
	height: 32px;
	margin-right: 12px;
}

.author-name {
	font-weight: bold;
	font-size: 14px;
	font-weight: bolder;
}

.attribution {
	font-size: 11px;
	text-align: center;
	margin-top: 30px;
}
.attribution a {
	color: hsl(228, 45%, 44%);
}

@media (max-width: 375px) {
	.card {
		width: 327px;
		height: 501px;
	}
	.title {
		font-size: 20px;
		font-weight: bolder;
	}
	.summary {
		font-size: 14px;
	}

	.date,
	.category {
		font: 12px;
	}

	.category {
		font-weight: bolder;
	}
}
