.gitea-home-page {
	background: #f7f8f5;
	color: #17211b;
}

.gitea-home-page * {
	box-sizing: border-box;
}

.gitea-home-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
	gap: clamp(32px, 6vw, 80px);
	align-items: center;
	min-height: calc(100vh - 112px);
	padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 72px) 64px;
}

.gitea-home-copy {
	max-width: 680px;
}

.gitea-home-kicker,
.section-title p {
	margin: 0 0 12px;
	color: #316625;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

.gitea-home-page h1,
.gitea-home-page h2,
.gitea-home-page h3,
.gitea-home-page p {
	margin-top: 0;
}

.gitea-home-page h1 {
	margin-bottom: 22px;
	max-width: 780px;
	font-size: clamp(44px, 7vw, 82px);
	line-height: 0.98;
	letter-spacing: 0;
}

.gitea-home-lead {
	max-width: 620px;
	margin-bottom: 30px;
	color: #647067;
	font-size: clamp(17px, 2vw, 21px);
	line-height: 1.7;
}

.gitea-home-actions,
.gitea-home-metrics,
.panel-tabs {
	display: flex;
	align-items: center;
}

.gitea-home-actions {
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 44px;
}

.gitea-home-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 20px;
	border-radius: 8px;
	font-weight: 800;
	text-decoration: none;
}

.gitea-home-button.primary {
	background: #4b8f3a;
	color: #fff;
	box-shadow: 0 10px 24px rgba(75, 143, 58, 0.22);
}

.gitea-home-button.primary:hover {
	background: #316625;
	color: #fff;
}

.gitea-home-button.secondary {
	border: 1px solid #dfe5dc;
	background: #fff;
	color: #17211b;
}

.gitea-home-button.secondary:hover {
	color: #316625;
}

.gitea-home-metrics {
	flex-wrap: wrap;
	gap: 12px;
}

.gitea-home-metrics div {
	min-width: 148px;
	padding: 14px 16px;
	border: 1px solid #dfe5dc;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.72);
}

.gitea-home-metrics strong {
	display: block;
	font-size: 24px;
	line-height: 1.1;
}

.gitea-home-metrics span {
	display: block;
	margin-top: 4px;
	color: #647067;
	font-size: 14px;
}

.gitea-home-panel {
	width: 100%;
	max-width: 640px;
	margin-left: auto;
	overflow: hidden;
	border: 1px solid #dfe5dc;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 20px 60px rgba(39, 56, 43, 0.12);
}

.panel-top {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 24px;
	border-bottom: 1px solid #dfe5dc;
}

.panel-top img {
	flex: 0 0 auto;
}

.panel-top span,
.panel-commit span {
	display: block;
	color: #647067;
	font-size: 14px;
}

.panel-top strong {
	display: block;
	margin-top: 3px;
	font-size: 25px;
}

.panel-tabs {
	gap: 8px;
	overflow-x: auto;
	padding: 18px 24px;
	border-bottom: 1px solid #dfe5dc;
}

.panel-tabs span {
	flex: 0 0 auto;
	padding: 8px 11px;
	border-radius: 7px;
	color: #647067;
	font-size: 14px;
	font-weight: 750;
}

.panel-tabs .active {
	background: #e8f2e3;
	color: #316625;
}

.panel-commit {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin: 24px 24px 0;
	padding: 16px;
	border: 1px solid #dfe5dc;
	border-radius: 8px;
	background: #fbfcfa;
}

.panel-commit i {
	flex: 0 0 auto;
	width: 13px;
	height: 13px;
	border-radius: 999px;
	background: #4b8f3a;
	box-shadow: 0 0 0 5px rgba(75, 143, 58, 0.12);
}

.panel-files {
	display: grid;
	gap: 0;
	margin: 18px 24px 24px;
	padding: 0;
	list-style: none;
	border: 1px solid #dfe5dc;
	border-radius: 8px;
	overflow: hidden;
}

.panel-files li {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	padding: 13px 15px;
	border-bottom: 1px solid #dfe5dc;
	font-size: 14px;
}

.panel-files li:last-child {
	border-bottom: 0;
}

.panel-files span {
	font-weight: 800;
}

.panel-files em {
	color: #647067;
	font-style: normal;
	text-align: right;
}

.gitea-home-section,
.gitea-home-workflow {
	padding: 84px clamp(20px, 5vw, 72px);
}

.section-title {
	max-width: 760px;
	margin-bottom: 34px;
}

.gitea-home-page h2 {
	margin-bottom: 0;
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.08;
	letter-spacing: 0;
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.feature-grid article,
.gitea-home-workflow li {
	min-height: 220px;
	padding: 24px;
	border: 1px solid #dfe5dc;
	border-radius: 8px;
	background: #fff;
}

.feature-grid span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 32px;
	margin-bottom: 28px;
	border-radius: 7px;
	background: #e8f2e3;
	color: #316625;
	font-size: 13px;
	font-weight: 900;
}

.feature-grid h3,
.gitea-home-workflow h3 {
	margin-bottom: 8px;
	font-size: 19px;
}

.feature-grid p,
.gitea-home-workflow p {
	margin-bottom: 0;
	color: #647067;
	line-height: 1.7;
}

.gitea-home-workflow {
	background: #eef3eb;
}

.gitea-home-workflow ol {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gitea-home-workflow li > span {
	display: grid;
	width: 36px;
	height: 36px;
	margin-bottom: 24px;
	place-items: center;
	border-radius: 999px;
	background: #b8692d;
	color: #fff;
	font-weight: 900;
}

@media (max-width: 1040px) {
	.gitea-home-hero {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.gitea-home-panel {
		margin-left: 0;
	}

	.feature-grid,
	.gitea-home-workflow ol {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.gitea-home-hero {
		padding-top: 42px;
	}

	.gitea-home-page h1 {
		font-size: 42px;
	}

	.panel-commit,
	.panel-files li {
		align-items: flex-start;
		flex-direction: column;
	}

	.panel-files em {
		text-align: left;
	}

	.gitea-home-section,
	.gitea-home-workflow {
		padding-top: 58px;
		padding-bottom: 58px;
	}

	.feature-grid,
	.gitea-home-workflow ol {
		grid-template-columns: 1fr;
	}
}
