:root {
	--itred:	#ff502d;
	--itblue:	#28b4cd;
	--sand:	#fcf7e8;
	--burgundy: #211b1b;
	--dark-variant: #1b1f23;
	--dark: #122124;
	--font-base: "BerkeleyMono", Arial, sans-serif;
	--font-head: "Pragmata", Arial, sans-serif;
	--base05: 0.5rem;
	--base10: 1rem;
	--base15: 1.5rem;
	--base20: 2rem;
	--base25: 2.5rem;
	--base30: 3rem;
}
body {
	font-size: 16px;
	font-weight: normal;
	margin: 0;
	padding: 0 var(--base15);
	line-height: 1.5;
	color: var(--sand);
	background-color: var(--burgundy);
	font-family: var(--font-base);
}
@media screen and (min-width: 9920px) {
		body {
		font-size: 16px;
	}
}
@media screen and (min-width: 1200px) {
		body {
		font-size: 18px;
	}
}
/** animation make sthe world go round **/

body, .trans750, .indicator {
	-webkit-transition: all 750ms ease-in-out;
	-moz-transition: all 750ms ease-in-out;
	-ms-transition: all 750ms ease-in-out;
	-o-transition: all 750ms ease-in-out;
	transition: all 750ms ease-in-out;
}
*:after, a, *:before {
	-webkit-transition: all 375ms ease-in-out;
	-moz-transition: all 375ms ease-in-out;
	-ms-transition: all 375ms ease-in-out;
	-o-transition: all 375ms ease-in-out;
	transition: all 375ms ease-in-out;
}
/*************************************/
/*** structure and display helpers ***/
/*************************************/

.d-none{
	display: none;
}
.d-block{
	display: block;
}
.d-flex{
	display: flex;
}
@media screen and (min-width: 768px) {
	.d-md-none{
		display: none !important;
	}
	.d-md-block{
		display: block;
	}
	.d-md-flex{
		display: flex;
	}
}

/*******************************/
/***   fonts + fontanelle    ***/
/*******************************/

h1{

	font-size: 2.25em;
	font-weight: bold;
	margin: 0;
	padding: 0;
	color: var(--itred);
	font-weight: bold;
	font-family: var(--font-head);
	line-height: 1.3em;
}
h2{
	font-size:1.5em;
	font-weight: bold;
	margin: 0;
	padding: 0;
	color: var(--itblue);
	font-family: var(--font-head);
	line-height: 1.3em;
}
h3{
	font-size: 1.25em;
	font-weight: bold;
	margin: 0;
	padding: 0;
	color: var(--itred);
}
a, a:link, a:visited{
	color: var(--itblue);
	text-decoration: none;
}
a:hover, a:focus, a:active{
	color: var(--itred);
	text-decoration: none;
}
.lead{
	font-size: 1.15em;
}
.intro{
	margin: 15vh 0 5vh;
}
@media screen and (min-width: 1200px) {
.lead{
	font-size: 1.35em;
}
}
ul{
	margin: var(--base05) 0 var(--base10);
	padding-left: 1rem;
}
ul li{
	margin: var(--base05) 0;
	padding: 0;
}
ul.linklist  {
	list-style-type: none;
	padding: 0;
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.3s ease-in-out;
	margin-bottom: 0;
}
ul.linklist li{
	margin: var(--base05) 0;
	padding: 0 0 0 var(--base15);
	position: relative;
}

ul.linklist > li:before {
	font-family: var(--font-head);
	content: '\F013E';
	position: absolute;
	left: -0.1em;
	top: 0.1em;
	color: var(--itred);
}
ul.linklist li a{
	padding-left: 0;
	padding-right: 10px;
}
ul.linklist li a:hover{
	padding-left: 10px;
	padding-right: 0px;
}
/*******************************/
/*** page structure elements ***/
/*******************************/
header{
	position: fixed;
	height: auto;
	padding: var(--base10);
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	left: 0;
	right: 0;
	top: 0;
}
body.scrolled header{
	opacity: 0;
}
.logo a{
	width: 45vw;
	max-width: 400px;
}
.logo a.mobile img{
	max-height: 70px;
}
main{
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	width: 100%;
	min-height: calc(100vh - 220px);
	padding: 10rem 0 5rem 0;
}

.container{
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--base30) var(--base20);
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0;
}
.container > *{
	flex: 1 1 100%;
	box-sizing: border-box;
}

footer{
	font-size: 0.8em;
	text-align: right;
}
/*******************************/
/***     ui elements.        ***/
/*******************************/


/** wonderfull toggle **/

.mode-toggle-wrapper{
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	gap:  var(--base05);

}
.fake-toggle{
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	border: 2px solid var(--itblue);
	border-radius: 50px;
	padding: 3px 10px 5px;
	font-size: 0.7em;
	text-transform: uppercase;
	position: relative;
	height: 20px;
	width: 75px;
}
.fake-toggle label{
	position: relative;
	z-index: 10;
}
.fake-toggle .indicator{
	position: absolute;
	z-index: 12;
	top: 2px;
	left: 2px;
	right: auto;
	height: 24px;
	width: 46px;
	background-color: var(--itblue);
	border-radius: 50px;
	transition: left 0.3s ease-in-out;
	cursor: pointer;
} 
.light .fake-toggle .indicator{
	left: 50px;
	width: 43px;
}

/************************************/
/***      content elements.      ***/
/***********************************/

.card{
	flex: 1 1 100%;
	box-sizing: border-box;
	padding: var(--base15) var(--base10) var(--base10) var(--base10);
	text-align: left;
	transition: background-color 0.3s ease-in-out;
	border: 2px dashed var(--itblue);
	border-radius: 0.25rem;
	/*border-bottom: 2px dashed var(--itblue);*/
}


.card .card-header{
	display: block;
	cursor: pointer;
}
.card .card-header .card-header-inner{
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	gap: var(--base15);
	margin-bottom: var(--base15);
	padding-left: 0.4em;
}
.card .card-header .toggle-indicator{
	margin: 0 0 0 auto;
	width: 1.75em;
	height: 1.75em;
	position: relative;
}
.card .card-header .toggle-indicator:after{
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 100%;
	height: 6px;
	background: var(--itred);
	display: block;
	border-radius: 2px;
	transform: translateY(-3px);
}
.card .card-header .toggle-indicator:before{
	content:'';
	position: absolute;
	left: 50%;
	top: 0;
	height: 100%;
	width: 6px;
	background: var(--itred);
	display: block;
	border-radius: 2px;
	transform: translateX(-3px);
}
.card .card-header .card-header-inner .card-header-icon{
	font-size: 1.9em;
	font-family: var(--font-head);
	color: var(--sand);
	width: 1.2em;
	height: 1.2em;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	position: relative;
	z-index: 20;
}
.card .card-header .card-header-inner .card-header-icon:after{
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 0.4em 0.1em 0.1em 0.1em;
	border: 1px solid var(--itred);
	-moz-transform: rotate(45deg);
	-webkit-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
	z-index: 15;
}
.card .card-header .card-header-inner .card-header-icon:before{
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	right: 3px;
	bottom: 3px;
	border-radius: 0.35em 0.1em 0.1em 0.1em;
	-moz-transform: rotate(45deg);
	-webkit-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
	background: var(--itred);
	z-index: 14;
}
.card .card-header .card-header-inner .card-header-icon span{
	position: relative;
	z-index: 21;
	font-family: var(--font-head);
	font-size: .6em;
}
.card.open .card-header .toggle-indicator:before{
	left: 50%;
	top: 50%;
	height: 0;
}

/************************************/
/***          light mode         ***/
/***********************************/

body.light {
	color: var(--burgundy);
	background-color: var(--sand);
}

@media screen and (min-width: 992px) {
	h1{
	font-size: 3em;
	}
	h2{
		font-size: 1.75em;
	}
	h3{
		font-size: 1.35em;
	}
	.card{
		padding: var(--base20);
	}
	.card.card-half{
		flex: 1 1 calc(50% - var(--base20));
	}
	.card.card-third{
		flex: 1 1 calc(33% - var(--base20));
	}
	.card .card-header .card-header-inner{
		padding-left: 0.65em;
		gap: var(--base20);
	}
	.card .card-header .card-header-inner h2{
		font-size: 1.65em;
	}
	.card .card-header .card-header-inner .card-header-icon{
	font-size: 2.25em;
	}
	.card .card-header .card-header-inner .card-header-icon:after{
		border: 2px solid var(--itred);
	}
	.card .card-header .card-header-inner .card-header-icon:before{
		top: 4px;
		left: 4px;
		right: 4px;
		bottom: 4px;
	}
	.fake-toggle{
		padding: 8px 12px;
		height: 20px;
		width: 85px;
		gap:  var(--base10);
	}

	.fake-toggle .indicator{
		height: 32px;
		width: 52px;
	} 
	.light .fake-toggle .indicator{
		left: 55px;
		width: 52px;
		
	}
}
@media screen and (min-width: 1240px) {
	h1{
	font-size: 3.5em;
	}
	h2{
		font-size: 2em;
	}
	.card .card-header .card-header-inner h2{
		font-size: 1.85em;
	}
	h3{
		font-size: 1.5em;
	}
}