@font-face {
    font-family: Montagu;
    src: url("../assets/fonts/MontaguSlab-VariableFont_opsz-wght.ttf");
    font-display: swap;
}

@font-face {
    font-family: RadioCanada;
    src: url("../assets/fonts/RadioCanada-VariableFont_wdth,wght.ttf");
    font-display: swap;
}

:root {
    --active:#0099ff;
}

* {
    font-size: 20px;
    font-synthesis: none;
}

body {
    /*margin: 24px 0;*/
    font-family: Montagu;
    font-variation-settings: "wght" 350;
    background-color: white;
    transition: 1s;
}

logo {
    font-size: 2rem;
    font-variation-settings: "wght" 550;
    letter-spacing: 0.05rem;
    color: var(--active);
}

nav {
    grid-column: span 6;
    display: flex;
    align-items: center;
    gap: 8px 16px;
    flex-wrap: wrap;
    font-variation-settings: "wght" 350;
    letter-spacing: 0.03rem;
/*    position: sticky;*/
/*    top: 12px;*/
    padding-top: 12px;
}

.main-wrapper{
    max-width: 1400px;
    display: grid;
    grid-template-columns: repeat(6, 1fr); 
    gap: 16px;
    margin: 0 auto;
}

h2 {
    font-variation-settings: "wght" 450, "opsz" 96;
    letter-spacing: 0.02rem;
    font-size: 1.8rem;
    line-height: 1;
}

h3 {
    font-variation-settings: "wght" 400, "opsz" 72;
    letter-spacing: 0.02rem;
    font-size: 1.4rem;
    line-height: 1;
}

a {
    color: inherit;
    text-decoration: inherit;
}

a:hover, .active {
    color: var(--active);
}

b, strong {
    font-variation-settings: "wght" 650;
    letter-spacing: 0.05rem;
}

p {
    font-family: RadioCanada;
    white-space: preserve-breaks;
    margin: 0;
}

ul {
    font-family: RadioCanada;
    margin: 0;
    padding: 0;
}

small {
    font-variation-settings: "wght" 400, "opsz" 16;
    font-size: 0.8rem;
}

img {
    max-width: 100%;
    padding: 24px 0;
    height: auto;
}

hr {
    width: 100%;
    margin: 48px 0 72px 0;
    border: 0.1px solid var(--active);
}

footer {
    padding-top: 128px !important;
    max-width: 1400px;
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 16px;
    margin: 0 auto;
}

.start-img {
    display: grid;
    grid-gap: 0;
    grid-auto-flow: column;
    align-items: center;
}

.news {
    display: grid;
    grid-template-columns:  subgrid;
}

.subgrid {
    display: grid;
    grid-template-columns:  subgrid;
}

.main-title{
    display: grid;
    min-height: 75vh;
    align-content: center;
} 

.span-1 {
    grid-column-end: span 1;
}

.span-2 {
    grid-column-end: span 2;
}

.span-3 {
    grid-column-end: span 3;
}

.span-4 {
    grid-column-end: span 4;
}

.span-6 {
    grid-column-end: span 6;
}

.col-1 {
    grid-column-start: 1;
}

.col-2 {
    grid-column-start: 2;
}

.col-3 {
    grid-column-start: 3;
}

.col-4 {
    grid-column-start: 4;
}

.col-5 {
    grid-column-start: 5;
}

.col-6 {
    grid-column-start: 6;
}

.row-span-2 {
    grid-row-end: span 2;
}

.row-span-3 {
    grid-row-end: span 3;
}

.row-1 {
    grid-row-start: 1;
}



.center {
    justify-self: center;
    align-self: center;
}

@media only screen and (max-width: 1400px) {
    .main-wrapper, footer {
        padding: 0 24px;
    }

}

@media only screen and (max-width: 840px) {
    .start-img {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-flow: row;
    }
    .span-1 {
        grid-column-end: span 3;
    }

    .span-2 {
        grid-column-end: span 3;
    }

    .span-3 {
        grid-column-end: span 3;
    }

    .span-4 {
        grid-column-end: span 6;
    }

    .span-6 {
        grid-column-end: span 6;
    }
    footer {
        grid-template-columns: 1fr;
    }
    footer .col-2, footer .col-3 { 
        grid-column-start: 1;
    }
}

@media only screen and (max-width: 640px) {
    .col-1 {
        grid-column-start: 1;
    }

    .col-2 {
        grid-column-start: 1;
    }

    .col-3 {
        grid-column-start: 3;
    }

    .col-4 {
        grid-column-start: 3;
    }

    .col-5 {
        grid-column-start: 5;
    }

    .col-6 {
        grid-column-start: 5;
    }
    .span-1 {
        grid-column-end: span 6;
    }

    .span-2 {
        grid-column-end: span 6;
    }

    .span-3 {
        grid-column-end: span 6;
    }

    .span-4 {
        grid-column-end: span 6;
    }

    .span-6 {
        grid-column-end: span 6;
    }
}

@media only screen and (max-width: 480px) {
    .start-img {
        grid-template-columns: repeat(1, 1fr);
    }
    .col-1 {
        grid-column-start: 1;
    }

    .col-2 {
        grid-column-start: 1;
    }

    .col-3 {
        grid-column-start: 1;
    }

    .col-4 {
        grid-column-start: 1;
    }

    .col-5 {
        grid-column-start: 1;
    }

    .col-6 {
        grid-column-start: 1;
    }
}