/*
 * Blanky Studio – Hero: Portrait and Name (patterns/studio-hero-split.php)
 *
 * A tall photograph on one side, the name and one line on the other.
 * The text side follows the style variation colours.
 *
 * @package blanky-studio
 * @since 2.5
 */

.studio-hero-split {
	min-height: 100svh;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	background-color: var(--wp--preset--color--background);
	color: var(--wp--preset--color--foreground);
}

.studio-hero-split .studio-hero-split-media {
	position: relative;
	min-height: 70svh;
	margin: 0;
	overflow: hidden;
}

.studio-hero-split .studio-hero-split-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(100%);
}

.studio-hero-split .studio-hero-split-body {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--60);
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
}

.studio-hero-split p.studio-hero-split-index {
	margin: 0;
	font-family: var(--wp--preset--font-family--newsreader);
	font-style: italic;
	font-size: 1.25rem;
	color: var(--studio-meta-color);
}

.studio-hero-split .studio-hero-split-title.wp-block-heading {
	margin: 0;
	font-family: var(--wp--preset--font-family--newsreader);
	font-weight: 300;
	font-style: normal;
	font-size: clamp(3.5rem, 1rem + 6vw, 8rem);
	line-height: 0.9;
	letter-spacing: -0.04em;
	color: inherit;
}

.studio-hero-split .studio-hero-split-title em {
	display: block;
	font-style: italic;
}

.studio-hero-split p.studio-hero-split-lead {
	max-width: 26rem;
	margin: var(--wp--preset--spacing--50) 0 0;
	font-family: var(--wp--preset--font-family--noto-sans);
	font-size: 1.0625rem;
	line-height: 2;
}

.studio-hero-split p.studio-hero-split-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--40);
	margin: 0;
	font-family: var(--wp--preset--font-family--noto-sans);
	font-size: 0.8125rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.studio-hero-split .studio-hero-split-links a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.4em;
}

/* Two columns from tablet up; core grid layout has no breakpoints, hence custom CSS. */
@media (width >= 900px) {
	.studio-hero-split {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	}

	.studio-hero-split .studio-hero-split-media {
		min-height: 100svh;
	}

	.studio-hero-split .studio-hero-split-body {
		padding: calc(var(--wp--custom--studio--nav-height) + var(--wp--preset--spacing--70)) var(--wp--preset--spacing--60) var(--wp--preset--spacing--60);
	}
}

/* style.css sets the Japanese font on every element under :lang(ja); let the italic line keep the heading's face. */
.studio-hero-split .studio-hero-split-title em {
	font-family: inherit;
}
