html {box-sizing: border-box;}
*, ::before, ::after {box-sizing: inherit;}

html, body, main, article, p, figure, h1, h2, h3, ul {margin: 0; padding: 0;}

html {background: #D2A; color: #FFF; font-family: roboto, helvetica, arial, sans-serif;}

html, body {
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	scrollbar-width: narrow;
	scrollbar-color: dark;
}

body {
/* 	display: flex; flex-direction: column; align-content: center; justify-content: center; */
	scroll-snap-type: y mandatory;
	overflow-y: scroll;
}

::selection {
	text-shadow: none;
	color: #FFF;
	background-color: #D2A;
}

header, footer {
	scroll-snap-align: start;
}

h1, h2 {font-family: "Exo 2", sans-serif;}

section {
	position: relative;
	min-height: 100vh;
/* 	clip-path: polygon(8em 0, 100% 0, calc(100% - 8em) 100%, 0 100%); */
	font-size: clamp(1rem, 2.5vmin, 2rem);
	color: #FFF;
}

section h2 {
	margin-bottom: 0.5em;
	font-size: 2em;
	width: 16ch;
}

section p {
	width: 36ch;
	line-height: 1.5em;
	margin-bottom: 1.5em;
}

section.right .text-content > * {
	margin-left: auto;
}

.bottom .text-wrap {
	display: flex;
	flex-direction: column;
	justify-content: end;
	height: 100vh;
}

section.col .text-content {
	column-count: 2;
	column-fill: balance;
}

@media screen and (max-width: 840px) {
	section.col .text-content {
		column-count: 1;
	}
}

@media screen and (min-width: 1200px) {
	section.col .text-content {
		column-count: 3;
	}
	section.col p {
		width: auto;
	}
}

.text-wrap {
	position: sticky;
	top: 0;
	height: 100vh;
	padding: 1em;
	z-index: 100;
	text-shadow: 1px 1px 5px #000;
}

.image_scroll {
	margin-top: -100vh;
	z-index: -100;
}

.image_scroll figure {
	position: relative;
	width: 100%;
	height: 100vh;
	scroll-snap-align: start;
}

.image_scroll img {
	display: block;
	width: 100%;
	height: 100vh;
	object-fit: cover;
}

figcaption {
	font-size: 1rem;
	font-family: helvetica, arial, sans-serif;
	width: 26ch;
	position: absolute;
	bottom: 0;
	right: 0;
	padding: 2em;
}

.right figcaption {
	left: 0;
	right: auto;
}

.bottom figcaption {
	top: 0;
	bottom: auto;
}

a:any-link {
	text-decoration: none;
	color: #F5C;
}

a:hover {
	text-decoration: underline;
}

h1 {
	font-size: 2rem;
	font-weight: bold;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

header > h1, footer > h1 {
	font-size: 6.4vw;
	text-align: center;
}

footer > h1 {
	transform: rotateZ(180deg); /* rotateY(180deg) rotateX(180deg) */
}

footer ul {
	color: #FFF;
	list-style: none;
	display: flex;
	justify-content: space-between;
	padding: 1rem;
}

header > a:any-link, h1 > a:any-link, footer a:any-link {
	text-decoration: none;
	color: inherit;
}

section:nth-child(2) > .text-wrap {
	background-image: linear-gradient(to left, #28345599 25%, #0000 55%);
}

section:nth-child(4) > .text-wrap {
	padding-top: 50vh;
	background-image: linear-gradient(to top, #0009 20%, #0000 60%);
}

section:nth-child(5) > .text-wrap {
	background-image: linear-gradient(to right, #160c5766 20%, #0000 55%);
}

section:nth-child(6) > .text-wrap {
	background-image: linear-gradient(to bottom, #4b301b99 20%, #0000 55%);
}

section:nth-child(7) > .text-wrap {
	background-image: linear-gradient(to right, #112d6e66 20%, #0000 55%);
}

section:nth-child(8) > .text-wrap {
	padding-left: 10rem;
}

section:nth-child(8) > .text-wrap, section:nth-child(9) > .text-wrap {
	padding-top: 50vh;
	background-image: linear-gradient(to top, #0c1b3e66 20%, #0000 55%);
}

section:nth-child(8) > img {
	object-fit: contain;
	object-position: top;
}

section:nth-child(9) p {
	width: auto;
}

section:nth-child(9) .text-content {
	column-count: 3;
}
