*,
*::before,
*::after {
	box-sizing: border-box;
}

* {
	margin: 0;
}
img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
}

input,
button,
textarea,
select {
	font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

p {
	text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	text-wrap: balance;
}

#root,
#__next {
	isolation: isolate;
}

:root {
	--dark-blue: hsl(234, 12%, 34%);
	--light-gray: hsl(229, 6%, 66%);
	--very-light-gray: hsl(0, 0%, 98%);
	--cyan: hsl(180, 62%, 55%);
	--red: hsl(0, 78%, 62%);
	--blue: hsl(212, 86%, 64%);
	--orange: hsl(34, 97%, 64%);
}

body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	box-sizing: border-box;
	margin-top: 5rem;
	line-height: 1.5;
	background-color: var(--very-light-gray);
	font-family: "Poppins", sans-serif;
}

.main-title {
	font-weight: 200;
	font-size: 1.5625rem;
	color: var(--dark-blue);
}

.main-subtitle {
	color: var(--dark-blue);
	font-size: 1.5625rem;
	font-weight: 700;
	margin-bottom: 0.9375rem;
}

.main-description {
	color: var(--light-gray);
	max-width: 32ch;
	text-align: center;
	font-size: 0.9375rem;
	margin: 0 auto;
}

.card-title {
	color: var(--dark-blue);
	font-size: 1.25rem;
	margin-bottom: 0.625rem;
}

.card-description {
	color: var(--light-gray);
	font-size: 0.9375rem;
	margin-bottom: 2.5rem;
}

.card-supervisor,
.card-team-builder,
.card-karma,
.card-calculator {
	background-color: white;
	padding: 1.875rem;
	max-width: 18.75rem;
	border-radius: 0.625rem;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 6px 6px rgba(0, 0, 0, 0.15);
	display: flex;
	text-align: left;
	flex-direction: column;
	margin-bottom: 1.25rem;
}

.card-supervisor {
	border-top: 5px var(--cyan) solid;
}

.card-team-builder {
	border-top: 5px var(--red) solid;
}

.card-karma {
	border-top: 5px var(--orange) solid;
}

.card-calculator {
	border-top: 5px var(--blue) solid;
}

.icon {
	align-self: flex-end;
	margin-bottom: 0.3125rem;
}

.card-container {
	margin-top: 3.125rem;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

@media (min-width: 48rem) {
	.main-title {
		font-size: 2.5rem;
	}

	.main-subtitle {
		font-size: 2.5rem;
	}

	.main-description {
		max-width: 55ch;
	}

	.card-supervisor,
	.card-team-builder,
	.card-karma,
	.card-calculator {
		max-width: 21.875rem;
	}

	.card-supervisor {
		grid-area: 1 / 1 / 3 / 2;
	}

	.card-team-builder {
		grid-area: 1 / 2 / 2 / 3;
	}

	.card-karma {
		grid-area: 2 / 2 / 3 / 3;
	}

	.card-calculator {
		grid-area: 1 / 3 / 3 / 4;
	}

	.card-container {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		grid-template-rows: auto auto;
		gap: 1.25rem;
	}
}
