@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
	--bg: #f4efe8;
	--bg-soft: #efe4d6;
	--card: rgba(255, 255, 255, 0.72);
	--text: #191512;
	--muted: #63584f;
	--line: rgba(25, 21, 18, 0.1);
	--accent: #c65f3f;
	--accent-2: #1f6f78;
	--shadow: 0 24px 60px rgba(54, 37, 23, 0.12);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: "Manrope", sans-serif;
	color: var(--text);
	background:
		radial-gradient(circle at top left, rgba(198, 95, 63, 0.14), transparent 34%),
		radial-gradient(circle at top right, rgba(31, 111, 120, 0.16), transparent 28%),
		linear-gradient(180deg, #fbf7f1 0%, var(--bg) 42%, #eadfce 100%);
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background-image: linear-gradient(rgba(25, 21, 18, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(25, 21, 18, 0.03) 1px, transparent 1px);
	background-size: 32px 32px;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
}

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

.page-shell {
	width: min(1120px, calc(100% - 32px));
	margin: 0 auto;
	padding: 24px 0 64px;
}

.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 18px;
	margin-bottom: 30px;
	background: rgba(255, 255, 255, 0.52);
	border: 1px solid var(--line);
	border-radius: 999px;
	backdrop-filter: blur(18px);
	box-shadow: var(--shadow);
}

.brand {
	font-family: "Cormorant Garamond", serif;
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.nav {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	color: var(--muted);
	font-size: 0.95rem;
}

.nav a:hover,
.nav a:focus-visible {
	color: var(--text);
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
	gap: 24px;
	align-items: stretch;
	padding: 28px 0 20px;
}

.hero-copy,
.hero-card,
.project-card,
.contact-panel,
.section {
	border: 1px solid var(--line);
	border-radius: 28px;
	background: var(--card);
	backdrop-filter: blur(20px);
	box-shadow: var(--shadow);
}

.hero-copy {
	padding: 36px;
}

.eyebrow {
	margin: 0 0 12px;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.78rem;
	font-weight: 800;
	color: var(--accent-2);
}

h1,
h2,
h3 {
	margin: 0;
	font-family: "Cormorant Garamond", serif;
	line-height: 0.95;
}

h1 {
	max-width: 12ch;
	font-size: clamp(3.5rem, 9vw, 7.2rem);
	font-weight: 700;
}

h2 {
	font-size: clamp(2rem, 4vw, 3.4rem);
	font-weight: 600;
}

h3 {
	font-size: 2rem;
	font-weight: 600;
}

.lede,
.section-text,
.project-card p,
.contact-panel p {
	color: var(--muted);
	line-height: 1.8;
	font-size: 1.02rem;
}

.lede {
	max-width: 62ch;
	margin: 20px 0 0;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 28px;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 20px;
	border-radius: 999px;
	font-weight: 800;
	transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
	transform: translateY(-2px);
}

.button-primary {
	color: #fff;
	background: linear-gradient(135deg, var(--accent), #a8462d);
}

.button-secondary {
	border: 1px solid rgba(25, 21, 18, 0.16);
	background: rgba(255, 255, 255, 0.5);
}

.stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 34px 0 0;
}

.stats div {
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.stats dt {
	font-family: "Cormorant Garamond", serif;
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
}

.stats dd {
	margin: 8px 0 0;
	color: var(--muted);
	line-height: 1.5;
}

.hero-card {
	display: grid;
	gap: 18px;
	align-content: start;
	padding: 22px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.5)),
		radial-gradient(circle at top, rgba(198, 95, 63, 0.08), transparent 52%);
}

.status-pill {
	justify-self: start;
	padding: 10px 14px;
	border-radius: 999px;
	background: rgba(31, 111, 120, 0.12);
	color: var(--accent-2);
	font-size: 0.85rem;
	font-weight: 800;
}

.portrait {
	display: grid;
	place-items: center;
	min-height: 340px;
	border-radius: 24px;
	background:
		radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), transparent 28%),
		linear-gradient(160deg, #2d241f 0%, #5a4434 42%, #cf7d51 100%);
}

.portrait span {
	width: 140px;
	aspect-ratio: 1;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.4);
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-family: "Cormorant Garamond", serif;
	font-size: 4rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.summary-grid {
	display: grid;
	gap: 16px;
}

.summary-grid div {
	padding: 16px 18px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.62);
	border: 1px solid rgba(25, 21, 18, 0.08);
}

.label {
	display: block;
	margin-bottom: 6px;
	color: var(--muted);
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
}

.summary-grid strong {
	font-size: 1rem;
	line-height: 1.5;
}

.section {
	margin-top: 24px;
	padding: 30px;
}

.section-heading {
	display: grid;
	gap: 12px;
	margin-bottom: 22px;
}

.about {
	display: grid;
	grid-template-columns: 0.95fr 1.05fr;
	gap: 24px;
	align-items: center;
}

.projects {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.project-card {
	padding: 22px;
	min-height: 240px;
}

.project-tag {
	margin: 0 0 40px;
	color: var(--accent-2);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.project-card h3 {
	margin-bottom: 14px;
	font-size: 2.2rem;
}

.skill-list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.skill-list span {
	padding: 12px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.65);
	border: 1px solid rgba(25, 21, 18, 0.08);
	font-weight: 700;
}

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

.contact-panel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 24px;
}

.contact-panel p {
	max-width: 52ch;
	margin: 0;
}

@media (max-width: 980px) {
	.hero,
	.about,
	.projects,
	.contact-panel {
		grid-template-columns: 1fr;
	}

	.contact-panel {
		display: grid;
	}

	.portrait {
		min-height: 280px;
	}
}

@media (max-width: 720px) {
	.page-shell {
		width: min(100% - 20px, 1120px);
		padding-top: 12px;
	}

	.topbar {
		border-radius: 24px;
		padding: 16px;
	}

	.nav {
		gap: 12px;
	}

	.hero-copy,
	.section,
	.hero-card {
		padding: 22px;
		border-radius: 24px;
	}

	.stats {
		grid-template-columns: 1fr;
	}

	.section {
		margin-top: 18px;
	}

	h1 {
		max-width: none;
	}
}
