:root {
	--black: #000;
	--white: #FFF;
	--brown: #542f19;
	--size: 18px;
	--half: 9px;
	--border: 3px;
	--heading-font: 'AllerDisplay', Verdana, Arial, sans-serif;
	--body-font: 'Aller', Verdana, Arial, sans-serif;
	--bold-font: 'AllerBold', Verdana, Arial, sans-serif;
}

@font-face {
    font-family: 'AllerBold';
    src: url('fonts/aller_bd-webfont.woff2') format('woff2'),
         url('fonts/aller_bd-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Aller';
    src: url('fonts/aller_rg-webfont.woff2') format('woff2'),
         url('fonts/aller_rg-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'AllerDisplay';
    src: url('fonts/allerdisplay-webfont.woff2') format('woff2'),
         url('fonts/allerdisplay-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html, body {
	margin: 0;
	padding: 0;
    font-size: 19px;
}

body {
    background: var(--brown) url('imgs/wood.webp') top center fixed; 
    color: var(--black);
    font-family: var(--body-font);
    font-size: var(--size);
    line-height: 1.3;
}
body.nowebp {
    background-image: url('imgs/wood.png');
}



/***************** DEFAULTS *****************/
img {
    max-width: 100%;
    height: auto!important;
}
a {
    color: var(--brown);
}
a:hover {
    color: var(--black);
}
h1, h2, h3, h5, h5, h6 {
    font-family: var(--heading-font);
    font-weight: normal;
    color: var(--brown);
    line-height: 1.1;
    margin: var(--size) 0;
    text-align: center;
    font-size: 2rem;
}
strong {
    font-family: var(--bold-font);
    font-weight: normal;
}


/***************** COLOR AND SIZE EFFECTS *****************/
a {
    -webkit-transition: color 0.5s ease;
    transition: color 0.5s ease;
}
svg {
    -webkit-transition: fill 0.5s ease, transform 0.5s ease;
    transition: fill 0.5s ease, transform 0.5s ease;
}


/***************** SCROLL EFFECTS *****************/
.js-scroll {
    opacity: 0;
    transition: opacity 0.5s;
}
.js-scroll.scrolled {
    opacity: 1;
}
.scrolled.fade-in {
    animation: fade-in 1s ease-in-out both;
}
.scrolled.fade-in-bottom {
    animation: fade-in-bottom 1s ease-in-out both;
}
.scrolled.slide-left {
    animation: slide-in-left 1s ease-in-out both;
}
.scrolled.slide-right {
    animation: slide-in-right 1s ease-in-out both;
}
@keyframes slide-in-left {
    0% {
        -webkit-transform: translateX(-100px);
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes slide-in-right {
    0% {
        -webkit-transform: translateX(100px);
        transform: translateX(100px);
        opacity: 0;
    }
    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes fade-in-bottom {
    0% {
        -webkit-transform: translateY(50px);
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}



/***************** HEADER *****************/
header {
    text-align: center;
    padding: var(--size);
}
header img {
    display: block;
    margin: 0 auto;
}
header h1 {
    color: var(--white);
}


/***************** MAIN *****************/
.block {
    background: var(--white);
    border-radius: var(--half);
    padding: var(--size);
    margin: 0 auto var(--size);
    max-width: 1000px;
    overflow: hidden;
}

.cols {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--size);
}
.cols .col-half {
    flex-basis: 50%;
}
.cols .col-third {
    flex-basis: 33.33%;
}
.cols .col-fourth {
    flex-basis: 25%;
}
.cols .col-fifth {
    flex-basis: 20%;
    flex-shrink: 0;
}
.cols .col-fill {
    flex-grow: 1;
}

.profile {
    display: block;
    margin: 0 auto;
    border-radius: 50%;
    border: var(--border) solid var(--brown);
    background: var(--brown);
    max-width: Calc(100% - (var(--border) * 2));
}

.cols.wrap {
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    gap: Calc(var(--size) * 2) var(--size);
    padding: var(--size) 0;
}
.cols.wrap .col-half {
    flex-basis: Calc(50% - (var(--size) / 2));
}
.cols.wrap .col-third {
    flex-basis: Calc(33.33% - (var(--size) * 2 / 3));
}
.cols.wrap .col-fourth {
    flex-basis: Calc(25% - (var(--size) * 3 / 4));
}
.cols.wrap .col-fourth .logo {
    display: block;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}
.cols.wrap .col-fourth .logo img {
    display: block;
    object-fit: contain;
    width: 100%!important;
    height: 100%!important;
}
.cols.wrap .col-fourth .name {
    display: block;
    margin-top: var(--half);
}


#contact .cols a svg {
    width: Calc(var(--size) * 2);
    height: Calc(var(--size) * 2);
}


/***************** FOOTER *****************/
footer {
    text-align: center;
    padding: var(--size) var(--size) Calc(var(--size) * 2);
    color: var(--white);
    font-size: 14px;
}


/*****************  ACCESSIBILITY *****************/
.sr {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
@media (prefers-reduced-motion) {
    html {
    	scroll-behavior: auto;
    }
    .js-scroll {
        opacity: 1!important;
        transition: none!important;
        transform: none!important;
    }
    .scrolled {
        animation: none!important;
    }
    a, svg {
        transition: none;
    }
}

