/* ===========================
   FONTS
   =========================== */

/* poppins-regular - latin */
@font-face {
    font-display: swap; 
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    src: url('assets/fonts/poppins-v24-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
/* poppins-600 - latin */
@font-face {
    font-display: swap; 
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    src: url('assets/fonts/poppins-v24-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* open-sans-regular - latin */
@font-face {
    font-display: swap; 
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('assets/fonts/open-sans-v44-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ===========================
   RESET
   =========================== */

*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
      
img,
picture,
video {
    display: block;
    max-width: 100%;
    height: auto;
}
      
input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
    background: none;
    border-color: transparent;
}
      
a {
    text-decoration: none;
    color: inherit;
}
      
ul,
ol {
    list-style-type: none;
}
      
/* ===========================
       CSS VARIABLES
   =========================== */
      
:root {
      
    --purple-700: hsl(257, 40%, 49%);
    --magenta-400: hsl(300, 69%, 71%);

    --font-base: 'Open Sans', sans-serif;
    --font-title: 'Poppins', sans-serif;

}
   
/* ===========================
      BASE
   =========================== */
   
body {
    font-family: var(--font-base);
    color: var(--very-dark-blue);
    font-size: 16px;
    background-color: var(--purple-700);
    overflow-x: hidden;
    background-image: url(assets/images/bg-mobile.svg);
    background-repeat: no-repeat;
    background-size: contain;
}

/* ===========================
   LAYOUT & ELEMENTS
   =========================== */

.header {
    padding: 32px 33px;
}

.header__logo {
    max-width: 130px;
}

.main {
    padding: 29px 38px 60px;
    color: white;
    text-align: center;
}

.main__image {
    width: clamp(18.6875rem, 9.6646rem + 38.4977vw, 44.3125rem);
}

.main__title {
    margin: 60px 0 13px;
    font-size: 24px;
    line-height: 36px;
    font-family: var(--font-title);
}

.main__description {
    font-size: 16px;
    line-height: 24px;
    margin: 13px 0 24px;
}

.main__button {
    font-size: 12px;
    color: var(--purple-700);
    font-family: var(--font-title);
    background-color: white;
    border-radius: 50vh;
    padding: 9px 74px;
}

.main__button:hover,
.main__button:active    {
    background-color: var(--magenta-400);
    color: white;
    cursor: pointer;
}

.footer__social {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-bottom: 36px;
}

.footer__social-icon {
    width: 2.1875rem;
    width: clamp(2.1875rem, 1.8574rem + 1.4085vw, 3.125rem);
    height: 2.1875rem;
    height: clamp(2.1875rem, 1.8574rem + 1.4085vw, 3.125rem);
}

.footer__social-link:hover .icon__facebook,
.footer__social-link:active .icon__facebook,
.footer__social-link:hover .icon__twitter,
.footer__social-link:active .icon__twitter,
.footer__social-link:hover .icon__instagram,
.footer__social-link:active .icon__instagram {
    fill: var(--magenta-400);
    cursor: pointer;
}

.footer__attribution { 
    font-size: 1rem;
    padding: 1rem;
    text-align: center;
    color: white;
}

.footer__attribution-link { 
    color: black; 
}

@media (min-width: 900px) {
    .footer__social {
        margin-bottom: clamp(2.25rem, -35.8548rem + 67.7419vw, 7.5rem);
    }
}

@media (min-width: 1024px) {

    body {
        background-image: none;
        background-image: url(assets/images/bg-desktop.svg);
        background-position: top left;
    }

    .header {
        padding: 57px 70px;
    }

    .header__logo {
        max-width: 215px;
    }

    .main {
        display: flex;
        padding: 28px 81px 18px 72px;
        gap: 54px;
        align-items: center;
    }

    .main__content {
        max-width: 524px;
        text-align: start;
    }

    .main__title {
        margin: 40px 0 17px;
        font-size: 42px;
        line-height: 63px;
        font-family: var(--font-title);
        letter-spacing: -0.03em;
    }
    
    .main__description {
        font-size: 20px;
        line-height: 26px;
        margin: 17px 0 24px;
        letter-spacing: -0.04em;
    }

    .main__button {
        font-size: 18px;
        padding: 14px 63px;
    }

    .footer__social {
        justify-content: flex-end;
        margin: 0px 75px;
        gap: 6px;
        margin-bottom: 28px;
    }

    .footer__attribution { 
        position: fixed;
        text-align: start;
        bottom: 0px;
        width: 100vw;
    }

}

@media (min-width: 1440px) {

    .main {
        align-items: flex-start;
    }

}