:root {
	--cor-fundo-1: #cfe;
	--cor-fundo: #000;
	--cor-txt: #ddd;
	--cor-txt-l1: #555;
	--cor-sugo-corpo: #000;
	--cor-olho_sugo: #34baf1;

	--font-um: Calibri, sans-serif;
}

html {
	overflow: hidden;
}

html,
body {
	height: 100%;
}

body * {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	line-height: 1.5;
}

body {
	font-family: var(--font-um);
	background-color: var(--cor-sugo-corpo);
}

.dark {
	background-color: var(--cor-sugo-corpo);
}

a {
	text-decoration: none;
}

h1 {
	font-size: 1.5rem;
	letter-spacing: 2px;
	font-weight: 100;
	align-self: start;
	margin-top: 1rem;
	min-width: 14ch;
}

h2 {
	font-size: 2rem;
	letter-spacing: 2px;
	font-weight: 100;
	line-height: 1.2;
}

h1,
h2 {
	text-align: center;
}

p {
	font-size: 1rem;
	font-weight: 100;
	line-height: 1.6;
	font-weight: 100;
	/* color: var(--cor-txt); */
	text-align: center;
}

main {
	height: 100vh;
	display: grid;
	grid-template-rows: 1fr auto auto auto 1fr auto 2fr auto;
	place-items: center;
	max-width: 51ch;
	min-width: 14ch;
	text-align: left;
	margin: 0 auto;
	padding: 4rem 0;
}

main a {
	color: #000;
	font-size: 1.2rem;
	background-color: var(--cor-txt);
	padding: 0 10px;
	margin: 0;
	line-height: 1.2;
	transition: .2s border-radius ease-out;
}

main a:hover {
	background-color: orange;
	border-radius: 20px;
}

a.logo:hover {
	background-color: transparent;
}

.logo {
	cursor: pointer;
	margin: 3rem 0 0;
	padding: 0;
	/* border: 2px solid red; */
	background-image: url("anima_sugo-corre.svg");
	background-position: left center;
	background-color: var(--cor-sugo-corpo);
	width: 56px;
	height: 64px;
	animation: sugo-corre .28s infinite steps(7, start);
}

.light {
	background-color: #fff;
}

@keyframes sugo-corre {
	100% {
		background-position: right center;
	}
}

a.logo:hover {
	animation: sugo-descansa .8s infinite steps(7, start);
}

@keyframes sugo-descansa {
	100% {
		background-position: right center;
	}
}

.running {
	text-transform: uppercase;
	font-size: 1rem;
	margin-top: .5rem;
	margin-bottom: 1rem;
}

.source {
	margin-top: 1rem;
}

.source a {
	font-size: 1rem;
	text-decoration: none;
	text-align: center;
	color: #000;
	background-color: #000;
	padding: 3px 15px;
	transition: background-color 3s ease-in;
	border-radius: 2rem;
}

.source a:hover {
	background-color: hsl(88, 77%, 55%);
	transition: background-color .3s ease-out;
	color: #000;
}

.modesto {
	font-size: 0.8rem;
	/* text-align: center; */
	margin-bottom: 2rem;
	color: var(--cor-txt-l1);
}

.crossed {
	text-decoration: line-through;
}

footer {
	display: grid;
	place-content: center;
}

/* :: WORK :: */

.scroller {
	overflow-y: auto;
	scroll-snap-type: y mandatory;
	height: 100%;
}

.projecto {
	scroll-snap-align: start;
	height: 100%;
	display: grid;
	grid-template-columns: auto minmax(30ch 60ch);
	max-height: 98vh;
	object-fit: cover;
	padding-bottom: 10vh;
	overflow: hidden;
}

.projecto img {
	display: block;
	max-width: 100%;
	/* height: auto; */
	border: solid 1rem #000;
}

.projecto h1,
.projecto h2 {
	color: var(--cor-txt);
	font-size: 1rem;
	/* min-width: 30ch; */
	text-align: left;
	text-transform: lowercase;
}

.projecto p {
	text-align: center;
	text-transform: lowercase;
	margin-bottom: 1rem;
	line-height: 1.2;
}

.projecto a {
	padding: 0 5px;
	color: #000;
	background-color: orange;
	line-height: .1;
	font-size: .8rem;
}

.projecto a:hover {
	color: #000;
	background-color: #fff;
}

.info {
	margin: 1rem;
}

.info h2 {
	font-size: 2em;
}

.data {
	color: #aaa;
}

@media (orientation: landscape) {
	.projecto {
		grid-template-columns: auto minmax(20ch, 40ch);
		place-content: start;
		place-items: start;
		height: 100vh;
	}

	.projecto h1,
	.projecto h2 {
		margin: 1rem 0 0 0;
	}

	.projecto img {
		width: auto;
	}

	.projecto p {
		text-align: left;
	}

}