:root {
	color-scheme: dark;
	--bg: #0c0c0c;
	--surface: #171717;
	--raised: #292929;
	--line: #282828;
	--text: #fafafa;
	--muted: #b5b5b5;
	--accent: #dedbe9;
	--button: #fafafa;
	--button-text: #101010;
	font-family: Inter, Arial, sans-serif;
}

:root[data-theme='light'] {
	color-scheme: light;
	--bg: #f8f8f8;
	--surface: #fff;
	--raised: #e9e9e9;
	--line: #ddd;
	--text: #181818;
	--muted: #595959;
	--accent: #484451;
	--button: #161616;
	--button-text: #fff;
}

* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	line-height: 1.45;
}
a {
	color: inherit;
	text-decoration: none;
}
button {
	font: inherit;
}
a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}
h1,
h2,
h3,
p,
dl,
dd {
	margin: 0;
}
p,
dd {
	color: var(--muted);
}
.wrap {
	width: min(1024px, calc(100% - 48px));
	margin: auto;
}
[id] {
	scroll-margin-top: 82px;
}

.masthead {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	justify-content: center;
	padding: 20px 12px 0;
	pointer-events: none;
}

.dock {
	display: flex;
	align-items: center;
	gap: 3px;
	padding: 4px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--bg);
	box-shadow: 0 4px 22px #0004;
	pointer-events: auto;
}

.dock a,
.dock button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 11px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.dock .brand {
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	background: var(--raised);
}
.dock span {
	font-size: 17px;
	line-height: 1;
}
.dock a:hover,
.dock button:hover {
	background: var(--raised);
}
.dock button {
	border: 0;
	background: transparent;
	color: var(--text);
	cursor: pointer;
}
.dock button[hidden] {
	display: none;
}

.hero {
	display: grid;
	grid-template-columns: 1.28fr 1fr;
	align-items: center;
	gap: 48px;
	padding: 58px 0 78px;
}

.eyebrow {
	color: var(--accent);
	font-size: 14px;
	font-weight: 700;
}
h1 {
	margin: 18px 0 20px;
	font-size: clamp(42px, 5.2vw, 64px);
	letter-spacing: -0.048em;
	line-height: 1.06;
}
.intro {
	max-width: 49ch;
	font-size: clamp(17px, 1.8vw, 22px);
	line-height: 1.31;
}
.hero .primary {
	margin-top: 22px;
}
.panel {
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
}
.panel a {
	display: flex;
	width: 100%;
	justify-content: space-between;
}
.profile,
.skills article {
	padding: 24px;
}
.identity {
	display: flex;
	align-items: center;
	gap: 15px;
}
.identity strong {
	font-size: 17px;
}
.identity p {
	margin-top: 3px;
	font-size: 14px;
}
.monogram {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	border-radius: 12px;
	background: var(--raised);
	font-weight: 750;
}
.profile .location {
	margin-top: 18px;
	font-size: 14px;
}
.profile-list {
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
	color: var(--muted);
	font-size: 14px;
}
.profile-list li + li {
	margin-top: 9px;
}
.profile-list li::before {
	content: '·';
	margin-right: 8px;
}
.availability {
	color: var(--text);
}
.actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	font-size: 13px;
	font-weight: 600;
}
.actions a:hover,
footer a:hover {
	text-decoration: underline;
}
.button {
	display: inline-flex;
	align-items: center;
}
.primary {
	background: var(--button);
	color: var(--button-text);
	padding: 10px 16px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 750;
}
.primary:hover {
	opacity: 0.86;
}

.overview {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 0 12px 78px;
}
.overview .panel {
	padding: 18px 20px;
	border-radius: 7px;
}
.overview dt {
	font-size: clamp(21px, 2.6vw, 32px);
	font-weight: 750;
	letter-spacing: -0.045em;
}
.overview dd {
	margin-top: 3px;
	font-size: 14px;
}

.section {
	margin-bottom: 78px;
}
h2 {
	font-size: clamp(29px, 3.5vw, 40px);
	line-height: 1.18;
	letter-spacing: -0.045em;
	margin-bottom: 24px;
}
h3 {
	font-size: 21px;
	line-height: 1.25;
	letter-spacing: -0.02em;
}
.projects {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.project-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 17px 24px;
}
summary.project-header {
	cursor: pointer;
	list-style: none;
	border-radius: 9px;
}
summary.project-header::-webkit-details-marker {
	display: none;
}
summary.project-header:hover {
	background: var(--raised);
}
summary.project-header:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: -3px;
}
.project h3 {
	font-size: 18px;
}
.project-status {
	font-size: 14px;
}
.project-chevron {
	width: 8px;
	height: 8px;
	flex: 0 0 8px;
	margin-inline: 4px;
	border-inline-end: 2px solid var(--muted);
	border-block-end: 2px solid var(--muted);
	transform: rotate(45deg);
}
details[open] .project-chevron {
	transform: rotate(225deg);
}
.project-details {
	border-top: 1px solid var(--line);
	padding: 16px 24px 20px;
}
.project-details ul {
	margin: 10px 0 0;
	padding-inline-start: 20px;
	color: var(--muted);
}
.project-details .actions {
	margin-top: 14px;
	color: var(--accent);
}
.project-details h4 {
	margin: 20px 0 10px;
}
.project-previews {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 134px));
	gap: 10px;
}
.preview-slot,
.project-previews img {
	display: block;
	width: 100%;
	aspect-ratio: 1206 / 2622;
	border-radius: 8px;
}
.preview-slot {
	border: 1px dashed var(--line);
	background: var(--bg);
}
.project-previews img {
	object-fit: contain;
}

.skills {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 16px;
}
.skills li {
	list-style: none;
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	background: var(--surface);
	border-radius: 7px;
}
.skills li img {
	width: 75px;
	height: auto;
	filter: grayscale(1);
	transition: 0.3s;
}
.skills li img:hover {
	filter: grayscale(0);
}
.projects li {
	display: flex;
	background: var(--surface);
}

.projects li img {
	width: 200px;
	height: auto;
	border-radius: 7px;
	filter: grayscale(1);
	transition: 0.3s;
}

.projects li img:hover {
	filter: grayscale(0);
}
.projects li p {
	padding: 1rem 1.5rem;
	color: var(--text);
	font-size: 1.2rem;
}
.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	list-style: none;
	padding: 0;
	margin: 14px 0 0;
}
.tags li {
	padding: 1px 8px;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: var(--bg);
	font-size: 13px;
}
.contact {
	max-width: 680px;
	margin-inline: auto;
	padding: 32px 24px;
	text-align: center;
}
.contact h2 {
	margin-bottom: 8px;
}
.contact .location {
	margin: 22px 0 24px;
	color: var(--text);
}
.contact-links {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}
.contact-links a {
	display: flex;
	width: 32px;
	height: 32px;
	justify-content: center;
	align-items: center;
	border: 1px solid var(--line);
	border-radius: 6px;
}
.contact-links a:hover {
	background: var(--raised);
}
.contact-links svg {
	width: 16px;
	height: 16px;
}
footer {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 0 12px 22px;
	color: var(--muted);
	font-size: 14px;
}

@media (max-width: 760px) {
	.hero {
		grid-template-columns: 1fr;
		gap: 28px;
		padding: 46px 0 40px;
	}
	.overview {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-inline: 0;
	}
	.section,
	.overview {
		margin-bottom: 52px;
	}
}

@media (max-width: 520px) {
	.wrap {
		width: calc(100% - 32px);
	}
	.project-header,
	.project-details {
		padding-inline: 16px;
	}
	.dock a,
	.dock button {
		padding-inline: 7px;
		gap: 5px;
	}
	.dock a:not(.brand) span {
		display: none;
	}
}

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