/* HollaJack N° 001 giveaway: the page, the rules and the pop-up.
   Built on the theme tokens (tokens.css); nothing here defines a new colour. */

/* --- Page --------------------------------------------------------------- */

.hj-gw-hero {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: var(--hj-7);
	align-items: center;
}

.hj-gw-hero .hj-display-xl .hj-numeral,
.hj-gw-pop .hj-display-m .hj-numeral,
.hj-gw-prize .hj-display-m .hj-numeral {
	font-size: inherit;
}

.hj-gw-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--hj-5);
	margin-top: var(--hj-6);
}

.hj-gw-hero__fig {
	margin: 0;
}

.hj-gw-hero__fig img,
.hj-gw-prize img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--hj-radius-mat);
	background: var(--hj-card);
}

.hj-gw-hero__fig figcaption {
	margin-top: var(--hj-3);
}

.hj-gw-notice {
	margin: var(--hj-5) 0 0;
	padding: var(--hj-3) var(--hj-4);
	background: var(--hj-card);
	border-left: 2px solid var(--hj-ink);
	font-size: var(--hj-size-small);
	line-height: 1.6;
}

.hj-gw-notice p {
	margin: 0;
}

.hj-gw-notice form {
	margin-top: var(--hj-2);
}

.hj-gw-notice--ok {
	border-left-color: var(--hj-brass);
}

.hj-gw-notice--error {
	border-left-color: var(--hj-error);
	color: var(--hj-error);
}

.hj-gw-prizes {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--hj-7);
}

.hj-gw-prize img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	margin-bottom: var(--hj-5);
}

.hj-gw-prize .hj-display-m {
	margin-bottom: var(--hj-3);
}

.hj-gw-prize p {
	margin: 0 0 var(--hj-2);
}

.hj-gw-prizes__note {
	margin-top: var(--hj-6);
	max-width: var(--hj-maxw-prose);
}

.hj-gw-enter {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--hj-8);
	align-items: start;
	scroll-margin-top: var(--hj-8);
}

#hj-gw-enter,
#hj-gw-you,
#hj-gw-watch {
	scroll-margin-top: var(--hj-8);
}

/* How to earn: a printed price list, not a pricing table. */

.hj-gw-earn {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.hj-gw-earn caption {
	text-align: left;
	padding-bottom: var(--hj-3);
	border-bottom: 1px solid var(--hj-line-strong);
	margin: 0;
}

.hj-gw-earn,
.hj-gw-earn tr,
.hj-gw-earn th,
.hj-gw-earn td {
	background: transparent !important;
	border: 0 !important;
}

.hj-gw-earn th,
.hj-gw-earn td {
	padding: var(--hj-4) 0;
	border-bottom: 1px solid var(--hj-line) !important;
	vertical-align: top;
	text-align: left;
	font-weight: 400;
	line-height: 1.5;
}

.hj-gw-earn__label {
	display: block;
	color: var(--hj-ink);
}

.hj-gw-earn__meta {
	display: block;
	margin-top: var(--hj-1);
	font-size: var(--hj-size-small);
	color: var(--hj-stone);
}

.hj-gw-earn__meta a {
	color: var(--hj-ink-soft);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hj-gw-earn__qty,
.hj-gw-earn__yours {
	font-family: var(--hj-display);
	font-size: 1.5rem;
	line-height: 1 !important;
	color: var(--hj-brass);
	text-align: right !important;
	white-space: nowrap;
	padding-left: var(--hj-4) !important;
	width: 1%;
}

.hj-gw-earn__yours {
	color: var(--hj-ink);
	font-size: 1.125rem;
}

.hj-gw-earn__note {
	margin-top: var(--hj-4);
}

/* The form and the entrant's panel. */

.hj-gw-form,
.hj-gw-panel {
	background: var(--hj-card);
	border: 1px solid var(--hj-line);
	padding: var(--hj-6);
}

.hj-gw-form .hj-display-m,
.hj-gw-panel .hj-display-m {
	margin-bottom: var(--hj-5);
}

.hj-gw-form label {
	display: block;
	font-size: var(--hj-size-small);
	color: var(--hj-ink-soft);
	margin-bottom: var(--hj-4);
}

.hj-gw-form input[type='text'],
.hj-gw-form input[type='email'] {
	display: block;
	width: 100%;
	margin-top: var(--hj-1);
}

.hj-gw-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--hj-4);
}

.hj-gw-form__ref {
	margin: calc(-1 * var(--hj-3)) 0 var(--hj-5);
	color: var(--hj-brass-deep);
}

.hj-gw-form .hj-gw-check {
	display: flex;
	gap: var(--hj-3);
	align-items: flex-start;
	color: var(--hj-ink);
}

.hj-gw-check input {
	margin-top: 0.3em;
	flex: none;
	width: 18px;
	height: 18px;
	accent-color: var(--hj-ink);
}

.hj-gw-check a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hj-gw-form .hj-btn--block {
	margin: var(--hj-5) 0 var(--hj-3);
}

.hj-gw-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.hj-gw-panel__total {
	display: flex;
	align-items: baseline;
	gap: var(--hj-3);
	margin: 0 0 var(--hj-5);
	color: var(--hj-ink-soft);
}

.hj-gw-panel__total .hj-numeral {
	font-size: 3.5rem;
}

.hj-gw-share {
	margin-top: var(--hj-6);
	padding-top: var(--hj-5);
	border-top: 1px solid var(--hj-line);
}

.hj-gw-share__row {
	display: flex;
	gap: var(--hj-2);
}

.hj-gw-share__row input {
	flex: 1;
	min-width: 0;
	font-variant-numeric: tabular-nums;
}

.hj-gw-share__btns {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hj-2);
	margin: var(--hj-4) 0 var(--hj-3);
}

.hj-gw-share__text {
	width: 100%;
	resize: none;
	font-size: var(--hj-size-small);
	color: var(--hj-ink-soft);
	background: var(--hj-bone);
}

.hj-gw-video {
	aspect-ratio: 16 / 9;
	background: var(--hj-ink);
	border-radius: var(--hj-radius-mat);
	overflow: hidden;
}

.hj-gw-video iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* The giveaway section in the middle of the homepage. */

.hj-gw-home__grid {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	gap: var(--hj-7);
	align-items: center;
}

.hj-gw-home__fig {
	display: block;
}

.hj-gw-home__fig img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--hj-radius-mat);
}

.hj-gw-home__copy .hj-display-l .hj-numeral {
	font-size: inherit;
}

.hj-gw-home__copy .hj-lede {
	margin-top: var(--hj-4);
}

.hj-gw-home__ctas {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--hj-5);
	margin-top: var(--hj-6);
}

.hj-gw-home__art {
	margin-top: var(--hj-5);
	max-width: 52ch;
}

@media (max-width: 900px) {
	.hj-gw-home__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--hj-6);
	}
}

/* Jack's note and the artist form. */

.hj-gw-note {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: var(--hj-8);
	align-items: start;
	scroll-margin-top: var(--hj-8);
}

.hj-gw-note__letter .hj-display-l {
	margin-bottom: var(--hj-6);
}

.hj-gw-note__letter p:not(.hj-eyebrow):not(.hj-small) {
	max-width: 62ch;
	margin: 0 0 var(--hj-4);
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--hj-ink-soft);
}

.hj-gw-note__sign {
	margin-top: var(--hj-6);
}

.hj-gw-note__sign img {
	display: block;
	width: 240px;
	max-width: 70%;
	height: auto;
	margin: 0 0 var(--hj-2) calc(-1 * var(--hj-2));
}

.hj-gw-note__sign p {
	margin: 0;
}

.hj-gw-note__form .hj-display-m {
	margin-bottom: var(--hj-5);
}

.hj-gw-note__form .hj-gw-notice {
	margin: 0 0 var(--hj-5);
}

.hj-gw-form select,
.hj-gw-form textarea {
	display: block;
	width: 100%;
	margin-top: var(--hj-1);
}

.hj-gw-form textarea {
	resize: vertical;
	min-height: 96px;
}

.hj-gw-fine {
	border-top: 1px solid var(--hj-line);
	padding-top: var(--hj-6);
}

.hj-gw-fine p {
	max-width: var(--hj-maxw-prose);
	margin: 0 0 var(--hj-3);
}

.hj-gw-fine a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hj-gw-rules h2 {
	font-size: 1.25rem;
	margin-top: var(--hj-6);
}

@media (max-width: 900px) {
	.hj-gw-hero,
	.hj-gw-enter,
	.hj-gw-note,
	.hj-gw-prizes {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--hj-6);
	}

	.hj-gw-hero__fig {
		order: -1;
	}

	.hj-gw-form,
	.hj-gw-panel {
		padding: var(--hj-5);
	}
}

@media (max-width: 480px) {
	.hj-gw-form__row {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.hj-gw-share__row {
		flex-direction: column;
	}
}

/* --- Pop-up ------------------------------------------------------------- */

.hj-gw-pop[hidden] {
	display: none !important;
}

.hj-gw-pop {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--hj-4);
}

.hj-gw-pop__scrim {
	position: absolute;
	inset: 0;
	background: rgba(22, 19, 15, 0.55);
	opacity: 0;
	transition: opacity var(--hj-fade);
}

.hj-gw-pop__card {
	position: relative;
	width: 100%;
	max-width: 440px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	background: var(--hj-bone);
	border-radius: var(--hj-radius-mat);
	box-shadow: 0 24px 64px rgba(22, 19, 15, 0.28);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity var(--hj-fade), transform var(--hj-fade);
	outline: none;
}

.hj-gw-pop.is-open .hj-gw-pop__scrim,
.hj-gw-pop.is-open .hj-gw-pop__card {
	opacity: 1;
	transform: none;
}

.hj-gw-pop__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.hj-gw-pop__body {
	padding: var(--hj-5) var(--hj-6) var(--hj-5);
}

.hj-gw-pop__body .hj-display-m {
	margin-bottom: var(--hj-3);
}

.hj-gw-pop__body .hj-small {
	color: var(--hj-ink-soft);
	margin: 0 0 var(--hj-5);
}

.hj-gw-pop__later {
	display: flex;
	width: 100%;
	margin-top: var(--hj-2);
	font-size: var(--hj-size-small);
	color: var(--hj-stone);
}

.hj-gw-pop__fine {
	margin: var(--hj-2) 0 0;
	font-size: var(--hj-size-eyebrow);
	color: var(--hj-stone);
	text-align: center;
}

.hj-gw-pop__x {
	position: absolute;
	top: var(--hj-3);
	right: var(--hj-3);
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(245, 242, 234, 0.92);
	color: var(--hj-ink);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.hj-gw-pop__card:focus,
.hj-gw-pop__card:focus-visible {
	outline: none !important;
	box-shadow: 0 24px 64px rgba(22, 19, 15, 0.28);
}

@media (max-height: 760px) {
	.hj-gw-pop__img {
		aspect-ratio: 21 / 9;
	}
}

.hj-gw-pop__x:focus-visible,
.hj-gw-pop .hj-btn:focus-visible {
	outline: 2px solid var(--hj-brass);
	outline-offset: 2px;
}

@media (max-width: 560px) {
	.hj-gw-pop {
		align-items: flex-end;
		padding: 0;
	}

	.hj-gw-pop__card {
		max-width: none;
		max-height: 92vh;
		border-radius: var(--hj-radius-mat) var(--hj-radius-mat) 0 0;
		padding-bottom: env(safe-area-inset-bottom, 0px);
	}

	.hj-gw-pop__body {
		padding: var(--hj-4) var(--hj-5) var(--hj-4);
	}
}
