/* arne.fahrenwal.de's card template. This is independent of the active
   theme: site 2 may switch among the immutable themes baked into the image. */
.fw-card-page {
	background: #0d0e1c;
	color: #e8e6f3;
}
.fw-card-page .wp-site-blocks > * {
	margin-block-start: 0;
}
.fw-card-banner {
	/* alignfull already spans the parent padding; width: 100% would leave a side gap. */
	max-width: none !important;
	min-height: clamp(11rem, 40vh, 26rem);
	margin: 0;
	-webkit-mask-image: linear-gradient(#000 60%, transparent);
	mask-image: linear-gradient(#000 60%, transparent);
}
/* Override WordPress's .wp-block-image.alignfull img { height: auto; }. */
.fw-card-banner.wp-block-image.alignfull img {
	display: block;
	width: 100%;
	height: clamp(11rem, 40vh, 26rem);
	object-fit: cover;
	object-position: 50% 35%;
}
.fw-card {
	position: relative;
	margin-block-start: -6rem !important;
	padding-block-end: 4rem;
	text-align: center;
}
.fw-card-photo {
	width: 11rem;
	margin-inline: auto !important;
}
.fw-card .fw-card-photo img {
	display: block;
	width: 11rem;
	height: 11rem;
	object-fit: cover;
	border-radius: 50% !important;
	padding: 0.3rem;
	background: linear-gradient(135deg, #8a7cff, #f0567a 55%, #ffa24c);
	box-shadow: 0 1rem 3rem rgb(0 0 0 / 0.6);
}
.fw-card h1 {
	margin-block-start: 1.5rem;
	color: #fff;
	font-size: clamp(2rem, 6vw, 2.75rem);
	letter-spacing: -0.02em;
}
.fw-card-role {
	margin-block-start: 0.25rem;
	line-height: 1.4;
	font-size: 1.5rem;
	font-weight: 600;
	background: linear-gradient(90deg, #b3a9ff, #ff8aa5, #ffb570);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.fw-card-about {
	max-width: 28rem;
	margin-inline: auto !important;
	color: #bdb9d6;
}
.fw-card-links.wp-block-social-links {
	--fw-tanuki: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22m23.6004 9.5927-.0337-.0862L20.3.9814a.851.851 0 0 0-.3362-.405.8748.8748 0 0 0-.9997.0539.8748.8748 0 0 0-.29.4399l-2.2055 6.748H7.5375l-2.2057-6.748a.8573.8573 0 0 0-.29-.4412.8748.8748 0 0 0-.9997-.0537.8585.8585 0 0 0-.3362.4049L.4332 9.5015l-.0325.0862a6.0657 6.0657 0 0 0 2.0119 7.0105l.0113.0087.03.0213 4.976 3.7264 2.462 1.8633 1.4995 1.1321a1.0085 1.0085 0 0 0 1.2197 0l1.4995-1.1321 2.4619-1.8633 5.006-3.7489.0125-.01a6.0682 6.0682 0 0 0 2.0094-7.003z%22/%3E%3C/svg%3E");
	justify-content: center;
	margin: 2.5rem auto 0 !important;
	gap: 0.9rem;
	font-size: 1.5rem;
}
.fw-card-links .wp-social-link {
	transition: transform 0.2s, box-shadow 0.2s;
}
.fw-card-links .wp-social-link:hover {
	transform: translateY(-3px);
	box-shadow: 0 0.6rem 1.5rem rgb(0 0 0 / 0.45);
}
.fw-card-links .wp-social-link a {
	padding: 0.6em !important;
}
.fw-card-links.wp-block-social-links :is(.wp-social-link-mail, .wp-social-link-chain) {
	background: linear-gradient(135deg, #5b4fd6, #c2456b);
	color: #fff;
}
.fw-card-links.wp-block-social-links .wp-social-link-gitlab {
	background: #e24329;
	color: #fff;
}
.fw-card-links .wp-social-link-gitlab svg {
	display: none;
}
.fw-card-links .wp-social-link-gitlab a::before {
	content: "";
	flex: none;
	width: 1em;
	height: 1em;
	background: currentcolor;
	-webkit-mask: var(--fw-tanuki) center / contain no-repeat;
	mask: var(--fw-tanuki) center / contain no-repeat;
}
@media (max-width: 30rem) {
	.fw-card-page {
		--wp--style--root--padding-left: 1rem;
		--wp--style--root--padding-right: 1rem;
	}
	.fw-card-links.wp-block-social-links {
		gap: 0.5rem;
	}
	.fw-card-links .wp-social-link a {
		padding: 0.45em !important;
	}
}
@media (prefers-reduced-motion: reduce) {
	.fw-card-links .wp-social-link {
		transition: none;
	}
}
