@charset "UTF-8";

/* Fonts */

@font-face {
	font-family: "Source Sans Pro";
	src: local("Source Sans Pro Light"), local("SourceSansPro-Light"),
		url("../fonts/source-sans-pro-v12-latin-300.woff2") format("woff2");
	font-display: swap;
	font-style: normal;
	font-weight: 300;
}

@font-face {
	font-family: "ff-good-headline-web-pro";
	src: url("../fonts/ff-good-headline.woff2") format("woff2");
	font-display: swap;
	font-style: normal;
	font-weight: 300;
}

/* Tokens */

:root {
	--text: #414f57;
	--heading: #2a353b;
	--muted: #6b777e;
	--card: rgba(255, 255, 255, 0.72);
	--card-solid: rgba(255, 255, 255, 0.95);
	--card-border: rgba(255, 255, 255, 0.55);
	--button: rgba(255, 255, 255, 0.55);
	--border: rgba(65, 79, 87, 0.22);
	--accent: #ff757a;
	--accent-soft: rgba(255, 117, 122, 0.12);
}

@media (prefers-color-scheme: dark) {
	:root {
		--text: #e6e6e6;
		--heading: #ffffff;
		--muted: #a9b0b5;
		--card: rgba(28, 28, 32, 0.58);
		--card-solid: rgba(38, 38, 38, 0.95);
		--card-border: rgba(255, 255, 255, 0.12);
		--button: rgba(255, 255, 255, 0.06);
		--border: rgba(255, 255, 255, 0.18);
		--accent-soft: rgba(255, 117, 122, 0.16);
	}
}

/* Basic */

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

body {
	min-height: 100vh;
	min-height: 100dvh;
	background-color: #898a97;
	color: var(--text);
	font-family: "ff-good-headline-web-pro", "Source Sans Pro", Helvetica, sans-serif;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.6;
	letter-spacing: 0.02em;
}

/* Fixed background layer (background-attachment: fixed does not work on iOS) */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	background-color: #898a97;
	background-image: url("images/overlay.png"), linear-gradient(60deg, rgba(0, 0, 10, 0.5) 5%, rgba(255, 200, 255, 0.35)), url("../images/back2.jpg");
	background-image: url("images/overlay.png"), linear-gradient(60deg, rgba(0, 0, 10, 0.5) 5%, rgba(255, 200, 255, 0.35)), image-set(
		url("../images/back2.avif") type("image/avif"),
		url("../images/back2.webp") type("image/webp"),
		url("../images/back2.jpg") type("image/jpeg"));
	background-repeat: repeat, no-repeat, no-repeat;
	background-size: 100px 100px, cover, cover;
	background-position: top left, center center, bottom center;
}

/* Fade-in overlay on load */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 1;
	opacity: 0;
	background-color: #ffffff;
	background-image: url("images/overlay.png"), linear-gradient(60deg, rgba(0, 0, 10, 0.5) 5%, rgba(255, 200, 255, 0.35));
	background-repeat: repeat, no-repeat;
	background-size: 100px 100px, cover;
	background-position: top left, center center;
	pointer-events: none;
	animation: fade-out 1.75s ease-out both;
}

@keyframes fade-out {
	from { opacity: 1; }
	to { opacity: 0; }
}

@keyframes card-in {
	from {
		opacity: 0;
		transform: translateY(1.5rem) rotateX(15deg);
	}
}

/* Type */

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

h1 {
	color: var(--heading);
	font-size: 2em;
	font-weight: inherit;
	line-height: 1.25;
	letter-spacing: 0.01em;
}

.role {
	margin: 0.6em 0 0 0;
	color: var(--muted);
	font-size: 0.8em;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

/* Links */

ul.links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75em;
	margin-top: 2.25em;
	list-style: none;
}

ul.links a {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	padding: 0.6em 1.15em;
	background: var(--button);
	border: solid 1px var(--border);
	border-radius: 999px;
	font-size: 0.9em;
	line-height: 1.2;
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

ul.links svg {
	flex: none;
	width: 1.1em;
	height: 1.1em;
	fill: currentColor;
}

ul.links a:hover,
ul.links a:focus-visible {
	color: var(--accent);
	border-color: var(--accent);
	background: var(--accent-soft);
}

ul.links a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

/* Main */

#main {
	position: relative;
	width: 27em;
	max-width: 100%;
	padding: 3em 2.5em 2.75em 2.5em;
	background: var(--card);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	backdrop-filter: blur(18px) saturate(140%);
	border: solid 1px var(--card-border);
	border-radius: 24px;
	box-shadow: 0 1.5em 4em rgba(0, 0, 10, 0.3);
	cursor: default;
	text-align: center;
	animation: card-in 1s ease 0.3s both;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	#main {
		background: var(--card-solid);
	}
}

#main .avatar {
	display: block;
	width: 122px;
	height: 122px;
	margin: 0 auto 1.5em auto;
	overflow: hidden;
	border-radius: 50%;
	box-shadow: 0 0 0 4px var(--card-border), 0 0.5em 1.5em rgba(0, 0, 10, 0.25);
}

#main .avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Footer */

footer {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	width: 100%;
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.8em;
	letter-spacing: 0.05em;
}

/* Wrapper: card sits a little above center so the runway stays visible */

#wrapper {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 100vh;
	min-height: 100dvh;
	padding: 1.5em;
	perspective: 1000px;
	box-shadow: inset 0 0 5rem rgba(0, 0, 0, 0.5);
}

#wrapper::before {
	content: "";
	flex: 1 0 1.5em;
}

#wrapper footer {
	flex: 1.6 0 3em;
}

/* Motion */

@media (prefers-reduced-motion: reduce) {
	body::after,
	#main {
		animation: none;
	}
}

/* Responsive */

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

@media screen and (max-width: 480px) {
	body {
		min-width: 320px;
		font-size: 13px;
	}

	h1 {
		font-size: 1.6em;
	}

	#main {
		width: 100%;
		padding: 2.5em 1.5em 2.25em 1.5em;
	}
}
