:root {
	--bg: #050505;
	--bg-raised: #101010;
	--line: #FFFFFF;
	--line-thickness: 4px;
	--text: #FFFFFF;
	--text-dim: #9a9ca1;
	--accent: #C62828;
	--accent-dim: #B71C1C;
	--accent-bright: #D32F2F;
	--border-light: #ffffff;
	--hover-accent: #338bff;
	--btn-bg: #090b14;
	--btn-bg-hover: #000000;
	--bg-rgb: 5, 5, 5;
	--font-display: "Protest Revolution", "Segoe UI", sans-serif;
	--font-body: "Google Sans", "Segoe UI", sans-serif;
	--header-height: calc(72px + var(--line-thickness));
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scrollbar-gutter: stable;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	line-height: 1.6;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	max-width: 100%;
	display: block;
}

h1 {
	font-family: var(--font-display);
	font-size: clamp(2.5rem, 6vw, 4rem);
	line-height: 1.1;
	margin: 0 0 8px;
}

.wrap {
	margin: 0 auto;
	padding: 0 50px;
	display: flow-root;
}

.site-header {
	border-bottom: var(--line-thickness) solid var(--line);
	position: sticky;
	top: 0;
	background: rgba(var(--bg-rgb), 0.9);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	z-index: 10;
}

.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100px;
}

.logo {
	display: flex;
	align-items: center;
	font-family: var(--font-display);
	font-size: 3.0rem;
}

.nav-tabs {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-tabs a {
	display: block;
	padding: 8px 8px;
	border-radius: 8px;
	font-size: 1.00rem;
	color: var(--text-dim);
	transition: background 0.15s ease, color 0.15s ease;
}

.nav-tabs a:hover {
	background: var(--bg-raised);
	color: var(--text);
}

.nav-tabs a.active {
	background: var(--accent-dim);
	color: var(--text);
	font-weight: 600;
}

.has-dropdown {
	position: relative;
}

.has-dropdown > a {
	padding-right: 22px;
}

.has-dropdown > a::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 8px;
	margin-top: -3px;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid currentColor;
}

.dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 170px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--bg-raised);
	border: 1px solid var(--line);
	border-radius: 8px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s ease, visibility 0.15s ease;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
	opacity: 1;
	visibility: visible;
}

.dropdown a {
	border-radius: 8px;
}

.dropdown a:hover {
	background: var(--bg);
}

.hero {
	padding: 64px 0;
	border-bottom: var(--line-thickness) solid var(--line);
}

.hero-center {
	text-align: center;
}

.hero-center h1,
.hero-center h2 {
	margin: 0 auto 4px;
	max-width: 20ch;
}

.hero-center h2 {
	font-family: var(--font-display);
	font-size: clamp(2rem, 4.5vw, 3rem);
	line-height: 1.1;
}

.section {
	padding: 64px 0;
	border-bottom: var(--line-thickness) solid var(--line);
	scroll-margin-top: var(--header-height);
}

.section h2,
.section h3 {
	font-family: var(--font-display);
	color: var(--accent);
	font-size: 2.5rem;
	margin: 0 0 8px;
}

.section-desc {
	color: var(--accent-bright);
	font-size: 1.3rem;
}

.version-list {
	color: var(--text);
	margin: 4px 0 24px;
}

.section-banner {
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

.section-banner h3,
.section-banner .section-desc,
.section-banner .version-list {
	width: fit-content;
	background: var(--btn-bg);
	padding: 6px 14px;
	border-radius: 8px;
}

#bean-guy { background-image: url("../images/banners/bean_guy.png"); }
#boxt { background-image: url("../images/banners/boxt.png"); }
#pot-presets { background-image: url("../images/banners/pot_presets.png"); }
#tiled { background-image: url("../images/banners/tiled.png"); }
#canopy { background-image: url("../images/banners/canopy.png"); }
#saltcraft { background-image: url("../images/banners/saltcraft.png"); }

.about-text {
	color: var(--text);
	margin: 0 0 40px;
	font-size: 1.4rem;
}

.about-text-thanks {
	font-size: 1.8rem;
}

.about-text a,
.pond p a,
.site-footer a {
	color: var(--accent);
}

.about-text a:hover,
.pond p a:hover,
.site-footer a:hover {
	color: var(--accent-bright);
}

.about-photo {
	float: right;
	width: 260px;
	margin: 0 0 16px 24px;
	border: 3px solid var(--border-light);
	border-radius: 12px;
	transition: transform 50ms ease-in, border-color 50ms ease-in;
}

.about-photo:hover {
	border-color: var(--hover-accent);
	transform: scale(1.05) rotate(1deg);
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

.btn {
	display: block;
	padding: 10px 12px 14px;
	border: 3px solid var(--border-light);
	border-radius: 16px;
	font-weight: 600;
	font-size: 0.95rem;
	background: var(--btn-bg);
	color: var(--text);
	transition: transform 50ms ease-in, border-color 50ms ease-in, background 50ms ease-in;
}

a.btn:hover {
	border-color: var(--hover-accent);
	background: var(--btn-bg-hover);
	transform: scale(1.05) rotate(1deg);
}

.btn-primary {
	font-size: 1.5rem;
	color: var(--accent);
	text-align: center;
}

.btn .cover,
.btn .cover-placeholder {
	width: 100%;
	aspect-ratio: 315 / 250;
	border-radius: 16px;
	margin-bottom: 12px;
}

.btn .cover {
	object-fit: cover;
	image-rendering: pixelated;
}

.btn .cover.contain {
	object-fit: contain;
}

.btn .cover-placeholder {
	background: var(--bg-raised);
	border: 1px dashed var(--line);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-dim);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.btn h4 {
	font-family: var(--font-display);
	color: var(--accent);
	margin: 0 0 8px;
	font-size: 1.35rem;
}

.btn p {
	color: var(--text);
	margin: 0 0 8px;
	font-size: 1.1rem;
}

.btn p:last-child {
	margin-bottom: 0;
}

.btn .tag {
	color: var(--text-dim);
	font-size: 1rem;
}

.btn .soon {
	color: var(--text-dim);
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.contact-buttons {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 32px;
}

.site-footer {
	padding: 40px 0;
	color: var(--text-dim);
	font-size: 0.9rem;
}

.site-footer .wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.mc-disclaimer {
	width: 100%;
	margin: 12px 0 0;
	font-size: 0.75rem;
	text-align: center;
	opacity: 0.7;
}

@media (max-width: 720px) {
	.site-header .wrap {
		flex-direction: column;
		height: auto;
		padding: 16px 24px;
		gap: 12px;
	}

	.nav-tabs {
		flex-wrap: nowrap;
		justify-content: center;
		width: 100%;
	}

	.nav-tabs a {
		white-space: nowrap;
	}

	.site-footer .wrap {
		flex-direction: column;
		gap: 8px;
		text-align: center;
	}

	.about-photo {
		float: none;
		width: 100%;
		max-width: 280px;
		margin: 0 auto 20px;
	}
}
