@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;500&display=swap');

.dark-theme {
	--page-background: radial-gradient(70.71% 70.71% at 50% 50%, #20242F 0%, #191C25 100%);
	--page-background-alt: #20242F;
	--page-background-alt-transparent: #20242F00;

	--foreground-1: #DECCCC;
	--foreground-2: #B89E97;

	--accent-1: #75D1EF;
	--accent-2: #A7E1F3;

	--text-shadow: rgb(117 209 239 / 50%);
	--image-shadow: rgba(0 0 0 / 30%);
	--image-shadow-hover: rgba(0 0 0 / 40%);

	--light: #caf2ff;
	--light-blur: 40px;
	--light-size: 50px;
	--light-wrapper: #1b1f28;
}

.spooky-theme {
	--page-background: radial-gradient(70.71% 70.71% at 50% 50%, #11001b 0%, #000000 100%);
	--page-background-alt: #0c0c0c;
	--page-background-alt-transparent: #0c0c0c00;

	--foreground-1: #f6e7ff;
	--foreground-2: #8a7c92;

	--accent-1: #d188ff;
	--accent-2: #dea8ff;

	--text-shadow: rgba(209 136 255 / 50%);
	--image-shadow: rgba(0 0 0 / 30%);
	--image-shadow-hover: rgba(0 0 0 / 40%);

	--light: #eed5fe;
	--light-blur: 40px;
	--light-size: 50px;
	--light-wrapper: #040404;
}

.light-theme {
	--page-background: radial-gradient(70.71% 70.71% at 50% 50%, #DFDBD0 0%, #E6E3DA 100%);
	--page-background-alt: #DFDBD0;
	--page-background-alt-transparent: #DFDBD000;

	--foreground-1: #2D2A32;
	--foreground-2: #767374;

	--accent-1: #c43221;
	--accent-2: #b22b1b;

	--text-shadow: rgb(196 50 33 / 50%);
	--image-shadow: rgba(0 0 0 / 10%);
	--image-shadow-hover: rgba(0 0 0 / 20%);

	--light: #000;
	--light-blur: 30px;
	--light-size: 70px;
	--light-wrapper: #e5e1d7;
}

* {
	margin: 0;
	color: var(--foreground-1);
	font-family: 'Inconsolata', monospace;
}

html,
body {
	width: 100%;
	height: 100%;
	background-color: var(--page-background-alt);
	background: var(--page-background);
}

body {
	display: flex;
	position: relative;
}

body::after,
body::before {
	content: '';
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 32px;
	z-index: 2;
	background: linear-gradient(to bottom, var(--page-background-alt-transparent), var(--page-background-alt));
}

body::before {
	top: 0;
	background: linear-gradient(to top, var(--page-background-alt-transparent), var(--page-background-alt));
}

p {
	font-size: 18px;
	font-weight: 500;
	line-height: 130%;
}

p.title,
p.sub {
	font-size: 16px;
	color: var(--foreground-2);
}

.copy {
	font-size: 24px !important;
	color: var(--foreground-2);
	position: relative;
	top: -1px;
}

span.tiny {
	cursor: pointer;
	display: inline-block;
	transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.5);
	padding: 4px;
	margin: -4px;
}

span.tiny:hover {
	transform: scale(0.6);
}

span.tiny:active {
	transform: scale(0.4);
}

span.ping-pong,
span.piano, span.bear {
	position: relative;
	cursor: pointer;
	padding: 4px;
	margin: -4px;
}

span.emoji::before,
span.emoji::after {
	content: "🏓";
	position: absolute;
	top: -16px;
	left: -8px;
	opacity: 0;
	transform: scale(0.5) rotate(-30deg);
	transition: opacity 120ms ease-out, transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.5);
}

span.emoji::after {
	top: revert;
	left: revert;
	bottom: -16px;
	right: -8px;
}

span.piano::before,
span.piano::after {
	content: "🎹";
	top: -14px;
	left: -11px;
}

span.piano::after {
	top: revert;
	left: revert;
	bottom: -17px;
	right: -18px;
}

span.bear::before,
span.bear::after {
	content: "🧸";
	top: -20px;
	left: -14px;
}

span.bear::after {
	top: 18px;
	left: 103px;
}

span.emoji:hover::before,
span.emoji:hover::after {
	transform: scale(1.5) rotate(0deg);
	opacity: 1;
}

span.emoji:active::before,
span.emoji:active::after {
	transform: scale(1.3) rotate(-2deg);
}


a {
	color: var(--accent-1);
	text-decoration-style: dashed;
	text-underline-offset: 5px;
	text-decoration-color: var(--text-shadow);
	transition: 120ms ease-out;
	width: fit-content;
	position: relative;
	top: 0;
	/* filter: drop-shadow(0 2px 2px var(--text-shadow)); */
}

a:hover {
	color: var(--accent-2);
	top: -2px;
	filter: drop-shadow(0 4px 2px var(--text-shadow));
	text-decoration-color: var(--accent-2);
}

body.light-theme a:hover {
	filter: drop-shadow(0 4px 2px var(--text-shadow));
}

a:active {
	top: -1px;
}

a:focus-visible {
	outline: 2px solid var(--accent-1);
	outline-style: dashed;
	outline-offset: 4px;
	border-radius: 2px;
	transition: none;
}

a.back {
	display: flex;
	gap: 4px;
	align-items: center;
	justify-content: flex-end;
	width: 96px;
}

a.back ion-icon {
	transition: 120ms ease-out;
	color: var(--accent-1);
}

a.back:hover ion-icon {
	color: var(--accent-2);
}

.work .item a {
	text-decoration: none;
	display: flex;
	gap: 4px;
}

a>svg {
	width: 16px;
	height: 16px;
}

a>svg path,
a span {
	fill: var(--accent-1);
	color: var(--accent-1);
	text-decoration-color: var(--accent-2);
}

a:hover>svg path,
a:hover span {
	fill: var(--accent-2);
	color: var(--accent-2);
}

a span {
	text-decoration: underline;
	text-decoration-color: var(--accent-1);
	text-underline-offset: 4px;
}

ion-icon {
	font-size: 16px;
}

main {
	max-width: 1200px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 32px;
	margin: auto;
	padding: 64px 16px;
	overflow-x: hidden;
}

main section {
	display: flex;
	gap: 96px;
}

main section.footer {
	justify-content: space-between;
}

.footer button {
	background: none;
	border: none;
	cursor: pointer;
	transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.5);
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 0;
}

.footer button p {
	transition: color 120ms ease-out;
}

.footer button span {
	font-size: 20px;
	transition: filter 120ms ease-out, color 120ms ease-out, transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.5);
}

.footer button #smiley {
	filter: brightness(80%);
}

@media (hover: hover) {
	.footer button:hover {
		transform: scale(1.05);
	}
}

.footer button:hover p {
	color: var(--foreground-1);
}

.footer button:hover span {
	color: var(--foreground-1);
}

.footer button:hover #smiley {
	transform: scale(1.2);
	filter: brightness(100%);
}

.footer button:active {
	transform: scale(1.03);
}

.footer button:active #smiley {
	transform: scale(1);
}

.footer button:focus-visible {
	outline: 2px solid var(--accent-1);
	outline-style: dashed;
	border-radius: 4px;
}

.more {
	padding-left: 196px;
}

main section .title {
	min-width: 136px;
	text-align: right;
}

main section .wrapper {
	display: flex;
	justify-content: space-between;
	position: relative;
	flex: 1;
}

main section .content,
main section .content .item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

main section.experience .content,
main section.work .content {
	gap: 24px;
}

main section .content.images a:not(p.more > a) {
	flex: 1;
	min-width: 370px;
	border-radius: 8px;
	filter: drop-shadow(0 8px 16px var(--image-shadow));
	transition: filter 300ms ease-out, transform 120ms ease-out, opacity 120ms ease-out;
}

@media (hover: hover) {
	main section .content.images a:not(p.more > a) {
		overflow: hidden;
	}
}


main section .content.images a:hover:not(p.more > a) {
	filter: drop-shadow(0 8px 16px var(--image-shadow-hover));
	top: 0;
}

main section .content.images a:hover img {
	transform: scale(1.05);
}

main section .content.images a:active {
	transform: scale(0.98);
	opacity: 0.8;
}


main section .content.images {
	flex-wrap: wrap;
	flex-direction: row;
	gap: 16px;
	position: relative;
}

main section .content.images .blur.after {
	top: 0;
	right: 0;
	position: sticky;
}

main section .content.images .blur.after::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 40px;
	height: 100%;
	background: linear-gradient(90deg, transparent, var(--page-background-alt));
}


main section .content.images.diff {
	align-items: center;
}

main section .content.images img {
	/* width: 419px; */
	/* min-width: 380px; */
	/* height: 317px; */
	width: 100%;
	transition: transform 120ms ease-out;
	border-radius: 8px;
	height: 100%;
}

main section .content.images img.diff {
	min-width: 100%;
	height: auto;
}

.line {
	/* width: calc(100% + 60px); */
	height: 1px;
	background-image: url('media/line-spooky.svg');
	/* filter: brightness(1.2); */
	filter: brightness(0.7);
}

.light-theme .line {
	background-image: url('media/line-light.svg');
	filter: brightness(0.9);
}

.dark-theme .line {
	background-image: url('media/line-dark.svg');
	filter: revert;
}

.theme-button-focus-lock {
	width: 32px;
	height: 32px;
	background: none;
	border: none;
	margin-right: 36px;
	margin-top: -5px;
	position: relative;
}

.theme-button-focus-lock:focus-visible {
	outline: 2px solid var(--accent-1);
	outline-style: dashed;
	border-radius: 4px;
}

.theme-button {
	overflow: hidden;
	border-radius: 50%;
	padding: 80px;
	margin: -80px;
	display: flex;
	justify-content: center;
	align-items: center;
	position: absolute;
	top: 0;
	right: 40px;
	cursor: pointer;
	border: none;
	background: transparent;
}

.theme-button::before {
	content: "";
	position: absolute;
	top: calc(var(--y, 0) * 1px - 30px);
	left: calc(var(--x, 0) * 1px - 30px);
	width: var(--light-size);
	height: var(--light-size);
	z-index: -1;
	border-radius: 50%;
	opacity: 0;
	transition: opacity 120ms ease-out;
	background: var(--light);
	filter: blur(var(--light-blur));
}

.theme-button:hover::before {
	opacity: 1;
}

.theme-button::after {
	position: absolute;
	content: '';
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(transparent 10%, var(--light-wrapper) 50%);
	pointer-events: none;
}

@media (hover: hover) {
	.theme-button:hover .theme-button-inner {
		transform: scale(1.3);
	}

	.theme-button:active .theme-button-inner {
		transform: scale(1);
	}
}

.theme-button:hover ion-icon {
	color: var(--foreground-1) !important;
}

.theme-button:focus-visible {
	outline: none;
}

.theme-button-inner {
	transition: background 0s, transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.5);
	padding: 2px;
}

.theme-button-inner>ion-icon {
	color: var(--foreground-2);
	transition: color 120ms ease-out, transform 2s cubic-bezier(0.18, 0.89, 0.32, 1.5);
	position: relative;
	bottom: 0;
	width: 20px;
	height: 20px;
}

.theme-button-inner>ion-icon.rotated {
	transform: rotate(360deg);
}

::selection {
	background: var(--accent-1);
	color: var(--page-background-alt);
}

@media only screen and (max-width: 1032px) {
	body {
		height: 100%;
	}

	main {
		max-width: calc(100% - 32px);
	}

	.line {
		width: 100%;
	}
}

@media only screen and (max-width: 800px) {
	main section {
		gap: 48px;
	}

	.more {
		padding-left: 148px;
	}

}

@media only screen and (max-width: 600px) {
	main section {
		flex-direction: column;
		gap: 16px;
	}

	main section .title {
		text-align: left;
	}

	.left {
		align-items: flex-start;
	}

	main section .content.images {
		overflow-x: auto;
		flex-wrap: revert;
		flex-direction: row;
		scroll-snap-type: x mandatory;
		scroll-padding: 0px 24px;
		gap: 8px;
	}

	main section .content.images::-webkit-scrollbar {
		display: none;
	}

	main section .content.images a {
		scroll-snap-align: start;
		min-width: 300px !important;
	}

	.theme-button {
		top: -40px;
		right: 16px;
	}

	.more {
		padding-left: 0;
	}

	main section.footer {
		gap: 8px;
	}
}

@media only screen and (max-width: 400px) {
	body {
		height: 120%;
	}

	main {
		padding-top: 32px;
		gap: 16px;
	}

	main .line {
		margin: 16px 0;
	}

	.theme-button {
		margin: 0;
		padding: 0;
	}

	.theme-button::before,
	.theme-button::after {
		content: none;
	}
}

::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: var(--page-background-alt);
}

::-webkit-scrollbar-thumb {
	background: var(--text-shadow);
	border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--accent-1);
}