/**
 * Rustfun site footer.
 */

.rf-site-footer {
	color: var(--rf-color-text-inverse);
	background: var(--rf-iron);
	border-bottom: 1px solid var(--rf-color-border);
}

.rf-footer-seam {
	height: 6px;
	background: repeating-linear-gradient(
		135deg,
		var(--rf-oxide) 0,
		var(--rf-oxide) 14px,
		var(--rf-iron) 14px,
		var(--rf-iron) 28px
	);
	border-block: 1px solid var(--rf-steel);
}

.rf-footer-shell {
	width: min(100% - 40px, 1360px);
	margin-inline: auto;
	padding-block: clamp(44px, 5vw, 72px) 24px;
}

.rf-footer-grid {
	display: grid;
	grid-template-columns: minmax(300px, 1.35fr) minmax(190px, 0.7fr) minmax(280px, 0.9fr);
	align-items: start;
	gap: clamp(40px, 5vw, 76px);
}

.rf-footer-brand {
	max-width: 520px;
}

.rf-footer-logo {
	width: min(244px, 100%);
	margin-bottom: 24px;
	display: block;
	line-height: 0;
}

.rf-footer-logo img {
	width: 100%;
	height: auto;
	display: block;
	filter: url("#rf-logo-light-r");
}

.rf-footer-kicker,
.rf-footer-label {
	margin: 0 0 13px;
	color: var(--rf-sulfur);
	font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
	font-size: 0.72rem;
	font-weight: 900;
	line-height: 1.2;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.rf-footer-brand h2,
.rf-footer-access h2 {
	margin: 0;
	color: var(--rf-bone);
	font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
	font-weight: 900;
	line-height: 1.04;
	text-transform: uppercase;
}

.rf-footer-brand h2 {
	max-width: 470px;
	font-size: clamp(1.55rem, 2.4vw, 2.35rem);
	letter-spacing: -0.025em;
}

.rf-footer-summary {
	max-width: 500px;
	margin: 18px 0 0;
	color: var(--rf-canvas);
	font-size: 0.95rem;
	line-height: 1.7;
}

.rf-footer-menu {
	margin: 0;
	padding: 0;
	display: grid;
	gap: 3px;
	list-style: none;
}

.rf-footer-menu > li {
	margin: 0;
	padding: 0;
}

.rf-footer-menu > li > a {
	position: relative;
	min-height: 38px;
	padding: 8px 4px 8px 18px;
	display: inline-flex;
	align-items: center;
	color: var(--rf-bone);
	font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
	font-size: 0.76rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.075em;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 140ms ease, transform 140ms ease;
}

.rf-footer-menu > li > a::before {
	position: absolute;
	left: 0;
	width: 8px;
	height: 3px;
	content: "";
	background: var(--rf-oxide);
	transition: width 140ms ease, background-color 140ms ease;
}

.rf-footer-menu > li > a:hover,
.rf-footer-menu > li > a:focus-visible {
	color: var(--rf-sulfur);
	transform: translateX(3px);
}

.rf-footer-menu > li > a:hover::before,
.rf-footer-menu > li > a:focus-visible::before {
	width: 12px;
	background: var(--rf-sulfur);
}

.rf-footer-access {
	position: relative;
	padding: 28px;
	background: #292f2c;
	border: 1px solid var(--rf-steel);
	clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.rf-footer-access::before {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 4px;
	content: "";
	background: linear-gradient(var(--rf-sulfur) 0 28%, var(--rf-oxide) 28% 100%);
}

.rf-footer-access h2 {
	font-size: clamp(1.3rem, 1.8vw, 1.75rem);
	letter-spacing: -0.01em;
}

.rf-footer-access > p:not(.rf-footer-label) {
	margin: 14px 0 23px;
	color: var(--rf-canvas);
	font-size: 0.9rem;
	line-height: 1.55;
}

.rf-footer-server-address {
	width: fit-content;
	max-width: 100%;
	margin: -8px 0 18px;
	padding: 7px 9px;
	display: block;
	color: var(--rf-sulfur);
	background: rgba(12, 15, 14, 0.48);
	border-left: 3px solid var(--rf-oxide);
	font-family: Consolas, "Liberation Mono", monospace;
	font-size: 0.74rem;
	font-weight: 700;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.rf-footer-join {
	min-height: 46px;
	padding: 0 17px 0 19px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: var(--rf-color-on-primary);
	background: var(--rf-oxide);
	font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
	font-size: 0.76rem;
	font-weight: 900;
	line-height: 1;
	letter-spacing: 0.09em;
	text-decoration: none;
	text-transform: uppercase;
	border: 2px solid var(--rf-canvas);
	clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
	transition: color 130ms ease, background-color 130ms ease, transform 130ms ease;
}

.rf-footer-join:hover,
.rf-footer-join:focus-visible {
	color: var(--rf-color-on-primary);
	background: var(--rf-color-primary-hover);
	transform: translateY(1px);
}

.rf-footer-join svg,
.rf-footer-top svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: square;
	stroke-linejoin: miter;
}

.rf-footer-legal {
	margin-top: clamp(38px, 5vw, 64px);
	padding-top: 21px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	border-top: 1px solid var(--rf-color-border);
}

.rf-footer-legal p {
	margin: 0;
	color: var(--rf-canvas);
	font-size: 0.75rem;
	line-height: 1.6;
}

.rf-footer-top {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--rf-bone);
	font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
	font-size: 0.7rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.085em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: color 130ms ease, transform 130ms ease;
}

.rf-footer-top:hover,
.rf-footer-top:focus-visible {
	color: var(--rf-sulfur);
	transform: translateY(-2px);
}

@media (max-width: 980px) {
	.rf-footer-grid {
		grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
	}

	.rf-footer-brand {
		grid-column: 1 / -1;
	}

	.rf-footer-nav {
		align-self: center;
	}

	.rf-footer-menu {
		grid-template-columns: repeat(2, minmax(110px, 1fr));
	}
}

@media (max-width: 640px) {
	.rf-footer-shell {
		width: min(100% - 24px, 1360px);
		padding-top: 40px;
	}

	.rf-footer-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}

	.rf-footer-brand {
		grid-column: auto;
	}

	.rf-footer-logo {
		width: min(224px, 100%);
	}

	.rf-footer-access {
		padding: 24px;
	}

	.rf-footer-legal {
		align-items: flex-start;
		flex-direction: column;
	}

}

@media (prefers-reduced-motion: reduce) {
	.rf-footer-menu > li > a,
	.rf-footer-menu > li > a::before,
	.rf-footer-join,
	.rf-footer-top {
		transition: none;
	}
}
