:root {
	--ink: #1a2e24;
	--ink-soft: #3d5648;
	--paper: #f3f0e6;
	--moss: #2f6b4f;
	--moss-deep: #1e4a36;
	--leaf: #6fa87a;
	--amber: #d4a04a;
	--amber-hot: #e8b85a;
	--sky-top: #7eb8c9;
	--sky-mid: #c5d9c0;
	--sky-low: #e8dfc8;
	--soil: #5c4a32;
	--glow: rgba(232, 184, 90, 0.35);
	--font-display: "Fraunces", Georgia, serif;
	--font-body: "Outfit", system-ui, sans-serif;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 1.0625rem;
	line-height: 1.55;
	color: var(--ink);
	background: var(--sky-low);
	overflow-x: hidden;
}

a {
	color: var(--moss-deep);
	text-underline-offset: 0.18em;
	transition: color 0.2s var(--ease);
}

a:hover {
	color: var(--moss);
}

/* —— Atmosphere (full-bleed visual plane) —— */

.atmosphere {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	overflow: hidden;
}

.atmosphere__sky {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 90% 55% at 70% 8%, var(--glow), transparent 55%),
		radial-gradient(ellipse 70% 50% at 15% 20%, rgba(126, 184, 201, 0.55), transparent 50%),
		linear-gradient(
			180deg,
			var(--sky-top) 0%,
			var(--sky-mid) 42%,
			var(--sky-low) 72%,
			#dccfb0 100%
		);
	animation: sky-breathe 18s ease-in-out infinite alternate;
}

.atmosphere__haze {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 120% 40% at 50% 100%, rgba(92, 74, 50, 0.18), transparent 55%),
		radial-gradient(circle at 80% 60%, rgba(111, 168, 122, 0.2), transparent 35%);
	opacity: 0.9;
}

.atmosphere__terrain {
	position: absolute;
	left: -5%;
	right: -5%;
	bottom: 0;
	height: min(42vh, 420px);
	background:
		linear-gradient(180deg, transparent 0%, rgba(47, 107, 79, 0.15) 40%, rgba(30, 74, 54, 0.35) 100%),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%232f6b4f' fill-opacity='0.35' d='M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,218.7C672,235,768,245,864,229.3C960,213,1056,171,1152,165.3C1248,160,1344,192,1392,208L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'/%3E%3Cpath fill='%231e4a36' fill-opacity='0.55' d='M0,256L60,240C120,224,240,192,360,192C480,192,600,224,720,229.3C840,235,960,213,1080,197.3C1200,181,1320,171,1380,165.3L1440,160L1440,320L1380,320C1320,320,1200,320,1080,320C960,320,840,320,720,320C600,320,480,320,360,320C240,320,120,320,60,320L0,320Z'/%3E%3C/svg%3E")
			bottom / 100% 100% no-repeat;
	transform-origin: bottom center;
	animation: terrain-drift 24s var(--ease) infinite alternate;
}

.atmosphere__seeds {
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle, rgba(212, 160, 74, 0.7) 0 1.5px, transparent 2px),
		radial-gradient(circle, rgba(255, 255, 255, 0.45) 0 1px, transparent 2px),
		radial-gradient(circle, rgba(47, 107, 79, 0.5) 0 1.5px, transparent 2px);
	background-size: 180px 220px, 140px 160px, 220px 260px;
	background-position: 10% 20%, 60% 40%, 30% 70%;
	opacity: 0.45;
	animation: seed-drift 40s linear infinite;
	mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 90%);
}

@keyframes sky-breathe {
	from {
		filter: saturate(1) brightness(1);
	}
	to {
		filter: saturate(1.08) brightness(1.04);
	}
}

@keyframes terrain-drift {
	from {
		transform: translateX(-1%) scaleY(1);
	}
	to {
		transform: translateX(1.5%) scaleY(1.03);
	}
}

@keyframes seed-drift {
	from {
		background-position: 10% 20%, 60% 40%, 30% 70%;
	}
	to {
		background-position: 18% 8%, 52% 28%, 38% 58%;
	}
}

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

/* —— Header —— */

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
	max-width: 72rem;
	margin: 0 auto;
}

.wordmark {
	font-family: var(--font-display);
	font-weight: 650;
	font-size: 1.05rem;
	letter-spacing: -0.02em;
	color: var(--ink);
	text-decoration: none;
}

.wordmark:hover {
	color: var(--moss-deep);
}

.nav {
	display: flex;
	align-items: center;
	gap: clamp(0.75rem, 2vw, 1.5rem);
	font-size: 0.9375rem;
	font-weight: 500;
}

.nav a {
	color: var(--ink-soft);
	text-decoration: none;
}

.nav a:hover {
	color: var(--ink);
}

.nav__discord {
	padding: 0.35rem 0.75rem;
	border: 1px solid rgba(26, 46, 36, 0.2);
	border-radius: 999px;
	color: var(--ink) !important;
}

.nav__discord:hover {
	border-color: var(--moss);
	background: rgba(255, 255, 255, 0.35);
}

/* —— Hero —— */

.hero {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: calc(100svh - 4.5rem);
	max-width: 72rem;
	margin: 0 auto;
	padding: 2rem clamp(1.25rem, 4vw, 3rem) clamp(3.5rem, 10vh, 6rem);
}

.hero__eyebrow {
	margin: 0 0 0.75rem;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-soft);
	animation: rise 0.9s var(--ease) both;
}

.hero__brand {
	margin: 0;
	max-width: 10ch;
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-weight: 700;
	font-size: clamp(3.25rem, 10vw, 6.5rem);
	line-height: 0.95;
	letter-spacing: -0.035em;
	color: var(--ink);
	animation: rise 1s var(--ease) 0.08s both;
}

.hero__lede {
	margin: 1.25rem 0 0;
	max-width: 28rem;
	font-size: clamp(1.1rem, 2.2vw, 1.35rem);
	font-weight: 400;
	color: var(--ink-soft);
	animation: rise 1s var(--ease) 0.16s both;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
	animation: rise 1s var(--ease) 0.24s both;
}

/* —— Buttons —— */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.85rem 1.4rem;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 0.35rem;
	border: 1.5px solid transparent;
	transition:
		background 0.2s var(--ease),
		color 0.2s var(--ease),
		border-color 0.2s var(--ease),
		transform 0.2s var(--ease);
}

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

.btn--primary {
	background: var(--moss-deep);
	color: var(--paper);
	border-color: var(--moss-deep);
}

.btn--primary:hover {
	background: var(--moss);
	border-color: var(--moss);
	color: var(--paper);
}

.btn--ghost {
	background: rgba(243, 240, 230, 0.45);
	color: var(--ink);
	border-color: rgba(26, 46, 36, 0.25);
	backdrop-filter: blur(6px);
}

.btn--ghost:hover {
	background: rgba(243, 240, 230, 0.75);
	border-color: var(--ink);
	color: var(--ink);
}

/* —— Sections —— */

.section {
	max-width: 40rem;
	margin: 0 auto;
	padding: clamp(3.5rem, 10vh, 6rem) clamp(1.25rem, 4vw, 3rem);
}

.section h2 {
	margin: 0 0 0.85rem;
	font-family: var(--font-display);
	font-weight: 650;
	font-size: clamp(1.75rem, 3.5vw, 2.25rem);
	letter-spacing: -0.02em;
	color: var(--ink);
}

.section p {
	margin: 0;
	color: var(--ink-soft);
	font-size: 1.0625rem;
}

.section--split {
	display: grid;
	gap: 1.75rem;
	align-items: end;
	max-width: 52rem;
}

@media (min-width: 720px) {
	.section--split {
		grid-template-columns: 1fr auto;
	}
}

/* —— Article / post —— */

.article {
	max-width: 42rem;
	margin: 0 auto;
	padding: clamp(2rem, 6vh, 3.5rem) clamp(1.25rem, 4vw, 3rem)
		clamp(3.5rem, 10vh, 5rem);
}

.article__header {
	margin-bottom: 1.75rem;
	animation: rise 0.9s var(--ease) both;
}

.article__eyebrow {
	margin: 0 0 0.65rem;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.article__title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(2.5rem, 7vw, 4rem);
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: var(--ink);
}

.article__figure {
	margin: 0 0 2rem;
	animation: rise 1s var(--ease) 0.08s both;
}

.article__figure img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
}

.article__body {
	animation: rise 1s var(--ease) 0.16s both;
}

.article__body p {
	margin: 0 0 1.25rem;
	color: var(--ink-soft);
	font-size: 1.125rem;
	line-height: 1.65;
}

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

.article__back {
	margin: 2.5rem 0 0;
	font-size: 0.9375rem;
	font-weight: 500;
	animation: rise 1s var(--ease) 0.2s both;
}

.article__back a {
	color: var(--ink-soft);
	text-decoration: none;
}

.article__back a:hover {
	color: var(--ink);
}

/* —— Footer —— */

.site-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	max-width: 72rem;
	margin: 0 auto;
	padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
	font-size: 0.8125rem;
	color: var(--ink-soft);
}

.site-footer p {
	margin: 0;
}

.site-footer a {
	color: var(--ink-soft);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--ink);
}

/* —— Reduced motion —— */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.atmosphere__sky,
	.atmosphere__terrain,
	.atmosphere__seeds,
	.hero__eyebrow,
	.hero__brand,
	.hero__lede,
	.hero__actions,
	.article__header,
	.article__figure,
	.article__body,
	.article__back {
		animation: none;
	}

	.btn:hover {
		transform: none;
	}
}
