:root {
	--font-display: "Urbanist", system-ui, sans-serif;
	--font-body: "Outfit", system-ui, sans-serif;

	--bg: #000;
	--text: #e0e0e0;
	--text-soft: #cfcfcf;

	--gold: #d9b646;
	--gold-soft: rgba(217, 182, 70, 0.12);
	--line: rgba(217, 182, 70, 0.15);

	--radius: 16px;
	--max: 980px;
}

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

html:focus-within {
	scroll-behavior: smooth;
}

body {
	background-color: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	line-height: 1.65;
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	color: #f5f5f5;
	font-weight: 700;
}

p {
	color: var(--text-soft);
}

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

a:hover {
	color: #f0d97c;
}

/* Skip link */
.skip-link {
	position: absolute;
	left: -999px;
	top: 10px;
	padding: 10px 14px;
	border-radius: 999px;
	background: var(--gold-soft);
	border: 1px solid var(--line);
	color: #fff;
	z-index: 999;
}

.skip-link:focus {
	left: 14px;
}

/* Top divider */
.top-divider {
	height: 64px;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

/* Hero */
.hero-banner {
	padding: 12px 20px 0;
}

.hero-banner img {
	display: block;
	width: min(100%, var(--max));
	margin: 0 auto;
	border-radius: 22px;
	border: 1px solid var(--line);
}

main {
	width: 100%;
}

.wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding: 44px 20px 0;
}

.stack {
	display: grid;
	gap: 18px;
}

.card {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 22px;
	background: rgba(255, 255, 255, 0.02);
}

.meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
}

.pill {
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid rgba(217, 182, 70, 0.28);
	background: rgba(217, 182, 70, 0.08);
	font-size: 0.9rem;
}

.cta-row {
	display: flex;
	gap: 12px;
	margin-top: 18px;
	flex-wrap: wrap;
}

.cta {
	padding: 10px 14px;
	border-radius: 999px;
	background: var(--gold);
	color: #000;
	font-weight: 700;
}

.cta.secondary {
	background: transparent;
	color: var(--gold);
	border: 1px solid rgba(217, 182, 70, 0.35);
	font-weight: 600;
}

/* Projects */
.list {
	display: grid;
	gap: 12px;
	margin-top: 12px;
}

.project {
	border: 1px solid rgba(217, 182, 70, 0.12);
	border-radius: 14px;
	padding: 14px;
	transition:
		transform 0.18s ease,
		border-color 0.18s ease;
}

.project:hover {
	transform: translateY(-2px);
	border-color: rgba(217, 182, 70, 0.28);
}

.project-title {
	display: flex;
	justify-content: space-between;
	margin-bottom: 6px;
	align-items: baseline;
}

.project-title h3 {
	font-size: 1.05rem;
}

.tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 10px;
}

.tag {
	font-size: 0.85rem;
	padding: 5px 9px;
	border-radius: 999px;
	border: 1px solid rgba(217, 182, 70, 0.18);
}

/* Clickable project cards */
.project-link {
	display: block;
	color: inherit;
	text-decoration: none;
	position: relative;
}

.project-link:hover,
.project-link:focus {
	color: inherit;
}

.project-link::after {
	content: "↗";
	position: absolute;
	top: 14px;
	right: 14px;
	opacity: 0;
	font-size: 0.95rem;
	color: var(--gold);
	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
}

.project-link:hover::after,
.project-link:focus-visible::after {
	opacity: 1;
	transform: translateY(-1px);
}

.project-link:focus-visible {
	outline: 2px solid rgba(217, 182, 70, 0.6);
	outline-offset: 3px;
	border-radius: 14px;
}

/* Footer */
.footer-divider {
	height: 72px;
	margin-top: 54px;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
}

footer {
	text-align: center;
	padding: 28px 20px;
	border-top: 1px solid var(--line);
	font-size: 0.95rem;
}

.social-icons {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin: 18px 0;
}

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