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

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Emoji", sans-serif;
	background: #ffffff;
	color: #000000;
	line-height: 1.6;
	padding: 0 4rem;
	margin: 0 auto;
	box-sizing: border-box;
	max-width: 1200px;
}

main#main {
	display: block;
}

img {
	max-width: 100%;
	height: auto;
}

.masthead {
	flex-direction: row-reverse;
	justify-content: space-between;
	gap: 2rem;
	display: flex;
}

.masthead h1 a {
	color: inherit;
	text-decoration: none;
}

.noto {
	font-family: "Noto Emoji", sans-serif;
}

h2 {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 40px;
	letter-spacing: -0.02em;
}

.project-list {
	list-style: none;
	margin-bottom: 60px;
	margin-top: 60px;
}

.project-item {
	margin-bottom: 30px;
	padding-bottom: 30px;
	border-bottom: 1px solid #e0e0e0;
}

.project-item:last-child {
	border-bottom: none;
}

.project-name {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 4px;
	letter-spacing: -0.01em;
}

.project-name a {
	color: inherit;
	text-decoration: none;
    border-bottom: 2px dashed;
}

.project-name a:hover {
    border-bottom: 2px solid;
}


.project-description {
	font-size: 0.95rem;
	color: #666;
	margin-top: 4px;
}

.footer {
	font-size: 0.9rem;
	color: #999;
	border-top: 1px solid #e0e0e0;
	padding: 2rem 0;
    line-height: 1;
    font-size: 16px;
}

.footer ul {
	list-style: none;
	display: flex;
	gap: 1rem;
}

.footer ul li {
	display: inline-block;
}

.footer ul li a {
	text-decoration: none;
	color: #000000;
}

.footer .email{
    border: 1px solid #999;
    padding: 0;
    border-radius: 4px;
}

.sr-only {
	position: absolute;
	padding: 0;
	border-width: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	width: 1px;
	height: 1px;
	margin: -1px;
}

.intro {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	grid-template-areas: "text text text text image";
	gap: 2rem;
	color: #333;
	padding-top: 16rem;
	min-height: calc(90vh - 40px);
}

.intro.compact {
	min-height: calc(50vh - 40px);
}
.intro.short {
    padding-top: 4rem;
	min-height: calc(1vh - 40px);
}

.intro .text {
	grid-area: text;
}

.intro .text h1 {
	font-size: 3rem;
	line-height: 1;
}

.intro .text h3 {
	margin-top: 1rem;
	font-size: 1.5rem;
	line-height: 1.25;
	font-weight: 100;
}

.intro h1 .clause {
	font-weight: 200;
}

.hero-image {
	grid-area: image;
	width: 100%;
	max-width: 100%;
	aspect-ratio: 596 / 842;
	height: auto;
	min-height: 400px;
	background: linear-gradient(135deg, #f7f7f7, #e4e4e4, #f1f1f1, #dcdcdc);
	background-size: 400% 400%;
	-webkit-mask-image: url(/andersface.svg);
	mask-image: url(/andersface.svg);
	mask-repeat: no-repeat;
	mask-size: contain;
	mask-position: center;
	animation: gradientRoll 10s ease infinite;
	align-self: end;
	position: sticky;
	top: auto;
	bottom: 0;
}

.intro.short {
	padding-top: 6rem;
	min-height: auto;
}

.intro.short .hero-image {
	display: none;
}

.page-section {
	padding-top: 6rem;
	padding-bottom: 4rem;
}

.page-section .text {
	max-width: 640px;
}
.blog-post .page-section .text, .experiment-detail .page-section .text {
	max-width: 100%;
}

.blog-post p, .experiment-detail p, h3 {
    margin: 1em 0;
    line-height: 2;
}

.blog-post .page-section a, .experiment-detail .page-section a {
    color: inherit;
    text-decoration: none;
    border-bottom: 2px dashed;
}
.blog-post .page-section a.crumb, .experiment-detail .page-section a.crumb {
    border-bottom: none;
    cursor: pointer;
}

.blog-post .page-section a:hover, .experiment-detail .page-section a:hover {
    border-bottom: 2px solid;
}
.blog-post pre, .experiment-detail pre {
	margin: 1em 0;
	padding: 1em;
	background: #f0f0f0;
	border-radius: 0.5em;
}

.blog-post code {
	font-family: var(--font-family-monospace);
}
.blog-post blockquote, .experiment-detail blockquote {
	font-style: italic;
    margin: 1em 0;
    padding: 0.25em 2em;
    background: #f0f0f0;
    border-left: 3px solid #666;
}

.post-meta {
	font-size: 0.9rem;
	color: #666;
	margin: 1rem 0 2rem;
}

.blog-post ._giphy, .blog-post ._img {
	border-radius: 0.5em;
    box-shadow: 0px 0px 20px 5px #ddd;
    width: auto;
    margin: 1em auto;
    max-width: 600px;
    width: 100%;
    overflow: hidden;
}
.blog-post ._giphy img, .blog-post ._img img {
	width: 100%;
	height: auto;
}
.blog-post ._giphy p, .blog-post ._img p {
	margin: 0;
	text-align: center;
	font-size: 0.8rem;
	color: #666;
}
.blog-post ._giphy p a, .blog-post ._img p a {
	color: #666;
	text-decoration: none;
}

@media (max-width: 768px) {
	body {
		padding: 0 20px;
	}

	.intro {
		grid-template-columns: 1fr;
		grid-template-areas: "text" "image";
		min-height: auto;
		padding-top: 6rem;
	}

	.intro .text h1 {
		font-size: 2rem;
	}

	.intro .text h3 {
		font-size: 1.25rem;
	}

	.hero-image {
		position: static;
		width: 30%;
		min-height: 0;
		height: auto;
		margin: 2rem auto 0;
		justify-self: center;
		align-self: center;
	}

	.footer ul {
		flex-direction: column;
	}

	.footer ul li a {
		font-size: 0.8rem;
	}
}

@keyframes gradientRoll {
	0% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}

	100% {
		background-position: 0% 50%;
	}
}

