/**
 * Kashmir Lounge: full-screen menu (inc/menu-overlay.php)
 */
.kl-menu {
	position: fixed;
	inset: 0;
	z-index: 10000;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--purple);
	color: var(--white);
	font-family: "JetBrains Mono", monospace;
	opacity: 0;
	transition: opacity .3s ease;
}

.kl-menu[hidden] {
	display: none;
}

.kl-menu.is-open {
	opacity: 1;
}

html.kl-menu-open {
	overflow: hidden;
}

.kl-menu__inner {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	max-width: 1920px;
	margin: 0 auto;
	padding: 0 48px 32px;
}

.kl-menu a {
	color: inherit;
	text-decoration: none;
}

.kl-menu h2,
.kl-menu__status,
.kl-menu__sub,
.kl-menu__close,
.kl-menu__brand span,
.kl-menu figcaption,
.kl-menu__now-top,
.kl-menu__now-bottom,
.kl-menu__open {
	margin: 0;
	font-family: "JetBrains Mono", monospace;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Top bar */
.kl-menu__top {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	padding: 24px 0;
	border-bottom: 1px solid rgb(255 255 255 / .12);
}

.kl-menu__brand {
	display: flex;
	align-items: center;
	gap: 18px;
	justify-self: start;
}

.kl-menu__brand img {
	display: block;
	width: 340px;
	max-width: 100%;
	height: auto;
	flex-shrink: 0;
}

.kl-menu__brand span {
	color: var(--lilac);
	white-space: nowrap;
}

.kl-menu__status {
	display: flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
}

.kl-menu__sep {
	color: var(--lilac);
}

.kl-menu__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--blue);
	flex-shrink: 0;
}

.is-closed .kl-menu__dot {
	background: var(--orange);
}

.kl-menu__close {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	justify-self: end;
	height: 46px;
	padding: 0 18px;
	border: 1px solid currentcolor;
	background: none;
	color: var(--white);
	font-weight: 500;
	cursor: pointer;
	transition: color .2s ease;
}

.kl-menu__close:hover,
.kl-menu__close:focus-visible {
	color: var(--yellow);
}

.kl-menu__x {
	position: relative;
	width: 22px;
	height: 22px;
}

.kl-menu__x::before,
.kl-menu__x::after {
	content: "";
	position: absolute;
	top: 10px;
	left: -2px;
	width: 26px;
	height: 2px;
	background: currentcolor;
	transform: rotate(45deg);
}

.kl-menu__x::after {
	transform: rotate(-45deg);
}

/* Nav + photo */
.kl-menu__main {
	flex: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 40%);
	align-items: center;
	gap: 48px;
	padding: 28px 0;
}

.kl-menu__photo {
	max-height: max(240px, calc(100vh - 560px));
}

.kl-menu__nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.kl-menu__nav a {
	display: inline-flex;
	align-items: flex-start;
	gap: 16px;
	transition: color .2s ease;
}

.kl-menu__label {
	font-family: "Anton", sans-serif;
	font-size: clamp(44px, min(4.4vw, 7.4vh), 92px);
	line-height: 1.04;
	text-transform: uppercase;
}

.kl-menu__sub {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: .9em;
	color: var(--lilac);
	white-space: nowrap;
	transition: color .2s ease;
}

.kl-menu__nav a[aria-current] .kl-menu__sub::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--blue);
}

.kl-menu__nav a:hover,
.kl-menu__nav a:focus-visible {
	color: var(--yellow);
}

.kl-menu__nav a:hover .kl-menu__sub,
.kl-menu__nav a:focus-visible .kl-menu__sub {
	color: var(--white);
}

.kl-menu__aside {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.kl-menu__photo {
	position: relative;
	margin: 0;
	aspect-ratio: 6 / 5;
	overflow: hidden;
	background: var(--black);
}

.kl-menu__photo > img:first-child {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity .25s ease;
}

.kl-menu__photo.is-swapping > img:first-child {
	opacity: 0;
}

.kl-menu__badge {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 130px;
	height: auto;
	animation: kl-menu-spin 14s linear infinite;
}

@keyframes kl-menu-spin {
	to { transform: rotate(360deg); }
}

.kl-menu figcaption {
	position: absolute;
	left: 16px;
	bottom: 16px;
	padding: 10px 12px;
	background: var(--black);
	color: var(--white);
	font-size: 13px;
}

.kl-menu figcaption b {
	margin-right: 6px;
	color: var(--yellow);
	font-weight: 400;
}

/* Now playing card */
.kl-menu__now {
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding: 28px;
	background: var(--yellow);
	color: var(--black) !important;
}

.kl-menu__now-top,
.kl-menu__now-bottom {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	font-size: 13px;
}

.kl-menu__now-label,
.kl-menu h2 {
	display: inline-flex;
	align-items: flex-end;
	gap: 10px;
}

.kl-menu__eq {
	display: inline-flex;
	align-items: flex-end;
	gap: 2px;
	height: 10px;
}

.kl-menu__eq i {
	width: 3px;
	height: 100%;
	background: currentcolor;
	animation: kl-menu-eq 1s ease-in-out infinite alternate;
}

.kl-menu__eq i:nth-child(2) { animation-delay: -.4s; }
.kl-menu__eq i:nth-child(3) { animation-delay: -.7s; }
.kl-menu__eq i:nth-child(4) { animation-delay: -.2s; }

@keyframes kl-menu-eq {
	from { height: 30%; }
	to { height: 100%; }
}

.kl-menu__now-title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 18px;
}

.kl-menu__now-dj {
	font-family: "Anton", sans-serif;
	font-size: clamp(36px, 2.8vw, 54px);
	line-height: 1;
	text-transform: uppercase;
}

.kl-menu__now-name {
	font-family: "Aladin", cursive;
	font-size: clamp(28px, 2vw, 40px);
	line-height: 1;
}

.kl-menu__now-bar {
	height: 4px;
	margin-top: -8px;
	background: rgb(14 14 13 / .2);
}

.kl-menu__now-bar span {
	display: block;
	height: 100%;
	background: var(--black);
}

.kl-menu__arrow {
	font-size: 22px;
	transition: transform .2s ease;
}

.kl-menu__now:hover .kl-menu__arrow {
	transform: translate(3px, -3px);
}

/* Bottom info row */
.kl-menu__foot {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 32px;
	padding-top: 30px;
	border-top: 1px solid rgb(255 255 255 / .12);
}

.kl-menu h2 {
	margin-bottom: 18px;
	color: var(--yellow);
}

.kl-menu__big,
.kl-menu__links {
	margin: 0;
	font-family: "Archivo", sans-serif;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.45;
}

.kl-menu__links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
}

.kl-menu__links a {
	transition: color .2s ease;
}

.kl-menu__links a:hover,
.kl-menu__links a:focus-visible {
	color: var(--yellow);
}

.kl-menu__open {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
	font-size: 13px;
}

/* Header toggle button (header template) */
.kl-menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	height: 42px;
	padding: 0 14px 0 16px;
	border: 1px solid currentcolor;
	background: none;
	color: var(--white);
	font-family: "JetBrains Mono", monospace;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color .2s ease;
}

.kl-menu-toggle:hover,
.kl-menu-toggle:focus-visible {
	color: var(--yellow);
}

.kl-menu-toggle__bars {
	position: relative;
	width: 24px;
	height: 10px;
}

.kl-menu-toggle__bars::before,
.kl-menu-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentcolor;
}

.kl-menu-toggle__bars::before { top: 0; }
.kl-menu-toggle__bars::after { bottom: 0; }

/* Large tablet */
/* Match the header: tagline only fits next to the wordmark on wide screens */
@media (max-width: 1440px) {
	.kl-menu__brand span {
		display: none;
	}
}

@media (max-width: 1279px) {
	.kl-menu__foot {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Tablet */
@media (max-width: 991px) {
	.kl-menu__brand img {
		width: 300px;
	}

	.kl-menu__inner {
		padding: 0 24px 32px;
	}

	.kl-menu__top {
		grid-template-columns: minmax(0, 1fr) auto;
		padding: 18px 0;
	}

	.kl-menu__status {
		display: none;
	}

	.kl-menu__main {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.kl-menu__photo {
		display: none;
	}

	.kl-menu__label {
		font-size: clamp(42px, 9vw, 72px);
	}

	.kl-menu__foot {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Mobile */
@media (max-width: 767px) {
	.kl-menu__inner {
		padding: 0 16px 28px;
	}

	.kl-menu__top {
		padding: 14px 0;
	}

	.kl-menu__brand img {
		width: min(260px, calc(100vw - 90px));
	}

	.kl-menu__brand span {
		display: none;
	}

	/* Icon only, so it doesn't run into the logo */
	.kl-menu__close {
		justify-content: center;
		width: 42px;
		height: 42px;
		padding: 0;
	}

	.kl-menu__close-text {
		display: none;
	}

	.kl-menu__nav a {
		gap: 10px;
	}

	.kl-menu__sub {
		display: none;
	}

	.kl-menu__nav a[aria-current] .kl-menu__label {
		color: var(--yellow);
	}

	.kl-menu__now {
		padding: 20px;
		gap: 18px;
	}

	.kl-menu__foot {
		grid-template-columns: 1fr;
		gap: 26px;
	}

	.kl-menu-toggle {
		width: 42px;
		padding: 0;
		justify-content: center;
		font-size: 0;
		gap: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kl-menu,
	.kl-menu__badge,
	.kl-menu__eq i {
		animation: none;
		transition: none;
	}
}
