@font-face {
	font-family: "Merriweather";
	src:
		url(/assets/fonts/Merriweather.woff2) format("woff2"),
		url(/assets/fonts/Merriweather.ttf) format("truetype");
}

:root {
	--sgi: #472b91;
	--camera: #37b6bf;
	--goose: #2859c6;
	--kodak: #fab710;
	--panasonic: #003fc1;
	--commie: #f60000;
	--capitalism: #369d73;
}

html {
	font: 100%/1.5 "Merriweather";
	overflow-y: scroll;
	text-size-adjust: none;
}

body {
	max-width: 50vw;
	margin: 0 auto;
}

@media (prefers-color-scheme: dark) {
	body {
		background-color: #333;
		font-color: white;
		color: #ccc;
	}
}

@media (max-width: 744px) {
	body {
		max-width: 80vw !important;
	}
}

nav {
	margin-top: 0.3125em;
	text-align: center;
}

nav a {
	margin-right: 0.3125em;
	text-decoration: none;
}

h2 {
	margin-top: 0.625rem !important;
}

iframe {
	border: none;
}

footer {
	text-align: center;
}

a:has(img) {
	text-decoration: none;
}

a img {
	image-rendering: crisp-edges;
}

/* Stuff gallery */
.stuff {
	text-align: center;
}

.stuff img {
	width: 7.5rem;
	height: 10.625rem;
	object-fit: cover;
}

.stuff-paintings {
	text-align: center;
}

.stuff-paintings img {
	height: 10.625rem;
	object-fit: cover;
}

/* Gallery */

figure img {
	display: block;
	width: 100%;
	height: auto;
	image-rendering: auto !important;
	text-align: center;
}

figure img:hover {
	filter: invert(100%);
}

/* Thanks, seirdy.one */
.narrow {
	contain: inline-size layout paint;
	padding: 0.5em;
	margin: auto;
	max-width: 40em;
}

/* Thanks, anarchan.net */
h2,
h3,
h4,
p {
	margin: 0.3125rem;
	white-space: pre-line;
	overflow-wrap: break-word;
}

a {
	color: var(--goose);
}

a:hover {
	text-decoration: underline wavy;
}

img:hover {
	transition: all 0.2s;
	transform: translate(-2px, -2px);
}

ul {
	padding-left: 1rem;
	margin: 0;
}

ul li {
	list-style: none;
	margin: 0.3125rem;
	line-height: 1.5;
}

ul li::before {
	content: "— ";
}

/* Status.cafe */
#statuscafe {
	padding: 0.5em;
}

#statuscafe-username {
	margin-bottom: 0.5em;
	font-size: 1.2em;
}

#statuscafe-username a {
	text-decoration: none !important;
}

#statuscafe-content {
	margin: 0 1em 0.5em 1em;
}

.goose-animation {
	position: fixed;
	height: 25vw;
	width: 25vw;
	max-width: 16.875rem;
	max-height: 16.875rem;
	right: -1.438rem;
	bottom: 0;
	z-index: 100000;
}

.goose-animation img {
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 0;
	animation: goose-frame 1.95s steps(13) infinite;
}

.goose-animation img:nth-child(1)  { animation-delay: 0s; }
.goose-animation img:nth-child(2)  { animation-delay: -0.15s; }
.goose-animation img:nth-child(3)  { animation-delay: -0.30s; }
.goose-animation img:nth-child(4)  { animation-delay: -0.45s; }
.goose-animation img:nth-child(5)  { animation-delay: -0.60s; }
.goose-animation img:nth-child(6)  { animation-delay: -0.75s; }
.goose-animation img:nth-child(7)  { animation-delay: -0.90s; }
.goose-animation img:nth-child(8)  { animation-delay: -1.05s; }
.goose-animation img:nth-child(9)  { animation-delay: -1.20s; }
.goose-animation img:nth-child(10) { animation-delay: -1.35s; }
.goose-animation img:nth-child(11) { animation-delay: -1.50s; }
.goose-animation img:nth-child(12) { animation-delay: -1.65s; }
.goose-animation img:nth-child(13) { animation-delay: -1.80s; }

@keyframes goose-frame {
	0%, 7.69% {
		opacity: 1;
	}
	7.70%, 100% {
		opacity: 0;
	}
}
