/*
 * HDR-6: masthead. The tagline, then the name of the business set large
 * between two rules, then the menu, all centred, like the head of a printed
 * page. Only the menu stays while the page scrolls.
 */

.wprk-hdr-6 > .wprk-header__masthead {
	padding-block: var(--wp--preset--spacing--20) 0;
	text-align: center;
}

.wprk-hdr-6 .wprk-header__tagline {
	color: var(--wprk-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	margin-block: 0 var(--wp--preset--spacing--20);
	text-transform: uppercase;
}

/* The two rules: a strong one above the name, a fine one below it. */
.wprk-hdr-6 .wprk-header__masthead > .wprk-header__brand {
	border-block-end: 1px solid var(--wprk-heading);
	border-block-start: 3px solid var(--wprk-heading);
	gap: var(--wp--preset--spacing--30);
	margin-block: 0;
	padding-block: var(--wp--preset--spacing--30);
}

.wprk-hdr-6 .wprk-header__brand :where(.wp-block-site-title) {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2rem, 4.6vw, 3.5rem);
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.05;
	margin: 0;
}

.wprk-hdr-6 .wprk-header__brand :where(.wp-block-site-title a) {
	text-decoration: none;
}

.wprk-hdr-6 > .wprk-header__nav {
	margin-block-start: 0;
	min-height: 3.25rem;
	padding-block: var(--wp--preset--spacing--10);
}

@media (max-width: 599px) {
	/* On a phone the masthead becomes one row: the name on the left, the menu button on the right. */
	.wprk-hdr-6 {
		align-items: center;
		display: flex;
		justify-content: space-between;
	}

	.wprk-hdr-6 > .wprk-header__masthead,
	.wprk-hdr-6 > .wprk-header__nav {
		margin: 0 !important;
		max-width: none;
		min-height: 0;
		padding-block: var(--wp--preset--spacing--20);
		text-align: start;
		width: auto;
	}

	.wprk-hdr-6 .wprk-header__tagline {
		display: none;
	}

	.wprk-hdr-6 .wprk-header__masthead > .wprk-header__brand {
		border: 0;
		gap: var(--wp--preset--spacing--20);
		justify-content: flex-start;
		padding-block: 0;
	}

	.wprk-hdr-6 .wprk-header__brand :where(.wp-block-site-title) {
		font-size: 1.375rem;
	}
}
