:root {
	font-family: 'EB Garamond', serif;
	font-size: 1.35em;
}

* {
	cursor: url('/static/images/cur.png') 44 64, auto !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
p.h7 {
	font-weight: 400;
}

p.h7 {
	display: block;
	font-size: 0.52em;
	margin-top: 1em;
	margin-bottom: 1em;
}

.left {
	text-align: left;
}

.center {
	text-align: center;
}

.right {
	text-align: right;
}

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

a.no-decoration:hover {
	text-decoration: underline;
}

body {
	display: grid;
	grid-template-columns: 2rem minmax(0, 24rem) 1fr;
	grid-template-rows: auto 1fr;
	margin: 0 0 1.5rem 0;
}

header,
main {
	grid-column: 2;
}

/* Styling for the <header> */

header,
.white {
	top: 0;
	position: sticky;
	background-color: white;
	z-index: 10;
	padding: 1rem 0;
	margin: 0.5rem 0 0.8rem 0;
}

header {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

#logo {
	font-size: 2.3rem;
	margin-bottom: 0.2rem;
	text-align: center;
}

/* Styling for the <nav>igation bar in the <header> */

nav {
	display: flex;
	justify-content: center;
}

nav>a {
	font-size: 0.95rem;
	padding: 0 10px;
}

nav>a:first-child {
	padding-left: 0px;
}

nav>a:last-child {
	padding-right: 0px;
}

nav>a:not(:first-child) {
	border-left: 1px solid black;
}

/* Styling for the <main> content */

/* The article card */

.article-card:not(:first-of-type) {
	margin-top: 2rem;
}

.article-card>a {
	margin: 0;
	line-height: 1.05;
}

.article-title {
	font-size: 1.7rem;
	display: inline;
}

/* Would prefer :has(+ .article-subtitle)::after but that's not a good idea for
compatibility reasons. See https://caniuse.com/css-has */
.article-title:not(:last-child)::after {
	content: ": ";
}

.article-subtitle {
	font-size: 1.3rem;
	opacity: 0.6;
	display: inline;
}

.article-misc {
	display: flex;
	justify-content: space-between;
	opacity: 0.6;
	font-size: 0.85rem;
	padding: 0.4rem 0 0.15rem 0;
	margin-bottom: 0.45rem;
}

.article-kind {
	opacity: 0.6;
	font-size: 0.75rem;
	border-radius: 25px;
	padding: 0.05rem 0.25rem;
	padding-bottom: 0.1rem;
	border: 1px solid black;
	color: black;
	margin-right: 0.1rem;
	background-color: rgba(128, 128, 128, 0.33);
}

.article-abstract {
	margin: 0;
	line-height: 1.3;
	text-align: justify;
	hyphens: auto;
}

/* The article itself */

.article-text,
.article-note {
	line-height: 1.5;
	text-align: justify;
	hyphens: auto;
}

.article-text>*:first-child {
	margin-top: 0;
}

.article-text>blockquote {
	line-height: 1.3;
}

.article-note {
	padding: 1rem;
	margin: 1rem 1rem;
	border: 1px solid black;
}

.article-note>p:first-child {
	margin-top: 0;
}

.article-note>p:last-child {
	margin-bottom: 0;
}

hr {
	margin: 1.5rem 3rem 1.3rem 3rem;
}

img {
	width: 100%;
}

table, th, td {
	text-align: left;
	hyphens: none;
	/* border: 1px solid black; */
}

table {
	border-collapse: collapse;
	width: 100%;
}

thead {
	border-bottom: 1px solid black;
}

td, th {
	border-right: 1px solid black;
	padding: 0.5rem 0.75rem;
}

td {
	border-top: 1px solid black;
}

td:last-child, th:last-child {
	border-right: none;
}

/*  */

@media (max-width: 920px) {
	body {
		grid-template-columns: 1fr minmax(0, 24rem) 1fr;
		padding: 0 1rem;
	}

	#logo {
		font-size: 1.8rem;
	}
}
