/*
 * Footer, site-wide. Dark ink ground; a huge outlined wordmark is cropped at the bottom edge.
 * Logical properties only. The 23deg skew is the logo's lean, never mirrored.
 */

.ayh-footer {
	--ayh-skew: -23deg;
	position: relative;
	isolation: isolate;
	overflow: clip;
	margin-inline: -1.25rem;
	padding: 4rem 1.25rem 3rem;
	border-block-start: 0;
}

/* The shared rule gives every footer a hairline; here it is a short brass slanted tick instead */
.wp-site-blocks > .ayh-footer {
	border-block-start: 0;
}

.ayh-footer::before {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 1.75rem;
	inline-size: 4rem;
	block-size: 3px;
	background: var(--wp--preset--color--brass-light);
	border-radius: 999px;
	transform: skewX(var(--ayh-skew-el));
}

/* The wordmark: outlined, enormous, sitting on the bottom edge */
.ayh-footer__word {
	position: absolute;
	z-index: -1;
	inset-inline: 0;
	inset-block-end: -0.2em;
	text-align: center;
	font-family: var(--wp--preset--font-family--peyda);
	font-weight: 700;
	font-size: clamp(7rem, 26vw, 24rem);
	line-height: 1;
	white-space: nowrap;
	color: transparent;
	-webkit-text-stroke: 1px color-mix(in srgb, var(--wp--preset--color--ivory) 14%, transparent);
	pointer-events: none;
	user-select: none;
}

.ayh-footer__inner {
	display: grid;
	gap: 3rem;
}

.ayh-footer__top {
	display: grid;
	gap: 2.5rem;
	align-items: start;
}

.ayh-footer__brand > * {
	margin-block: 0;
}

.ayh-footer__logo {
	display: block;
	inline-size: 8.5rem;
}

.ayh-footer__logo img {
	display: block;
	inline-size: 100%;
	block-size: auto;
}

.ayh-footer__tagline {
	margin-block-start: 1rem;
	max-inline-size: 18rem;
	font-size: var(--wp--preset--font-size--large);
	color: color-mix(in srgb, var(--wp--preset--color--ivory) 78%, transparent);
}

.ayh-footer__about {
	margin-block-start: 1.25rem;
	max-inline-size: 30rem;
	font-size: var(--wp--preset--font-size--small);
	line-height: 2;
	color: color-mix(in srgb, var(--wp--preset--color--ivory) 64%, transparent);
}

.ayh-footer__nav ul {
	display: grid;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ayh-footer__nav a {
	display: inline-flex;
	align-items: center;
	min-block-size: 2.75rem;
	font-family: var(--wp--preset--font-family--peyda);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--x-large);
	color: var(--wp--preset--color--ivory);
	text-decoration: none;
	transition: color 0.2s ease, padding-inline-start 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ayh-footer__nav a:hover,
.ayh-footer__nav a:focus-visible {
	color: var(--wp--preset--color--brass-light);
	padding-inline-start: 0.75rem;
}

.ayh-footer__cta {
	margin: 0;
}

.ayh-footer .ayh-btn-slant {
	--ayh-cta-bg: var(--wp--preset--color--brass-light);
	--ayh-cta-fg: var(--wp--preset--color--ink);
	--ayh-cta-bg-hover: var(--wp--preset--color--ivory);
}

.ayh-footer .ayh-btn-slant .wp-block-button__link {
	background: none;
	color: var(--ayh-cta-fg);
}

@media (min-width: 48rem) {
	.ayh-footer__top {
		grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) auto;
		column-gap: 3rem;
	}
}

@media (min-width: 64rem) {
	.ayh-footer {
		padding: 5rem 1.25rem 4rem;
	}

	.ayh-footer__inner {
		padding-block-end: clamp(3rem, 9vw, 8rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ayh-footer__nav a {
		transition: none;
	}
}

/* The description is smaller and dimmer than the tagline, so the two do not compete */
.ayh-footer__about {
	margin-block-start: 0.75rem;
	max-inline-size: 26rem;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.9;
	color: color-mix(in srgb, var(--wp--preset--color--ivory) 52%, transparent);
}

/* Contact: three quiet lines under the button */
.ayh-footer__reach {
	display: grid;
	gap: 1.5rem;
	justify-items: start;
}

.ayh-footer__contact {
	display: grid;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ayh-footer__contact a {
	display: inline-flex;
	align-items: baseline;
	gap: 0.75rem;
	min-block-size: 2.75rem;
	align-items: center;
	font-size: var(--wp--preset--font-size--small);
	color: color-mix(in srgb, var(--wp--preset--color--ivory) 82%, transparent);
	text-decoration: none;
	transition: color 0.2s ease;
}

.ayh-footer__contact span {
	min-inline-size: 4.5rem;
	font-weight: 700;
	color: var(--wp--preset--color--brass-light);
}

.ayh-footer__contact a:hover,
.ayh-footer__contact a:focus-visible {
	color: var(--wp--preset--color--ivory);
}

@media (prefers-reduced-motion: reduce) {
	.ayh-footer__contact a {
		transition: none;
	}
}
