@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,800;1,9..144,500&family=JetBrains+Mono:wght@400;500&family=Inter+Tight:wght@400;500;600&display=swap");

:root {
	--purple-deep: #1a0b2e;
	--purple-night: #2d1156;
	--purple-mid: #6b2dbd;
	--purple-light: #a06cd5;
	--magenta: #e040a0;
	--magenta-bright: #ff4fb0;
	--yellow: #ffd84d;
	--yellow-warm: #ffb347;
	--cream: #fff3d6;
	--ink: #0a0414;

	--bg: #0e0420;
	--surface: rgba(45, 17, 86, 0.45);
	--surface-strong: rgba(45, 17, 86, 0.75);
	--border-soft: rgba(255, 216, 77, 0.18);
	--border-glow: rgba(224, 64, 160, 0.45);

	--font-display: "Fraunces", Georgia, serif;
	--font-body: "Inter Tight", system-ui, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	color: var(--cream);
	background: var(--bg);
	line-height: 1.65;
	min-height: 100vh;
	overflow-x: hidden;
	position: relative;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -2;
	background:
		radial-gradient(
			ellipse 80% 60% at 15% 10%,
			rgba(224, 64, 160, 0.35),
			transparent 60%
		),
		radial-gradient(
			ellipse 70% 70% at 90% 30%,
			rgba(255, 216, 77, 0.18),
			transparent 60%
		),
		radial-gradient(
			ellipse 90% 80% at 50% 110%,
			rgba(107, 45, 189, 0.55),
			transparent 60%
		),
		linear-gradient(180deg, #0e0420 0%, #1a0b2e 50%, #0a0414 100%);
}

body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: 0.04;
	background-image: repeating-radial-gradient(
		circle at 50% 50%,
		#fff 0,
		#fff 1px,
		transparent 1px,
		transparent 4px
	);
	mix-blend-mode: overlay;
}

/* =========================================================
   Layout
   ========================================================= */

.shell {
	max-width: 1180px;
	margin: 0 auto;
	padding: 2rem 2rem 6rem;
}

/* =========================================================
   Navigation
   ========================================================= */

.nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 0 2.5rem;
	border-bottom: 1px solid var(--border-soft);
	margin-bottom: 4rem;
}

.nav-brand {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	font-family: var(--font-display);
	font-size: 1.4rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--cream);
	text-decoration: none;
}

.icon-slot {
	width: 88px;
	height: 88px;
	border-radius: 12px;
	background: linear-gradient(
		135deg,
		var(--magenta),
		var(--purple-mid) 50%,
		var(--yellow) 130%
	);
	display: grid;
	place-items: center;
	position: relative;
	overflow: hidden;
	box-shadow:
		0 0 0 1px var(--border-soft),
		0 8px 24px -8px rgba(224, 64, 160, 0.6);
}

.icon-slot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nav-links {
	display: flex;
	gap: 2rem;
	list-style: none;
	font-size: 0.95rem;
	font-weight: 500;
}

.nav-links a {
	color: var(--cream);
	text-decoration: none;
	position: relative;
	padding: 0.25rem 0;
	opacity: 0.75;
	transition: opacity 0.2s;
}

.nav-links a:hover {
	opacity: 1;
}

.nav-links a.active {
	opacity: 1;
	color: var(--yellow);
}

.nav-links a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 1px;
	background: linear-gradient(90deg, var(--magenta), var(--yellow));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
	transform: scaleX(1);
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 4rem;
	align-items: center;
	padding: 3rem 0 5rem;
	animation: fadeUp 0.9s ease-out;
}

.hero-eyebrow {
	font-family: var(--font-mono);
	font-size: 0.8rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--yellow);
	margin-bottom: 1.5rem;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
}

.hero-eyebrow::before {
	content: "";
	width: 24px;
	height: 1px;
	background: var(--yellow);
}

.hero h1 {
	font-family: var(--font-display);
	font-size: clamp(2.8rem, 6vw, 4.6rem);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.03em;
	margin-bottom: 1.5rem;
}

.hero h1 .accent {
	background: linear-gradient(
		90deg,
		var(--magenta-bright) 0%,
		var(--yellow) 100%
	);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	font-style: italic;
	font-weight: 600;
}

.hero p {
	font-size: 1.15rem;
	line-height: 1.7;
	color: rgba(255, 243, 214, 0.8);
	max-width: 52ch;
	margin-bottom: 2rem;
}

.hero-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.9rem 1.6rem;
	background: linear-gradient(135deg, var(--magenta), var(--purple-mid));
	color: var(--cream);
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.01em;
	box-shadow: 0 12px 30px -10px rgba(224, 64, 160, 0.6);
	transition:
		transform 0.2s,
		box-shadow 0.2s;
}

.hero-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 40px -10px rgba(255, 79, 176, 0.7);
}

.hero-cta .arrow {
	transition: transform 0.2s;
}

.hero-cta:hover .arrow {
	transform: translateX(4px);
}

.hero-visual {
	position: relative;
	aspect-ratio: 1;
	display: grid;
	place-items: center;
}

.hero-visual svg {
	width: 100%;
	height: 100%;
}

/* =========================================================
   Concept sections
   ========================================================= */

.concept {
	padding: 4rem 0;
	border-top: 1px solid var(--border-soft);
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 3rem;
}

.concept-meta {
	position: sticky;
	top: 2rem;
	align-self: start;
}

.concept-number {
	font-family: var(--font-display);
	font-style: italic;
	font-size: 3rem;
	font-weight: 400;
	color: var(--magenta-bright);
	line-height: 1;
	margin-bottom: 0.5rem;
}

.concept-label {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(255, 216, 77, 0.7);
}

.concept-body h2 {
	font-family: var(--font-display);
	font-size: clamp(2rem, 4vw, 2.8rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin-bottom: 1.5rem;
}

.concept-body h2 em {
	font-style: italic;
	color: var(--yellow);
	font-weight: 500;
}

.concept-body h3 {
	font-family: var(--font-display);
	font-size: 1.3rem;
	font-weight: 600;
	margin: 2.5rem 0 0.75rem;
	color: var(--magenta-bright);
}

.concept-body p {
	font-size: 1.05rem;
	margin-bottom: 1.25rem;
	color: rgba(255, 243, 214, 0.85);
	max-width: 65ch;
}

.concept-body p strong {
	color: var(--cream);
	font-weight: 600;
}

.concept-body a {
	color: var(--yellow);
	text-decoration: underline;
	text-decoration-color: rgba(255, 216, 77, 0.4);
	text-underline-offset: 3px;
}

.signal-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1rem;
	margin: 2rem 0;
}

.signal {
	padding: 1.25rem;
	background: var(--surface);
	border: 1px solid var(--border-soft);
	border-radius: 14px;
	backdrop-filter: blur(8px);
	transition:
		border-color 0.25s,
		transform 0.25s;
}

.signal:hover {
	border-color: var(--border-glow);
	transform: translateY(-3px);
}

.signal-name {
	font-family: var(--font-mono);
	font-size: 0.85rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--yellow);
	margin-bottom: 0.5rem;
}

.signal-desc {
	font-size: 0.92rem;
	color: rgba(255, 243, 214, 0.8);
	line-height: 1.5;
}

.pullquote {
	border-left: 2px solid var(--magenta-bright);
	padding: 0.5rem 0 0.5rem 1.5rem;
	margin: 2rem 0;
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1.2rem;
	color: var(--cream);
	line-height: 1.5;
}

.pullquote cite {
	display: block;
	font-size: 0.85rem;
	font-family: var(--font-body);
	font-style: normal;
	color: rgba(255, 216, 77, 0.8);
	margin-top: 0.75rem;
	letter-spacing: 0.05em;
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
	margin-top: 6rem;
	padding-top: 2rem;
	border-top: 1px solid var(--border-soft);
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.85rem;
	color: rgba(255, 243, 214, 0.55);
}

.footer .moon {
	color: var(--yellow);
}

/* =========================================================
   Contributions page
   ========================================================= */

.page-header {
	padding: 2rem 0 4rem;
	animation: fadeUp 0.8s ease-out;
}

.page-header .eyebrow {
	font-family: var(--font-mono);
	font-size: 0.8rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--yellow);
	margin-bottom: 1rem;
}

.page-header h1 {
	font-family: var(--font-display);
	font-size: clamp(2.4rem, 5vw, 3.8rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin-bottom: 1rem;
}

.page-header h1 em {
	font-style: italic;
	background: linear-gradient(90deg, var(--magenta-bright), var(--yellow));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	font-weight: 600;
}

.page-header p {
	font-size: 1.1rem;
	color: rgba(255, 243, 214, 0.75);
	max-width: 60ch;
}

.contrib-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 1.75rem;
}

.contrib-card {
	display: flex;
	flex-direction: column;
	padding: 1.75rem;
	background: var(--surface);
	border: 1px solid var(--border-soft);
	border-radius: 18px;
	text-decoration: none;
	color: inherit;
	position: relative;
	overflow: hidden;
	transition:
		transform 0.3s,
		border-color 0.3s,
		box-shadow 0.3s;
	backdrop-filter: blur(8px);
}

.contrib-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(
		circle at top right,
		rgba(255, 216, 77, 0.08),
		transparent 50%
	);
	opacity: 0;
	transition: opacity 0.3s;
	pointer-events: none;
}

.contrib-card:hover {
	transform: translateY(-4px);
	border-color: var(--border-glow);
	box-shadow:
		0 20px 50px -20px rgba(224, 64, 160, 0.5),
		0 0 0 1px var(--border-glow);
}

.contrib-card:hover::before {
	opacity: 1;
}

.contrib-tag {
	display: inline-block;
	align-self: flex-start;
	padding: 0.25rem 0.7rem;
	background: rgba(255, 216, 77, 0.12);
	border: 1px solid rgba(255, 216, 77, 0.3);
	color: var(--yellow);
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border-radius: 999px;
	margin-bottom: 1.25rem;
}

.contrib-card h3 {
	font-family: var(--font-display);
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin-bottom: 0.75rem;
}

.contrib-card p {
	font-size: 0.95rem;
	line-height: 1.55;
	color: rgba(255, 243, 214, 0.75);
	margin-bottom: 1.5rem;
	flex-grow: 1;
}

.contrib-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: var(--font-mono);
	font-size: 0.78rem;
	color: rgba(255, 243, 214, 0.5);
	padding-top: 1rem;
	border-top: 1px solid var(--border-soft);
}

.contrib-meta .arrow {
	color: var(--magenta-bright);
	font-size: 1.1rem;
	transition: transform 0.2s;
}

.contrib-card:hover .arrow {
	transform: translate(3px, -3px);
}

.contrib-card.placeholder {
	border-style: dashed;
	opacity: 0.6;
}

.contrib-card.placeholder:hover {
	transform: none;
	box-shadow: none;
}

/* =========================================================
   Animations
   ========================================================= */

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes orbit {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

@keyframes pulse {
	0%,
	100% {
		opacity: 0.5;
		transform: scale(1);
	}
	50% {
		opacity: 1;
		transform: scale(1.05);
	}
}

.hero-visual .orbit-group {
	animation: orbit 32s linear infinite;
	transform-origin: center;
}
.hero-visual .pulse-dot {
	animation: pulse 3s ease-in-out infinite;
	transform-origin: center;
}

/* =========================================================
   Responsive
   ========================================================= */

/* =========================================================
   Article page (lives in /contributions/ folder)
   ========================================================= */

.article-shell {
	max-width: 760px;
	margin: 0 auto;
	padding: 2rem 2rem 6rem;
}

.article-back {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 243, 214, 0.6);
	text-decoration: none;
	margin-bottom: 3rem;
	transition:
		color 0.2s,
		transform 0.2s;
}

.article-back:hover {
	color: var(--yellow);
}

.article-back .arrow {
	transition: transform 0.2s;
}

.article-back:hover .arrow {
	transform: translateX(-3px);
}

.article-header {
	padding: 1rem 0 3rem;
	border-bottom: 1px solid var(--border-soft);
	margin-bottom: 3rem;
	animation: fadeUp 0.8s ease-out;
}

.article-tag {
	display: inline-block;
	padding: 0.3rem 0.8rem;
	background: rgba(255, 216, 77, 0.12);
	border: 1px solid rgba(255, 216, 77, 0.3);
	color: var(--yellow);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	border-radius: 999px;
	margin-bottom: 1.25rem;
}

.article-header h1 {
	font-family: var(--font-display);
	font-size: clamp(2.2rem, 5vw, 3.4rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.025em;
	margin-bottom: 1rem;
}

.article-header h1 em {
	font-style: italic;
	background: linear-gradient(90deg, var(--magenta-bright), var(--yellow));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	font-weight: 600;
}

.article-meta {
	font-family: var(--font-mono);
	font-size: 0.82rem;
	color: rgba(255, 243, 214, 0.55);
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
}

.article-meta span::before {
	content: "·";
	margin-right: 0.5rem;
	color: var(--magenta-bright);
}

.article-meta span:first-child::before {
	content: "";
	margin: 0;
}

.article-body h2 {
	font-family: var(--font-display);
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.015em;
	margin: 3rem 0 1.25rem;
	color: var(--cream);
}

.article-body h2::before {
	content: "✦";
	color: var(--magenta-bright);
	margin-right: 0.6rem;
	font-size: 0.85em;
}

.article-body h3 {
	font-family: var(--font-display);
	font-size: 1.2rem;
	font-weight: 600;
	margin: 2.25rem 0 0.75rem;
	color: var(--magenta-bright);
}

.article-body p {
	font-size: 1.05rem;
	line-height: 1.75;
	margin-bottom: 1.4rem;
	color: rgba(255, 243, 214, 0.88);
}

.article-body p strong {
	color: var(--cream);
	font-weight: 600;
}

.article-body p em {
	color: var(--yellow);
	font-style: italic;
}

.article-body a {
	color: var(--yellow);
	text-decoration: underline;
	text-decoration-color: rgba(255, 216, 77, 0.4);
	text-underline-offset: 3px;
	transition: text-decoration-color 0.2s;
}

.article-body a:hover {
	text-decoration-color: var(--yellow);
}

.article-body ul {
	list-style: none;
	padding: 0;
	margin: 1.5rem 0;
}

.article-body ul li {
	position: relative;
	padding-left: 1.5rem;
	margin-bottom: 0.85rem;
	font-size: 1.02rem;
	line-height: 1.7;
	color: rgba(255, 243, 214, 0.85);
}

.article-body ul li::before {
	content: "◆";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--magenta-bright);
	font-size: 0.7rem;
	line-height: 1.7;
}

.article-body .lead {
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1.25rem;
	line-height: 1.6;
	color: var(--cream);
	margin-bottom: 2rem;
	max-width: 60ch;
}

.article-body .note {
	padding: 1.5rem;
	background: var(--surface);
	border-left: 2px solid var(--yellow);
	border-radius: 0 12px 12px 0;
	margin: 2rem 0;
	font-size: 0.98rem;
	color: rgba(255, 243, 214, 0.85);
}

.article-body .note strong {
	display: block;
	font-family: var(--font-mono);
	font-size: 0.78rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--yellow);
	margin-bottom: 0.5rem;
}

.article-status {
	margin-top: 3rem;
	padding: 1.25rem 1.5rem;
	background: linear-gradient(
		135deg,
		rgba(224, 64, 160, 0.12),
		rgba(255, 216, 77, 0.06)
	);
	border: 1px solid var(--border-soft);
	border-radius: 14px;
	display: flex;
	align-items: center;
	gap: 1rem;
	font-size: 0.95rem;
	color: rgba(255, 243, 214, 0.85);
}

.article-status .pulse {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--magenta-bright);
	box-shadow: 0 0 12px var(--magenta-bright);
	flex-shrink: 0;
	animation: pulse 2s ease-in-out infinite;
}

.article-shell .footer {
	margin-top: 5rem;
}

@media (max-width: 860px) {
	.article-shell {
		padding: 1.5rem 1.25rem 4rem;
	}
	.article-back {
		margin-bottom: 2rem;
	}
	.article-header {
		padding: 0.5rem 0 2rem;
		margin-bottom: 2rem;
	}
	.article-body h2 {
		font-size: 1.5rem;
		margin-top: 2.25rem;
	}
}
