
@import url(//fonts.googleapis.com/css?family=Playfair+Display);

body {
	background-color: #f1eff2;
	font-family: 'Playfair Display';
	font-size: 1.2em;
	font-weight: bold;
}

h1 {
	font-weight: bold;
	font-size: 3em;
}

h2 {
	font-variant: small-caps;
}

img {
	position: fixed;
	bottom: 0;
	right: 0;
	min-height: 70vh;
	z-index: -1;
}

a {
	color: black;
}

h1, h2, p, span {
	white-space: nowrap;
}

h1, h2, p {
	background-image: linear-gradient(
		to right,
		rgba(204, 204, 204, 0.5),
		#f1eff2);
	border-top-right-radius: 0.5em;
	border-bottom-right-radius: 0.2em;
	max-width: 50vw;
}

.about {
	position: fixed;
	top: calc(50% + 5.4rem);
	left: 1em;
	transform: translateY(-50%);
	max-width: 35vw;
	margin: 0;
	padding: 1em 1.5em;
	background: rgba(255, 255, 255, 0.4);
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 2.5em;
	text-align: center;
	font-style: italic;
	font-weight: normal;
	font-size: 0.95em;
	line-height: 1.6;
	color: rgba(0, 0, 0, 0.65);
	opacity: 1;
	cursor: pointer;
	transition:
		opacity 0.4s ease,
		background 0.3s ease,
		border-color 0.3s ease,
		box-shadow 0.3s ease,
		transform 0.3s ease;
}

.about:hover,
.about:focus,
.about:active {
	outline: none;
	background: rgba(255, 255, 255, 0.75);
	border-color: rgba(0, 0, 0, 0.35);
	box-shadow: 0 0.4em 1.2em rgba(0, 0, 0, 0.12);
	transform: translateY(-50%) scale(1.03);
	color: rgba(0, 0, 0, 0.85);
}

.about:hover::before,
.about:focus::before,
.about:active::before {
	border-left-color: rgba(0, 0, 0, 0.35);
}

.about:hover::after,
.about:focus::after,
.about:active::after {
	border-left-color: rgba(255, 255, 255, 0.75);
}

@media (orientation: portrait), (max-width: 750px), (max-height: 550px) {
	.about {
		opacity: 0;
		pointer-events: none;
	}
}

.about p {
	margin: 0 0 0.6em 0;
	padding: 0;
	max-width: none;
	white-space: normal;
	background-image: none;
	border-radius: 0;
	font-weight: normal;
}

.about p:last-child {
	margin-bottom: 0;
}

.about::before {
	content: '';
	position: absolute;
	right: -0.9em;
	top: 35%;
	border-top: 0.7em solid transparent;
	border-bottom: 0.7em solid transparent;
	border-left: 0.9em solid rgba(0, 0, 0, 0.18);
}

.about::after {
	content: '';
	position: absolute;
	right: -0.75em;
	top: calc(35% + 1px);
	border-top: 0.65em solid transparent;
	border-bottom: 0.65em solid transparent;
	border-left: 0.8em solid rgba(255, 255, 255, 0.4);
}

@media (max-width:1100px), (max-height:800px) {
	.about {
		max-width: 38vw;
		padding: 0.6em 1em;
		font-size: 0.75em;
		line-height: 1.45;
		border-radius: 2em;
	}
}


footer {
	position: fixed;
	bottom: 1em;
	left: 1em;
}

footer h2:after {
	content: " ✨";
}

footer:hover h2:after {
	animation: sparkle 1.5s infinite;
}

@keyframes sparkle {
	15% {
		content: " ✨";
		opacity: 45%;
	}
	35% {
		content: " ⭐";
		opacity: 50%;
	}
	45% {
		content: " ⭐";
		opacity: 75%;
	}
	66% {
		content: " 🌟";
		opacity: 90%;
	}
	90% {
		content: " 🌟";
		opacity: 70%;
	}
	95% {
		content: " ✨";
		opacity: 80%;
	}
	100% {
		content: " ✨";
		opacity: 100%;
	}
}

@media (max-width:768px) {
	h1, h2, p {
		max-width: 70vw;
	}
}

@media (max-width:576px) {
	h1, h2, p {
		max-width: 100vw;
		white-space: normal;
	}
}

@media (prefers-color-scheme: dark) {
	body {
		background-color: #1a1820;
		color: #e8e6ec;
	}

	a {
		color: #e8e6ec;
	}

	h1, h2, p {
		background-image: linear-gradient(
			to right,
			rgba(255, 255, 255, 0.12),
			#1a1820);
	}

	img {
		-webkit-mask-image:
			radial-gradient(
				ellipse 70% 92% at 86% 78%,
				black 40%,
				transparent 95%),
			radial-gradient(
				ellipse 60% 25% at 80% 0%,
				transparent 0%,
				black 100%);
		mask-image:
			radial-gradient(
				ellipse 70% 92% at 86% 78%,
				black 40%,
				transparent 95%),
			radial-gradient(
				ellipse 60% 25% at 80% 0%,
				transparent 0%,
				black 100%);
		-webkit-mask-composite: source-in;
		mask-composite: intersect;
	}

	.about {
		background: rgba(255, 255, 255, 0.06);
		border-color: rgba(255, 255, 255, 0.2);
		color: rgba(232, 230, 236, 0.8);
	}

	.about::before {
		border-left-color: rgba(255, 255, 255, 0.2);
	}

	.about::after {
		border-left-color: rgba(40, 38, 48, 0.95);
	}

	.about:hover,
	.about:focus,
	.about:active {
		background: rgba(255, 255, 255, 0.14);
		border-color: rgba(255, 255, 255, 0.45);
		box-shadow: 0 0.4em 1.2em rgba(0, 0, 0, 0.4);
		color: #f4f2f7;
	}

	.about:hover::before,
	.about:focus::before,
	.about:active::before {
		border-left-color: rgba(255, 255, 255, 0.45);
	}

	.about:hover::after,
	.about:focus::after,
	.about:active::after {
		border-left-color: rgba(50, 48, 60, 0.95);
	}
}
