/* Footer: the brand on the left, then columns of stacked links, with a slim base line under them. */

footer {
	padding: 52px 0 28px
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: 32px 40px
}

.footer-brand .logo {
	font-size: 22px
}

.footer-brand p {
	font-size: 14px;
	max-width: 260px;
	margin: 10px 0 0
}

.footer-head {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--blue);
	margin: 4px 0 14px
}

.footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0
}

.footer-col li {
	margin: 0 0 9px
}

.footer-col a {
	font-size: 14px;
	color: var(--ink)
}

	.footer-col a:hover {
		color: var(--blue);
		text-decoration: underline;
		text-underline-offset: 3px
	}

.footer-base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 24px;
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--line)
}

	.footer-base p {
		font-size: 13px;
		margin: 0
	}

	.footer-base a {
		color: var(--blue);
		text-decoration: underline;
		text-underline-offset: 3px
	}

/* Tablets: brand on its own row, three link columns below */

@media(max-width:850px) {
	.footer-grid {
		grid-template-columns: repeat(3, 1fr)
	}

	.footer-brand {
		grid-column: 1 / -1
	}
}

/* Phones: two link columns side by side, the last one below */

@media(max-width:620px) {
	footer {
		padding: 40px 0 24px
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 28px 24px
	}

	.footer-base {
		flex-direction: column
	}
}