:root {
	--black: #090805;
	--black-warm: #12100b;
	--surface: #191710;
	--surface-2: #221f16;
	--surface-3: #302a1d;
	--border: #3a3325;
	--border-light: #514735;
	--lime: #dff468;
	--lime-dim: #b9c85e;
	--lime-glow: rgba(223, 244, 104, 0.1);
	--white: #f7f0df;
	--white-dim: #d8cfbc;
	--gray: #b6ad99;
	--gray-dark: #807665;
	--bronze: #c59b5d;
	--warm-1: #f5f0e0;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}

*:focus-visible {
	outline: 2px solid var(--lime);
	outline-offset: 4px;
}

body {
	font-family: "DM Sans", sans-serif;
	background: linear-gradient(135deg, #100e09 0%, var(--black) 58%, #110e08 100%);
	color: var(--white);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

body.menu-open {
	overflow: hidden;
}

body::after {
	content: "";
	position: fixed;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
	pointer-events: none;
	z-index: 9999;
}

::-webkit-scrollbar {
	width: 4px;
}
::-webkit-scrollbar-track {
	background: var(--black);
}
::-webkit-scrollbar-thumb {
	background: var(--lime-dim);
	border-radius: 2px;
}

/* ============ NAV ============ */
nav {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 500;
	padding: 1rem 3rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: rgba(10, 10, 10, 0.85);
	backdrop-filter: blur(30px) saturate(1.2);
	border-bottom: 1px solid rgba(42, 42, 39, 0.4);
	transition: padding 0.3s ease;
}

nav.shrink {
	padding: 0.6rem 3rem;
}

.logo {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
}

.logo-mark {
	width: 36px;
	height: 36px;
	background: var(--lime);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
}

.logo:hover .logo-mark {
	transform: rotate(-6deg) scale(1.05);
}

.logo-mark svg {
	width: 20px;
	height: 20px;
}

.logo-text {
	font-family: "Syne", sans-serif;
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--white);
	letter-spacing: -0.5px;
}

.nav-center {
	display: flex;
	gap: 0.4rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 50px;
	padding: 0.3rem;
}

.nav-center a {
	color: var(--gray);
	text-decoration: none;
	font-size: 0.82rem;
	font-weight: 500;
	padding: 0.45rem 1.1rem;
	border-radius: 50px;
	transition: all 0.3s ease;
}

.nav-center a:hover,
.nav-center a:focus-visible,
.nav-center a.active {
	color: var(--white);
	background: var(--surface-2);
}

.nav-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.55rem 1.3rem;
	background: var(--lime);
	color: var(--black);
	text-decoration: none;
	font-size: 0.82rem;
	font-weight: 600;
	border-radius: 50px;
	transition: all 0.3s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
	background: var(--white);
	transform: translateY(-1px);
	box-shadow: 0 8px 24px var(--lime-glow);
}

.hamburger {
	display: none;
	width: 28px;
	height: 20px;
	flex-direction: column;
	justify-content: space-between;
	background: transparent;
	border: none;
	padding: 0;
	cursor: pointer;
	z-index: 501;
}

.hamburger span {
	height: 2px;
	background: var(--white);
	border-radius: 2px;
}

/* ============ HEADER ============ */
.blog-hero {
	padding: 8rem 2rem 4rem;
	text-align: center;
	max-width: 700px;
	margin: 0 auto;
}

.s-label {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--bronze);
	text-transform: uppercase;
	letter-spacing: 1.5px;
	margin-bottom: 1rem;
}

.s-label-line {
	width: 24px;
	height: 1px;
	background: var(--bronze);
}

.s-title {
	font-family: "Syne", sans-serif;
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 800;
	letter-spacing: -1.5px;
	margin-bottom: 1rem;
	line-height: 1.1;
}

.s-sub {
	font-size: 1.05rem;
	color: var(--gray);
	line-height: 1.6;
}

/* ============ BLOG GRID ============ */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	max-width: 1200px;
	margin: 2rem auto 4rem;
	padding: 0 2rem;
}

.blog-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
	transition:
		transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
		border-color 0.3s,
		box-shadow 0.3s;
	position: relative;
}

.blog-card:hover,
.blog-card:focus-within {
	transform: translateY(-4px);
	border-color: var(--border-light);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.blog-card::after {
	content: "";
	position: absolute;
	top: 0;
	left: 24px;
	right: 24px;
	height: 2px;
	background: var(--bronze);
	opacity: 0.45;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.blog-card-link {
	display: block;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.blog-card-link:focus-visible {
	outline-offset: -4px;
	border-radius: 14px;
}

.blog-card:hover::after,
.blog-card:focus-within::after {
	opacity: 1;
	background: var(--lime);
}

.blog-card-img {
	height: 140px;
	background: var(--surface-2);
	position: relative;
}

.blog-card-img-bg {
	position: absolute;
	inset: 0;
}

.blog-img-1 .blog-card-img-bg {
	background: linear-gradient(135deg, #282219, #17140f);
}

.blog-img-2 .blog-card-img-bg {
	background: linear-gradient(135deg, #242019, #12110d);
}

.blog-img-3 .blog-card-img-bg {
	background: linear-gradient(135deg, #2b2116, #17120c);
}

.blog-card-img-icon {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.blog-card-img-icon svg {
	width: 40px;
	height: 40px;
	stroke: var(--bronze);
	fill: none;
	stroke-width: 1;
	opacity: 0.3;
}

.blog-card-body {
	padding: 1.4rem 1.5rem;
}

.blog-card-meta {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.7rem;
}

.blog-card-tag {
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.65rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--bronze);
	padding: 0.2rem 0.5rem;
	background: rgba(197, 155, 93, 0.07);
	border: 1px solid rgba(197, 155, 93, 0.18);
	border-radius: 4px;
}

.blog-card-date {
	font-size: 0.72rem;
	color: var(--gray);
}

.blog-card-body h3 {
	font-family: "Syne", sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.3px;
	margin-bottom: 0.5rem;
	line-height: 1.3;
}

.blog-card-body h3 {
	color: var(--white);
	transition: color 0.3s ease;
}

.blog-card-link:hover h3,
.blog-card-link:focus-visible h3 {
	color: var(--lime);
}

.blog-card-body p {
	font-size: 0.85rem;
	color: var(--gray);
	line-height: 1.55;
}

/* ============ FOOTER ============ */
footer {
	border-top: 1px solid var(--border);
	padding: 2.5rem 2rem;
	margin-top: 4rem;
}

.footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.footer-copy {
	font-size: 0.8rem;
	color: var(--gray);
}

.footer-links {
	display: flex;
	gap: 1.8rem;
}

.footer-links a {
	color: var(--gray);
	text-decoration: none;
	font-size: 0.82rem;
	transition: color 0.2s;
}

.footer-links a:hover,
.footer-links a:focus-visible {
	color: var(--white);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
	nav {
		padding: 0.8rem 1.5rem;
	}
	nav.shrink {
		padding: 0.5rem 1.5rem;
	}
	.nav-center {
		display: none;
	}
	.nav-cta {
		display: none;
	}
	.hamburger {
		display: flex;
	}

	nav.menu-open {
		inset: 0;
		height: 100dvh;
		align-items: flex-start;
		background: rgba(10, 10, 10, 0.97);
	}

	.nav-center.active {
		display: flex;
		flex-direction: column;
		position: absolute;
		inset: 0;
		width: 100%;
		min-height: 100dvh;
		background: rgba(10, 10, 10, 0.97);
		backdrop-filter: blur(20px);
		justify-content: center;
		align-items: center;
		gap: 0.5rem;
		z-index: 500;
		border-radius: 0;
		border: none;
		padding: 5rem 1rem 2rem;
	}

	.nav-center.active a {
		font-size: 1.2rem;
		padding: 0.8rem 2rem;
	}

	.blog-grid {
		grid-template-columns: 1fr;
		padding: 0 1.5rem;
	}

	.blog-hero {
		padding: 6rem 1.5rem 2rem;
	}

	.footer-inner {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}
	.footer-links {
		justify-content: center;
		flex-wrap: wrap;
		gap: 0.9rem 1.2rem;
	}
}

@media (max-width: 600px) {
	nav {
		padding: 0.75rem 1rem;
	}
	nav.shrink {
		padding: 0.5rem 1rem;
	}
	.blog-hero {
		padding: 6rem 1rem 2rem;
	}
	.s-title {
		font-size: clamp(1.8rem, 9.5vw, 2.35rem);
		overflow-wrap: normal;
	}
	.s-title-last-word {
		white-space: nowrap;
	}
	.s-sub {
		font-size: 0.92rem;
	}
	.blog-grid {
		padding: 0 1rem 3rem;
	}
	.blog-card-body {
		padding: 1.2rem;
	}
	.blog-card-img {
		height: 150px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}

	.logo:hover .logo-mark,
	.blog-card:hover,
	.blog-card:focus-within,
	.nav-cta:hover,
	.nav-cta:focus-visible {
		transform: none;
	}
}
