/*** The new CSS Reset - version 1.2.0 (last updated 23.7.2021) ***/

/* Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property */
*:where(:not(iframe, canvas, img, svg, video):not(svg *)) {
  all: unset;
  display: revert;
}

/* Preferred box-sizing value */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/*
  Remove list styles (bullets/numbers)
  in case you use it with normalize.css
*/
ol, ul {
  list-style: none;
}

/* For images to not be able to exceed their container */
img {
  max-width: 100%;
}

/* Removes spacing between cells in tables */
table {
  border-collapse: collapse;
}

/* Revert the 'white-space' property for textarea elements on Safari */
textarea {
  white-space: revert;
}

.hidden, .screen-reader-text { display: none; }
body {
	font-family: 'Montserrat', Arial, sans-serif;
}
a { cursor: pointer; }
header  {
	padding: 2rem 2rem 1rem 2rem;
	text-align: center;
}
header a.logo img {
	width: 100%;
	max-width: 126px;
}
.excerpt {
	padding: 2rem 2rem 1rem 2rem;
}
.excerpt h1 {
	font-weight: 700;
	font-size: 2rem;
	padding: 0 0 0.2rem 0;	
}
.excerpt p {
	line-height: 1.4;
}
nav div.nav-links {
	padding: 0rem 2rem 2rem 2rem;
	display: flex;
	flex-direction: row;
}
nav div.nav-links > div {
	width: auto;
}
nav div.nav-links svg {
	width:  100%;
}
.nav-links a {
	display: block;
	width: 48px;
	height: 48px;	
	cursor: pointer;
	border:  1px solid gray;
	border-radius: 100px;
	margin-right: 0.4rem;
	opacity: 0.4;
}
.nav-links a:hover { opacity: 1; }
.nav-links div svg {
	width: 44px;
	height: 44px;
}
article .images {
	scroll-snap-type: x mandatory;
	overflow-y: none;
	overflow-x: auto;
	background: black;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
}
article .images img {
	display: block;
	scroll-snap-align: start;
	flex:   0 0 100%;
	width:  100%;
	height: 100%;
	object-fit: cover;
}
article .details {
	background: #F37778;
	text-align: center;
	padding: 2rem 4rem 2rem 4rem;
}
article .details .avatar {
	border-radius: 100px;
}
article .details h2 {
	font-size: 14pt;
	margin: 8px 0 0px 0;
}
article .details .meta {
	display: inline-block;
	padding: 4px 8px;
	background: rgba(255, 255, 255, .03);
	color: rgba(255, 255, 255, .86);
	border-radius: 6px;
	font-size: 10pt;
	margin-right: 6px;
	margin-top: 6px;
	margin-bottom: 16px;
}

.categories {
	margin-bottom: 1rem;
}
.categories a {
	display: inline-block;
	padding: 4px 16px;
	background: rgba(0, 0, 0, 0.03);
	color: rgba(0, 0, 0, 0.66);
	border-radius: 6px;
	font-size: 10pt;
}
.sidebar {
	padding: 2rem 4rem 2rem 4rem;
	text-align: center;
}


/* tablet, landscape iPad, lo-res laptops ands desktops */ 
@media (min-width:801px)  { 
	nav div.nav-links {
		padding: 0rem 2rem 3rem 4rem;
	}
	article {
		width: 100%;
		height: 100vh;
		display: flex;
		flex-direction: row;
	}
	article main {
		display: flex;
		flex-direction: column;
		width:  47%;
		align-items: stretch;
	}
	article main header {
		padding: 4rem 4rem 2rem 4rem;
		height: 196px;
		text-align: left;
		margin-bottom: auto;
	}
	article main header .logo img {
		height: 96px;
	}
	article main  h1 {
		font-weight: 700;
		font-size: 2rem;
		padding: 0.4rem 0rem;
	}
	article main  .excerpt {
		line-height: 1.7rem;
		padding: 0.4rem 4rem 2rem 4rem;
		overflow: hidden;
		overflow-y: auto;
	}
	article aside {
		width:  53%;
		display: flex;
		flex-direction: column;
	}
	article .details {
		background: #F37778;
		position: absolute;
		height: 41vh;
		left: 45%;
		bottom: 0;
		width: 28%;
		text-align: center;
		padding: 24px;
	}
	.sidebar {
		height:  20%;
		text-align: right;
    width: 53%;
    align-self: end;
    align-content: stretch;
    display: flex;
    align-items: center;
    text-align: center;
	}

}


.page .images, .home .details {
	background: linear-gradient(199.27deg, #FCBF93 -3.91%, #F26F75 103.39%) ;
}
.page .images:after{
	content: " ";
	display: block;
	width:  100%;
	background: url(img/onboarding-02.svg) no-repeat center;
	background-size: 80%;
}


.carousel .item {
	text-align: center;
	margin: 36px 0;
}
.carousel .item h3 {
	font-weight: 700;
	font-size: 16pt;
	margin: 8px auto;
}
.carousel .item p {
	line-height: 1.5;
}

@media (min-width:801px)  { 
	.home .details {
		position: absolute;
		z-index: 1;
	}
	.carousel .item {
		display: flex;
		text-align: left;
		align-items: center;
	}
}


.home .images {
	background-color: rgba(0, 0, 0, 0.03);
}
.grid {
	padding: 4px;
}
.grid a {
	width:  50%;
	aspect-ratio: 1/1;
	display: inline-block;
	overflow:  hidden;
	position: relative;
	border-radius: 8px;
	border: 4px solid transparent;
	box-sizing: border-box;
}
.grid a span {
	display: block;
	position: absolute;
	left:  0;
	right: 0;
	bottom:  0;
	padding: 36px 16px 16px 16px;
	color: white;
	z-index: 1;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0) 100%) ;
	transition: all 0.4s;
}
.grid a img {
	position: relative;
}
.grid a:hover span {
	padding: 56px 16px 16px 16px;
}

@media (min-width:801px)  { 
	.grid a {
		width:  25%;
	}
	.images {
	height: 80vh;
}
}