/* Federico Zhou — personal site */

:root {
	color-scheme: dark;
	--bg: #0b0b0b;
	--text: #e8e8e8;
	--muted: #8c8c8c;
	--panel: rgba(255, 255, 255, 0.06);
	--panel-hover: rgba(255, 255, 255, 0.12);
	--line: rgba(255, 255, 255, 0.08);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	background: var(--bg);
}

body {
	display: flex;
	flex-direction: column;
	margin: 0;
	min-height: 100svh;
	background: var(--bg);
	color: var(--text);
	font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

::selection {
	background: var(--text);
	color: var(--bg);
}

a {
	color: var(--text);
	text-decoration: none;
	transition: color 0.15s ease, background-color 0.15s ease;
}

a:focus-visible {
	outline: 2px solid var(--text);
	outline-offset: 3px;
}

/* Top banner */

.top-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 0.25rem 0.9rem;
	padding: 0.85rem 1.25rem;
	border-bottom: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-align: center;
}

.banner-name {
	margin: 0;
	color: var(--text);
	font-size: 1.1em;
	font-weight: 500;
	line-height: 1.4;
}

.banner-role {
	margin: 0;
	line-height: 1.4;
}

.top-banner a {
	color: var(--text);
	text-decoration: underline;
	text-decoration-color: var(--line);
	text-underline-offset: 3px;
}

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

/* Hero */

.hero {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	padding: 2rem 1.25rem;
	text-align: center;
}

/* Buttons */

.nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.button {
	padding: 0.55rem 1rem;
	border-radius: 3px;
	background: var(--panel);
	color: #cfcfcf;
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	line-height: 1.3;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.button:hover,
.button:focus-visible {
	background: var(--panel-hover);
	color: #ffffff;
}

.button-cv {
	background: var(--text);
	color: var(--bg);
}

.button-cv:hover,
.button-cv:focus-visible {
	background: #ffffff;
	color: var(--bg);
}

/* Small screens */

@media screen and (max-width: 600px) {
	body {
		font-size: 15px;
	}

	.top-banner {
		font-size: 0.7rem;
	}

	.nav {
		gap: 0.4rem;
	}

	.button {
		padding: 0.5rem 0.75rem;
		font-size: 0.76rem;
	}
}
