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

body {
	background: #000;
	color: aliceblue;
	line-height: 1.8;
	font-size: min(16px, 4vw);
	font-family: monospace;
	min-height: 100vh;
	display: grid;
	grid-template-rows: auto 1fr auto;
	--content-slim: 550px;
	--content-medium: 720px;
	--content-wide: 960px;
	--white-gentle: #fff4;

	--violet-brighter: #c0f;
	--violet-medium: #90c;

}

nav {

	/* top navigation bar */
	&#menu {
		display: grid;
		/* makes sure that logo is left, nav middle, "nothing" in size of logo right */
		grid-template-columns: 1fr auto 1fr;
		align-items: center;
		justify-content: stretch;

		border-bottom: 1px solid var(--white-gentle);
		width: 100%;
		backdrop-filter: blur(3px);

		ul {
			min-width: var(--content-slim);
			list-style: none;
			display: flex;

			li {
				a {
					color: white;
					padding: 1em;
					display: block;
					text-decoration: none;
					border-right: 1px solid var(--white-gentle);

					&:hover {
						background-color: var(--white-gentle);
					}
				}

				&:first-of-type a {
					border-left: 1px solid var(--white-gentle);
				}
			}
		}

		&>a {
			color: white;
			padding: 0 1em;
			display: flex;
			align-items: center;
			text-decoration: none;
			gap: .75em;
		}
	}
}

/* this one holds the page content */
main {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: stretch;
	padding: 2em;

	/* generic styling */
	h1 {
		font-size: 1.75em;
		line-height: 1.2;
	}

	h2 {
		font-size: 1.5em;
		line-height: 1.2;
		padding-top: 1em;
		padding-bottom: .5em;
	}

	h3 {
		font-size: 1.25em;
		line-height: 1.2;
		padding-top: 1em;
		padding-bottom: .75m;
	}

	h1,
	h2,
	h3,
	h4,
	h5 {
		a {
			text-decoration: none;
			color: inherit;
		}
	}

	time {
		font-size: .6em;
		color: var(--violet-brighter);
		display: block;
		padding-bottom: 1em;
	}

	p a {
		color: var(--violet-brighter);
		text-decoration: none;
	}


	ul.tags {
		list-style: none;
		display: flex;
		flex-wrap: wrap;
		margin-top: auto;

		li {
			a {
				font-size: .75em;
				border: 1px solid var(--white-gentle);
				border-radius: .25em;
				margin: 1em 0.25em;
				padding: 0.25em 0.5em;
				text-decoration: none;
				color: inherit;

				&:hover {
					background-color: var(--white-gentle);
				}
			}
		}
	}

	/*
		page of an individual blog article
	*/
	.page-article {
		width: min(var(--content-wide), 100%);
		border: 1px solid var(--white-gentle);
		backdrop-filter: blur(3px);
		border-radius: .2em;
		padding: 1em;
		height: 100%;

		ul.tags {
			list-style: none;
			display: flex;
			flex-wrap: wrap;
			margin-top: auto;

			li {
				margin-left: 0em;
				margin-bottom: .5em;

				a {
					font-size: .75em;
					border: 1px solid var(--white-gentle);
					border-radius: .25em;
					margin: 1em 0.25em;
					padding: 0.25em 0.5em;
					text-decoration: none;

					&:hover {
						background-color: var(--white-gentle);
					}
				}
			}
		}

		img {
			width: 30%;
			border-radius: 5%;
			margin-bottom: .25em;
		}

		img.mtg {
			width: 25%;
			place-items: center;
		}

		li {
			margin-left: 2em;
		}

	}

	/*
		page for my skills that ppl hopefully will pay me money for
	*/
	.page-skills {
		width: min(var(--content-wide), 100%);
		border: 1px solid var(--white-gentle);
		backdrop-filter: blur(3px);
		border-radius: .2em;
		padding: 1em;
		height: 100%;

		h1 {
			margin-bottom: .5em;
		}

		time {
			font-size: 0.75em;
			color: white;
		}

		li {
			margin-left: 2em;
		}

		a {
			text-decoration: none;
			color: var(--violet-brighter);
		}

	}

	/*
		page of all blog articles
		as an archive (listing) with pagination
	*/
	.page-blog-article-pagination {
		width: min(var(--content-medium), 100%);

		h1 {
			margin-bottom: 0.5em;
			text-align: center;
		}

		article {
			display: flex;
			align-items: stretch;
			border: 1px solid var(--white-gentle);
			border-radius: .5em;
			overflow: hidden;
			margin-bottom: 1em;
			backdrop-filter: blur(3px);

			img {
				width: calc(100% - 62%);
				aspect-ratio: 1/1;
				object-fit: cover;
			}

			&>div {
				display: flex;
				flex-direction: column;
				align-items: flex-start;
				width: 62%;
				padding: 1em;

				h2 {
					font-size: 1.25em;
				}

				time {
					font-size: 0.75em;
					color: var(--violet-medium);
				}

				p {
					font-size: .75em;
				}
			}
		}

		article.article-draft {
			filter: contrast(0.5)
		}
	}

	.page-tags {
		width: min(var(--content-medium), 100%);

		h1 {
			padding-bottom: .5em;
			text-align: center;
		}

		ul {
			list-style: none;
			display: flex;
			flex-direction: row;
			flex-wrap: wrap;
			align-content: flex-start;

			li {
				padding: .5em .5em;

				a {
					color: white;
					border: 1px solid var(--white-gentle);
					padding: 1em;
					display: block;
					text-align: center;
					border-radius: .2em;
					text-decoration: none;
					backdrop-filter: blur(3px);
					position: relative;
					max-width: 100%;
					transition: .2s background-color linear;

					&:hover {
						background-color: #fff2;
					}

					/* to help breaking better */
					span {
						display: inline-block;
					}

				}
			}
		}

	}

	.page-friends {
		width: min(var(--content-wide), 100%);
		image-rendering: pixelated;
		border: 1px solid var(--white-gentle);
		backdrop-filter: blur(3px);
		border-radius: .2em;
		padding: 1em;
		height: 100%;

		button {
			width: calc(88px * 2);
			height: calc(31px * 2);
			background: transparent;
			border: none;

			img {
				vertical-align: middle;
			}
		}

		p {
			max-width: var(--content-slim);
			margin: 1em 0;
		}

		h2 {
			margin: 0em 0 .5em;
		}

		img.emote {
			width: 1.5em;
			margin-bottom: -5px;
		}

		img {
			width: calc(88px * 2);
			margin-right: 1px;
			margin-bottom: 1px;

			&:hover {
				opacity: .9;
			}


			/*
				this might not be needed anymore but pls keep it here
			*/
			&.wndrland-button {
				outline: 2px solid var(--white-gentle);
			}
		}
	}

	.page-about {
		width: min(var(--content-wide), 100%);
		max-width: 100%;
		border: 1px solid var(--white-gentle);
		backdrop-filter: blur(3px);
		border-radius: .2em;
		padding: 1em;
		height: 100%;
	}

	/*
	on the /socials page
	there is a list of social media links
	*/
	.page-socials {
		width: min(var(--content-slim), 100%);

		/* intro section with image */
		header {
			text-align: center;

			img {
				border-radius: 20%;
				width: 200px;
				max-width: 100%;
				margin: 1em auto;
				display: block;
			}
		}

		ul {
			list-style: none;

			li {
				padding: 0 3em;

				a {
					color: white;
					border: 1px solid var(--white-gentle);
					padding: 1em;
					display: block;
					text-align: center;
					border-radius: .2em;
					margin: 1em 0;
					text-decoration: none;
					backdrop-filter: blur(3px);
					position: relative;
					max-width: 100%;
					transition: .2s background-color linear;

					&:hover {
						background-color: #fff2;
					}

					/* to help breaking better */
					span {
						display: inline-block;
					}

					/* social media icons */
					img {
						filter: invert(1);
						color: black;
						position: absolute;
						left: -3em;
						height: 2em;
						vertical-align: middle;
						top: calc(50% - 1em);
					}
				}
			}
		}
	}
}

.pagination {
	ol {
		list-style: none;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 1em;

		li {
			a {
				color: inherit;
				padding: .5em 1.5em;
				display: block;
				text-align: center;
				border-radius: .2em;
				margin: 1em 0;
				text-decoration: none;
				backdrop-filter: blur(3px);
				transition: .2s background-color linear;
				border: 1px solid var(--white-gentle);

				&[aria-current] {
					border: 1px solid transparent;
					background-color: #fff2;
				}

				&:hover {
					background-color: #fff2;
				}
			}
		}
	}
}

/*
	matrix code effect
*/
canvas {
	display: block;
	position: fixed;
	inset: 0;
	z-index: -1;
}

footer {
	background-color: #000a;
	padding: 1em;
	opacity: .6;
	font-size: 14px;
	width: var(--content-slim);
	justify-self: center;
	backdrop-filter: blur(3px);

	a {
		color: #dc6af9;
	}
}

@media only screen and (max-width: 600px) {
	nav.page-socials ul li {
		padding-right: 0;
		overflow-wrap: break-word;
	}
}

@media only screen and (max-width: 920px) {
	nav#menu {
		display: flex !important;
		justify-content: space-between;

		ul {
			min-width: initial;
		}
	}
}
