/* ---------- fonts ---------- */

/* the remixed variable font (needle axis: "ALTR" 0–100) */
@font-face {
	font-family: "Altered";
	src: url("fonts/AlteredcurveVF.ttf") format("truetype");
}

/* only used for the full stops */
@font-face {
	font-family: "Aileron";
	src: url("fonts/Aileron-UltraLight.otf") format("opentype");
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Altered", "Aileron", sans-serif;
	font-variation-settings: "ALTR" 0;
	background-color: rgb(216, 216, 216);
	color: rgb(255, 0, 0);
	height: 100vh;
	overflow: hidden;
  text-shadow: 0 0 0.2em;
}

/* ---------- the four corners (CSS grid, never scrolls) ---------- */

.corners {
	display: grid;
	height: 100vh;
	grid-template-columns: 20.55vw 1fr 20.55vw;
	grid-template-rows: 1fr 1fr;
	grid-template-areas:
		"tl . tr"
		"bl . br";
	padding: 2.5vw 2.15vw 2.5vw 2.1vw;
}

.photo {
	width: 100%;
	border: 0.2vw solid black;
}

.top-left {
	grid-area: tl;
	align-self: start;
}

.top-right {
	grid-area: tr;
	align-self: start;
}

.bottom-left {
	grid-area: bl;
	align-self: end;
}


.needle {
	grid-area: br;
	align-self: end;
	justify-self: end;
	font-size: 26vw;
	line-height: 0.7em;
	margin-right: -2.6vw;
	margin-bottom: -2.2vw;
}



.scroller {
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	overflow-y: scroll;
}


.main {
	width: 31.8vw;
	margin: 0 auto;
	padding: 2.5vw 0 12vw 0;
	display: flex;
	flex-direction: column;
}



.title {
	display: flex;
	justify-content: space-between;
	font-size: 4.05vw;
	line-height: 1em;
}


.title span {
	font-variation-settings: "ALTR" 100;
	animation-name: bristle;
	animation-iteration-count: infinite;
	animation-timing-function: ease-in-out;
	animation-direction: alternate;
}

.title .word-1 {
	animation-duration: 2.6s;
}

.title .word-2 {
	animation-duration: 1.8s;
}

.title .word-3 {
	animation-duration: 3.4s;
}

@keyframes bristle {
	0% {
		font-variation-settings: "ALTR" 100;
	}
	50% {
		font-variation-settings: "ALTR" 20;
	}
	100% {
		font-variation-settings: "ALTR" 100;
	}
}



.rule {
	height: 0.3vw;
	border-top: 1px solid #ff0000;
	border-bottom: 1px solid #ff0000;
}

.rule-top {
	margin-top: 1.3vw;
}




.subheads {
	display: flex;
	justify-content: space-between;
	margin-top: 0.85vw;
}

.subhead {
	font-size: 1.15vw;
	line-height: 1.3em;
	font-variation-settings: "ALTR" 100;
}



.deck {
	margin: 4.2vw 0 1.1vw 0;
	text-align: center;
	font-size: 0.82vw;
	line-height: 1.6em;
	font-variation-settings: "ALTR" 100;
}


.body {
	align-self: center;
	width: 12vw;
	margin-top: 1.3vw;
	display: flex;
	flex-direction: column;
	gap: 2.2em;
	font-size: 0.82vw;
	line-height: 1.6em;
	color: #1a1a1a;
}


.section {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.8em;
}

.body p {
	text-align: justify;
	transition: 0.6s;
  color: #ff0000;
}


.quote {
	position: fixed;
	top: 43vh;
	left: 13.75vw;
	font-size: 13vw;
	line-height: 0.8em;
	text-align: center;
	color: rgb(255, 0, 0);
	pointer-events: none;
	transition: 0.6s;

	
	animation-name: quote-needles;
	animation-duration: 3s;
	animation-iteration-count: infinite;
	animation-timing-function: ease-in-out;
	animation-direction: alternate;
}

@keyframes quote-needles {
	0% {
		font-variation-settings: "ALTR" 0;
	}
	100% {
		font-variation-settings: "ALTR" 100;
	}
}


/* the quote fades to grey so the body can be read */
.body:hover .quote {
	color: #dddddd;
}


.body:hover p {
	text-transform: uppercase;
	font-variation-settings: "ALTR" 100;
}



@media (max-width: 700px) {
	.corners {
		grid-template-columns: 17vw 1fr 17vw;
		padding: 16px 12px;
		background-color: rgb(255, 0, 0);
	}
	.photo {
		border: 2px solid rgb(255, 0, 0);
	}
	.needle {
		font-size: 24vw;
		margin-right: -2.4vw;
		margin-bottom: -2vw;
		color: #dddddd;
	}
	.main {
		width: 54vw;
		padding: 16px 0 120px 0;
		background-color: rgb(255, 0, 0);
	}
	.title {
		font-size: 7vw;
	}
	.rule {
		height: 5px;
	}
	.rule-top {
		margin-top: 0x;
	}
	.subheads {
		flex-direction: column;
		gap: 8px;
		margin-top: 10px;
	}
	.subhead {
		font-size: 11px;
	}
	.deck {
		font-size: 13px;
		margin: 28px 0 16px 0;
		background-color: rgb(255, 4, 4);
	}
	.body {
		width: 100%;
		font-size: 13px;
		margin-top: 20px;
    color: #000000;
	background-color: rgb(255, 0, 0);
	}
}