/* genei180.de / Forgejo landing page */

.genei180-home {
	--g180-bg: var(--color-body);
	--g180-surface: var(--color-card);
	--g180-border: var(--color-secondary);
	--g180-text: var(--color-text);
	--g180-muted: var(--color-text-light-2);
	--g180-accent: var(--color-primary);
	--g180-radius: 16px;
}

/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */

.g180-container {
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
}

.g180-hero {
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--g180-border);
}

.g180-hero-grid {
	min-height: 510px;
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
	align-items: center;
	gap: 60px;
	padding-top: 70px;
	padding-bottom: 70px;
}

.g180-hero-copy {
	position: relative;
	z-index: 2;
}

.genei-hero-logo {
	flex: 0 0 auto;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 220px;
	height: 220px;

	border-radius: 50%;

	background: var(--color-secondary);
	box-shadow:
		0 0 0 1px var(--color-secondary-dark-1),
		0 1rem 3rem rgba(0, 0, 0, .08);
}

.genei-hero-logo img {
	display: block;

	width: 150px;
	height: 150px;

	opacity: .95;
}

.g180-eyebrow,
.g180-kicker {
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.g180-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: var(--g180-muted);
	margin-bottom: 22px;
}

.g180-eyebrow-mark {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--g180-accent);
	box-shadow: 0 0 0 5px color-mix(
		in srgb,
		var(--g180-accent) 15%,
		transparent
	);
}

.g180-hero h1 {
	max-width: 800px;
	margin: 0;
	font-size: clamp(2.8rem, 6vw, 5.5rem);
	line-height: .98;
	letter-spacing: -.045em;
	font-weight: 800;
	color: var(--g180-text);
}

.g180-hero h1 span {
	display: block;
	color: var(--g180-muted);
}

.g180-tagline {
	max-width: 680px;
	margin: 28px 0 0;
	font-size: 1.18rem;
	line-height: 1.7;
	color: var(--g180-muted);
}

.g180-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 34px;
}

.g180-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 9px;
	font-weight: 700;
	text-decoration: none !important;
	transition:
		transform .15s ease,
		background-color .15s ease,
		border-color .15s ease;
}

.g180-button:hover {
	transform: translateY(-1px);
}

.g180-button-primary {
	background: var(--g180-text);
	color: var(--g180-bg) !important;
	border: 1px solid var(--g180-text);
}

.g180-button-primary:hover {
	opacity: .9;
}

.g180-button-secondary {
	background: transparent;
	color: var(--g180-text) !important;
	border: 1px solid var(--g180-border);
}

.g180-button-secondary:hover {
	background: var(--g180-surface);
}

/* ------------------------------------------------------------
   Decorative forge
   ------------------------------------------------------------ */

.g180-hero-aside {
	position: relative;
	width: min(390px, 100%);
	aspect-ratio: 1;
	margin: auto;
	display: grid;
	place-items: center;
}

.g180-forge span {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 2.5rem;
	font-weight: 800;
	color: var(--g180-accent);
}

.g180-orbit {
	position: absolute;
	border: 1px solid var(--g180-border);
	border-radius: 50%;
	opacity: .65;
}

.g180-orbit-1 {
	width: 100%;
	height: 45%;
	transform: rotate(28deg);
}

.g180-orbit-2 {
	width: 85%;
	height: 85%;
	transform: rotate(-30deg);
}

.g180-orbit-3 {
	width: 52%;
	height: 100%;
	transform: rotate(65deg);
}

/* ------------------------------------------------------------
   Content
   ------------------------------------------------------------ */

.g180-content {
	padding: 70px 0 90px;
}

.g180-section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 28px;
}

.g180-kicker {
	margin: 0 0 7px;
	color: var(--g180-muted);
}

.g180-section-heading h2,
.g180-panel-heading h2,
.g180-workshop h2 {
	margin: 0;
	color: var(--g180-text);
	letter-spacing: -.025em;
}

.g180-section-heading h2 {
	font-size: 1.9rem;
}

.g180-section-link {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	font-weight: 600;
	text-decoration: none !important;
}

.g180-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.g180-panel {
	border: 1px solid var(--g180-border);
	border-radius: var(--g180-radius);
	background: var(--g180-surface);
	overflow: hidden;
}

.g180-panel-heading {
	padding: 24px 24px 18px;
	border-bottom: 1px solid var(--g180-border);
}

.g180-panel-heading h2 {
	font-size: 1.25rem;
}

/* ------------------------------------------------------------
   Projects
   ------------------------------------------------------------ */

.g180-project,
.g180-activity {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 18px 24px;
	color: inherit !important;
	text-decoration: none !important;
	border-bottom: 1px solid var(--g180-border);
	transition: background-color .15s ease;
}

.g180-project:last-child,
.g180-activity:last-child {
	border-bottom: 0;
}

.g180-project:hover,
.g180-activity:hover {
	background: color-mix(
		in srgb,
		var(--g180-text) 4%,
		transparent
	);
}

.g180-project-icon {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border: 1px solid var(--g180-border);
	border-radius: 9px;
	background: var(--g180-bg);
}

.g180-project-icon span {
	font-family: ui-monospace, monospace;
	font-size: 1rem;
	color: var(--g180-accent);
}

.g180-project-main,
.g180-activity-main {
	min-width: 0;
	flex: 1;
}

.g180-project-title {
	font-weight: 700;
	color: var(--g180-text);
}

.g180-project-description {
	margin-top: 4px;
	font-size: .9rem;
	line-height: 1.45;
	color: var(--g180-muted);
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.g180-project-meta,
.g180-activity-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 9px;
	font-size: .78rem;
	color: var(--g180-muted);
}

.g180-language {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.g180-language-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--g180-accent);
}

.g180-project-arrow,
.g180-activity-arrow {
	color: var(--g180-muted);
	font-size: 1.1rem;
}

/* ------------------------------------------------------------
   Activity
   ------------------------------------------------------------ */

.g180-activity-marker {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
}

.g180-activity-marker span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--g180-accent);
	box-shadow: 0 0 0 6px color-mix(
		in srgb,
		var(--g180-accent) 12%,
		transparent
	);
}

.g180-activity-title {
	font-size: .92rem;
	font-weight: 650;
	line-height: 1.4;
	color: var(--g180-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.g180-activity-meta code {
	padding: 2px 5px;
	border-radius: 4px;
	font-size: .72rem;
	background: var(--g180-bg);
}

/* ------------------------------------------------------------
   Workshop / website
   ------------------------------------------------------------ */

.g180-workshop {
	margin-top: 20px;
	padding: 38px 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	border: 1px solid var(--g180-border);
	border-radius: var(--g180-radius);
	background: var(--g180-surface);
}

.g180-workshop-copy {
	max-width: 700px;
}

.g180-workshop h2 {
	font-size: 1.7rem;
}

.g180-workshop p:not(.g180-kicker) {
	margin: 12px 0 0;
	color: var(--g180-muted);
	line-height: 1.65;
}

/* ------------------------------------------------------------
   Loading / empty states
   ------------------------------------------------------------ */

.g180-loading {
	min-height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: var(--g180-muted);
	font-size: .9rem;
}

.g180-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid var(--g180-border);
	border-top-color: var(--g180-accent);
	border-radius: 50%;
	animation: g180-spin .7s linear infinite;
}

.g180-empty {
	padding: 30px 24px;
	color: var(--g180-muted);
	font-size: .9rem;
	line-height: 1.6;
}

.g180-empty a {
	display: block;
	margin-top: 8px;
}

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

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 900px) {
	.g180-hero-grid {
		grid-template-columns: 1fr;
		padding-top: 55px;
		padding-bottom: 55px;
	}

	.g180-hero-aside {
		display: none;
	}

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

	.genei-hero {
		padding: 3.5rem 1.5rem 4rem;
	}

	.genei-hero-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 2.5rem;
	}

	.genei-hero-logo {
		width: 120px;
		height: 120px;
	}

	.genei-hero-logo img {
		width: 80px;
		height: 80px;
	}

	.genei-tagline {
		font-size: 1.1rem;
	}

	.genei-section {
		padding: 3rem 1.5rem;
	}

	.genei-section-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: .75rem;
	}

	.genei-about-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

@media (max-width: 650px) {
	.g180-container {
		width: min(100% - 28px, 1180px);
	}

	.g180-hero h1 {
		font-size: clamp(2.5rem, 13vw, 4rem);
	}

	.g180-tagline {
		font-size: 1rem;
	}

	.g180-content {
		padding-top: 45px;
	}

	.g180-section-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 14px;
	}

	.g180-workshop {
		align-items: flex-start;
		flex-direction: column;
		padding: 28px 24px;
	}
}
