:root {
	--bg: #0D0F12;
	--bg-raised: #12151A;
	--text: #E8E6E1;
	--text-dim: #8A8680;
	--text-faint: #55534E;
	--accent: #5B7A6C;
	--accent-bright: #7FA491;
	--highlight: #C4551F;
	--line: #23262C;
	--mono: 'JetBrains Mono', monospace;
	--sans: 'IBM Plex Sans', sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--accent-bright);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--accent-bright);
	outline-offset: 3px;
}

.wrap {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- HEADER ---------- */
header {
	padding: 96px 0 64px;
	border-bottom: 1px solid var(--line);
}

.eyebrow {
	font-family: var(--mono);
	font-size: 13px;
	color: var(--accent);
	letter-spacing: 0.06em;
	margin-bottom: 20px;
}

h1 {
	font-family: var(--mono);
	font-weight: 600;
	font-size: clamp(28px, 5vw, 38px);
	letter-spacing: -0.01em;
	color: var(--text);
	margin-bottom: 14px;
}

.tagline {
	font-size: 18px;
	color: var(--text-dim);
	max-width: 52ch;
	margin-bottom: 28px;
}

.tagline .hl {
	color: var(--text);
	border-bottom: 1px solid var(--highlight);
}

.header-links {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	font-family: var(--mono);
	font-size: 14px;
}

.header-links a {
	color: var(--text-dim);
}

.header-links a:hover {
	color: var(--accent-bright);
}

/* ---------- SECTION LABELS ---------- */
section {
	padding: 64px 0;
	border-bottom: 1px solid var(--line);
}

section:last-of-type {
	border-bottom: none;
}

.section-label {
	font-family: var(--mono);
	font-size: 13px;
	color: var(--text-faint);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 36px;
}

/* ---------- LOG (experience) ---------- */
.log {
	position: relative;
}

.log-line {
	position: absolute;
	left: 5px;
	top: 8px;
	bottom: 8px;
	width: 1px;
	background: var(--line);
}

.commit {
	position: relative;
	padding-left: 28px;
	margin-bottom: 40px;
}

.commit:last-child {
	margin-bottom: 0;
}

.commit::before {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--bg);
	border: 2px solid var(--accent);
}

.commit.current::before {
	border-color: var(--accent-bright);
	background: var(--accent-bright);
}

.commit-meta {
	font-family: var(--mono);
	font-size: 13px;
	color: var(--text-dim);
	margin-bottom: 6px;
}

.commit-meta .role {
	color: var(--text);
	font-weight: 500;
}

.commit-meta .dates {
	display: block;
	color: var(--text-faint);
	font-size: 12px;
	margin-top: 3px;
}

.commit-body {
	font-size: 15px;
	color: var(--text-dim);
}

.commit-body ul {
	list-style: none;
	margin-top: 8px;
}

.commit-body li {
	position: relative;
	padding-left: 16px;
	margin-bottom: 6px;
}

.commit-body li::before {
	content: "-";
	position: absolute;
	left: 0;
	color: var(--text-faint);
}

.commit-body li .hl {
	color: var(--text);
}

.commit-body li .hl-accent {
	color: var(--highlight);
}

/* ---------- PROJECTS ---------- */
.projects {
	display: flex;
	flex-direction: column;
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}

.project {
	background: var(--bg);
	padding: 24px;
}

.project-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	margin-bottom: 8px;
	flex-wrap: wrap;
}

.project-name {
	font-family: var(--mono);
	font-size: 15px;
	font-weight: 500;
	color: var(--text);
}

.project-links {
	font-family: var(--mono);
	font-size: 13px;
	display: flex;
	gap: 12px;
}

.project-why {
	font-size: 15px;
	color: var(--text-dim);
	margin-bottom: 12px;
}

.stack {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.stack span {
	font-family: var(--mono);
	font-size: 12px;
	color: var(--accent-bright);
	background: rgba(91, 122, 108, 0.12);
	padding: 3px 8px;
	border-radius: 3px;
}

/* ---------- SKILLS ---------- */
.skills-grid {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 12px 20px;
	font-size: 14px;
}

.skills-grid dt {
	font-family: var(--mono);
	color: var(--text-faint);
}

.skills-grid dd {
	color: var(--text-dim);
}

section:last-of-type {
	padding-bottom: 96px;
}

@media (max-width: 560px) {
	header {
		padding: 64px 0 48px;
	}

	section {
		padding: 48px 0;
	}

	.skills-grid {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.skills-grid dt {
		margin-top: 8px;
	}
}

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