/* RL zeta font setup */
@font-face {
	font-family: 'RL zeta';
	src: local('RL zeta'), url('RL-Zeta-Mono.otf') format('opentype');
	font-weight: 400;
	font-style: normal;
}

:root {
	--h1-size: 65pt;
	--h2-size: 1.5rem;
	--body-text-size: 1rem;
	--body-text-line-height: 1.45;
	--gradient-gray-end: 85%;
	--gradient-yellow-start: 90%;
}

body {
	margin: 20px 50px;
	position: relative;
	font-family: 'RL zeta', sans-serif;
	font-synthesis: none;
	-webkit-font-smoothing: antialiased;
	line-height: 1.2;
	text-rendering: geometricPrecision;
	background: linear-gradient(to bottom, #d9d9d6 0%, #d9d9d6 var(--gradient-gray-end), #fff000 var(--gradient-yellow-start), #fff000 100%);
	min-height: 100vh;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

header {
	display: grid;
	grid-template-columns: repeat(10, 1fr);
	column-gap: 12px;
	align-items: baseline;
	width: 100%;
	height: auto;
}

header h1 {
	grid-column: 1 / span 4;
	margin: 0;
	padding: 0;
	z-index: 10;
	font-size: var(--h1-size);
	line-height: 1;
	text-decoration: underline;
	text-decoration-thickness: 5px;
	text-underline-offset: 0.08em;
}

header h2 {
	position: fixed;
	top: 70px;
	left: calc(50px + 7 * ((100vw - 100px - 9 * 12px) / 10) + 7 * 12px);
	margin: 0;
	padding: 0;
	z-index: 10;
	font-size: var(--h2-size);
	line-height: 1;
}

header h2 a {
	color: #000;
	text-decoration: none;
	transition: color 0.2s;
}

header h2 a:hover {
	color: #fff000;
	text-decoration: underline;
}

/* Slide zone under About link */
.about-slide {
	position: fixed;
	right: 50px;
	top: 70px;
	max-height: 0;
	overflow: hidden;
	background: #fff000;
	margin-top: 0;
	border-radius: 0;
	box-shadow: none;
	width: 20%;
}

#about-slide > p {
	margin: 10px;
	padding: 0;
	font-size: var(--body-text-size);
	line-height: var(--body-text-line-height);
	color: #000;
}

/* Split container into two halves */
.container {
	display: grid;
	grid-template-columns: repeat(10, 1fr);
	grid-gap: 12px;
	width: 100%;
	height: 400px;
	margin: 0;
	align-items: stretch;
	padding-top: 2.5rem;
	padding-bottom: 60px;
}

.container + .container {
	margin-top: 1.5rem;
}

.half {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}

.left {
	background: none;
	grid-column: 1 / span 4;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.right {
	background: none;
	grid-column: 5 / span 4;
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
}

.carousel {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #242424;
}

.carousel img {
	max-width: 100%;
	max-height: 100%;
	display: block;
	opacity: 1;
	transition: opacity 0.3s ease;
	position: relative;
}

.carousel button {
	display: none;
}

.carousel-area {
	position: absolute;
	top: 0;
	height: 100%;
	cursor: pointer;
	z-index: 2;
	background: transparent;
	border: none;
	padding: 0;
	margin: 0;
	pointer-events: auto;
}

.carousel-area.left {
	left: 0;
	width: 40%;
}

.carousel-area.right {
	right: 0;
	width: 60%;
}

.text-content {
	padding: 0 2rem;
	text-align: left;
}

.title-line {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	margin: 0 0 0.5rem 0;
}

.text-content h3 {
	font-size: 2rem;
	margin: 0;
	text-decoration: underline;
}

.text-content p.author {
	margin: 0;
	font-size: 1em;
	line-height: inherit;
}

.text-content > p:not(.author) {
	margin: 0;
	font-size: var(--body-text-size);
	line-height: var(--body-text-line-height);
}
