/*
 * Site footer (parts/footer.html). Dark section-5 band: the header's
 * wordmark in the brand yellow, balanced by three link/info columns,
 * over a quiet bottom bar.
 */

.site-footer {
	--site-footer-muted: color-mix(in srgb, currentColor 65%, transparent);
	--site-footer-rule: color-mix(in srgb, currentColor 15%, transparent);
}

/* Brand column */
.site-footer__brand > * + * {
	margin-block-start: var(--wp--preset--spacing--30);
}

.site-footer__brand .wp-block-site-title {
	/* Same type as the header site title, larger and in the brand yellow. */
	font-family: var(--wp--preset--font-family--manrope);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	letter-spacing: -0.5px;
	line-height: 1.1;
	text-transform: none;
	color: var(--wp--preset--color--accent-1);
}

.site-footer__brand .wp-block-site-title a {
	color: inherit;
	text-decoration: none;
}

.site-footer__brand .wp-block-site-tagline {
	max-width: 30ch;
	text-wrap: balance;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.5;
	color: var(--site-footer-muted);
}

.site-footer__brand .wp-block-buttons {
	margin-block-start: var(--wp--preset--spacing--40);
}

.site-footer__cta .wp-block-button__link {
	background-color: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--contrast);
	border-radius: 9999px;
	padding: 0.8em 1.6em;
	font-size: var(--wp--preset--font-size--medium);
	transition: background-color 0.2s ease;
}

.site-footer__cta .wp-block-button__link:hover,
.site-footer__cta .wp-block-button__link:focus {
	background-color: color-mix(in srgb, var(--wp--preset--color--accent-1) 85%, white);
	color: var(--wp--preset--color--contrast);
}

/* Link / info columns: labels share the top line of the wordmark. */
.site-footer__cols {
	column-gap: var(--wp--preset--spacing--50);
	row-gap: var(--wp--preset--spacing--50);
}

/* Wider screens: give the longer Studio lines more room than the short lists. */
@media (min-width: 600px) {
	.site-footer .site-footer__cols {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr) minmax(0, 0.8fr);
	}
}

/* Tablet: brand gets its own row above the columns instead of squeezing beside them. */
@media (max-width: 1079px) {
	.site-footer .site-footer__top {
		flex-wrap: wrap !important;
	}

	.site-footer .site-footer__top > .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* Phone: Explore and Follow side by side, the longer Studio lines full width below. */
@media (max-width: 599px) {
	.site-footer .site-footer__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.site-footer__cols > :nth-child(2) {
		grid-column: 1 / -1;
		order: 1;
	}
}

.site-footer__label {
	margin: 0 0 var(--wp--preset--spacing--20);
	font-family: var(--wp--preset--font-family--fira-code);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.1em;
	line-height: 1.6;
	text-transform: uppercase;
	color: var(--site-footer-muted);
}

.site-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.45;
}

/* Space items apart (not lines), so a wrapped line still reads as one item. */
.site-footer__list li + li {
	margin-block-start: 0.55em;
}

.site-footer a:where(:not(.wp-element-button, .wp-block-social-link-anchor)) {
	color: inherit;
	text-decoration: none;
}

.site-footer__list a,
.site-footer__social .wp-social-link {
	transition: color 0.2s ease;
}

.site-footer__list a:hover,
.site-footer__list a:focus {
	color: var(--wp--preset--color--accent-1);
}

.site-footer__social {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
}

/* Hover colors the <li>: core pins the anchor itself to `currentColor`
   with a more specific rule, so a :hover on the <a> never wins. */
.site-footer__social .wp-social-link {
	color: inherit;
}

.site-footer__social .wp-social-link:hover,
.site-footer__social .wp-social-link:focus-within {
	color: var(--wp--preset--color--accent-1);
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.site-footer__list a,
	.site-footer__social .wp-social-link {
		transition: none;
	}
}

.site-footer__social .wp-block-social-link-anchor {
	gap: 0.5em;
	padding: 0;
	line-height: 1.45;
}

.site-footer__social .wp-block-social-link-anchor svg {
	width: 1.15em;
	height: 1.15em;
}

.site-footer__social .wp-social-link .wp-block-social-link-label:not(.screen-reader-text) {
	font-size: var(--wp--preset--font-size--medium);
}

/* Bottom bar */
.site-footer__bottom {
	margin-block-start: var(--wp--preset--spacing--70);
	padding-block-start: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--site-footer-rule);
	font-size: var(--wp--preset--font-size--small);
	color: var(--site-footer-muted);
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer__bottom a:hover,
.site-footer__bottom a:focus {
	color: var(--wp--preset--color--base);
	text-decoration: underline;
}
