@import url("https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.fluid.classless.min.css") layer(theme);
@import url("/main.css") layer(main);

#hero {
	text-align: center;
	h1 {
		font-size: 2.5rem;
		line-height: 1.2;
		color: #ffffff;
		margin-block-end: 0.5rem;
		span {
			color: #01aaff;
		}
	}
	p {
		font-size: 1rem;
		line-height: 1.6;
		margin-block-end: 2rem;
	}
}

.hero-links {
	display: flex;
	gap: 1rem;
	justify-content: center;
}

.button {
	display: inline-block;
	text-decoration: none;
	text-align: center;
	border-radius: 1rem;
	color: #ffffff;
	background-color: #374151;
	border: 1px solid #374151;
	padding: 0.75rem 1.5rem;
	font-size: 0.9rem;
	transition: background-color 0.2s ease-in-out;
}
.button:hover {
	background-color: #4b5563;
	text-decoration: none;
}
.button:first-of-type {
	background-color: #0172ad;
	box-shadow: #0172ad 0px 0px 20px -4px;
}
.button:first-of-type:hover {
	background-color: #0284c7;
}
.button.outline {
	background: transparent;
	border-color: #374151;
	color: #92a1c3;
}
.button.outline:hover {
	background: #1f2937;
	color: #ffffff;
}

.reg-card {
	margin-block-end: 1rem;
	&:last-child {
		margin-block-end: 0;
	}
}

.reg-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-block-end: 0.5rem;
	h3, h4 {
		margin: 0;
	}
}

.flag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: auto;
	background: #1f2937;
	border: 1px solid #374151;
	border-radius: 8px;
	font-size: 0.8rem;
	font-weight: 700;
	color: #e2e8f0;
	flex-shrink: 0;
}

.reg-card ul {
	padding-inline-start: 1.5rem;
	li {
		list-style: disc;
		padding-block-end: 0.25rem;
		color: #92a1c3;
	}
}

.reg-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin-block-start: 1rem;
}

.intro-text {
	max-width: 800px;
	margin-inline: auto;
	font-size: 1rem;
	line-height: 1.7;
	p {
		margin-block-end: 1rem;
	}
}

.papers {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin-block: 2rem;
}

.paper-card {
	display: grid;
	grid-template-rows: auto auto 1fr auto;
	h3 {
		margin-block: 0 0.25rem;
		color: #ffffff;
		font-size: 1.1rem;
	}
}

.paper-authors {
	font-size: 0.8rem;
	color: #6b7280;
	margin-block-end: 0.75rem;
}

.paper-abstract {
	font-size: 0.9rem;
	line-height: 1.6;
	margin: 0 0 0.75rem 0;
}

.paper-link {
	color: #01aaff;
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
	&:hover {
		text-decoration: underline;
	}
}

details {
	background: linear-gradient(#1f2937, #111827);
	border: 1px solid #374151;
	border-radius: 1rem;
	padding: 0.75rem 1.25rem;
	margin-block: 0.5rem;
}
details summary {
	color: #ffffff;
	font-weight: 700;
	cursor: pointer;
	padding: 0.25rem 0;
}
details summary::-webkit-details-marker {
	color: #01aaff;
}
details[open] summary {
	margin-block-end: 0.75rem;
}
details p {
	margin: 0;
}
details ul {
	padding-inline-start: 1.5rem;
	margin-block: 0.5rem;
	li {
		list-style: disc;
		padding-block-end: 0.25rem;
	}
}

.quick-facts {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin-block: 2rem;
}

.fact-card {
	text-align: center;
	background: linear-gradient(#1f2937, #111827);
	border: 1px solid #374151;
	border-radius: 1rem;
	padding: 1.5rem;
	b {
		display: block;
		font-size: 1.5rem;
		color: #01aaff;
		margin-block-end: 0.25rem;
	}
	span {
		font-size: 0.85rem;
		color: #92a1c3;
	}
}

@media (min-width: 1296px) {
	body {
		max-width: 1000px;
		margin-inline: auto;
	}

	body > header {
		nav {
			a[href="/"] {
				flex: 0 0 auto;
			}
			a[href="/"]:not(:has(svg)) {
				flex: 1 0 auto;
				display: unset;
			}
		}
	}

	/*.reg-grid {
		grid-template-columns: 1fr 1fr;
	}

	.papers {
		grid-template-columns: 1fr 1fr 1fr;
	}*/

	.quick-facts {
		grid-template-columns: 1fr 1fr 1fr 1fr;
	}
}
