body {
	font-family: var(--font-body);
	min-height: 100vh;
	max-width: 100vw !important;
	display: flex;
	flex-flow: column nowrap;
	align-items: stretch;
	justify-content: space-evenly;
	color: var(--grey-900);
	
	&.modal-open {
		overflow: hidden;
	}
}

header,
footer {
	max-width: 100vw;
	flex: 0;
	padding: var(--space-xs) var(--space-xs) var(--space-md);
	text-align: center;
	background: var(--grey-400);
	position: relative;
}

header {
	display: flex;
	align-items: center;
	justify-content: center;
	
	.title-cont {
		flex: 1;
	}
	
	#mode-switcher {
		flex: 0;
		
		.mode-dark {
			display: block;
		}
		
		.mode-light {
			display: none;
		}
	}
}

main,
aside {
	flex: 1;
	position: relative;
	padding: var(--space-md);
}

main {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
	
	.reset-block {
		text-align: center;
		padding: var(--space-sm);
		font-size: var(--fs-h4);
		background: var(--pumpkin);
		color: var(--grey-50);
	}
}

body.mode-dark {
	color: var(--grey-50);
	background: var(--grey-700);
	
	& > header,
	& > footer {
		background: var(--grey-900);
	}
	
	#mode-switcher {
		.mode-dark {
			display: none;
		}
		
		.mode-light {
			display: block;
		}
	}
}

/* TEXT */
h1, h2, h3,
h4, h5, h6 {
	text-align: center;
	font-weight: 700;
	line-height: 1.7;
}

h1 { 
	font-size: var(--fs-h1); 
}
h2 { 
	font-size: var(--fs-h2); 
}
h3 { 
	font-size: var(--fs-h3); 
}
h4 { 
	font-size: var(--fs-h4); 
}
h5 { 
	font-size: var(--fs-h5); 
}
h6 { 
	font-size: var(--fs-h6); 
}

p {
	line-height: 1.5;
}

/* BUTTONS */
button {
	font-size: var(--fs-h6);
	padding: var(--space-xs) var(--space-sm);
	border-radius: 0;
	border: 0;
	outline: none;
}

i.mode-light,
i.mode-dark {
	font-size: var(--fs-h2);
	position: absolute;
	top: var(--space-xs);
	right: var(--space-xs);
}

/* GENERAL CLASSES */
.hidden { display: none; }

.center { 
	text-align: center;
	margin-left: auto;
	margin-right: auto; 
}

/* LAYOUT */
.row {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	
	.col {
		flex: 1;
	}
}

@media(min-width: 768px) {
	.row { 
		flex-direction: row;
		flex-wrap: wrap;
	}
}

/* ELEMENTS */
.modal {
	display: none;
	
	&.active {
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 0;
		left: 0;
		width: 100vw;
		height: 100vh;
		background: rgba(0,0,0,0.25);
		
		div {
			background: var(--grey-50);
			color: var(--grey-700);
			padding: var(--space-xxl) var(--space-lg);
			font-size: var(--fs-h4);
			
			fieldset {
				padding: var(--space-md);
			}
		}
	}
}