/* =========================
	Theme Tokens
========================= */
:root {
	--bg-window: #f6f5f4;
	--bg-view: #ffffff;
	--bg-muted: #ebebed;
	--bg-hover: #f1f3f5;
	--ink: #241f31;
	--ink-soft: #5e5c64;
	--brand: #3584e4;
	--brand-strong: #1c71d8;
	--accent: #62a0ea;
	--card: rgba(255, 255, 255, 0.92);
	--line: #d6d3d1;
	--shadow: 0 8px 24px rgba(36, 31, 49, 0.08);
	--shadow-soft: 0 2px 6px rgba(36, 31, 49, 0.06);
	--radius-xl: 22px;
	--radius-lg: 18px;
	--radius-md: 12px;
	--max: 1120px;
}

/* =========================
   Base Reset
========================= */
* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--ink);
	font-family: "Cantarell", "Segoe UI", sans-serif;
	background:
		radial-gradient(circle at 100% 0%, rgba(53, 132, 228, 0.1), transparent 28%),
		radial-gradient(circle at 0% 100%, rgba(98, 160, 234, 0.08), transparent 30%),
		linear-gradient(180deg, #fafafa, var(--bg-window));
	min-height: 100vh;
	line-height: 1.5;
	overflow-x: hidden;
}

/* =========================
   Ambient Background
========================= */
.noise {
	position: fixed;
	inset: 0;
	pointer-events: none;
	background-image: linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18));
	opacity: 0.3;
	z-index: -2;
}

.blob {
	position: fixed;
	border-radius: 50%;
	filter: blur(56px);
	opacity: 0.35;
	pointer-events: none;
	z-index: -1;
	animation: drift 16s ease-in-out infinite alternate;
}

.blob-a {
	width: 260px;
	height: 260px;
	top: -80px;
	right: 8%;
	background: rgba(53, 132, 228, 0.18);
}

.blob-b {
	width: 260px;
	height: 260px;
	bottom: 6%;
	left: -80px;
	background: rgba(220, 138, 120, 0.12);
	animation-delay: 0.7s;
}

@keyframes drift {
	from { transform: translateY(0) translateX(0) scale(1); }
	to { transform: translateY(-10px) translateX(12px) scale(1.03); }
}

/* =========================
   App Shell And Navigation
========================= */
.container {
	width: min(var(--max), calc(100% - 2rem));
	margin: 0 auto;
}

header {
	position: sticky;
	top: 0;
	z-index: 20;
	backdrop-filter: blur(18px);
	background: rgba(246, 245, 244, 0.82);
	border-bottom: 1px solid rgba(214, 211, 209, 0.9);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.nav-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.85rem 0;
	gap: 1rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0;
	text-decoration: none;
	color: inherit;
	font-weight: 700;
	font-size: 1.02rem;
}

.brand-image {
	height: 96px;
	width: auto;
	display: block;
}

.brand-logo {
	width: 34px;
	height: 34px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: linear-gradient(180deg, #65a3f0, #3584e4);
	color: #ffffff;
	font-family: "Cantarell", "Segoe UI", sans-serif;
	font-weight: 700;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), var(--shadow-soft);
}

.brand-glyph {
	width: 15px;
	height: 15px;
	border-radius: 4px;
	background:
		radial-gradient(circle at 25% 25%, #ffffff 0 2px, transparent 2.4px),
		radial-gradient(circle at 75% 25%, #ffffff 0 2px, transparent 2.4px),
		radial-gradient(circle at 25% 75%, #ffffff 0 2px, transparent 2.4px),
		radial-gradient(circle at 75% 75%, #ffffff 0 2px, transparent 2.4px);
	opacity: 0.96;
}

.nav-links {
	display: flex;
	gap: 0.55rem;
	align-items: center;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.nav-links a {
	text-decoration: none;
	color: var(--ink-soft);
	font-size: 0.94rem;
	font-weight: 600;
	padding: 0.48rem 0.8rem;
	border-radius: 10px;
	transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
	border: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
	color: var(--ink);
	background: var(--bg-hover);
	border-color: rgba(214, 211, 209, 0.8);
}

.nav-links a.active {
	color: var(--ink);
	background: #ffffff;
	border-color: var(--line);
	box-shadow: var(--shadow-soft);
}

.nav-links a.social-mastodon {
	color: #6364ff;
}

.nav-links a.social-mastodon:hover,
.nav-links a.social-mastodon:focus-visible {
	color: #4f52cc;
}

.nav-links a.social-gitlab {
	color: #fc6d26;
}

.nav-links a.social-gitlab:hover,
.nav-links a.social-gitlab:focus-visible {
	color: #e24329;
}

@media (max-width: 980px) {
	.brand-image {
		height: 78px;
	}
}

.nav-links a[target="_blank"] .nav-label::after,
.btn[target="_blank"] .btn-label::after,
.mini-btn[target="_blank"] .btn-label::after {
	content: "";
	display: inline-block;
	width: 0.5rem;
	height: 0.5rem;
	border-top: 1.6px solid currentColor;
	border-right: 1.6px solid currentColor;
	transform: translateY(-1px);
	box-sizing: border-box;
	opacity: 0.82;
}

/* =========================
   Icon System
========================= */
.markdown-heading {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
}

.markdown-heading .ui-icon {
	width: 15px;
	height: 15px;
}

.title-with-icon {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 2rem;
}

.btn-label,
.tab-label,
.nav-label {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.ui-icon {
	display: inline-block;
	position: relative;
	flex: 0 0 auto;
	color: currentColor;
}

.title-with-icon .ui-icon {
	width: 18px;
	height: 18px;
}

.btn .ui-icon,
.mini-btn .ui-icon,
.nav-links .ui-icon {
	width: 14px;
	height: 14px;
}

.icon-mission::before,
.icon-release::before,
.icon-changelog::before,
.icon-about::before,
.icon-community::before,
.icon-gitlab::before,
	.icon-mastodon::before,
.icon-github::before,
.icon-home::before,
.icon-markdown::before,
.icon-details::before,
.icon-download::before,
.icon-checksum::before,
.icon-nav::before {
	content: "";
	position: absolute;
	inset: 0;
	border: 1.8px solid currentColor;
	border-radius: 3px;
	box-sizing: border-box;
}

.icon-mission::after {
	content: "";
	position: absolute;
	left: 3px;
	right: 3px;
	top: 6px;
	height: 1.8px;
	background: currentColor;
	box-shadow: 0 4px 0 currentColor;
}

.icon-release::after {
	content: "";
	position: absolute;
	left: 3px;
	right: 3px;
	top: 3px;
	height: 1.8px;
	background: currentColor;
	box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor;
}

.icon-changelog::before {
	border-radius: 999px;
	border-width: 1.8px;
	clip-path: inset(0 round 999px);
}

.icon-changelog::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 1.8px;
	height: 10px;
	background: currentColor;
	box-shadow: -3px 3px 0 currentColor, 3px 5px 0 currentColor;
	transform: rotate(35deg);
	transform-origin: center;
}

.icon-about::before {
	border-radius: 999px;
	border-width: 1.8px;
}

.icon-about::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 3px;
	width: 2px;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
	box-shadow: 0 4px 0 currentColor, 0 6px 0 currentColor;
}

.icon-community::before {
	border-radius: 999px;
	border-width: 1.8px;
	opacity: 0.95;
}

.icon-community::after {
	content: "";
	position: absolute;
	left: 3px;
	right: 3px;
	bottom: 2px;
	height: 5px;
	border: 1.8px solid currentColor;
	border-top: 0;
	border-radius: 0 0 999px 999px;
	box-sizing: border-box;
}

.icon-gitlab::before,
.icon-github::before {
	border: 0;
	background: currentColor;
	clip-path: polygon(22% 34%, 30% 20%, 39% 20%, 43% 15%, 50% 12%, 57% 15%, 61% 20%, 70% 20%, 78% 34%, 78% 50%, 72% 61%, 72% 81%, 63% 81%, 63% 67%, 56% 64%, 56% 82%, 44% 82%, 44% 64%, 37% 67%, 37% 81%, 28% 81%, 28% 61%, 22% 50%);
	opacity: 0.95;
}

.icon-gitlab::after,
.icon-github::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 4px;
	width: 2px;
	height: 2px;
	border-radius: 999px;
	background: var(--bg-window);
	box-shadow: 4px 0 0 var(--bg-window);
}

.icon-mastodon::before {
	border: 0;
	background: currentColor;
	border-radius: 4px;
	clip-path: polygon(14% 88%, 14% 32%, 24% 18%, 40% 18%, 50% 31%, 60% 18%, 76% 18%, 86% 32%, 86% 88%, 74% 88%, 74% 44%, 66% 34%, 58% 44%, 58% 88%, 42% 88%, 42% 44%, 34% 34%, 26% 44%, 26% 88%);
	opacity: 0.95;
}

.icon-mastodon::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 5px;
	width: 2px;
	height: 2px;
	border-radius: 999px;
	background: var(--bg-window);
	box-shadow: 4px 0 0 var(--bg-window);
}

.icon-home::before {
	border: 0;
	background: currentColor;
	clip-path: polygon(50% 5%, 92% 38%, 92% 44%, 82% 44%, 82% 92%, 18% 92%, 18% 44%, 8% 44%, 8% 38%);
	opacity: 0.95;
}

.icon-home::after {
	content: "";
	position: absolute;
	left: 5px;
	right: 5px;
	bottom: 1px;
	height: 6px;
	background: var(--bg-window);
	border-radius: 2px 2px 0 0;
}

.icon-markdown::after {
	content: "";
	position: absolute;
	left: 3px;
	right: 3px;
	top: 3px;
	height: 8px;
	background: currentColor;
	clip-path: polygon(0 30%, 20% 30%, 34% 65%, 48% 30%, 64% 30%, 64% 70%, 48% 70%, 48% 50%, 37% 76%, 29% 76%, 16% 50%, 16% 70%, 0 70%, 0 30%, 76% 50%, 100% 50%, 100% 64%, 76% 64%, 76% 50%);
	opacity: 0.95;
}

.icon-details::after {
	content: "";
	position: absolute;
	left: 4px;
	right: 4px;
	top: 3px;
	height: 1.8px;
	background: currentColor;
	box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor;
}

.icon-added::before {
	content: "";
	position: absolute;
	inset: 1px;
	border: 1.8px solid currentColor;
	border-radius: 999px;
	box-sizing: border-box;
}

.icon-added::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 3px;
	width: 2px;
	height: 8px;
	background: currentColor;
	box-shadow: -3px 3px 0 0 transparent;
}

.icon-added {
	background: linear-gradient(currentColor, currentColor) center/8px 2px no-repeat;
}

.icon-changed::before {
	content: "";
	position: absolute;
	inset: 1px;
	border: 1.8px solid currentColor;
	border-radius: 999px;
	box-sizing: border-box;
	clip-path: inset(0 round 999px);
}

.icon-changed::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 4px;
	width: 6px;
	height: 6px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
	box-sizing: border-box;
}

.icon-security::before {
	content: "";
	position: absolute;
	left: 2px;
	right: 2px;
	top: 1px;
	bottom: 1px;
	background: currentColor;
	clip-path: polygon(50% 0%, 88% 14%, 88% 54%, 50% 100%, 12% 54%, 12% 14%);
	opacity: 0.95;
}

.icon-security::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 5px;
	width: 4px;
	height: 5px;
	border-right: 2px solid var(--bg-window);
	border-bottom: 2px solid var(--bg-window);
	transform: rotate(45deg);
	box-sizing: border-box;
}

.icon-summary::before {
	content: "";
	position: absolute;
	inset: 1px;
	border: 1.8px solid currentColor;
	border-radius: 3px;
	box-sizing: border-box;
}

.icon-summary::after {
	content: "";
	position: absolute;
	left: 4px;
	right: 4px;
	top: 4px;
	height: 1.8px;
	background: currentColor;
	box-shadow: 0 4px 0 currentColor;
}

.icon-artifacts::before {
	content: "";
	position: absolute;
	left: 2px;
	right: 2px;
	bottom: 2px;
	height: 8px;
	border: 1.8px solid currentColor;
	border-top: 0;
	border-radius: 0 0 3px 3px;
	box-sizing: border-box;
}

.icon-artifacts::after {
	content: "";
	position: absolute;
	left: 4px;
	right: 4px;
	top: 1px;
	height: 5px;
	border: 1.8px solid currentColor;
	border-radius: 3px 3px 0 0;
	box-sizing: border-box;
}

.icon-notes::before {
	content: "";
	position: absolute;
	inset: 1px;
	border: 1.8px solid currentColor;
	border-radius: 3px;
	box-sizing: border-box;
}

.icon-notes::after {
	content: "";
	position: absolute;
	left: 4px;
	right: 4px;
	top: 4px;
	height: 1.8px;
	background: currentColor;
	box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor;
}

.icon-removed::before {
	content: "";
	position: absolute;
	inset: 1px;
	border: 1.8px solid currentColor;
	border-radius: 999px;
	box-sizing: border-box;
}

.icon-removed::after {
	content: "";
	position: absolute;
	left: 3px;
	right: 3px;
	top: 6px;
	height: 2px;
	background: currentColor;
}

.icon-performance::before {
	content: "";
	position: absolute;
	left: 1px;
	right: 1px;
	bottom: 2px;
	height: 2px;
	background: currentColor;
}

.icon-performance::after {
	content: "";
	position: absolute;
	left: 2px;
	bottom: 4px;
	width: 10px;
	height: 7px;
	border-left: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	border-right: 2px solid currentColor;
	clip-path: polygon(0 100%, 0 50%, 28% 50%, 44% 0, 58% 50%, 100% 50%, 100% 100%);
	box-sizing: border-box;
}

.icon-validation::before {
	content: "";
	position: absolute;
	inset: 1px;
	border: 1.8px solid currentColor;
	border-radius: 3px;
	box-sizing: border-box;
}

.icon-validation::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 5px;
	width: 5px;
	height: 3px;
	border-left: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	box-sizing: border-box;
}

.icon-download::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 2px;
	height: 7px;
	background: currentColor;
	box-shadow: 0 7px 0 0 transparent;
}

.icon-download::before {
	content: "";
	position: absolute;
	left: 2px;
	right: 2px;
	bottom: 1px;
	height: 3px;
	border: 1.8px solid currentColor;
	border-top: 0;
	border-radius: 0 0 3px 3px;
	box-sizing: border-box;
}

.icon-download > span,
.icon-checksum > span {
	display: none;
}

.icon-download-arrow {
	position: absolute;
	left: 3px;
	top: 6px;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	box-sizing: border-box;
}

.icon-checksum::after {
	content: "";
	position: absolute;
	left: 3px;
	right: 3px;
	top: 3px;
	height: 2px;
	background: currentColor;
	box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor;
}

.icon-nav::after {
	content: "";
	position: absolute;
	left: 3px;
	right: 3px;
	top: 6px;
	height: 2px;
	background: currentColor;
	box-shadow: 0 -4px 0 currentColor, 0 4px 0 currentColor;
}

/* =========================
   Home Page Layout
========================= */
.hero {
	display: grid;
	grid-template-columns: 0.95fr 1.05fr;
	gap: 1.25rem;
	align-items: center;
	padding: 3.3rem 0 2.4rem;
}

h1 {
	margin: 0;
	font-size: clamp(2rem, 3.2vw, 3.35rem);
	line-height: 1.06;
	letter-spacing: -0.03em;
	font-weight: 700;
}

.hero p {
	margin: 1rem 0 1.45rem;
	color: var(--ink-soft);
	max-width: 60ch;
	font-size: 1.03rem;
}

.cta-row {
	display: flex;
	gap: 0.8rem;
	flex-wrap: wrap;
}

.btn {
	border: 1px solid transparent;
	border-radius: 12px;
	padding: 0.72rem 1rem;
	text-decoration: none;
	font-weight: 700;
	transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	box-shadow: var(--shadow-soft);
}

.btn:focus-visible,
.card:focus-within {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.btn-primary {
	background: linear-gradient(180deg, #5b9bf0, var(--brand));
	border-color: rgba(28, 113, 216, 0.75);
	color: #ffffff;
}

.btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 20px rgba(53, 132, 228, 0.18);
}

.btn-secondary {
	border-color: var(--line);
	color: var(--ink);
	background: linear-gradient(180deg, #ffffff, #f4f3f2);
}

.btn-secondary:hover {
	background: #ffffff;
	border-color: #bdb8b2;
	transform: translateY(-1px);
}

.terminal {
	border: 1px solid #3d3846;
	border-radius: var(--radius-xl);
	background: linear-gradient(180deg, #2e2a38, #241f31);
	box-shadow: 0 20px 40px rgba(36, 31, 49, 0.18);
	padding: 1rem 1.05rem 1.1rem;
	min-height: 290px;
	position: relative;
}

.terminal::before {
	content: "GNOME Terminal";
	position: absolute;
	top: 0.85rem;
	left: 50%;
	transform: translateX(-50%);
	font-size: 0.74rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.72);
	letter-spacing: 0.02em;
}

.dots {
	display: flex;
	gap: 0.45rem;
	margin-bottom: 1.5rem;
}

.dots span {
	width: 11px;
	height: 11px;
	border-radius: 999px;
}

.dots span:nth-child(1) { background: #ed333b; }
.dots span:nth-child(2) { background: #f6d32d; }
.dots span:nth-child(3) { background: #57e389; }

.terminal pre {
	margin: 0;
	font-family: "Space Mono", monospace;
	color: #f6f5f4;
	font-size: 0.86rem;
	white-space: pre-wrap;
	line-height: 1.6;
}

section {
	padding: 2rem 0;
	opacity: 0;
	transform: translateY(10px);
	animation: rise 520ms ease forwards;
}

section:nth-of-type(2) { animation-delay: 50ms; }
section:nth-of-type(3) { animation-delay: 100ms; }
section:nth-of-type(4) { animation-delay: 150ms; }

@keyframes rise {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.section-title {
	margin: 0 0 1rem;
	font-size: clamp(1.45rem, 2.2vw, 1.95rem);
	letter-spacing: -0.02em;
	font-weight: 700;
}

.section-sub {
	margin: 0 0 1.2rem;
	color: var(--ink-soft);
	max-width: 72ch;
}

.grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 247, 246, 0.98));
	padding: 1rem;
	box-shadow: var(--shadow);
	backdrop-filter: blur(8px);
}

.version-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.8rem;
	margin-bottom: 0.65rem;
}

.tag {
	display: inline-block;
	padding: 0.26rem 0.58rem;
	border-radius: 999px;
	font-size: 0.73rem;
	font-family: "Space Mono", monospace;
	border: 1px solid #c6d8f7;
	background: #edf5ff;
	color: #1c71d8;
	font-weight: 700;
}

.tag-canary {
	border-color: #f4d7a6;
	background: #fff4d8;
	color: #9c6a00;
}

.tag-beta {
	border-color: #c6d8f7;
	background: #edf5ff;
	color: #1c71d8;
}

.tag-alpha {
	border-color: #d4c7f4;
	background: #f3ecff;
	color: #7a4ecb;
}

.tag-planned {
	border-color: #cfe6d2;
	background: #ebf7ed;
	color: #2f7d32;
}

.ver-title {
	margin: 0;
	font-size: 1.08rem;
	font-weight: 700;
}

.meta {
	margin: 0.5rem 0;
	color: var(--ink-soft);
	font-size: 0.93rem;
}

.actions {
	display: flex;
	gap: 0.55rem;
	margin-top: 0.85rem;
	flex-wrap: wrap;
}

.mini-btn {
	border-radius: 10px;
	border: 1px solid var(--line);
	padding: 0.44rem 0.78rem;
	text-decoration: none;
	color: var(--ink);
	font-size: 0.83rem;
	font-weight: 600;
	background: linear-gradient(180deg, #ffffff, #f4f3f2);
	box-shadow: var(--shadow-soft);
	transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.mini-btn:hover {
	border-color: #bdb8b2;
	background: #ffffff;
	transform: translateY(-1px);
}

.mini-btn.disabled {
	pointer-events: none;
	opacity: 0.5;
	box-shadow: none;
}

.timeline {
	display: grid;
	gap: 0.9rem;
	position: relative;
	padding-left: 1.2rem;
	border-left: 2px solid #d7e6fb;
}

.log-item {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 247, 246, 0.98));
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	padding: 0.9rem 1rem;
	position: relative;
	box-shadow: var(--shadow-soft);
}

.log-item::before {
	content: "";
	position: absolute;
	left: -1.58rem;
	top: 1rem;
	width: 0.72rem;
	height: 0.72rem;
	border-radius: 999px;
	background: var(--brand);
	box-shadow: 0 0 0 4px rgba(53, 132, 228, 0.16);
}

.log-top {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	align-items: baseline;
	margin-bottom: 0.5rem;
}

.log-top strong {
	font-size: 1rem;
	font-weight: 700;
}

.log-date {
	color: var(--ink-soft);
	font-size: 0.82rem;
	font-family: "Space Mono", monospace;
}

.log-item ul {
	margin: 0;
	padding-left: 1rem;
	color: var(--ink-soft);
}

.log-item li + li {
	margin-top: 0.3rem;
}

footer {
	padding: 2rem 0 2.8rem;
	color: var(--ink-soft);
	text-align: center;
	font-size: 0.9rem;
}

/* =========================
   Global Responsive Rules
========================= */
@media (max-width: 960px) {
	.hero {
		grid-template-columns: 1fr;
		padding-top: 2.6rem;
	}

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

@media (max-width: 660px) {
	.container {
		width: min(var(--max), calc(100% - 1.2rem));
	}

	.nav-wrap {
		align-items: flex-start;
		flex-direction: column;
	}

	.nav-links {
		justify-content: flex-start;
	}

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

	.terminal {
		min-height: 230px;
	}

	.btn,
	.mini-btn {
		width: auto;
	}
}

/* =========================
   About Page
========================= */
.about-layout {
	padding-top: 3rem;
	padding-bottom: 2rem;
}

.about-hero {
	max-width: 78ch;
	padding: 1rem 0 1.5rem;
	margin-bottom: 1.2rem;
}

.community-shell {
	padding-top: 2.6rem;
	padding-bottom: 2.4rem;
}

.community-hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	align-items: start;
	padding: 0 0 1rem;
}

.community-intro .title-with-icon {
	margin-bottom: 1rem;
}

.community-top-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
	gap: 0.8rem;
	align-items: start;
}

.community-channel-groups {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.8rem;
	margin-top: 1.1rem;
}

.community-channel {
	padding: 1rem;
	background:
		linear-gradient(160deg, rgba(53, 132, 228, 0.08), rgba(255, 255, 255, 0) 55%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 247, 246, 0.98));
	border: 1px solid rgba(214, 211, 209, 0.9);
}

.community-channel-matrix {
	border-left: 4px solid #3584e4;
	background:
		linear-gradient(160deg, rgba(53, 132, 228, 0.12), rgba(255, 255, 255, 0) 55%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 247, 246, 0.98));
}

.community-channel-mastodon {
	border-left: 4px solid #c061cb;
	background:
		linear-gradient(160deg, rgba(192, 97, 203, 0.12), rgba(255, 255, 255, 0) 55%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 247, 246, 0.98));
}

.community-channel-matrix .community-channel-title {
	color: #1c71d8;
}

.community-channel-mastodon .community-channel-title {
	color: #9c27b0;
}

.community-channel-full {
	width: 100%;
}

.community-channel-title {
	margin: 0 0 0.4rem;
	font-size: 1.02rem;
}

.community-channel-text {
	margin: 0;
	color: var(--ink-soft);
	font-size: 0.95rem;
}

.community-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-top: 1.1rem;
}

.community-panel {
	padding: 1.2rem;
	background:
		linear-gradient(145deg, rgba(53, 132, 228, 0.1), rgba(255, 255, 255, 0) 52%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 247, 246, 0.98));
}

.community-panel h2 {
	margin: 0 0 0.65rem;
	font-size: 1.3rem;
}

.community-panel-text {
	margin: 0 0 0.9rem;
	color: var(--ink-soft);
}

.community-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

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

.community-card {
	min-height: 100%;
}

.community-card h3 {
	margin: 0 0 0.55rem;
}


.community-card p {
	margin: 0;
	color: var(--ink-soft);
}

@media (max-width: 920px) {
	.community-top-grid {
		grid-template-columns: 1fr;
	}

	.community-channel-groups {
		grid-template-columns: 1fr;
	}

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

@media (max-width: 660px) {
	.community-actions {
		gap: 0.55rem;
	}

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

/* =========================
   Releases And Changelog Pages
========================= */
.releases-layout,
.changelog-layout {
	padding-top: 3rem;
	padding-bottom: 2rem;
}

.releases-hero,
.changelog-hero {
	padding: 1rem 0 1.5rem;
}

.document-layout {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
}

.document-sidebar {
	position: sticky;
	top: 5.5rem;
	padding: 1rem;
}

.sidebar-title {
	margin: 0 0 0.45rem;
	font-size: 1rem;
	font-weight: 700;
}

.document-panel {
	min-height: 60vh;
	padding: 1.25rem 1.35rem;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 246, 245, 0.99));
	box-shadow: 0 14px 36px rgba(36, 31, 49, 0.08);
}

.markdown-wrap {
	overflow-x: auto;
}

.markdown-wrap > :first-child {
	margin-top: 0;
}

.markdown-wrap h1,
.markdown-wrap h2,
.markdown-wrap h3 {
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.markdown-wrap h1 {
	font-size: clamp(1.5rem, 2.2vw, 2rem);
	margin-top: 0;
}

.markdown-wrap h2 {
	font-size: clamp(1.2rem, 1.8vw, 1.5rem);
	margin-top: 1.5rem;
	padding-bottom: 0.45rem;
	border-bottom: 1px solid var(--line);
}

.markdown-wrap h3 {
	font-size: 1rem;
	margin-top: 1.1rem;
}

.markdown-wrap p,
.markdown-wrap li {
	color: var(--ink-soft);
}

.markdown-wrap ul {
	padding-left: 1.1rem;
}

.markdown-wrap li + li {
	margin-top: 0.32rem;
}

.markdown-wrap code {
	font-family: "Space Mono", monospace;
	font-size: 0.9em;
	padding: 0.1rem 0.3rem;
	border-radius: 6px;
	background: rgba(53, 132, 228, 0.08);
}

.markdown-wrap a {
	color: var(--brand);
	font-weight: 700;
}

.anchor-links {
	display: grid;
	gap: 0.6rem;
	margin-bottom: 0;
}

/* =========================
   Docs/Detail Responsive Rules
========================= */
@media (max-width: 920px) {
	.document-layout {
		grid-template-columns: 1fr;
	}

	.document-sidebar {
		position: static;
	}

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

@media (max-width: 640px) {
	.anchor-links {
		grid-template-columns: 1fr;
	}
}
