:root {
	--bg: #0b0b0d;
	--surface: #141418;
	--line: #232329;
	--text: #e7e7ea;
	--muted: #8b8b94;
	--accent: #6aa9ff;
}

* {
	box-sizing: border-box;
}

html {
	background: var(--bg);
	color: var(--text);
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
}

::selection {
	background: var(--accent);
	color: var(--bg);
}

a {
	color: inherit;
	text-decoration: none;
}

main {
	max-width: 800px;
	margin: 0 auto;
	padding: 120px 24px 64px;
}

h1 {
	margin: 0;
	font-size: 44px;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

h2 {
	margin: 0 0 20px;
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

p {
	margin: 0 0 16px;
	color: #c4c4ca;
}

nav {
	display: flex;
	margin-top: 24px;
	flex-wrap: wrap;
	gap: 8px;
}

nav a {
	padding: 6px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
	transition: border-color 0.15s, color 0.15s;
}

nav a:hover {
	border-color: var(--accent);
	color: var(--accent);
}

section {
	margin-top: 88px;
}

.projects {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line);
}

.projects a {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 24px;
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
	transition: padding 0.15s, color 0.15s;
}

.projects span:first-child {
	font-weight: 500;
	white-space: nowrap;
}

.projects span:last-child {
	color: var(--muted);
	font-size: 15px;
	text-align: right;
}

.projects a:hover {
	padding-left: 8px;
	color: var(--accent);
}

.skills {
	margin-bottom: 4px;
}

.entry {
	margin-bottom: 40px;
}

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

.entry-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 16px;
}

h3 {
	margin: 0;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

h3 a:hover {
	color: var(--accent);
}

.date {
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 13px;
	color: var(--muted);
	white-space: nowrap;
}

.role {
	margin: 2px 0 12px;
	font-size: 15px;
	color: var(--muted);
}

.entry ul {
	margin: 0;
	padding-left: 18px;
}

.entry li {
	margin-bottom: 8px;
	font-size: 15px;
	color: #c4c4ca;
}

.entry li::marker {
	color: var(--muted);
}

strong {
	font-weight: 500;
	color: var(--text);
}

footer {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 120px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 13px;
	color: var(--muted);
}

footer a:hover {
	color: var(--accent);
}

@media (max-width: 560px) {
	main {
		padding-top: 72px;
	}

	h1 {
		font-size: 36px;
	}

	.projects a {
		flex-direction: column;
		gap: 2px;
	}

	.projects span:last-child {
		text-align: left;
	}
}
