/*
 * meow! -- @vimkat
 * wuff! -- @raah
 */

:root {
	--color: #e52329;
}

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

body {
	font-family: 'Public Sans', sans-serif;
	color: #16283d;
	max-width: 85rem;
	margin: 0 auto;
	padding: 0 4rem;
}

h1, h2, h3 { font-weight: 900 }
h1 {
	font-size: 2.5rem;
	color: var(--color);
}

a {
	text-decoration: none;
}

a.home-link {
	color: inherit;
	transition: all 100ms;
}

a.home-link:hover {
	color: #333;
}


header {
	width: 100%;
	height: auto;
	padding: 5rem 0;
	
	display: grid;
	grid-template-columns: 1fr;
	grid-template-areas:
		"copy"
		"linkhub"
		"cta";
	grid-gap: 2rem;

	justify-items: center;
	align-items: center;
}

.cta {
	grid-area: cta;
	font-family: inherit;
	border: none;
	background: none;
	cursor: pointer;
	font-size: 2rem;
	animation: wiggle 500ms infinite alternate;
	color: inherit;
	text-decoration: none;
}

@keyframes wiggle {
	from { transform: translateY(0) }
	to { transform: translateY(50%) }
}

.copy {
	grid-area: copy;
	display: grid;
	grid-template-columns: min-content auto;
	grid-template-areas:
		"logo title"
		"logo fsin"
		"logo date";
	grid-gap: 0.25rem 2rem;
	margin: 1rem 0;
}

.fsin-logo {
	grid-area: logo;
	width: 6rem;
	border-radius: 50%;
	align-self: center;
}

.copy > h1 { grid-area: title }
.copy > .date { grid-area: date }

.fsin, .date {
	color: #222;
	font-size: 1.25rem;
}

.fsin {
	grid-area: fsin;
	font-weight: 700;
}

.linkhub {
	display: grid;
	grid-area: linkhub;
	grid-template-columns: 1fr 1fr;
	text-align: center;
}

.link {
	display: block;
	width: 27rem;

	border: 2px solid var(--color);
	padding: 2.5rem;
	margin: 0.5rem;

	color: #222;
	font-weight: bold;

	transition: all .15s ease-in-out;
}

.link:hover {
	background-color: var(--color);
	color: white;
}

@media screen and (max-height: 55rem), screen and (max-width: 55rem) {
	header {
		padding-top: 4rem;
		grid-template-columns: 1fr;
		grid-template-rows: 1fr auto auto;
		grid-template-areas:
			"copy"
			"linkhub"
			"cta";
		grid-gap: 3rem;
	}

	.copy {
		justify-self: center;
	}

	.linkhub {
		grid-template-columns: 1fr;
	}

	.link {
		width: auto;
	}
}

@media screen and (max-width: 40rem) {
	body { padding: 0 2rem }
	.copy {
		grid-template-columns: 1fr;
		grid-template-areas:
			"logo"
			"title"
			"fsin"
			"date";
		grid-column-gap: 0;
		width: 75vw;
	}
	.copy > img { margin-bottom: 1rem }
	.copy > h1 { font-size: 2rem }
	.overview-list > li {
		flex-direction: column;
		align-items: center;
	}
	.overview-list > li aside,
	.overview-list > li aside h3 {
		margin: 1rem 0 !important;
		text-align: center !important;
	}
}


main > section {
	margin: 6rem 0;
	scroll-margin-top: 4rem;
}

h2 {
	font-size: 2rem;
	text-align: center;
	margin-bottom: 2rem;
}

h3 {
	text-align: left !important;
	margin-bottom: 0.7rem;
}

.candidate-list,
.about-list,
.overview-list,
.ref-list {
	list-style: none;
}

.overview-list > li {
	display: flex;
	margin: 0 4rem 4rem 4rem;
}

@media screen and (max-width: 55rem) {
	.overview-list > li {
		margin: 0 0 4rem 0;
	}
}

.overview-list > li img {
	width: 10rem;
	height: 10rem;
	border-radius: 50%;
}

.overview-list > li aside {
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin-left: 4rem;
}

.candidate-card {
	display: grid;
	grid-template-columns: 20rem 3fr;
	grid-template-rows: min-content 1fr auto;
	grid-template-areas:
		"img info"
		"img motivation"
		"line line";
	grid-gap: 1rem;
	margin: 5rem 0;
}

@media screen and (max-width: 768px) {
	header {
		grid-template-columns: 1fr;
	}

	.candidate-card {
		grid-template-columns: 1fr;
		grid-template-areas:
			"img"
			"info"
			"motivation"
			"line"
	}
}

.candidate-card::after {
	content: '';
	display: block;
	grid-area: line;
	border-bottom: 1px solid #AAA;
	justify-self: center;
	margin-top: 5rem;
	width: 20%;
}

.candidate-card:last-child::after {
	display: none;
}

.candidate-info {
	grid-area: info;
}

.candidate-name {
	font-size: 1.5rem;
	margin-bottom: 0.15rem;
}

.candidate-study {
	font-size: 0.85rem;
	color: #333;
	margin: 0.25rem 0;
}

.candidate-img-container {
	grid-area: img;
	display: grid;
	align-content: start;
	justify-content: center;
}

.candidate-img-container:hover .candidate-motto {
	transform: translateY(0%) rotate(-6deg);
}

.candidate-img {
	max-width: 15rem;
	height: 15rem;
	object-fit: cover;
	justify-self: center;
	align-self: center;

	/* clip-path: polygon(7% 6%, 92% 4%, 85% 100%, 5% 95%); */
}

.candidate-study {
	grid-area: study;
}

.candidate-study > .semester { white-space: nowrap }

.candidate-motto {
	background: var(--color);
	color: white;
	font-size: 0.85rem;
	font-weight: bold;

	display: inline-block;
	max-width: 16rem;

	padding: 0.5rem 1rem;
	text-align: center;
	transform: translateY(-75%) rotate(-4deg);
	margin: 0 auto;
	transition: transform 100ms;

	box-shadow: 0 0 5px 1px rgba(0,0,0,0.2);
}

.candidate-motto > pre {
	font-size: 0.60rem;
	text-align: left;
}

.candidate-motivation {
	grid-area: motivation;
	line-height: 1.5;
	align-self: start;
}

.candidate-motivation > p {
	margin: 0.75rem 0;
}

.about-list {
	display: grid;
}

.about-list:last-child {
	margin-bottom: 0;
}

.about-item {
	margin: 0 4rem 3rem 4rem;
}

.about-text {
	line-height: 1.5;
	align-self: start;
}

.about-text .ref {
	font-weight: bolder;
	font-size: 0.9rem;
}

.ref-list {
	display: flex;
	flex-wrap: wrap;

	line-break: auto;
	line-height: 1.4rem;

	margin: 0 4rem 0 4rem;
}

.ref-item {
	font-size: 0.9rem;

	margin-right: 10px;
}

.ref-id {
	font-weight: 500;
}

@media screen and (max-width: 55rem) {
	.about-item {
		margin: 0 0 3rem 0;
	}
	.ref-list {
		margin: 0;
	}
}

footer {
	font-size: 0.75rem;
	color: #AAA;
	text-align: center;
	padding: 3rem 0;
}
