@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,700;9..144,900&family=Instrument+Sans:wght@400;500;600&display=swap');

:root {
	--bg: #171513;
	--paper: #ede8de;
	--ink: #1d1a17;
	--ink-soft: #4a433d;
	--frame: #2d2925;
	--accent: #7b6547;
	--line: #cabca8;
	--link: #3b3127;
	--link-hover: #1f1a14;
	--shadow: rgba(0, 0, 0, 0.38);
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	height: 100%;
	overflow: hidden;
}

body {
	font-family: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: var(--ink);
	background:
		radial-gradient(circle at 12% 18%, #24201c 0%, transparent 35%),
		radial-gradient(circle at 88% 72%, #211c18 0%, transparent 30%),
		linear-gradient(132deg, #161310, #1e1a17 44%, #171513);
	display: grid;
	place-items: center;
	letter-spacing: 0.01em;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background-image:
		repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 4px),
		repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.02) 0 1px, transparent 1px 3px);
	mix-blend-mode: soft-light;
	opacity: 0.75;
}

.site {
	width: min(1040px, 92vw);
	height: min(760px, 90vh);
	background: var(--paper);
	border: 2px solid var(--frame);
	box-shadow: 0 28px 70px var(--shadow);
	display: grid;
	grid-template-columns: 1fr 1.35fr;
	position: relative;
	transform: rotate(-0.22deg);
	overflow: hidden;
}

.site::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		repeating-radial-gradient(circle at 18% 22%, rgba(0, 0, 0, 0.03) 0 1px, transparent 1px 3px);
	opacity: 0.22;
	pointer-events: none;
}

.left-pane {
	border-right: 1px solid var(--line);
	padding: 2.4rem 1.8rem 2rem 2rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	position: relative;
}

.left-pane::before {
	content: "V1.0.0 | 4/22/26";
	position: absolute;
	top: 0.65rem;
	left: 1.85rem;
	font-size: 0.66rem;
	letter-spacing: 0.24em;
	color: var(--ink-soft);
}

.avatar {
	width: 160px;
	height: 160px;
	object-fit: cover;
	border: 1px solid var(--ink-soft);
	filter: saturate(0.76) contrast(1.05);
	margin-top: 0.7rem;
	margin-left: 0.1rem;
	box-shadow: 5px 6px 0 rgba(27, 21, 17, 0.14);
}

.name {
	margin: 0;
	font-family: "Fraunces", "Times New Roman", serif;
	font-size: clamp(2.15rem, 4vw, 3.2rem);
	line-height: 0.92;
	font-weight: 900;
	letter-spacing: -0.02em;
	max-width: 12ch;
	text-wrap: balance;
}

.name-quote {
	margin: 0.1rem 0 0.35rem;
	max-width: 33ch;
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	padding: 0.52rem 0.65rem 0.56rem;
	border-left: 2px solid #a18a6b;
	background: linear-gradient(90deg, rgba(139, 113, 81, 0.12), rgba(139, 113, 81, 0.02));
	color: #403931;
	font-size: 0.9rem;
	line-height: 1.45;
}

.quote-icon {
	font-size: 0.9rem;
	color: #7f6546;
	margin-top: 0.16rem;
	flex-shrink: 0;
}

.quote-text {
	margin: 0;
	font-style: italic;
	text-wrap: pretty;
}

.bio {
	margin: 0;
	max-width: 34ch;
	color: var(--ink-soft);
	font-size: 0.95rem;
	line-height: 1.5;
	margin-left: 0.3rem;
}

.socials {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-top: 0.4rem;
	padding-top: 1.2rem;
}

.embed-stack {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.discord-embed {
	width: min(100%, 336px);
	height: 128px;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	margin-top: 0.5rem;
	margin-left: 0;
	margin-right: 0;
	background: transparent;
	overflow: hidden;
	display: block;
}

.lastfm-embed {
	width: min(100%, 336px);
	height: 176px;
	max-height: 170px;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	margin-top: 0.45rem;
	margin-left: 0;
	margin-right: 0;
	background: transparent;
	overflow: hidden;
	display: block;
}

.social-link {
	color: var(--link);
	text-decoration: none;
	border: 1px solid var(--ink-soft);
	padding: 0.35rem 0.58rem;
	font-size: 0.82rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: rgba(255, 255, 255, 0.2);
	transition: transform 130ms ease, background 130ms ease, color 130ms ease;
}

.social-link:hover,
.social-link:focus-visible {
	transform: translateY(-2px);
	background: #f7f2e9;
	color: var(--link-hover);
	outline: none;
}

.right-pane {
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.tabs {
	display: flex;
	gap: 0.45rem;
	padding: 1.1rem 1.4rem 0.85rem;
	border-bottom: 1px solid var(--line);
	flex-wrap: wrap;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0));
}

.tab {
	border: 1px solid transparent;
	background: transparent;
	color: var(--ink-soft);
	font-size: 0.82rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0.28rem 0.15rem;
	cursor: pointer;
	position: relative;
}

.tab::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -0.1rem;
	width: 0;
	height: 1px;
	background: var(--ink);
	transition: width 160ms ease;
}

.tab:hover::after,
.tab[aria-selected="true"]::after {
	width: 100%;
}

.panels {
	flex: 1;
	min-height: 0;
	position: relative;
}

.panel {
	position: absolute;
	inset: 0;
	padding: 1.55rem 1.45rem 1.75rem 1.45rem;
	overflow-y: auto;
	opacity: 0;
	transform: translateY(8px);
	pointer-events: none;
	transition: opacity 210ms ease, transform 210ms ease;
}

.panel.active {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.panel::-webkit-scrollbar {
	width: 9px;
}

.panel::-webkit-scrollbar-thumb {
	background: #b8ab95;
	border: 2px solid #e8dfd1;
}

.section-title {
	margin: 0 0 0.95rem;
	font-family: "Fraunces", serif;
	font-size: clamp(1.25rem, 2.5vw, 1.85rem);
	letter-spacing: -0.01em;
	line-height: 1;
}

.lead {
	margin: 0 0 1.4rem;
	max-width: 45ch;
	color: var(--ink-soft);
	line-height: 1.55;
}

.boxed-external-link {
	display: inline-flex;
	align-items: center;
	gap: 0.38rem;
	padding: 0.08rem 0.45rem 0.12rem;
	border: 1px solid #3e352b;
	background: var(--ink);
	color: var(--paper);
	text-decoration: none;
	font-size: 0.9em;
	line-height: 1;
	vertical-align: baseline;
	transform: translateY(-1px);
	transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.boxed-external-link:hover,
.boxed-external-link:focus-visible {
	background: #2b241d;
	color: #fff9f0;
	border-color: #6e5a43;
	transform: translateY(-2px);
	outline: none;
}

.external-icon {
	font-size: 0.84em;
	line-height: 1;
}

.projects-grid {
	display: grid;
	gap: 1rem;
	margin-top: 1.1rem;
}

.project {
	border: 1px solid var(--line);
	padding: 1rem 1rem 0.95rem;
	background: rgba(255, 255, 255, 0.33);
	transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.project:hover {
	transform: translateY(-2px);
	border-color: #9f8a6f;
	background: rgba(255, 255, 255, 0.52);
}

.project-a {
	width: 91%;
	justify-self: start;
	border-left: 4px solid #9d8261;
	transform: rotate(-0.25deg);
}

.project-b {
	width: 84%;
	justify-self: end;
	border-top: 3px double #7b6956;
	transform: rotate(0.18deg);
}

.project-c {
	width: 95%;
	justify-self: start;
	border-right: 4px solid #867159;
	transform: rotate(-0.14deg);
}

.project-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.7rem;
	margin-bottom: 0.4rem;
}

.project-title {
	margin: 0;
	font-family: "Fraunces", serif;
	font-weight: 700;
	font-size: 1.15rem;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.project-type {
	font-size: 0.72rem;
	color: var(--ink-soft);
	text-transform: uppercase;
	letter-spacing: 0.15em;
	white-space: nowrap;
}

.project p {
	margin: 0;
	color: var(--ink-soft);
	line-height: 1.5;
	font-size: 0.93rem;
	max-width: 62ch;
}

.project-link {
	display: inline-block;
	margin-top: 0.72rem;
	text-decoration: none;
	color: var(--link);
	border-bottom: 1px solid rgba(59, 49, 39, 0.5);
	padding-bottom: 0.08rem;
	font-size: 0.88rem;
	transition: color 140ms ease, border-color 140ms ease;
}

.project-link:hover {
	color: var(--link-hover);
	border-color: var(--link-hover);
}

.testimonials-list {
	display: grid;
	gap: 1rem;
	margin-top: 1rem;
}

.testimonial-card {
	border: 1px solid var(--line);
	padding: 1rem 1rem 0.95rem;
	background: rgba(255, 255, 255, 0.35);
	border-left: 4px solid #9d8261;
	max-width: 58ch;
	transform: rotate(-0.15deg);
}

.testimonial-stars {
	margin: 0 0 0.45rem;
	display: inline-flex;
	gap: 0.34rem;
	font-size: 0.95rem;
	color: #8f714d;
	line-height: 1;
	padding: 0.22rem 0.42rem;
	background: linear-gradient(180deg, rgba(190, 164, 128, 0.22), rgba(190, 164, 128, 0.08));
	border: 1px solid rgba(120, 98, 72, 0.28);
	border-radius: 999px;
}

.testimonial-stars .bi {
	font-size: 0.9rem;
	filter: drop-shadow(0 1px 0 rgba(255, 247, 230, 0.6));
}

.testimonial-text {
	margin: 0;
	line-height: 1.56;
	color: var(--ink-soft);
}

.testimonial-author {
	margin: 0.75rem 0 0;
	font-size: 0.84rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: #5c5148;
}

.about-copy {
	max-width: 54ch;
	line-height: 1.62;
	color: var(--ink-soft);
	margin: 0 0 1rem;
}

.note {
	border-top: 1px dashed #a69480;
	margin-top: 1.3rem;
	padding-top: 0.8rem;
	color: #5c5148;
	font-size: 0.86rem;
	max-width: 44ch;
}

@media (max-width: 900px) {
	.site {
		grid-template-columns: 1fr;
		width: min(680px, 94vw);
		height: min(900px, 93vh);
	}

	.left-pane {
		border-right: none;
		border-bottom: 1px solid var(--line);
		padding: 2rem 1.35rem 1.25rem;
	}

	.left-pane::before {
		left: 1.4rem;
	}

	.name {
		max-width: none;
	}

	.socials {
		margin-top: 0.2rem;
	}

	.discord-embed {
		width: min(100%, 420px);
	}
}

@media (max-width: 560px) {
	.site {
		width: 95vw;
		height: 94vh;
	}

	.avatar {
		width: 88px;
		height: 106px;
	}

	.project-a,
	.project-b,
	.project-c {
		width: 100%;
		transform: none;
	}

	.testimonial-card {
		transform: none;
	}
}
