/*
Theme Name: HMHBA
Template: generatepress
Version: 0.1.0
*/

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("fonts/inter-var-latin.woff2") format("woff2");
}
@font-face {
	font-family: "Anton";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/anton-latin.woff2") format("woff2");
}

body {
	background: var(--color-hmhba-cream);
	color: var(--color-hmhba-ink);
	font-family: var(--font-sans);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 400;
}
a:where(:link, :visited) {
	color: var(--color-hmhba-purple);
}

.separate-containers .inside-article,
.one-container .site-content,
.inside-article {
	padding: 0;
}
.site-main,
.separate-containers .site-main {
	margin: 0;
}
.entry-content > *:first-child {
	margin-top: 0;
}
.hmhba-section {
	scroll-margin-top: 110px;
}

.hmhba-period {
	color: var(--color-hmhba-green);
}

.hmhba-nav-link:where(:link, :visited) {
	color: #fff;
	opacity: 1;
	transition: opacity 0.15s;
}
.hmhba-nav-link:hover,
.hmhba-nav-link:focus-visible {
	opacity: 1;
	color: #fff;
}
.hmhba-nav-cta:where(:link, :visited) {
	color: #fff;
	transition: background 0.2s, color 0.1s;
}
.hmhba-nav-cta:hover,
.hmhba-nav-cta:focus-visible {
	background: #fff;
	color: var(--color-hmhba-purple);
}

.hmhba-menu-toggle {
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 10px;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.hmhba-menu-toggle:hover,
.hmhba-menu-toggle:focus {
	background: transparent;
}
.hmhba-menu-toggle span:not(.screen-reader-text) {
	display: block;
	width: 24px;
	height: 2px;
	background: #fff;
	transition: transform 0.18s ease-out, opacity 0.14s;
}
.hmhba-menu-open .hmhba-menu-toggle span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.hmhba-menu-open .hmhba-menu-toggle span:nth-child(2) {
	opacity: 0;
}
.hmhba-menu-open .hmhba-menu-toggle span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 1024px) {
	.hmhba-menu-open .hmhba-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
		padding: 18px 28px 28px;
		background: var(--color-hmhba-purple);
		border-top: 1px solid #ffffff1a;
		box-shadow: 0 8px 24px #0000002e;
		font-size: 18px;
		font-weight: 600;
		letter-spacing: 0.06em;
	}
	.hmhba-menu-open .hmhba-nav a {
		padding: 12px 0;
		margin: 0;
	}
}

.hmhba-btn:where(:link, :visited) {
	text-decoration: none;
	transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.2s, color 0.2s;
}
.hmhba-btn-green:where(:link, :visited) {
	color: var(--color-hmhba-purple-darker);
}
.hmhba-btn-green:hover,
.hmhba-btn-green:focus-visible {
	color: var(--color-hmhba-purple-darker);
	transform: translateY(-1px);
	box-shadow: 0 8px 22px #0003;
}
.hmhba-btn-outline:where(:link, :visited) {
	color: var(--color-hmhba-purple);
}
.hmhba-btn-outline:hover,
.hmhba-btn-outline:focus-visible {
	background: var(--color-hmhba-purple);
	color: #fff;
}

.hmhba-btn-dark:where(:link, :visited) {
	color: #fff;
}
.hmhba-btn-dark:hover,
.hmhba-btn-dark:focus-visible {
	color: #fff;
	background: var(--color-hmhba-purple);
	transform: translateY(-1px);
}
.hmhba-count {
	padding: 3px 9px;
	border-radius: 999px;
	background: #ffffff2e;
	font-size: 11px;
	letter-spacing: 0.06em;
}
.hmhba-text-link:hover,
.hmhba-text-link:focus-visible {
	text-decoration: underline;
}

.hmhba-arrow-list li {
	position: relative;
	padding-left: 20px;
	margin-bottom: 8px;
}
.hmhba-arrow-list li::before {
	content: "\2192";
	position: absolute;
	left: 0;
	color: var(--color-hmhba-purple);
	font-weight: 700;
}

.hmhba-card-link:where(:link, :visited) {
	color: inherit;
	text-decoration: none;
	transition: transform 0.14s ease-out, box-shadow 0.14s ease-out, border-color 0.14s;
}
.hmhba-card-link:hover,
.hmhba-card-link:focus-visible {
	color: inherit;
	border-color: #6b30e540;
	transform: translateY(-2px);
	box-shadow: 0 14px 30px #14111c14;
}

.hmhba-social:where(:link, :visited) {
	color: #fff;
	transition: background 0.15s;
}
.hmhba-social {
	position: relative;
	font-size: 0;
}
.hmhba-social::before {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1.2' fill='black' stroke='none'/%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='black' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1.2' fill='black' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hmhba-social:hover,
.hmhba-social:focus-visible {
	color: var(--color-hmhba-purple);
	background: #fff;
}
.hmhba-footer-link:where(:link, :visited) {
	color: #fff;
	text-decoration: none;
}
.hmhba-footer-link:hover,
.hmhba-footer-link:focus-visible {
	color: #fff;
	text-decoration: underline;
}

.hmhba-join-form {
	display: flex;
	max-width: 520px;
	background: var(--hmhba-join-field, #fff);
	border-radius: 999px;
	overflow: hidden;
}
.hmhba-join-form input[type="email"] {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: none;
	padding: 14px 22px;
	font: inherit;
	font-size: 16px;
	color: var(--hmhba-join-field-text, var(--color-hmhba-ink));
	background: transparent;
}
.hmhba-join-form button {
	border: 0;
	border-radius: 0;
	cursor: pointer;
	white-space: nowrap;
	padding: 14px 28px;
	background: var(--hmhba-join-button, var(--color-hmhba-green));
	color: var(--hmhba-join-button-text, var(--color-hmhba-purple-darker));
	font-family: var(--font-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	transition: background 0.2s;
}
.hmhba-join-form button:hover,
.hmhba-join-form button:focus-visible {
	background: var(--hmhba-join-button-hover, #fff);
	color: var(--hmhba-join-button-hover-text, var(--color-hmhba-purple-darker));
}
@media (max-width: 767px) {
	.hmhba-join-form {
		flex-direction: column;
		border-radius: 14px;
	}
}

.hmhba-news-card-thumb:not(:has(img[src^="http"])) {
	display: none;
}
.hmhba-news-card:has(.hmhba-news-card-thumb img[src^="http"]) {
	padding-top: 0;
}
.hmhba-news-card[data-video="video"] .hmhba-news-card-thumb::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 56px;
	height: 56px;
	border-radius: 999px;
	background: #fffffff0 no-repeat 54% 50% / 24px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236b30e5'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
	box-shadow: 0 4px 16px #14111c4d;
	transform: translate(-50%, -50%);
	transition: transform 0.14s ease-out, background-color 0.14s;
}
.hmhba-news-card[data-video="video"]:hover .hmhba-news-card-thumb::after {
	background-color: #fff;
	transform: translate(-50%, -50%) scale(1.06);
}

.hmhba-pill:where(:link, :visited) {
	color: var(--color-hmhba-ink);
	transition: background-color 0.14s, border-color 0.14s, color 0.14s;
}
.hmhba-pill:hover,
.hmhba-pill:focus-visible {
	border-color: var(--color-hmhba-purple);
	color: var(--color-hmhba-purple);
}
.blog .hmhba-pill--all,
.category-press-releases .hmhba-pill--press-releases,
.category-coverage .hmhba-pill--coverage,
.category-research .hmhba-pill--research {
	border-color: var(--color-hmhba-purple);
	background-color: var(--color-hmhba-purple);
	color: #fff;
}
.hmhba-news-back a:where(:link, :visited) {
	color: var(--color-hmhba-purple-deep);
	text-decoration: none;
}
.hmhba-news-back a:hover {
	text-decoration: underline;
}
.hmhba-news-pages .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid var(--color-hmhba-line);
	border-radius: 999px;
	background: #fff;
	color: var(--color-hmhba-ink);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}
.hmhba-news-pages .page-numbers.current {
	border-color: var(--color-hmhba-purple);
	background: var(--color-hmhba-purple);
	color: #fff;
}

.hmhba-header {
	transition: box-shadow 0.2s ease-out;
}
.hmhba-header-inner {
	transition: padding 0.2s ease-out;
}
.hmhba-header-logo {
	transition: width 0.2s ease-out, height 0.2s ease-out;
}
.hmhba-scrolled .hmhba-header {
	box-shadow: 0 4px 16px #0f0c162e;
}
.hmhba-scrolled .hmhba-header-inner {
	padding-top: 10px;
	padding-bottom: 10px;
}
.hmhba-scrolled .hmhba-header-logo {
	width: 130px;
	height: 56px;
}

@media (prefers-reduced-motion: no-preference) {
	.hmhba-reveal {
		transition:
			opacity 1s ease-out var(--hmhba-reveal-delay, 0ms),
			translate 1s cubic-bezier(0.2, 0.7, 0.2, 1) var(--hmhba-reveal-delay, 0ms),
			transform 0.14s ease-out,
			box-shadow 0.14s ease-out,
			border-color 0.14s;
	}
	.hmhba-motion .hmhba-reveal:not(.is-visible) {
		opacity: 0;
		translate: 0 24px;
	}

	@supports (animation-timeline: view()) {
		.hmhba-split .hmhba-line {
			display: block;
			-webkit-mask-image: linear-gradient(90deg, #000 50%, #0003 50%);
			mask-image: linear-gradient(90deg, #000 50%, #0003 50%);
			-webkit-mask-size: 300% 100%;
			mask-size: 300% 100%;
			animation: hmhba-line-fill linear both;
			animation-timeline: view();
			animation-range: entry 40% cover 45%;
		}
		@keyframes hmhba-line-fill {
			from {
				-webkit-mask-position: 100% 0;
				mask-position: 100% 0;
			}
			to {
				-webkit-mask-position: 0 0;
				mask-position: 0 0;
			}
		}
	}
}

.hmhba-joined-back::after {
	content: " \2197";
}
.hmhba-joined-back:hover,
.hmhba-joined-back:focus-visible {
	color: var(--color-hmhba-green);
}

html {
	scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--hmhba-announce-h, 0px) + 96px);
}

:where(a, button, input, select, textarea, summary, object, [tabindex]):focus-visible {
	outline: 3px solid var(--color-hmhba-purple-deep);
	outline-offset: 3px;
}
object:focus {
	outline: 3px solid var(--color-hmhba-purple-deep);
	outline-offset: 3px;
}
:where(.hmhba-header, .site-footer, #top, #join, .hmhba-joined) :where(a, button, input, [tabindex]):focus-visible {
	outline-color: var(--color-hmhba-green);
}
.hmhba-join-form:focus-within {
	outline: 3px solid var(--color-hmhba-green);
	outline-offset: 3px;
}
.hmhba-join-form input[type="email"]:focus-visible {
	outline: 0;
}
.hmhba-join-form button,
.hmhba-join-form input[type="email"] {
	min-height: 44px;
}

.hmhba-nav-link,
.hmhba-footer-link,
.hmhba-hit,
.hmhba-news-back a,
.hmhba-joined-back {
	padding: 15px 5px;
	margin: -15px -5px;
}
.hmhba-pill,
.hmhba-nav-cta {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}
.site-footer .hmhba-social {
	min-width: 44px;
	min-height: 44px;
}

.hmhba-nav-link[aria-current="page"] {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}
.hmhba-nav-group {
	position: relative;
	display: flex;
	align-items: center;
	gap: 2px;
}
.hmhba-subnav-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 44px;
	margin: -10px 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
}
.hmhba-subnav-toggle:hover,
.hmhba-subnav-toggle:focus {
	background: transparent;
	color: #fff;
}
.hmhba-subnav-toggle::before {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.15s;
}
.hmhba-subnav-toggle[aria-expanded="true"]::before {
	transform: translateY(2px) rotate(-135deg);
}
.hmhba-subnav {
	position: absolute;
	top: 100%;
	left: -18px;
	display: none;
	min-width: 180px;
	padding: 22px 18px 14px;
	background: var(--color-hmhba-purple);
	box-shadow: 0 10px 24px #0000002e;
	z-index: 32;
}
.hmhba-subnav .hmhba-nav-link {
	display: block;
}
.hmhba-nav-group.is-open .hmhba-subnav,
.hmhba-nav-group:not(.is-dismissed):hover .hmhba-subnav {
	display: block;
}
@media (max-width: 1024px) {
	.hmhba-menu-open .hmhba-nav-group {
		flex-direction: column;
		align-items: flex-start;
	}
	.hmhba-menu-open .hmhba-subnav-toggle {
		display: none;
	}
	.hmhba-menu-open .hmhba-subnav {
		position: static;
		display: block;
		min-width: 0;
		padding: 0 0 0 20px;
		background: none;
		box-shadow: none;
	}
}

.hmhba-hero-video {
	position: absolute;
	inset: 0;
	margin: 0;
}
.hmhba-hero-video video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 42%;
}
.hmhba-video-hero {
	display: flex;
	align-items: center;
	min-height: min(88vh, 820px);
	isolation: isolate;
}
.hmhba-video-hero > :not(.hmhba-hero-bg) {
	position: relative;
	z-index: 2;
	width: 100%;
}
.hmhba-hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	margin: 0;
}
.hmhba-hero-bg video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hmhba-hero-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgb(from var(--color-hmhba-purple-darker) r g b / 0.88) 0%, rgb(from var(--color-hmhba-purple-darker) r g b / 0.78) 45%, rgb(from var(--color-hmhba-purple) r g b / 0.35) 100%);
}
.hmhba-hero-bg .hmhba-video-toggle {
	z-index: 3;
	right: 24px;
	bottom: 24px;
}
@media (max-width: 1024px) {
	.hmhba-video-hero {
		min-height: min(80vh, 720px);
	}
	.hmhba-hero-bg::after {
		background: rgb(from var(--color-hmhba-purple-darker) r g b / 0.82);
	}
}
.hmhba-video-toggle {
	position: absolute;
	right: 14px;
	bottom: 14px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px 0 14px;
	border: 0;
	border-radius: 999px;
	background: #14111cb3;
	color: #fff;
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}
.hmhba-video-toggle::before {
	content: "";
	width: 10px;
	height: 12px;
	border-left: 3px solid currentColor;
	border-right: 3px solid currentColor;
	box-sizing: border-box;
}
.hmhba-video-toggle.is-paused::before {
	border: 0;
	border-left: 10px solid currentColor;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
}
.hmhba-video-toggle:hover {
	background: #14111ce6;
}

.hmhba-header-inner > a:first-child {
	flex-shrink: 0;
}

.gb-site-header.hmhba-header {
	top: var(--wp-admin--admin-bar--height, 0px);
}

@media (max-width: 420px) {
	.hmhba-header .hmhba-header-inner {
		column-gap: 16px;
	}
}
@media (max-width: 380px) {
	.hmhba-header .hmhba-header-inner {
		column-gap: 10px;
	}
	.hmhba-header .hmhba-nav-cta {
		padding-left: 16px;
		padding-right: 16px;
	}
}
@media (max-width: 340px) {
	.hmhba-header .hmhba-header-inner {
		column-gap: 8px;
	}
	.hmhba-header .hmhba-header-logo,
	.hmhba-scrolled .hmhba-header .hmhba-header-logo {
		width: 108px;
		height: auto;
	}
}
