:root {
	--bg: #0d1117;
	--surface: #161b22;
	--fg: #e6edf3;
	--accent: #F1502F;
	--accent-hover: #f47358;
	--muted: #8b949e;
	--border: #21262d;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
body {
	background: var(--bg);
	color: var(--fg);
	font-family: 'IBM Plex Sans', system-ui, sans-serif;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
main {
	flex: 1 0 auto;
	width: 100%;
	max-width: 48rem;
	margin: 0 auto;
	padding: 3rem 2rem;
}

/* ---------- home ---------- */
header.home { margin-bottom: 4rem; }
.hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: 2rem;
}
.avatar {
	width: 8rem;
	height: 8rem;
	border-radius: 50%;
	border: 4px solid var(--accent);
	box-shadow: 0 10px 30px -10px rgba(241, 80, 47, 0.35);
	margin-bottom: 1.5rem;
	background: var(--surface);
	object-fit: cover;
	display: block;
}
h1.name {
	font-family: 'Newsreader', serif;
	font-weight: 700;
	font-size: 3rem;
	margin: 0 0 0.5rem;
}
.tagline {
	font-size: 1.25rem;
	color: var(--muted);
	margin: 0 0 0.25rem;
}
.location {
	font-size: 0.9375rem;
	color: var(--muted);
	margin: 0;
}
nav.links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	max-width: 28rem;
	margin: 0 auto;
}
nav.links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.625rem 1rem;
	border-radius: 0.5rem;
	background: var(--surface);
	color: var(--fg);
	border: 1px solid var(--border);
	text-decoration: none;
	font-size: 0.9rem;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
nav.links a:hover {
	background: var(--accent);
	color: var(--bg);
	border-color: var(--accent);
}
nav.links svg { width: 1.125rem; height: 1.125rem; }
hr.divider {
	border: 0;
	border-top: 1px solid var(--border);
	margin: 0 0 3rem;
}

.no-margin { margin: 0 !important; }

.sections { display: flex; flex-direction: column; gap: 2rem; }
article.section-card h2 {
	font-family: 'Newsreader', serif;
	font-weight: 500;
	font-size: 1.875rem;
	margin: 0 0 0.5rem;
}
article.section-card h2 a {
	color: var(--fg);
	text-decoration: none;
	transition: color 0.15s ease;
}
article.section-card h2 a:hover { color: var(--accent); }
article.section-card p {
	font-size: 1.0625rem;
	color: var(--muted);
	margin: 0;
}

/* ---------- hero bio ---------- */
.hero-bio {
	margin-bottom: 3rem;
}
.hero-bio p {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--muted);
	margin: 0 0 1rem;
}
.hero-bio p:last-child { margin-bottom: 0; }
.hero-bio p:first-child {
	font-size: 1.125rem;
	color: var(--fg);
}

/* ---------- sub-pages ---------- */
a.back {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--accent);
	text-decoration: none;
	transition: opacity 0.15s ease;
	margin-bottom: 2rem;
}
a.back:hover { opacity: 0.8; }
a.back svg { width: 1.125rem; height: 1.125rem; }
header.page { margin-bottom: 3rem; }
h1.page-title {
	font-family: 'Newsreader', serif;
	font-weight: 700;
	font-size: clamp(2rem, 5vw, 3rem);
	margin: 0 0 1rem;
	color: var(--fg);
}
.meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--muted);
	font-size: 0.875rem;
}
.meta svg { width: 1rem; height: 1rem; }
.prose p {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--fg);
	margin: 0 0 1.25rem;
}
.prose h2 {
	font-family: 'Newsreader', serif;
	font-weight: 500;
	font-size: 1.5rem;
	color: var(--fg);
	margin: 2rem 0 0.75rem;
}
.prose h3 {
	font-family: 'IBM Plex Sans', serif;
	font-weight: 500;
	font-size: 1.125rem;
	color: var(--fg);
	margin: 1.5rem 0 0.5rem;
}
.prose ul {
	list-style: disc outside;
	margin: 0 0 1.25rem;
	padding-left: 1.5rem;
}
.prose li {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--fg);
	margin-bottom: 0.5rem;
}
.prose a {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	transition: color 0.15s ease, text-decoration-thickness 0.15s ease;
}
.prose a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
p.empty { color: var(--muted); font-style: italic; }
.page-footer {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
}
.page-footer p {
	font-size: 0.875rem;
	font-style: italic;
	color: var(--muted);
	margin: 0;
}

/* ---------- experience entries ---------- */
.experience-list {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}
.experience-entry {
	border-left: 2px solid var(--border);
	padding-left: 1.5rem;
}
.experience-entry:hover { border-left-color: var(--accent); }
.experience-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 0.75rem;
}
.experience-header h2 {
	font-family: 'Newsreader', serif;
	font-weight: 500;
	font-size: 1.375rem;
	margin: 0;
	color: var(--fg);
}
.experience-header .company {
	font-size: 1rem;
	color: var(--accent);
	margin: 0.125rem 0 0;
}
.experience-date {
	font-size: 0.875rem;
	color: var(--muted);
	white-space: nowrap;
	padding-top: 0.25rem;
}
.experience-entry ul {
	list-style: disc outside;
	margin: 0;
	padding-left: 1.25rem;
}
.experience-entry li {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--muted);
	margin-bottom: 0.5rem;
}
.experience-entry li:last-child { margin-bottom: 0; }

/* ---------- skills grid ---------- */
.skills-grid {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-top: 1rem;
}
.skill-group h3 {
	font-family: 'IBM Plex Sans', sans-serif;
	font-weight: 500;
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--accent);
	margin: 0 0 0.75rem;
}
.skill-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.skill-tag {
	padding: 0.3125rem 0.75rem;
	border-radius: 9999px;
	background: var(--surface);
	border: 1px solid var(--border);
	font-size: 0.875rem;
	color: var(--fg);
}

/* ---------- project cards ---------- */
.project-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.project-card {
	padding: 1.25rem 1.5rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 0.75rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.project-card--link {
	display: flex;
	align-items: center;
	gap: 1rem;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}
.project-card--link:hover {
	border-color: var(--accent);
	box-shadow: 0 0 0 1px var(--accent) inset;
}
.project-card--link:hover h2 { color: var(--accent); }
.project-card--link:hover .project-card-arrow { color: var(--accent); }
.project-card-body { flex: 1; min-width: 0; }
.project-card-arrow {
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	color: var(--border);
	transition: color 0.15s ease, transform 0.15s ease;
}
.project-card--link:hover .project-card-arrow { transform: translateX(3px); }
.project-card h2 {
	font-family: 'Newsreader', serif;
	font-weight: 500;
	font-size: 1.375rem;
	margin: 0 0 0.5rem;
	color: var(--fg);
	transition: color 0.15s ease;
}
.project-card p {
	font-size: 1rem;
	color: var(--muted);
	margin: 0 0 0.75rem;
	line-height: 1.6;
}
.project-card p:last-child { margin-bottom: 0; }
.project-tech {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}
.tech-tag {
	padding: 0.1875rem 0.625rem;
	border-radius: 9999px;
	background: var(--bg);
	border: 1px solid var(--border);
	font-size: 0.8125rem;
	color: var(--muted);
}

/* ---------- project detail & photo placeholders ---------- */
.project-summary {
	font-size: 1.0625rem;
	color: var(--muted);
	line-height: 1.7;
	margin: 0;
}
.project-subsection {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
}
.project-subsection h3 {
	font-family: 'Newsreader', serif;
	font-weight: 500;
	font-size: 1.25rem;
	color: var(--fg);
	margin: 0 0 0.625rem;
}
.project-subsection > p {
	font-size: 1rem;
	color: var(--muted);
	line-height: 1.65;
	margin: 0 0 1.25rem;
}
.photo-grid {
	display: grid;
	gap: 0.75rem;
}
.photo-grid--1 { grid-template-columns: 1fr; }
.photo-grid--2 { grid-template-columns: repeat(2, 1fr); }
.photo-placeholder {
	aspect-ratio: 16 / 9;
	background: var(--bg);
	border: 1px dashed var(--border);
	border-radius: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}
.photo-placeholder span {
	font-size: 0.8125rem;
	color: var(--muted);
	text-align: center;
	line-height: 1.4;
}
/* swap photo placeholder for an actual img when added */
.photo-placeholder img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0.375rem;
}
img.project-photo {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 0.5rem;
	border: 1px solid var(--border);
	display: block;
}
@media (max-width: 640px) {
	.photo-grid--2 { grid-template-columns: 1fr; }
}

/* ---------- site footer ---------- */
footer.site {
	padding: 2rem;
	border-top: 1px solid var(--border);
}
footer.site .inner {
	max-width: 48rem;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	font-size: 0.875rem;
	color: var(--muted);
}
footer.site nav { display: flex; gap: 1.5rem; }
footer.site a {
	color: var(--muted);
	text-decoration: none;
	transition: color 0.15s ease;
}
footer.site a:hover { color: var(--accent); }

@media (min-width: 768px) {
	main { padding: 4rem 2rem; }
	h1.name { font-size: 3.75rem; }
	.avatar { width: 9rem; height: 9rem; }
	nav.links { display: flex; justify-content: center; max-width: none; }
	nav.links a { width: auto; }
	article.section-card h2 { font-size: 2.25rem; }
}
@media (max-width: 640px) {
	footer.site .inner { flex-direction: column; text-align: center; }
	.experience-header { flex-direction: column; gap: 0.25rem; }
}
