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

:root {
	font-size: 16px;
}

body {
	margin: 0;
	--color-text: #000;
	--color-bg: #faf5e3;
	--color-link: #8d561f;
	--color-link-hover: #000;
	color: var(--color-text);
	background-color: var(--color-bg);
	--cursor-stroke: none;
    --cursor-fill: #cec9b8;
    --cursor-stroke-width: 1px;
	font-family: kudryashev-d-contrast-sans, sans-serif; 
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow: hidden;
	overflow-y: scroll;
}

/* Page Loader */
.js .loading::before,
.js .loading::after {
	content: '';
	position: fixed;
	z-index: 1000;
}

.js .loading::before {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--color-bg);
}

.js .loading::after {
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	margin: -30px 0 0 -30px;
	border-radius: 50%;
	opacity: 0.4;
	background: var(--color-link);
	animation: loaderAnim 0.7s linear infinite alternate forwards;

}

@keyframes loaderAnim {
	to {
		opacity: 1;
		transform: scale3d(0.5,0.5,1);
	}
}

a {
	color: var(--color-link);
	cursor: pointer;
}

a:hover,
a:focus {
	color: var(--color-link-hover);
	text-decoration: none;
}

.frame {
	padding: 3rem 10vw;
	text-align: center;
	position: relative;
	z-index: 1000;
}

.frame__home {
	text-decoration: none;
	color: var(--color-text);
	display: inline-block;
	height: 1.75rem;
	margin: 1rem;
}

.frame__home-title {
	font-weight: 500;
	font-size: 2rem;
	text-transform: uppercase;
	letter-spacing: 0.01rem;
}

.frame__about {
	display: inline-block;
	margin: 1rem;
	font-weight: 600;
	font-size: 1.5rem;
	letter-spacing: 0.01rem;
	text-decoration: none;
	color: var(--color-link);
}

.frame__about-item {
	display: none;
}

.frame__about-item--current {
	display: inline-block;
}

.content {
	display: grid;
	grid-template-columns: 100%;
	grid-template-areas: "content-item";
	justify-content: center;
	position: relative;
	cursor: default;
}

.content__item {
	grid-area: content-item;
	opacity: 0;
	pointer-events: none;
	display: flex;
	align-content: center;
	flex-direction: column;
	padding: 0 1rem;
	overflow: hidden;
	height: 0;
}

.content__item--home {
	justify-content: center;
	min-height: 300px;
}

.content__item--current {
	overflow: visible;
	height: auto;
	opacity: 1;
	pointer-events: auto;
}

.content__paragraph {
	font-family: kudryashev-d-excontrast-sans, sans-serif;  
	font-size: 6vw;
	font-weight: 300;
	word-spacing: 0.5vw;
	text-transform: uppercase;
	margin: 2vw 0 0;
	line-height: 1;
	position: relative;
	overflow: hidden;
	flex: none;
}

.text {
	font-size: 6vw;
	line-height: 1.2;
}

.big {
	font-size: 9vw;
	font-weight: 500;
	margin-bottom: 5vw;
}

.content__paragraph--first {
	margin-top: auto;
}

.content__paragraph--last {
	margin-bottom: auto;
}

.content__paragraph--large {
	font-size: 10vw;
	font-family: kudryashev-d-contrast-sans, sans-serif; 
	letter-spacing: -0.2; 
}

.content__paragraph--right {
	align-self: flex-end;
	text-align: right;
}

.content__paragraph--left {
	align-self: flex-start;
}

.content__figure-img {
	max-width: 100%;
	opacity: 0.9;
}

.char {
	will-change: transform;
}

.cursor {
	display: none;
}

@media screen and (min-width: 53em) {
	.frame {
		position: absolute;
		text-align: left;
		top: 0;
		left: 0;
		display: grid;
		align-content: space-between;
		width: 100%;
		max-width: none;
		height: 100vh;
		padding: 3rem 6vw;
		pointer-events: none;
		grid-template-columns: 20% 60% 20%;
		grid-template-rows: auto auto auto;
		grid-template-areas: 'home home about'
							'... ... ...'
							'... ... ...';
	}
	.frame__home {
		display: flex;
		grid-area: home;
		justify-content: flex-start;
		justify-self: start;
		margin: 0;
	}
	.frame__about {
		margin: 0;
		grid-area: about;
		align-self: start;
		justify-self: end;
	}
	.frame a {
		pointer-events: auto;
	}
	.content__item {
		min-height: 100vh;
		padding: 12rem 6vw 3rem;
	}
	.content__title-inner--offset {
	    margin-top: 3rem;
	}
	.content__title-seperator {
		margin: 0 2rem;
	}
	.content__item--home {
		max-height: none;
	}
	.content__figure__right {
		max-width: 48vw;
		justify-self: flex-end;
		margin: 5vw 0 8vw auto;
	}
	.content__figure__left {
		max-width: 48vw;
		justify-self: flex-start;
		margin: 5vw auto 8vw 0;
	}
}

@media (any-pointer: fine) {
	.cursor {
		position: fixed;
		top: 0;
		left: 0;
		display: block;
		pointer-events: none;
	}
	.cursor__inner {
		fill: var(--cursor-fill);
		stroke: var(--cursor-stroke);
		stroke-width: var(--cursor-stroke-width);
		opacity: 0.5;
	}
}
