/*
 * Site footer — "blueprint ledger".
 * Navy from the theme options, a faint drafting grid, small tracked labels like drawing annotations.
 * Selectors are prefixed with #footer-wrapper / .site-footer so they win over the theme's option CSS in wp_head.
 */

.site-footer {
	--ft-navy: #35376a;
	--ft-navy-deep: #26284f;
	--ft-steel: #a8b1b8;
	--ft-text: rgba(255, 255, 255, 0.88);
	--ft-rule: rgba(255, 255, 255, 0.14);
	--ft-grid: rgba(255, 255, 255, 0.035);
}

#footer-wrapper.site-footer {
	background-color: var(--ft-navy);
	padding: 0;
	color: var(--ft-text);
	font-size: 15px;
	line-height: 1.65;
	overflow: hidden;
	isolation: isolate;
}

/* Drafting grid, fading out towards the left so the About text sits on clean navy */
.site-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(var(--ft-grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--ft-grid) 1px, transparent 1px);
	background-size: 32px 32px;
	background-position: -1px -1px;
	-webkit-mask-image: linear-gradient(100deg, transparent 15%, #000 75%);
	mask-image: linear-gradient(100deg, transparent 15%, #000 75%);
	pointer-events: none;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 48px 96px;
	padding: 72px 0 64px;
}

.site-footer__grid--links {
	grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
	gap: 48px 64px;
}

/* Widgets still render their theme wrapper; let the grid column size them */
.site-footer__col .cols-3 {
	width: auto;
	float: none;
	margin: 0;
}

#footer-wrapper .site-footer__label,
#footer-wrapper .site-footer__col h5 {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 24px;
	padding: 0;
	border: 0;
	font-family: 'Raleway', sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ft-steel);
}

#footer-wrapper .site-footer__label::before,
#footer-wrapper .site-footer__col h5::before {
	content: "";
	width: 20px;
	height: 1px;
	background: currentColor;
}

/* About: set as a lead paragraph rather than small print */
.site-footer__lead p,
.site-footer__lead {
	margin: 0;
	max-width: 30em;
	font-family: 'Raleway', sans-serif;
	font-size: 22px;
	font-weight: 300;
	line-height: 1.5;
	color: #fff;
}

/* Contact ledger */
.site-footer__ledger {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	margin: 0 0 28px;
	border-top: 1px solid var(--ft-rule);
}

.site-footer__ledger dt,
.site-footer__ledger dd {
	margin: 0;
	padding: 12px 0;
	border-bottom: 1px solid var(--ft-rule);
}

.site-footer__ledger dt {
	font-size: 11px;
	line-height: 24.75px; /* same line box as the 15px values, so labels line up with the first line */
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ft-steel);
}

.site-footer__ledger dd {
	color: #fff;
	font-variant-numeric: tabular-nums;
}

#footer-wrapper .site-footer__ledger a,
#footer-wrapper .site-footer__links a,
#footer-wrapper .copyright-wrapper a {
	color: #fff;
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 0.3s ease, color 0.3s ease;
}

#footer-wrapper .site-footer__ledger a:hover,
#footer-wrapper .site-footer__ledger a:focus-visible,
#footer-wrapper .site-footer__links a:hover,
#footer-wrapper .site-footer__links a:focus-visible,
#footer-wrapper .copyright-wrapper a:hover,
#footer-wrapper .copyright-wrapper a:focus-visible {
	background-size: 100% 1px;
}

.site-footer__links ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__links li {
	padding: 4px 0;
}

/* Social icons */
#footer-wrapper .social-icons {
	display: flex;
	gap: 8px;
}

#footer-wrapper.site-footer .social-icons a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--ft-rule);
	border-radius: 0;
	font-size: 16px;
	line-height: 1;
	color: #fff;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

#footer-wrapper.site-footer .social-icons a:hover,
#footer-wrapper.site-footer .social-icons a:focus-visible {
	background-color: #fff;
	border-color: #fff;
	color: var(--ft-navy);
}

/* Twitter is now X: Font Awesome 4.3 has no X glyph, so draw it with a mask (header icons too) */
.social-icons a.fa-twitter::before {
	content: "";
	display: inline-block;
	width: 0.9em;
	height: 0.9em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.9 1.15h3.68l-8.04 9.19L24 22.85h-7.4l-5.8-7.59-6.64 7.59H.47l8.6-9.83L0 1.15h7.59l5.25 6.93zm-1.29 19.5h2.04L6.49 3.24H4.3z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.9 1.15h3.68l-8.04 9.19L24 22.85h-7.4l-5.8-7.59-6.64 7.59H.47l8.6-9.83L0 1.15h7.59l5.25 6.93zm-1.29 19.5h2.04L6.49 3.24H4.3z'/%3E%3C/svg%3E") center / contain no-repeat;
	vertical-align: -0.1em;
}

/* Bottom bar */
#footer-wrapper .copyright-txt a {
	color: inherit;
}

.site-footer .copyright-wrapper {
	background-color: var(--ft-navy-deep);
	padding: 18px 0;
	border-top: 1px solid var(--ft-rule);
	font-size: 13px;
	color: rgba(255, 255, 255, 0.7);
}

.site-footer .copyright-wrapper .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.site-footer .copyright-txt {
	float: none;
	color: rgba(255, 255, 255, 0.7);
}

#footer-wrapper .copyright-wrapper a.site-footer__top {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ft-steel);
}

.site-footer__top::after {
	content: "\2191";
	font-size: 13px;
	letter-spacing: 0;
	transition: transform 0.25s ease;
}

.site-footer__top:hover::after {
	transform: translateY(-3px);
}

.site-footer a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

@media screen and (max-width: 980px) {
	.site-footer__grid,
	.site-footer__grid--links {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 48px;
	}

	.site-footer__about {
		grid-column: 1 / -1;
	}
}

@media screen and (max-width: 767px) {
	.site-footer__grid,
	.site-footer__grid--links {
		grid-template-columns: minmax(0, 1fr);
		gap: 44px;
		padding: 56px 0 48px;
	}

	.site-footer__lead p,
	.site-footer__lead {
		font-size: 19px;
	}

	.site-footer .copyright-wrapper .container {
		flex-direction: column;
		text-align: center;
		gap: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-footer *,
	.site-footer *::before,
	.site-footer *::after {
		transition: none !important;
	}
}
