:root {
	--bg: #0f1115;
	--bg-soft: #14171d;
	--surface: #171b22;
	--surface-2: #1c212a;
	--text: #e7e9ee;
	--text-dim: #9aa1b0;
	--text-faint: #5c6472;
	--border: #262b36;
	--green: #5fb85c;
	--green-ink: #0d1410;
	--blue: #6ea8fe;
	--amber: #f2b84b;

	--font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
	--font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

	--max: 880px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

/* faint grain so the flat dark bg doesn't feel like a slab */
.noise {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	opacity: 0.035;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
	color: inherit;
}

::selection {
	background: var(--green);
	color: var(--green-ink);
}

/* ---------- nav ---------- */
.nav {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px clamp(20px, 5vw, 64px);
	background: rgba(15, 17, 21, 0.75);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}

.brand {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.05rem;
}

.brand-mark {
	color: var(--green);
	font-family: var(--font-mono);
}

.nav-links {
	display: flex;
	gap: 28px;
	font-size: 0.92rem;
	color: var(--text-dim);
}

.nav-links a {
	text-decoration: none;
	transition: color .15s;
}

.nav-links a:hover {
	color: var(--text);
}

.nav-cta {
	font-size: .88rem;
	font-family: var(--font-mono);
	padding: 7px 16px;
	border: 1px solid var(--border);
	border-radius: 8px;
	text-decoration: none;
	color: var(--text);
	transition: border-color .15s, color .15s;
}

.nav-cta:hover {
	border-color: var(--green);
	color: var(--green);
}

/* ---------- shared ---------- */
main {
	position: relative;
	z-index: 1;
}

.section,
.hero {
	max-width: var(--max);
	margin: 0 auto;
	padding: 96px clamp(20px, 5vw, 0px);
}

.eyebrow {
	font-family: var(--font-mono);
	font-size: .85rem;
	color: var(--green);
	letter-spacing: .02em;
	margin: 0 0 12px;
	display: flex;
	align-items: center;
}

.cursor {
	display: inline-block;
	margin-left: 3px;
	animation: blink 1s steps(1) infinite;
}

@keyframes blink {

	0%,
	49% {
		opacity: 1;
	}

	50%,
	100% {
		opacity: 0;
	}
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	margin: 0;
}

/* ---------- hero ---------- */
.hero {
	padding-top: 120px;
	padding-bottom: 80px;
}

.hero h1 {
	font-size: clamp(2.75rem, 7vw, 5rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.02;
	margin-bottom: 20px;
}

.hero-sub {
	max-width: 56ch;
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	color: var(--text-dim);
	margin: 0 0 28px;
}

.pill-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 32px;
}

.pill {
	font-family: var(--font-mono);
	font-size: .8rem;
	color: var(--text-dim);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 5px 14px;
}

.pill-accent {
	color: var(--green);
	border-color: rgba(95, 184, 92, 0.35);
}

.cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.btn {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: .95rem;
	padding: 12px 22px;
	border-radius: 9px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	transition: transform .15s, border-color .15s, opacity .15s;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn-primary {
	background: var(--green);
	color: var(--green-ink);
}

.btn-primary:hover {
	opacity: .92;
}

.btn-ghost {
	border: 1px solid var(--border);
	color: var(--text);
}

.btn-ghost:hover {
	border-color: var(--green);
	color: var(--green);
}

/* ---------- about ---------- */
.section h2 {
	font-size: clamp(1.6rem, 3.5vw, 2.1rem);
	font-weight: 600;
	margin-bottom: 18px;
}

.about-body {
	max-width: 68ch;
	color: var(--text-dim);
	font-size: 1.02rem;
}

.about-body a {
	color: var(--blue);
	text-decoration: underline;
	text-decoration-color: var(--border);
}

.about-body a:hover {
	text-decoration-color: var(--blue);
}

.skill-pills {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin: 22px 0 0;
	padding: 0;
}

.skill-pills li {
	font-family: var(--font-mono);
	font-size: .82rem;
	color: var(--text-dim);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 6px 13px;
	transition: border-color .15s, color .15s;
}

.skill-pills li:hover {
	border-color: var(--green);
	color: var(--text);
}

/* ---------- projects ---------- */
.project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
	margin-top: 8px;
}

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 22px 22px 18px;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

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

.card h3 {
	font-size: 1.1rem;
	font-weight: 600;
}

.card-stat {
	font-family: var(--font-mono);
	font-size: .78rem;
	color: var(--text-faint);
	white-space: nowrap;
}

.card p.blurb {
	color: var(--text-dim);
	font-size: .93rem;
	margin: 0 0 14px;
	flex: 1;
}

.tech-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 16px;
}

.tech-row span {
	font-family: var(--font-mono);
	font-size: .74rem;
	color: var(--text-dim);
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 3px 9px;
	transition: border-color .15s, color .15s;
}

.tech-row span:hover {
	border-color: var(--green);
	color: var(--text);
}

.card-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: .85rem;
	border-top: 1px solid var(--border);
	padding-top: 14px;
}

.card-actions a,
.readme-toggle {
	font-family: var(--font-mono);
	color: var(--text-dim);
	text-decoration: none;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	font-size: .85rem;
	transition: color .15s;
}

.card-actions a:hover,
.readme-toggle:hover {
	color: var(--green);
}

.readme-panel {
	display: none;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
	font-size: .88rem;
	color: var(--text-dim);
}

.readme-panel.open {
	display: block;
}

.readme-panel .status {
	font-family: var(--font-mono);
	color: var(--text-faint);
	font-size: .82rem;
}

.readme-panel h1,
.readme-panel h2,
.readme-panel h3 {
	font-family: var(--font-body);
	color: var(--text);
	font-size: 1em;
	margin: 14px 0 6px;
}

.readme-panel h1:first-child,
.readme-panel h2:first-child {
	margin-top: 0;
}

.readme-panel p {
	margin: 6px 0;
}

.readme-panel a {
	color: var(--blue);
	text-decoration: underline;
}

.readme-panel code {
	background: var(--bg-soft);
	color: var(--green);
	padding: 1px 5px;
	border-radius: 3px;
	font-family: var(--font-mono);
	font-size: .88em;
}

.readme-panel pre {
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 10px 12px;
	overflow-x: auto;
}

.readme-panel pre code {
	background: none;
	padding: 0;
	color: var(--text);
}

.readme-panel img {
	max-width: 100%;
	border-radius: 8px;
	border: 1px solid var(--border);
	display: block;
	margin: 8px 0;
}

.readme-panel ul,
.readme-panel ol {
	padding-left: 20px;
}

/* ---------- experience ---------- */
.timeline {
	position: relative;
	padding-left: 24px;
}

.timeline::before {
	content: "";
	position: absolute;
	left: 5px;
	top: 6px;
	bottom: 6px;
	width: 1px;
	background: var(--border);
}

.timeline-item {
	position: relative;
}

.timeline-dot {
	position: absolute;
	left: -24px;
	top: 6px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--green);
	box-shadow: 0 0 0 4px rgba(95, 184, 92, 0.15);
}

.timeline-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 2px;
}

.timeline-head h3 {
	font-size: 1.1rem;
	font-weight: 600;
}

.timeline-date {
	font-family: var(--font-mono);
	font-size: .8rem;
	color: var(--text-faint);
}

.timeline-role {
	color: var(--green);
	font-size: .9rem;
	margin: 0 0 8px;
}

.timeline-content p:last-child {
	color: var(--text-dim);
	max-width: 62ch;
}

/* ---------- footer ---------- */
.footer {
	max-width: var(--max);
	margin: 40px auto 0;
	padding: 40px clamp(20px, 5vw, 0px) 80px;
	border-top: 1px solid var(--border);
	text-align: center;
}

.footer-links {
	display: flex;
	justify-content: center;
	gap: 24px;
	margin-bottom: 14px;
}

.footer-links a {
	text-decoration: none;
	color: var(--text-dim);
	font-size: .92rem;
	transition: color .15s;
}

.footer-links a:hover {
	color: var(--green);
}

.footer-easter-egg {
	font-size: .82rem;
	color: var(--text-dim);
}

.footer-easter-egg code {
	font-family: var(--font-mono);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 5px;
	padding: 1px 6px;
	color: var(--text-dim);
}

/* ---------- scroll reveal ---------- */
.reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .5s ease, transform .5s ease;
}

.reveal.in-view {
	opacity: 1;
	transform: translateY(0);
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
	.nav-links {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cursor {
		animation: none;
		opacity: 1;
	}

	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	html {
		scroll-behavior: auto;
	}
}

/* ---------- now: gh-vs-gtr highlight ---------- */
.now-highlight {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 24px 26px;
	margin: 0 0 28px;
}

.now-highlight-tag {
	font-family: var(--font-mono);
	font-size: .95rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--green);
	margin: 0 0 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.now-highlight-tag::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--green);
	box-shadow: 0 0 0 4px rgba(95, 184, 92, 0.18);
}

.now-highlight-copy {
	color: var(--text-dim);
	font-size: .96rem;
	margin: 0 0 18px;
}

.now-highlight-copy code,
.now-lead code {
	font-family: var(--font-mono);
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 1px 6px;
	font-size: .85em;
	color: var(--green);
}

.now-step {
	margin-bottom: 14px;
}

.now-step:last-child {
	margin-bottom: 0;
}

.now-step-label {
	display: block;
	font-family: var(--font-mono);
	font-size: .92rem;
	font-weight: 500;
	color: var(--text);
	margin-bottom: 6px;
}

.now-step pre {
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 10px 14px;
	margin: 0;
	overflow-x: auto;
}

.now-step pre code {
	font-family: var(--font-mono);
	font-size: .85rem;
	color: var(--text);
	background: none;
	border: none;
	padding: 0;
	white-space: pre;
}

.now-step-gtr {
	background: rgba(95, 184, 92, 0.08);
	border: 1px solid rgba(95, 184, 92, 0.35);
	border-radius: 10px;
	padding: 12px 16px;
	margin-top: 18px;
}

.now-step-gtr .now-step-label {
	color: var(--green);
}

.now-step-result {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--text);
}

.now-step-result code {
	font-family: var(--font-mono);
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 1px 7px;
	color: var(--green);
}

.now-step-note {
	margin: 0;
	font-size: .92rem;
	color: var(--text-dim);
}

/* ---------- now: lead text + card + pills ---------- */
.now-lead {
	max-width: 68ch;
	color: var(--text-dim);
	font-size: 1.02rem;
	margin: 0 0 28px;
}

#now-card {
	max-width: 480px;
	margin-bottom: 32px;
}

.now-thinking p {
	color: var(--text-dim);
	font-size: .95rem;
	margin: 0 0 10px;
}
