@charset "UTF-8";

a.tile
{
	background-color: rgb(255, 255, 255);
	padding: clamp(.5rem, 1vw, 1rem);
	padding-bottom: 4rem;
	margin: clamp(.5rem, 1vw, 1rem);
	line-height: 1.75;
}

a.tile:after
{
	content: "\f061";
	font-family: "awesome";
	font-size: 1.5em;
	display:block;
	transform: rotate(-45deg);
	position:absolute;
	bottom: clamp(.5rem, 1vw, 1rem);
	right: clamp(.5rem, 1vw, 1rem);
	
	-webkit-transition: all .3s ease;
	-moz-transition: all .3s ease;
	-ms-transition: all .3s ease;
	-o-transition: all .3s ease;
	transition: all .3s ease;
}

body:not(.touch) a.tile:hover:after
{
	transform: rotate(0deg);
}

body:not(.touch) a.tile:hover
{
	color: #0000EE;
}


/********************************************************/
/************************ Project ************************/
/********************************************************/

#project > div
{
	display: flex;
	flex-wrap:wrap;
	margin: 0 clamp(-1rem, -1vw, -.5rem);
}


#project a.tile
{
	width: calc(50% - clamp(1rem, 2vw, 2rem));
	display: flex;
	flex-direction:column;
	justify-content: space-between;
	padding-top: clamp(2rem, 4vw, 4rem);
	padding-bottom: clamp(2rem, 4vw, 4rem);
}

/*#project > div:has(>*:nth-child(3n):last-child) a.tile
{
	width: calc(calc(100% / 3) - clamp(1rem, 2vw, 2rem));
}*/

#project a.tile:before
{
	content:"";
	position: absolute;
	top: 0;
	left: 0;
	width:calc(100%);
	height: max(50%, 5rem);
	background-image: url(../_img/project_bg.svg);
	background-repeat: repeat-x;
	background-size: contain;
}

#project a.tile h3
{
	font-size: clamp(1.5rem, 3vw, 2rem);
}

/********************************************************/
/************************ Journal ************************/
/********************************************************/

#journal > div
{
	display: flex;
	flex-wrap:wrap;
	margin: 0 clamp(-1rem, -1vw, -.5rem);
}


#journal a.tile
{
	width: calc(50% - clamp(1rem, 2vw, 2rem));
	display: flex;
	flex-direction:column;
	justify-content: flex-start;
}

#journal .cat
{
	font-size: clamp(1.2rem, 3vw, 1.5rem);
	margin-bottom: .5em;
}

#journal h3
{
	font-size: clamp(1.2rem, 3vw, 1.5rem);
	margin-top: 2em;
	margin-bottom: .5em;
}

#journal .tags
{
	margin: -.25em;
}

#journal .tags .tag
{
	margin: .25em;
}


/*//////////////////////////////////////////////////////////////////////////////////
///////////////////////////////// MEDIA SCREEN ////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////*/

@media screen and (max-width: 650px)
{
	#journal a.tile,
	#project a.tile
	{
		width: calc(100% - clamp(1rem, 2vw, 2rem));
	}
}