/**
 * Site footer: light surface on sage. Markup in inc/footer.php.
 * See "Footer" in docs/design-system.md.
 */

.bst-footer {
	padding-top: var(--section-y);
	background-color: var(--color-sage);
	color: var(--color-text);
}

/*
 * Grid: 1 column, 2 from 600px, 4 from 1024px. Baseline alignment lines
 * up the first line of each column: the wordmark in column 1 and the
 * column titles in the others.
 */
.bst-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	align-items: baseline;
	gap: var(--gap);
}

@media (min-width: 600px) {

	.bst-footer__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {

	.bst-footer__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.bst-footer__col > :last-child {
	margin-bottom: 0;
}

/* Column 1: wordmark (shared .bst-logo styles in header.css) and tagline. */
.bst-footer .bst-logo {
	display: inline-block;
	margin-bottom: 0.5em;
	color: var(--color-forest);
}

.bst-footer__tagline {
	max-width: 22em;
}

/* Column titles: heading font at --text-h3 (base h2 styles otherwise). */
.bst-footer__title {
	margin: 0 0 1em;
	font-size: var(--text-h3);
}

/* Contact */
.bst-footer__contact {
	font-style: normal;
}

.bst-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bst-footer__list li + li {
	margin-top: 0.35em;
}

/* Footer links: plain like the reference; forest with an accent underline on hover/focus. */
.bst-footer__list a {
	color: inherit;
	text-decoration: none;
}

.bst-footer__list a:hover,
.bst-footer__list a:focus-visible {
	color: var(--color-forest);
	text-decoration: underline;
	text-decoration-color: var(--color-accent);
}

/* Column 4: latest posts, date (small accent, italic serif as in the reference) above the title. */
.bst-footer__posts li + li {
	margin-top: 0.75em;
}

.bst-footer__date {
	display: block;
	color: var(--color-accent);
	font-family: var(--font-heading);
	font-style: italic;
	line-height: 1.4;
}

/* Hairline (content width), then the copyright line. */
.bst-footer__copyright {
	margin: calc(var(--section-y) * 2 / 3) 0 0;
	padding: 1.25em 0;
	border-top: 1px solid var(--color-border);
	font-family: var(--font-heading);
	font-style: italic;
	text-align: center;
}
