:root {
	--anim-slow: 700ms;
	--anim-fast: 520ms;
	--accent: rgb(200, 186, 123);
}

*, ::after, ::before {
	box-sizing: border-box;
	overscroll-behavior: none;
}

html {
	overflow-x: hidden;
	overscroll-behavior: none;
	margin: 0;
	padding: 0;
}

body {
	height: 100vh;
	margin: 0;
	padding: 0;
	font-size: 18px;
	color: rgb(232, 229, 227);
	overflow: hidden;
	overscroll-behavior: none;
}

.cursive {
	font-family: 'Great Vibes', 'Edwardian Script', 'Kunstler Script', 'Lucida Handwriting', sans-serif;
}

.upper {
	text-transform: uppercase;
}

.spaced {
	letter-spacing: 2px;
}

h1, h2 {
	margin: 0;
}

h1 {
	font-size: 3.5em;
	font-weight: 400;
}

main {
	display: grid;
	height: 100vh;
	background-size: cover;
	overflow: hidden;
}

section {
	height: 100vh;
	inset: 0;
	position: absolute;
	overflow: hidden;
	visibility: hidden;
}

section.vis {
	visibility: visible;
}

.fw .left,
.fw .right {
	width: 100%;
	height: 100vh;
	overflow: hidden;
}

.fw.rollout .left {
	animation: var(--anim-slow) split-out-up ease-in-out forwards;
	z-index: 1;
}

.fw.rollout .right {
	animation: var(--anim-slow) split-out-down ease-in-out forwards;
	z-index: 1;
}

.fw.rollin .left {
	animation: var(--anim-fast) split-in-up ease forwards;
	z-index: 0;
}

.fw.rollin .right {
	animation: var(--anim-fast) split-in-down ease forwards;
	z-index: 0;
}

.fw.current .left,
.fw.current .right {
	transform: translateY(0);
}

.fw div .bg {
	background-position: center;
	background-size: cover;
	height: 100vh;
	position: absolute;
	inset: 0;
	width: 100%;
}

.fw .left {
	position: relative;
	left: calc(-50% - -1px);
	transform: translateY(-100%);
}

/*@supports (-webkit-touch-callout: none) {
	.fw .left .bg {
		left: calc(50% - 1px);
	}
}*/

.fw .left .bg {
	left: calc(50% - 1px);
}

.fw .right {
	position: absolute;
	inset: 0 0 0 50%;
	transform: translateY(100%);
}

.fw .right .bg {
	left: -50%;
}

.fw.rollout .text {
	animation: fade-out 175ms linear forwards;
}

.fw.rollin .text {
	animation: fade-in 500ms ease-in-out 175ms forwards;
}

.text {
	top: 50%;
	position: absolute;
	transform: translate(-50%, -50%);
	margin: 0 auto;
	left: 50%;
	width: 100vw;
	padding: 1em 2.7em;
	opacity: 0;
	font-family: oswald;
	max-width: 90ch;
}

.current .text {
	opacity: 1;
}

.text p {
	margin: 0;
}

.text p + p {
	margin-top: 1em;
}

.text hr {
	width: 15%;
	margin: 0.25em auto 1.75em;
	color: white;
}

.text a {
	text-decoration: none;
	color: white;
}

.text a:hover {
	text-decoration: underline;
}

.text a:visited {
	color: white;
}

.text button,
.text a.btn {
	padding: 0.5em 1em;
	display: inline-block;
	border-style: solid;
	border-width: 2px;
	font-size: 1em;
	transition: all 233ms;
	font-family: oswald, Roboto, Montserrat, Arial;
}

.text a.btn:hover {
	text-decoration: none;
}

.mobile-side-btns {
	position: fixed;
	top: 0;
	right: 0.5em;
	bottom: 0;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 50px 50px;
	grid-row-gap: 1em;
	justify-content: center;
	align-content: center;
}

.mobile-side-btns button {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--accent);
	color: white;
	background-color: transparent;
	display: grid;
	grid-template-columns: 1fr;
	grid-template-row: 1fr;
	justify-content: center;
	align-items: center;
}

@media(min-width: 675px) {
	.text {
		font-size: 1.1em;
	}

	.text button,
	.text a.btn {
		background-color: rgba(0,0,0,0.2);
	}
}


@media(min-width: 850px) {
	.text {
		font-size: 1.25em;
	}
}

@media(min-width: 1200px) {
	.text {
		font-size: 1.5em;
	}
}

@media(min-width: 1700px) {
	.text {
		font-size: 1.75em;
	}

	.text button,
	.text a.btn {
		font-size: 0.925em;
	}
}

@media(min-width: 1930px) {
	.text {
		font-size: 2em;
	}

	.text button,
	.text a.btn {
		font-size: 0.875em;
	}
}


@keyframes split-out-up {
	0% {
		transform: translateY(0);
	}

	100% {
		transform: translateY(100%);
	}
}

@keyframes split-out-down {
	0% {
		transform: translateY(0);
	}

	100% {
		transform: translateY(-100%);
	}
}

@keyframes split-in-up {
	0% {
		transform: translateY(-100%);
	}

	100% {
		transform: translateY(0);
	}
}

@keyframes split-in-down {
	0% {
		transform: translateY(100);
	}

	100% {
		transform: translateY(0);
	}
}

@keyframes fade-in {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

@keyframes fade-out {
	0% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}
