:root {
	--ee-bg: #0a0a0a;
	--ee-bg-deep: #141414;
	--ee-ink: #f5f7fa;
	--ee-muted: rgba(255, 255, 255, 0.65);
	--ee-accent: #f89a42;
	--ee-accent-soft: rgba(248, 154, 66, 0.12);
	--ee-surface: rgba(255, 255, 255, 0.06);
	--ee-line: rgba(255, 255, 255, 0.12);
	--ee-font-display: "Open Sans", sans-serif;
	--ee-font-body: "Open Sans", sans-serif;
	--ee-radius: 0;
	--ee-space: clamp(1rem, 2vw, 1.5rem);
	--ee-max: 1120px;
	--ee-narrow: 720px;
	--ee-header-h: 4.5rem;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	/* Native fallback; Lenis takes over when enabled (see .lenis.lenis-smooth). */
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--ee-font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ee-ink);
	background: #0a0a0a;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--ee-accent);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
	transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus-visible {
	color: #fff;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	left: var(--ee-space);
	top: var(--ee-space);
	z-index: 100000;
	background: var(--ee-ink);
	color: #fff;
	padding: 0.75rem 1rem;
}

.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Header / footer styles live in header-footer.css */

.site-main {
	flex: 1;
}

/* Layout */
.content-wrap {
	max-width: var(--ee-max);
	margin: 0 auto;
	padding: clamp(2.5rem, 6vw, 4.5rem) var(--ee-space);
}

.content-wrap--narrow {
	max-width: calc(var(--ee-narrow) + 2 * var(--ee-space));
}

.page-title,
.entry-title,
.section__title,
.comments-title {
	font-family: var(--ee-font-display);
	font-weight: 750;
	letter-spacing: -0.035em;
	line-height: 1.1;
	margin: 0 0 0.75rem;
}

.page-title {
	font-size: clamp(2rem, 5vw, 3.25rem);
}

.page-header {
	margin-bottom: 2.5rem;
}

.archive-description,
.section__lede,
.entry-summary {
	color: var(--ee-muted);
	max-width: 40rem;
}

/* Hero styles live in hero.css */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.85rem 1.35rem;
	border: 1px solid transparent;
	font-family: var(--ee-font-body);
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	/* Hover motion lives in button-hovers.css */
}

.btn--primary {
	color: #fff;
}

.btn--ghost {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.45);
}

/* Sections */
.section {
	padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.section--work {
	border-top: 1px solid var(--ee-line);
}

.section--about {
	background: rgba(14, 17, 22, 0.03);
	border-block: 1px solid var(--ee-line);
}

.section--about__grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

.section__title {
	font-size: clamp(1.85rem, 4vw, 2.75rem);
}

.section__header {
	margin-bottom: 2.25rem;
}

.feature-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.85rem;
}

.feature-list li {
	padding: 0.95rem 0;
	border-bottom: 1px solid var(--ee-line);
	font-weight: 600;
}

.feature-list li:first-child {
	border-top: 1px solid var(--ee-line);
}

/* Posts */
.posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.post-card {
	background: var(--ee-surface);
	border: 1px solid var(--ee-line);
	backdrop-filter: blur(8px);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: transform 0.25s ease, border-color 0.25s ease;
}

.post-card:hover {
	transform: translateY(-4px);
	border-color: rgba(26, 95, 255, 0.35);
}

.post-card .post-thumbnail {
	aspect-ratio: 800 / 560;
	overflow: hidden;
	background: #d5dbe3;
}

.post-card .post-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.post-card:hover .post-thumbnail img {
	transform: scale(1.04);
}

.post-card__body {
	padding: 1.25rem 1.25rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	flex: 1;
}

.post-card .entry-title {
	font-size: 1.35rem;
	margin: 0;
}

.post-card .entry-title a {
	color: var(--ee-ink);
	text-decoration: none;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	color: var(--ee-muted);
	font-size: 0.9rem;
}

.entry-meta a {
	color: inherit;
}

.single-post .entry-title,
.page-article .entry-title {
	font-size: clamp(2rem, 5vw, 3.25rem);
}

.single-post .post-thumbnail,
.page-article .post-thumbnail {
	margin: 1.5rem 0 2rem;
	overflow: hidden;
}

.single-post .post-thumbnail img,
.page-article .post-thumbnail img {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
}

.entry-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--ee-line);
	color: var(--ee-muted);
	font-size: 0.95rem;
}

/* Prose */
.prose > *:first-child {
	margin-top: 0;
}

.prose h2,
.prose h3,
.prose h4 {
	font-family: var(--ee-font-display);
	letter-spacing: -0.03em;
	line-height: 1.2;
}

.prose p,
.prose ul,
.prose ol {
	margin: 0 0 1.15rem;
}

.prose blockquote {
	margin: 1.5rem 0;
	padding: 0.25rem 0 0.25rem 1.25rem;
	border-left: 3px solid var(--ee-accent);
	color: var(--ee-muted);
	font-size: 1.15rem;
}

/* Forms / search */
.search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin: 1.25rem 0;
}

.search-field,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.8rem 0.95rem;
	border: 1px solid var(--ee-line);
	background: rgba(255, 255, 255, 0.8);
	font: inherit;
	color: var(--ee-ink);
}

.search-field {
	flex: 1 1 220px;
}

.comment-form label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
}

.comment-form .comment-form-comment,
.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url {
	margin-bottom: 1rem;
}

.comment-form .form-submit .submit {
	appearance: none;
	border: 0;
	background: var(--ee-accent);
	color: #fff;
	padding: 0.85rem 1.35rem;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

/* Pagination / nav */
.navigation.pagination,
.post-navigation {
	margin-top: 2.5rem;
}

.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.navigation.pagination .page-numbers,
.post-navigation a {
	display: inline-flex;
	padding: 0.55rem 0.9rem;
	border: 1px solid var(--ee-line);
	color: var(--ee-ink);
	text-decoration: none;
	background: var(--ee-surface);
}

.navigation.pagination .page-numbers.current,
.navigation.pagination .page-numbers:hover,
.post-navigation a:hover {
	border-color: var(--ee-accent);
	color: var(--ee-accent);
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.post-navigation .nav-subtitle {
	display: block;
	font-size: 0.8rem;
	color: var(--ee-muted);
	margin-bottom: 0.25rem;
}

/* Comments */
.comments-area {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--ee-line);
}

.comment-list {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

.comment-list .comment {
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--ee-line);
}

/* Footer styles live in header-footer.css */

/* Reveal motion — base lives in animations.css */

@keyframes ee-float {
	from {
		transform: translate3d(0, 0, 0) scale(1);
	}
	to {
		transform: translate3d(24px, -18px, 0) scale(1.06);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.post-card,
	.post-card .post-thumbnail img {
		animation: none !important;
		transition: none !important;
		transform: none !important;
	}
}

/* Responsive */
@media (max-width: 900px) {
	.posts-grid,
	.section--about__grid,
	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	.posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 720px) {
	.posts-grid {
		grid-template-columns: 1fr;
	}
}
