@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%) hsl(216 40% 8%);
	scroll-behavior: smooth;
}

*,
*: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: hsl(216 40% 8%);
}

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 {
	
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6rem;
	margin: 0 2rem;
}

.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: 0.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: 0.5rem;
}

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

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

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

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

.hero-fluff {
	font-size: 1.5rem;
	font-weight: normal;
	line-height: 1.5;
	margin: 1em 0;

	strong {
		font-size: 2rem;
	}

	b {
		color: var(--color-accent);
	}
}

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

.hero-screenshot {
	width: 100%;
	max-width: 1100px;
	aspect-ratio: 1100 / 700;
	border-radius: 10px;
	outline: 2px solid hsl(216 50% 30%);
	box-shadow:
		0 0 10px hsl(216 50% 40%),
		0 0 80px hsl(216 50% 20%);
}

.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(
		in oklch,
		hsl(216 40% 8%) 0%,
		hsl(216 50% 10%) 100%
	);
	border-bottom: 1px solid hsl(216 70% 30%);
}

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

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

	.api-docs-link {
		display: inline-block;
		margin-top: 0.5rem;
		padding: 0.6rem 1rem;
		border-radius: 0.5rem;
		background: var(--color-accent);
		color: #000;
		font-weight: 600;
		text-decoration: none;
		transition: background-color 0.2s ease-in-out;

		&:hover,
		&:focus {
			text-decoration: underline;
			color: #000;
			background: #fff;
		}
	}
}

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

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

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

.library-description {
	max-width: 600px;
	color: #989fb0;

	h2 {
		margin: 0;
		font-size: 2rem;
		word-break: break-all;
		color: #fff;
	}

	p {
		margin: 0;
		margin-bottom: 0.7rem;
		text-wrap: balance;
	}

	.library-links {
		display: flex;
		gap: 5px;
		margin-bottom: 0.5rem;

		a {
			border: 1px solid rgb(255 255 255 / 20%);
			border-radius: 3rem;
			padding: 0 0.5rem;
			font-size: 0.9rem;
			text-decoration: none;

			&:hover {
				background: hsl(216 50% 20% / 40%);
				border-color: currentColor;
			}
		}
	}
}

.screenshots {
	max-width: calc(820px * 3);
	margin-top: 7rem;
	margin-bottom: 7rem;
	display: flex;
	gap: 1rem;
	justify-content: center;
	align-items: end;
	flex-wrap: wrap;
}

.screenshots img {
	width: 100%;
	max-width: 820px;
	border-radius: 10px;
	aspect-ratio: 820 / 520;
	outline: 1px solid hsl(216 50% 20%);
}

.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: 0.2rem 1rem;
	position: absolute;
	top: 0;
	right: 0.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(
		in oklab,
		hsl(216 70% 30%) 0%,
		hsl(216 40% 8%) 100%
	);
	border-bottom: 1px solid hsl(216 70% 30%);
	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 hsl(216 40% 8%);
	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: 0.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;
	}

	.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: 0.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;
	}
}

.feature-outline {
	padding: 1.5rem 0;

	h2 {
		font-size: 2.5rem;
		font-weight: 700;
		color: #fff;
		text-align: center;
		margin: 0 0 1.5rem 0;
	}

	h3 {
		font-size: 1.3rem;
		font-weight: 600;
		color: rgb(71 168 255 / 90%);
		margin: 0.5rem 0 0.4rem 0;
	}

	.feature-section {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 1rem;
		margin-bottom: 1rem;

		& > div {
			padding: 1rem;
			background: rgb(255 255 255 / 3%);
			border: 1px solid rgb(71 168 255 / 10%);
			border-radius: 8px;
		}
	}

	ul {
		padding-left: 1.2rem;
		margin: 0;

		li {
			padding: 0.3em 0;
			line-height: 1.4;

			&::marker {
				color: var(--color-accent);
			}
		}
	}

	@media (max-width: 768px) {
		.feature-section {
			grid-template-columns: 1fr;
			gap: 1rem;
		}

		.feature-outline h2 {
			font-size: 2rem;
		}

		.feature-outline h3 {
			font-size: 1.5rem;
		}

		.feature-outline h4 {
			font-size: 1.2rem;
		}

		.feature-section > div {
			padding: 1rem;
		}
	}
}

#release-notes {
	padding: 1.5rem 0;

	> h2 {
		font-size: 2.5rem;
		font-weight: 700;
		color: #fff;
		text-align: center;
		margin: 0 0 1.5rem 0;
	}

	.release-notes-content {
		background: rgb(255 255 255 / 3%);
		border: 1px solid rgb(71 168 255 / 10%);
		border-radius: 8px;
		padding: 1.5rem;
		overflow-x: auto;
	}

	.release-notes-content {
		line-height: 1.6;
		margin-bottom: 1.5rem;

		.release-version {
			color: var(--color-accent);
			font-size: 1.5rem;
			font-weight: 600;
			margin: 0 0 1rem 0;
			text-decoration: none;
			display: block;

			&:hover {
				color: #fff;
				text-decoration: underline;
			}
		}

		h1,
		h2,
		h3,
		h4,
		h5,
		h6 {
			color: #fff;
			margin: 1.5rem 0 0.5rem 0;

			&:first-child {
				margin-top: 0;
			}
		}

		p {
			margin: 0.8rem 0;
		}

		ul,
		ol {
			padding-left: 1.2rem;
			margin: 0;

			li {
				padding: 0.3em 0;
				line-height: 1.4;

				&::marker {
					color: var(--color-accent);
				}
			}
		}

		code {
			background: rgb(255 255 255 / 10%);
			border-radius: 3px;
			padding: 0.2em 0.4em;
			font-family:
				ui-monospace,
				SFMono-Regular,
				Consolas,
				Liberation Mono,
				Menlo,
				monospace;
		}

		pre {
			background: rgb(255 255 255 / 5%);
			border-radius: 6px;
			padding: 1rem;
			overflow-x: auto;
		}

		a {
			color: var(--color-accent);
		}

		details {
			margin: 1rem 0;
			border: 1px solid hsl(216 70% 30%);
			border-radius: 6px;
			background: rgb(255 255 255 / 3%);

			summary {
				padding: 0.1rem 1rem;
				cursor: pointer;
				display: flex;
				align-items: center;
				gap: 0.5rem;
				color: rgb(255 255 255 / 90%);
				transition: background 0.2s ease;

				&:hover {
					background: rgb(255 255 255 / 5%);
				}
			}
		}

		video {
			display: flex;
			width: 100%;
			max-height: 1000px !important;
			height: auto;
			border-radius: 0 0 6px 6px;
			border-top: 1px solid hsl(216 70% 30%);
		}

		svg {
			fill: currentColor;
		}
	}

	.release-assets {
		margin-top: 2rem;
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
		gap: 0.75rem;

		.asset-link {
			display: block;
			padding: 0.75rem 1rem;
			background: rgb(255 255 255 / 5%);
			border: 1px solid rgb(71 168 255 / 15%);
			border-radius: 6px;
			text-decoration: none;
			color: #fff;
			font-weight: 500;
			white-space: nowrap;
			overflow: hidden;
			text-overflow: ellipsis;
			transition: all 0.2s ease;

			&:hover {
				background: rgb(255 255 255 / 8%);
				border-color: var(--color-accent);
				color: var(--color-accent);
			}
		}
	}

	@media (max-width: 768px) {
		> h2 {
			font-size: 2rem;
		}

		.release-notes-content {
			padding: 1rem;
		}
	}
}
@media (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  .hero {
    flex-direction: column;
    gap: 2rem;
    margin: 0;
    padding: 1.5rem;
    text-align: center;
  }

  .hero-left {
    max-width: 100%;
    font-size: 1.1rem;
  }

  .hero-fluff {
    font-size: 1.1rem;
  }

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

  .hero-left img {
    width: 100px;
    height: 100px;
  }

  .supported {
    font-size: 0.95rem;
  }

  .supported img {
    width: 20px;
    height: 20px;
  }

  .download {
    margin-top: 2rem;
    text-align: center;
  }

  .download .btn {
    font-size: 1.2rem;
    padding: 0.9rem 1.2rem;
    width: 100%;
    justify-content: center;
  }

  .download-text {
    margin-left: 0.5rem;
  }

  .hero-right {
    width: 100%;
    align-items: center;
  }

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

  .hero-screenshot-author {
    font-size: 0.75rem;
    text-align: center;
  }

  .github-stars {
    position: static;

  }
}
