/* ================================================================== **
/* ****************************************************************** **
/* Variables
/* __________________________________________________________________ */

:root {
	--background-sizing: 9rlh;
	--text-background: rgba(0 0 0 / 67%);
	--max-text-width: 32rem;
	line-height: 1.5;
}

/* ================================================================== **
/* ****************************************************************** **
/* Base/reset styles
/* __________________________________________________________________ */

*,
*::before,
*::after {
	box-sizing: border-box;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

figure {
	margin: 0;
	padding: 0;
}

/* ================================================================== **
/* ****************************************************************** **
/* Body and text selection
/* __________________________________________________________________ */

body {
	--background-colour: var(--colour-white);
	--foreground-colour: var(--colour-black);
	font-family: serif;
	margin: 0;
	min-width: 320px;
	min-height: 100svh;
	overflow-x: hidden;
	position: relative;
	background:
		radial-gradient(ellipse at top, #535b1c, transparent),
		radial-gradient(ellipse at bottom, #4d9f0c, transparent),
		radial-gradient(closest-side, transparent, white),
		/* repeating-linear-gradient(transparent, #4d9f0c 6rlh),
		repeating-linear-gradient(0.25turn, transparent, #3f87a6 6rem), */
		url("crow.jpg");
	background-size: 9rem 9rlh;
	background-repeat: repeat;
	background-blend-mode: hard-light;
}

#crow {
	--crow-scale: 9;
	box-sizing: content-box;
	padding: 1000%;
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transform: scale(100%);
	background: url("crow.png");
	background-size: calc(var(--crow-scale) * 1rem)
		calc(var(--crow-scale) * 1rlh);
	background-repeat: repeat;
	z-index: 0;
	pointer-events: none;
}

::selection {
	background-color: fuchsia;
	color: gold;
}

/* ================================================================== **
/* ****************************************************************** **
/* Typography
/* __________________________________________________________________ */

a {
	color: inherit;
}

@media (hover: hover) {
	a:hover {
		color: gold;
		font-weight: bold;
	}
}

strong,
b,
.ty-bold {
	font-weight: bold;
}

em,
i,
.ty-ital {
	font-weight: italic;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
	display: inline-block;
	margin: 0;
	background-color: var(--text-background);
	color: white;
	padding-inline: 0.5rem;
	max-width: var(--max-text-width);
}

h1 {
	height: 2rlh;
	font-size: 1.5rem;
	letter-spacing: 0.1em;
}

h2 {
	font-size: 1.25rem;
	font-style: italic;
	letter-spacing: 0.1em;
	padding-top: 0.5rlh;
}

h3 {
	font-size: 1.25rem;
	padding-top: 0.5rlh;
}

p {
	text-align: justify;
}

/* ================================================================== **
/* ****************************************************************** **
/* Layout
/* __________________________________________________________________ */

.container {
	padding-inline: 2rem;
	position: relative;
	z-index: 1;
}

header,
section,
footer {
	margin: 0;
}

header {
	margin-top: 0;
	display: flex;
	justify-content: space-between;
	column-gap: 1rem;
	height: var(--background-sizing);
}

header .left-side {
	display: flex;
	justify-content: flex-end;
}

header > * {
	display: flex;
	flex-direction: column;
}

header figure,
header img {
	height: 100%;
	width: auto;
	float: right;
}

/* ================================================================== **
/* ****************************************************************** **
/* Papers
/* __________________________________________________________________ */

.papers h2 {
	margin-top: 3rlh;
}

.paper {
	display: flex;
	justify-content: flex-start;
	column-gap: 1rem;
	padding-bottom: 1rlh;
	max-height: var(--background-sizing);
}

.paper * {
	background-color: transparent;
}

.paper .left-side {
	max-width: var(--max-text-width);
	background-color: var(--text-background);
}

.paper figure {
	padding: 0 0.5rem;
	height: 100%;
	width: auto;
	display: inline-block;
}

.paper img {
	height: 100%;
	width: auto;
}

.paper h3 span {
	font-weight: normal;
	font-size: 1rem;
}

.divider {
	color: #87f62b;
}

.description {
	margin-top: 0.5rlh;
}
