/**
 * Site footer.
 *
 * Deliberately self-contained. The design system stylesheet only loads on the
 * homepage, the archives and the A-Z index, but the footer prints on every page
 * on the site. If this file referenced --ha-ink or --ha-font-display it would
 * render unstyled on every single post, so the values are declared locally.
 * They are the design's band-deep tokens, copied, not invented.
 *
 * The whole .site-footer wrapper takes the deep ground, not just this block, so the
 * copyright bar below it belongs to the same band instead of trailing off onto
 * a pale strip.
 *
 * Loaded from inc/footer.php.
 *
 * @package GeneratePress_Child
 */

.site-footer {
	--ha-f-bg: #0A3C30;
	--ha-f-ink: #FFFFFF;
	--ha-f-muted: #A9D2C6;
	--ha-f-rule: #2A5A4C;
	--ha-f-accent: #73E6CB;
	--ha-f-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--ha-f-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	background-color: var(--ha-f-bg);
	color: var(--ha-f-muted);
}

.site-footer a {
	color: var(--ha-f-accent);
	text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
	color: var(--ha-f-ink);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* --- The block ----------------------------------------------------------- */

.ha-footer {
	width: 100%;
	font-family: var(--ha-f-body);
}

.ha-footer__inner {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem) clamp(1.75rem, 3vw, 2.5rem);
	display: grid;
	grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr));
	gap: clamp(1.75rem, 3.5vw, 3rem);
	align-items: start;
}

/* --- Brand --------------------------------------------------------------- */

.ha-footer__name {
	margin: 0;
	font-family: var(--ha-f-display);
	font-size: clamp(1.375rem, 2.2vw, 1.75rem);
	line-height: 1.1;
	font-weight: 500;
	color: var(--ha-f-ink);
}

.ha-footer__blurb {
	margin: 0.75rem 0 0;
	max-width: 46ch;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--ha-f-muted);
}

/* The advertising disclosure is set apart by a hairline rather than a box, and
   says the same thing the Editorial Policy says. */
.ha-footer__disclosure {
	margin: 1rem 0 0;
	padding-top: 0.85rem;
	max-width: 46ch;
	border-top: 1px solid var(--ha-f-rule);
	font-size: 0.8125rem;
	line-height: 1.55;
	color: var(--ha-f-muted);
}

/* --- Link columns -------------------------------------------------------- */

.ha-footer__heading {
	margin: 0 0 0.9rem;
	font-family: var(--ha-f-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ha-f-accent);
}

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

.ha-footer__item {
	margin: 0 0 0.55rem;
}

.site-footer .ha-footer__link {
	font-size: 0.9375rem;
	line-height: 1.4;
	color: var(--ha-f-ink);
	text-decoration: none;
}

.site-footer .ha-footer__link:hover,
.site-footer .ha-footer__link:focus-visible {
	color: var(--ha-f-accent);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* --- The bar GeneratePress prints below -------------------------------- */

.site-info {
	background-color: transparent;
}

.site-info .inside-site-info {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem clamp(1rem, 4vw, 2.5rem) 1.75rem;
	border-top: 1px solid var(--ha-f-rule);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	font-size: 0.8125rem;
}

.site-info .footer-bar ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-info .footer-bar a {
	font-size: 0.8125rem;
}

.site-info .copyright-bar,
.site-info .copyright {
	color: var(--ha-f-muted);
}

/* --- Narrow -------------------------------------------------------------- */

@media (max-width: 61.9375em) {
	.ha-footer__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ha-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 30em) {
	.ha-footer__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.site-info .inside-site-info {
		justify-content: flex-start;
	}
}