@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: fallback;
	src: url(Manrope.woff2) format("woff2");
}

:root {
	box-sizing: border-box;
	--color-accent: #63a1ff;
	scrollbar-width: thin;
	scrollbar-color: rgb(71 168 255 / 50%) #0c121c;
}

*, *:before, *:after {
	box-sizing: inherit;
}

body {
	margin: 0;
	font: 16px/1.5 Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
	color: #fff;
	background-color: #0c121c;
}

a {
	color: var(--color-accent);
	text-decoration: underline;
}

a:hover,
a:active {
	color: #fff;
}

.container {
	margin: 0 auto;
	padding: 0 1rem;
	max-width: 1440px;
	width: 100%;
}

.background-pattern {
	position: absolute;
	pointer-events: none;
	width: 100%;
	height: 100%;
	stroke: rgb(255 255 255 / 10%);
	mask-image: radial-gradient(60% 80% at top left, #fff, transparent);
	z-index: -1;
}

.hero {
	min-height: max(1000px, 90vh);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6rem;
	margin: 0 6rem;
}

.hero .download .btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	color: #000;
	text-decoration: none;
	vertical-align: middle;
	cursor: pointer;
	background: var(--color-accent);
	border: 2px solid rgb(255 255 255 / 50%);
	border-radius: 0.6rem;
	font-size: 1.5rem;
	font-weight: bold;
	line-height: 1;
	padding: 1rem 1.5rem;
	transition: background-color 0.2s ease-in-out;
}

.hero .download-dev {
	font-size: 1.3rem;
	margin-bottom: 1rem;
}

.hero .download-version {
	text-decoration: none;
	margin-top: 2rem;
	font-size: .9rem;
}

.hero .download-dev a {
	color: inherit;
}

.hero .download-version:hover,
.hero .download-version:focus,
.hero .download-dev a:hover,
.hero .download-dev a:focus {
	border-radius: 6px;
	color: var(--color-accent);
}

.hero .download .btn:hover,
.hero .download .btn:focus {
	text-decoration: none;
	color: #000;
	background: #fff;
}

.hero .download .btn:hover span,
.hero .download .btn:focus span {
	text-decoration: underline;
}

.hero .download {
	margin-top: 60px;
}

.hero .download-text {
	margin-left: .5rem;
}

.hero .download-text span {
	white-space: nowrap;
}

.hero .download svg {
	align-self: center;
	flex-shrink: 0;
}

.hero .download-reqs {
	font-size: .9rem;
	margin-top: .1rem;
	margin-bottom: 2rem;
	color: #999;
}

.hero-left {
	font-size: 1.5rem;
	max-width: 600px;
	align-self: center;
	flex-shrink: 0;
}

.hero-fluff strong {
	font-size: 2rem;
}

.hero-fluff b {
	color: var(--color-accent);
}

.hero-right {
	display: flex;
	flex-direction: column;
	align-self: center;
	gap: 2px;
	flex-basis: 1000px;
	flex-shrink: 1;
}

.hero-screenshot {
	width: 100%;
	max-width: 1000px;
	aspect-ratio: 1800 / 1200;
	border-radius: 10px;
	border: 1px solid rgb(71 168 255 / 30%);
	box-shadow: rgb(71 168 255 / 20%) 0 0 100px 0;
}

.hero-screenshot-author {
	margin-left: 6px;
	font-size: 14px;
	color: #ccc;
}

.hero-screenshot-author svg {
	vertical-align: text-bottom;
	margin-right: 2px;
}

.hero-screenshot-author a {
	color: inherit;
}

.supported img {
	width: 24px;
	height: 24px;
	vertical-align: -0.2rem;
}

.supported a {
	white-space: nowrap;
	text-decoration: none;
}

.supported a:hover {
	text-decoration: underline;
}

.libraries {
	padding: 5rem 0;
	margin: 0 auto;
	background: linear-gradient(transparent 0%, rgb(38 48 64 / 24%) 100%);
	border-bottom: 1px solid rgb(71 168 255 / 30%);
}

.libraries .container {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.library-code {
	align-self: center;
	position: relative;
}

.library {
	display: flex;
	gap: 2rem;
	margin-bottom: 3rem;
}

.library:last-child {
	margin-bottom: 0;
}

.library-icon {
	padding-top: 1rem;
}

.library-description {
	max-width: 600px;
}

.library-description h2 {
	margin-top: 0;
	margin-bottom: .5rem;
	font-size: 2rem;
	word-break: break-all;
}

.library-description p {
	margin: 0;
	margin-bottom: .7rem;
	text-wrap: balance;
}

.screenshots {
	max-width: calc(100vw - 10%);
	margin-top: 7rem;
	margin-bottom: 7rem;
	display: flex;
	gap: 1rem;
	justify-content: center;
	align-items: end;
}

.screenshots img {
	width: 100%;
	border-radius: 10px;
	aspect-ratio: 1 / 1;
}

.screenshots figure {
	margin: 0;
	width: 480px;
	font-size: 0;
}

.screenshots figcaption {
	color: #63a1ff;
	line-height: 1;
	padding: .5rem;
	font-size: 1rem;
	text-align: center;
	text-wrap: balance;
}

.footnote {
	text-align: center;
	text-wrap: balance;
	margin-bottom: 6rem;
}

.footer {
	margin: 3rem auto;
	line-height: 1.75;
	color: #ccc;
}

.footer .container {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 1rem;
}

.footer .footer-right {
	text-align: right;
}

.hljs {
	font-family: ui-monospace, SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
	border: 1px solid #000;
	border-radius: 1rem;
	color: #f8f8f2;
	display: block;
	padding: 2rem;
}

.hljs-language {
	background: #000;
	border-radius: 1rem;
	padding: .2rem 1rem;
	position: absolute;
	top: 0;
	right: .5rem;
	z-index: 1;
}

.hljs-comment {
	color: #63a1ff;
	font-weight: bold;
}

.hljs-built_in {
	color: #ffbc6a;
}

a.hljs-built_in {
	text-decoration: underline;
}

.hljs-string {
	color: #d0ff6f;
}

.hljs-keyword {
	color: #dcc6e0;
}

.workshop {
	max-width: 1800px;
	margin: 0 auto;
	margin-top: 5rem;
	border-top-left-radius: 2rem;
	border-top-right-radius: 2rem;
	background: linear-gradient(rgb(38 48 64 / 64%) 0%, transparent 100%);
	border-bottom: 1px solid rgb(71 168 255 / 20%);
	position: relative;
	overflow: hidden;
}

.workshop-bg {
	background: url(workshop.webp);
	position: absolute;
	width: 100%;
	height: 100%;
	background-position: center -12em;
	background-repeat: no-repeat;
	z-index: 0;
	mask-image: linear-gradient(to bottom, black 5em, transparent 20em);
}

.workshop .container {
	padding-top: 14em;
	padding-bottom: 4em;
	z-index: 2;
	position: relative;
}

.workshop-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-gap: 2em;
}

.workshop-item {
	display: flex;
	flex-direction: column;
	text-decoration: none;
}

.workshop-image {
	display: flex;
	width: 100%;
	border-radius: 10px;
	aspect-ratio: 16 / 9;
	box-shadow: 2px 2px 10px #0c121c;
	background: #000;
	object-fit: contain;
}

.workshop-item:hover .workshop-image,
.workshop-item:focus .workshop-image {
	box-shadow: 2px 2px 10px var(--color-accent);
}

.workshop-title {
	margin-top: 5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-decoration: underline;
}

.workshop-info {
	margin-top: 2px;
	font-size: 12px;
	color: #999;
}

.workshop-how {
	text-align: center;
	margin-top: 3em;
	font-size: 14px;
	color: #999;
}

.main-logo {
	vertical-align: text-bottom;
}

@media (min-width: 1151px) {
	.main-logo {
		position: absolute;
		left: 64px;
		top: 64px;
		width: 128px;
		height: 128px;
	}
}

@media (max-width: 1500px) {
	.hero {
		flex-direction: column;
	}

	.hero-right {
		flex-basis: auto;
		width: 100%;
	}

	.hero-screenshot {
		width: 100%;
		max-width: 100%;
	}

	.download {
		text-align: center;
	}
}

@media (max-width: 1100px) {
	.hero {
		margin: 0 2rem;
		gap: 1rem;
	}

	.libraries .container {
		flex-direction: column;
	}

	.library-code {
		width: 100%;
	}

	.hljs {
		overflow-x: auto;
		padding: .5rem;
		scrollbar-width: thin;
	}

	.screenshots {
		margin-top: 1rem;
	}
}

@media (max-width: 840px) {
	.libraries {
		margin-top: 1rem;
	}

	.library {
		gap: 1rem;
	}

	.library-description h2 {
		font-size: 1.2rem;
	}

	.library-icon {
		padding-top: 0;
	}

	.footer .container,
	.screenshots {
		flex-direction: column;
	}

	.footer .container {
		align-items: unset;
	}

	.footer .footer-left,
	.footer .footer-right {
		text-align: center;
	}

	.screenshots figure {
		width: auto;
		max-width: 480px;
		margin: 0 auto;
	}

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

@media (max-width: 400px) {
	.hero strong,
	.hero-left {
		font-size: 1.5rem;
	}

	.workshop-grid {
		grid-template-columns: 1fr;
	}
}

.github-stars {
	display: inline-flex;
	align-items: center;
	align-self: center;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	font-size: 1rem;
	line-height: 1;
	text-decoration: none;
	color: #fff;
	background: rgb(255 255 255 / 10%);
	border: 1px solid rgb(255 255 255 / 20%);
	border-radius: .5rem;
	margin-top: 1rem;

	&:hover {
		background: rgb(255 255 255 / 15%);
		color: #fff;
		text-decoration: underline;
	}

	svg {
		fill: currentColor;
		flex-shrink: 0;
	}

	@media (min-width: 841px) {
		position: absolute;
		top: 0;
		right: 1rem;
	}
}
