/**************************************************************************************************/
/********* MISC
/**************************************************************************************************/
html {
    font-size: var(--font-size-M);
    font-family: var(--font1);
    font-weight: var(--font-weight);
    color: var(--font-color);
    background: var(--background-color);
    min-height:100vh;
    line-height: var(--line-height);
    scroll-behavior:smooth
}

.visually-hidden {display:none;}

/**************************************************************************************************/
/********* TITLES 
/**************************************************************************************************/
h1, h2, h3, h4, h5 {font-weight: var(--title-font-weight);margin:.5em 0;line-height: var(--line-height);}
h1, .h1 {font-size:5.5rem;}
h2, .h2 {font-size:3.5rem;}
h3, .h3 {font-size:3rem;}
h4, .h4 {font-size:1.5rem;}
h5, .h5 {font-size:1.25rem;}

/**************************************************************************************************/
/********* TEXT
/**************************************************************************************************/
.font-size-XS   {font-size:var(--font-size-XS);}
.font-size-S    {font-size:var(--font-size-S);}
.font-size-M    {font-size:var(--font-size-M);}
.font-size-L    {font-size:var(--font-size-L);}
.font-size-XL   {font-size:var(--font-size-XL);}
.font-size-XXL  {font-size:var(--font-size-XXL);}

em, .italic {font-style: italic;}
strong, .bold {font-weight: bold;}
.upper {text-transform:uppercase;}
a {text-decoration:none;color:inherit;}

.txt {font-family: var(--font2);}
.txt p,
.txt ul {margin:1em 0;line-height: 1.5em;text-align: justify;}
.txt ul {padding-left:1rem;list-style-type:disc;}
    .txt ul ul {list-style-type:circle;margin:.5rem 0;}
.txt > *:first-child {margin-top:0;}
.txt > *:last-child {margin-bottom:0;}
.txt a,
.underline {
    text-decoration:underline;
    text-decoration-thickness: var(--text-decoration-thickness);
    text-underline-offset: var(--text-underline-offset);
    color: var(--font-color-light);
    transition: color.2s, text-decoration-color .2s;
}
.txt a:hover,
.underline:hover {
    color: var(--font-color);
    text-decoration-color: var(--font-color);
}

.font2 {font-family: var(--font2);}
.font1 {font-family: var(--font1);}
/**************************************************************************************************/
/********* BUTTONS
/**************************************************************************************************/
.btn {
    display: inline-flex;
    padding: .85em 1.5em;
    color: inherit;
    background-color: var(--btn-background-color);
    border: 1px solid var(--btn-border-color);
    transition: background-color .2s, border-color .2s;
}
.btn:hover {
    background-color: var(--btn-background-color-hover);
    border-color: var(--btn-border-color-hover);
}

/**************************************************************************************************/
/********* IMAGES
/**************************************************************************************************/
img, svg, video{display:block;max-width:100%;height:auto;}
svg {fill: currentColor;}
/**************************************************************************************************/
/********* NOISE BACKGOUND
/**************************************************************************************************/
.bg-noise {
	position: relative;
	background-color: #0f0f0f;
}
.bg-noise > * {
	position: relative;
	z-index: 2;
}
.bg-noise::before {
	content: '';
	position: absolute;
	top:0; bottom: 0;
	left: 0; right: 0;
	background-image: var(--noise-image);
	opacity: var(--noise-background-opacity);
	z-index: 1;
}
