@font-face {
	font-family: "Outfit Hi";
	src: url("../fonts/Outfit-VariableFont_wght.ttf") format("truetype");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

.hihdp-overlay,
.hihdp-overlay *,
.hihdp-reopen,
.hihdp-reopen * {
	box-sizing: border-box;
}

.hihdp-overlay[hidden],
.hihdp-reopen[hidden] {
	display: none !important;
}

body.hihdp-scroll-lock {
	overflow: hidden;
}

.hihdp-overlay {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 28px;
	font-family: "Outfit Hi", Arial, Helvetica, sans-serif;
	opacity: 0;
	transition: opacity 220ms ease;
}

.hihdp-overlay.is-visible {
	opacity: 1;
}

.hihdp-scrim {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: rgba(37, 24, 16, 0.72);
	cursor: pointer;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

.hihdp-dialog {
	--hihdp-orange: #eb4f05;
	--hihdp-brown: #493326;
	--hihdp-cream: #f5efe8;
	--hihdp-muted: #74675e;
	--hihdp-line: #e5dbd2;
	position: relative;
	z-index: 1;
	width: min(920px, 94vw);
	max-height: 92vh;
	overflow: auto;
	padding: 34px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 30px;
	background: var(--hihdp-cream);
	color: #2d211a;
	box-shadow: 0 30px 90px rgba(28, 17, 10, 0.42);
	opacity: 0;
	transform: translateY(18px) scale(0.97);
	transition:
		opacity 280ms ease,
		transform 350ms cubic-bezier(0.22, 0.8, 0.24, 1);
}

.hihdp-overlay.is-visible .hihdp-dialog {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.hihdp-dialog::after {
	position: absolute;
	z-index: -1;
	top: -115px;
	right: -105px;
	width: 300px;
	height: 300px;
	border: 76px solid rgba(235, 79, 5, 0.08);
	border-radius: 50%;
	content: "";
}

.hihdp-close {
	position: absolute;
	z-index: 3;
	top: 18px;
	right: 18px;
	display: grid;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0 0 2px;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: var(--hihdp-brown);
	color: #fff;
	font-family: inherit;
	font-size: 25px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

.hihdp-close:hover,
.hihdp-close:focus-visible {
	background: var(--hihdp-orange);
	outline: 3px solid rgba(235, 79, 5, 0.22);
	outline-offset: 2px;
}

.hihdp-heading {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 34px;
	align-items: end;
	padding: 4px 44px 26px 0;
}

.hihdp-title-group > p {
	margin: 0 0 7px;
	color: var(--hihdp-orange);
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.hihdp-title-group h2 {
	max-width: 480px;
	margin: 0;
	color: #2d211a;
	font-family: inherit;
	font-size: clamp(28px, 3.4vw, 43px);
	font-weight: 700;
	line-height: 0.98;
	letter-spacing: -0.045em;
	text-transform: none;
}

.hihdp-description {
	margin: 0 0 2px;
	color: var(--hihdp-muted);
	font-size: 12px;
	line-height: 1.6;
}

.hihdp-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.hihdp-card {
	overflow: hidden;
	margin: 0;
	border: 0;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(73, 51, 38, 0.11);
}

.hihdp-card > img {
	display: block;
	width: 100%;
	height: 142px;
	margin: 0;
	object-fit: cover;
}

.hihdp-card-copy {
	padding: 17px;
}

.hihdp-card-copy > span {
	color: var(--hihdp-orange);
	font-size: 8px;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.hihdp-card-copy h3 {
	margin: 3px 0 4px;
	color: #2d211a;
	font-family: inherit;
	font-size: 23px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.04em;
	text-transform: none;
}

.hihdp-card-copy p {
	margin: 0 0 14px;
	color: var(--hihdp-muted);
	font-size: 10px;
	line-height: 1.4;
}

.hihdp-card-copy a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0 0;
	border-top: 1px solid var(--hihdp-line);
	color: var(--hihdp-brown);
	font-size: 10px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
}

.hihdp-card-copy a:hover,
.hihdp-card-copy a:focus-visible {
	color: var(--hihdp-orange);
}

.hihdp-card-copy a b {
	color: var(--hihdp-orange);
	font-size: 16px;
}

.hihdp-mobile-hint {
	display: none;
}

.hihdp-reopen {
	position: fixed;
	z-index: 999998;
	right: 16px;
	bottom: 16px;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 13px 18px;
	border: 0;
	border-radius: 999px;
	background: #eb4f05;
	color: #fff;
	font-family: "Outfit Hi", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	box-shadow: 0 12px 30px rgba(86, 38, 13, 0.24);
	cursor: pointer;
}

.hihdp-reopen:hover,
.hihdp-reopen:focus-visible {
	background: #493326;
	outline: 3px solid rgba(235, 79, 5, 0.2);
	outline-offset: 2px;
}

@media (max-width: 820px) {
	.hihdp-overlay {
		align-items: end;
		padding: 12px;
	}

	.hihdp-dialog {
		width: 100%;
		max-height: 88vh;
		padding: 25px 0 22px;
		border-radius: 25px;
	}

	.hihdp-dialog::after {
		display: none;
	}

	.hihdp-close {
		top: 14px;
		right: 14px;
		width: 34px;
		height: 34px;
		font-size: 22px;
	}

	.hihdp-heading {
		display: block;
		padding: 0 54px 20px 20px;
	}

	.hihdp-title-group h2 {
		max-width: 270px;
		font-size: 27px;
	}

	.hihdp-description {
		margin: 13px 0 0;
		font-size: 11px;
	}

	.hihdp-cards {
		display: flex;
		gap: 10px;
		overflow-x: auto;
		padding: 0 20px 10px;
		scroll-padding-left: 20px;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.hihdp-cards::-webkit-scrollbar {
		display: none;
	}

	.hihdp-card {
		min-width: min(72vw, 250px);
		scroll-snap-align: start;
	}

	.hihdp-card > img {
		height: 125px;
	}

	.hihdp-card-copy h3 {
		font-size: 22px;
	}

	.hihdp-mobile-hint {
		display: block;
		margin: 2px 20px 0;
		color: var(--hihdp-muted);
		font-size: 8px;
		text-align: center;
	}

	.hihdp-reopen {
		right: 12px;
		bottom: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hihdp-overlay,
	.hihdp-dialog {
		transition: none;
	}
}
