/* Single left-aligned column, label gutter on the left like a printed CV. */
:root {
	--bg: #08090c;
	--ink: #e7e5df;
	--ink-2: #b4b3ad;
	--muted: #7d7f86;
	--line: #1d1f25;
	--accent: #e2c27d;
	--sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
	color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
	background: var(--bg);
	color: var(--ink);
	font: 400 16px/1.65 var(--sans);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

#stars {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	pointer-events: none;
}

a {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: #4a4b50;
	text-underline-offset: 3px;
	transition: text-decoration-color 0.15s, color 0.15s;
}
a:hover { text-decoration-color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

/* Header */
.top {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	max-width: 760px;
	margin: 0 auto;
	padding: 18px max(16px, env(safe-area-inset-right, 0px)) 18px max(16px, env(safe-area-inset-left, 0px));
	background: linear-gradient(var(--bg) 60%, transparent);
}
.mark { font-family: var(--mono); font-size: 14px; text-decoration: none; color: var(--ink); }
.top nav { display: flex; gap: 20px; flex-wrap: wrap; }
.top nav a { font-size: 14px; color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

main {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
}

/* Intro */
.intro { padding: 96px 0 72px; border-bottom: 1px solid var(--line); }
.intro h1 {
	font-size: 56px;
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1;
}
.role { margin-top: 14px; font-size: 20px; color: var(--ink-2); }
.summary { margin-top: 24px; max-width: 60ch; color: var(--ink-2); }

.facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin-top: 40px;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.facts div { flex: 1 1 180px; padding: 18px 20px 18px 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 22px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.facts dd { font-size: 13px; color: var(--muted); margin-top: 2px; }

.links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }

/* Sections */
.block {
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: 24px;
	padding: 56px 0;
	border-bottom: 1px solid var(--line);
}
.block h2 {
	font-family: var(--mono);
	font-size: 13px;
	font-weight: 400;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding-top: 3px;
}
.body { min-width: 0; }
.body > p + p { margin-top: 14px; }
.body p { color: var(--ink-2); max-width: 62ch; }
.stack { font-family: var(--mono); font-size: 13px; color: var(--muted) !important; margin-top: 20px !important; }

h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
h3 a { text-decoration: none; }
h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }

/* Experience timeline */
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 10px;
	bottom: 10px;
	width: 1px;
	background: #2a2c33;
}
.job { position: relative; }
.job::before {
	content: "";
	position: absolute;
	left: -26px;
	top: 8px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--bg);
	border: 1px solid #5a5c63;
}
.job:has(.current)::before { background: var(--accent); border-color: var(--accent); }
.job + .job { margin-top: 36px; }
.job header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.when { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.when.current { color: var(--accent); }
.pos { font-size: 14px; color: var(--muted) !important; margin-top: 2px; }
.job ul { margin-top: 10px; padding-left: 18px; color: var(--ink-2); }
.job li + li { margin-top: 4px; }
.job li::marker { color: var(--muted); }

/* Projects */
.note { font-size: 14px; color: var(--muted) !important; border-left: 1px solid #34363d; padding-left: 12px; margin-bottom: 28px; }
.group + .group { margin-top: 32px; }
.group-name { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.proj { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
.proj:last-child { border-bottom: 0; }
.proj-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.proj-head a { font-weight: 500; }
.proj-kind { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.proj p { font-size: 15px; margin-top: 4px; }

/* Contact */
.discord { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 14px !important; }
.handle { font-family: var(--mono); font-size: 22px; color: var(--ink); }
#copyDiscord {
	font: 500 13px var(--sans);
	color: var(--ink);
	background: transparent;
	border: 1px solid #34363d;
	border-radius: 3px;
	padding: 6px 12px;
	cursor: pointer;
	transition: border-color 0.15s;
}
#copyDiscord:hover { border-color: var(--accent); }

.foot {
	max-width: 760px;
	margin: 0 auto;
	padding: 28px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px));
	font-family: var(--mono);
	font-size: 12px;
	color: var(--muted);
}

@media (max-width: 640px) {
	.intro { padding: 64px 0 48px; }
	.intro h1 { font-size: 44px; }
	.block { grid-template-columns: 1fr; gap: 14px; padding: 44px 0; }
	.pair { grid-template-columns: 1fr; }
	.facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
	.facts div { flex-basis: 100%; padding: 14px 0; }
	.top nav { gap: 14px; }
	.top nav a { font-size: 13px; }
}
@media (max-width: 380px) {
	.mark { display: none; }
}
