/*
 * Article hero (prototype article.html "article-hero" header). Pattern cmc/article-hero, the first block of every post
 * (inc/article.php): all post blocks, so the editor only sets the featured image, title, excerpt and author.
 *
 *   core/group  is-style-article-hero (header, full width)        90px under the fixed header, 30px from the edges (20 < 1024)
 *     core/group  .article-hero__card                             pale grey-to-white card, radius 10, padding 30
 *       core/post-featured-image  660/670, radius 4              grid from 1024px: 660 | 110 | up to 522
 *       core/group  .article-hero__copy                           centred: [reading time, H1] 30 [excerpt] 30 [author]
 */
.wp-block-group.is-style-article-hero {
	padding: var(--wp--custom--header-height) 20px 0;
}

@media (width >= 1024px) {
	.wp-block-group.is-style-article-hero {
		padding-inline: 30px;
	}
}

/* #e8e8e8 is the design's own gradient stop (prototype bg-[linear-gradient(152deg,#e8e8e8_0%,#ffffff_100%)]) */
.is-style-article-hero .article-hero__card {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 30px;
	padding: 30px;
	border-radius: var(--wp--custom--radius--card);
	background: linear-gradient(152deg, #e8e8e8 0%, var(--wp--preset--color--white) 100%);
}

@media (width >= 1024px) {
	.is-style-article-hero .article-hero__card {
		grid-template-columns: 660px minmax(0, 522px);
		gap: 110px;
	}
}

.is-style-article-hero .article-hero__image {
	margin: 0;
}

.is-style-article-hero .article-hero__image img {
	display: block;
	width: 100%;
	border-radius: var(--wp--custom--radius--blank);
}

.is-style-article-hero .article-hero__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 30px;
	min-width: 0;
}

.is-style-article-hero .article-hero__intro {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.is-style-article-hero .article-hero__heading {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

/* reading time: a clock, then "8 Minute read" (the wording is set in inc/article.php) */
.is-style-article-hero .wp-block-post-time-to-read {
	display: flex;
	align-items: center;
	gap: 10px;
	line-height: 1.3;
}

.is-style-article-hero .wp-block-post-time-to-read::before {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* the H1's paragraph-length title is opened to 1.2 (prototype .sz-text-3.tracking-h3-tight) */
.is-style-article-hero .wp-block-post-title {
	line-height: 1.2;
}

.is-style-article-hero .wp-block-post-excerpt,
.is-style-article-hero .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.is-style-article-hero .article-hero__author {
	display: flex;
	align-items: center;
	gap: 15px;
}

.is-style-article-hero .wp-block-avatar {
	flex: none;
	margin: 0;
}

.is-style-article-hero .wp-block-avatar img {
	display: block;
	width: 46px;
	height: 46px;
	object-fit: cover;
}

.is-style-article-hero .article-hero__byline {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
