@import url("Optina-static.css");

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

@font-face {
	font-family: "Bebas Neue Cyrillic";
	font-weight: normal;
	font-style: normal;
	src: url("BebasNeueCyrillic.woff2") format("woff2");
}

html {
	background: #eee;
}

body {
	background: #fff;
	color: #222;
	margin: auto;
	max-width: 1180px;
	padding: 5rem;
	box-shadow: 0 0 20px rgba(0, 0, 0, .1);
	font-family: Optina Display, Arial, Helvetica, sans-serif;
	line-height: 1.6;
}

a {
	text-decoration: underline;
	text-underline-offset: .2rem;

	&:link, &:visited {
		color: #426bca;
	}
	&:active, &:hover {
		color: #2a4a96;
	}
}

small {
	font-size: 87.5%;
}

body > header {
	height: 125px;

	#lang {
		display: none;
	}

	#logo {
		display: block;

		svg {
			width: 125px;
			height: 125px;
			float: right;
			margin-left: 35px;

			path {
				transition: .3s;
				fill: #222;
			}
		}
		b {
			font-family: "Bebas Neue Cyrillic";
			font-weight: normal;
			font-size: 48px;
			line-height: 75px;
		}

		text-decoration: none;
		color: #222;

		&:active, &:hover {
			color: #a33537;

			svg path {
				fill: #832a28;
			}
		}
	}

	#tagline {
		font-family: "Bebas Neue Cyrillic";
		font-size: 32px;
		font-style: normal;
		line-height: 45px;
	}

	nav {
		font-family: "Bebas Neue Cyrillic";
		font-size: 1.75rem;
		text-transform: uppercase;
		line-height: 45px;
		display: flex;
		/*justify-content: space-between;*/
		gap: 2rem;

		a {
			display: inline-block;

			&:link, &:visited {
				color: #666;
				text-decoration: none;
			}

			&:active, &:hover {
				color: #a33537;
			}

			&.current {
				color: #832a28;
			}

			&:active, &:hover, &.current {
				text-decoration: underline;
				text-decoration-thickness: 2px;
				text-decoration-color: #832a28;
				text-underline-offset: 4px;
			}
		}
	}
}

#page-title {
	padding: 3rem 0 2rem 0;

	.parent {
		margin-top: 1rem;
		font-size: .875rem;
		color: #832a28;
	}

	h1 {
		text-wrap: balance;
		line-height: 1.2;
		margin: 0;
		font-family: Optina, Arial, Helvetica, sans-serif;
	}

	p {
		margin: 1rem 0;
	}
}

dl.metadata {
	margin: 1rem 0;
	display: flex;
	flex-direction: row;
	gap: 2rem;

	& > div {
		min-width: 10rem;
	}

	dt {
		font-size: .875rem;
		font-weight: bold;
		color: #832a28;
	}
}

/*h1 {
	font-family: "Bebas Neue Cyrillic", Arial;
	font-size: 2.5rem;
	font-weight: normal;
	margin: 1rem 0;
}*/

main {
	display: flex;
	flex-direction: row-reverse;
}

.paper-section {
	& + .paper-section {
		margin-top: 2rem;
	}

	h2 {
		font-family: "Bebas Neue Cyrillic", Arial;
		font-size: 1.5rem;
		font-weight: normal;
		margin: 0 0 .5rem 0;
		line-height: 1.2;
	}
}

.paper {
	padding: 1rem 0;
	border-top: 1px solid #ddd;

	h5 {
		margin-bottom: .25rem;
		font-size: .875rem;
		font-weight: bold;
		color: #832a28;
	}

	/*h3 {
		font-family: Optina, Arial, Helvetica, sans-serif;
	}*/

	.doi {
		margin: 0;
	}
}

.inline-list {
	list-style: none;
	margin: .5rem 0;
	line-height: 2;

	li {
		display: inline;
		white-space: nowrap;
		margin-right: .75rem;
	}
}

article, aside {
	& > :first-child {
		margin-top: 0;
	}
	& > :last-child {
		margin-bottom: 0;
	}
}

article {
	width: 40rem;
	margin-right: 5rem;

	h2  {
		margin: 1.5rem 0 .5rem;
	}

	p {
		margin: 1rem 0;
	}
}

aside {
	width: 20rem;

	p {
		margin: 1rem 0;
	}
}

#table-of-contents {
	position: sticky;
	top: 1rem;

	h2 {
		font-family: "Bebas Neue Cyrillic", Arial;
		font-size: 1.5rem;
		font-weight: normal;
		margin-bottom: .25rem;
	}

	ul {
		list-style: none;
		font-size: .875rem;
		line-height: 1.4;

		a {
			display: block;
			padding: .25rem 0;
		}
	}
}

.orcid {
	display: inline-block;
	margin: 0 .2rem -.25rem .2rem;
}

body > footer {
	margin-top: 3rem;
	border-top: 1px dashed #ddd;
	padding: 2rem 0 1rem 0;
	font-family: "Bebas Neue Cyrillic", Arial;
	font-size: 1.75rem;
	font-weight: normal;
	color: #ccc;
}

.institution {
	font-weight: bold;
}

.author-corresponding {
	text-decoration: underline;
	text-underline-offset: 4px;
}
.author-current {
	font-weight: bold;
	color: #a33537;
}


.download {
	display: block;
	padding: 1rem 2rem 1rem 4rem;
	background: #a33537;
	color: #fff !important;
	text-decoration: none;
	line-height: 1.2;

	&::before {
		content: "\2193";
		display: block;
		float: left;
		margin-left: -3rem;
		width: 2rem;
		text-align: center;
		font-size: 2.5rem;
		line-height: 1.2;
	}

	b {
		display: block;
		font-family: "Bebas Neue Cyrillic", Arial;
		font-size: 1.75rem;
		font-weight: normal;
	}

	span {
		color: rgba(255, 255, 255, .75);
	}

	&:active, &:hover {
		background: #832a28;
	}
}