@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

* {
    margin: 0;
    padding: 0;
}

header {
    background: linear-gradient(30deg, #305954e0, #2c4f48eb, #426c61e8, #42685be8, #5b8472eb, #60806fed, #89a996e4, #98b2a1e0), url(/book-jacket-cover.jpg) no-repeat right 50%;
    /* background: linear-gradient(30deg, #3d766fe1, #487f74ea, #538779e7, #5f907fe9, #6c9885eb, #7aa18dec, #89a996e4, #98b2a1e0), url(/book-jacket-cover.jpg) no-repeat right 50%; */
}

nav {
    padding: 1.5rem 2rem;
}

nav ul {
    list-style-type: none;
    padding: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav ul a {
    color: #fff;
    text-decoration: none;
    font-family: "Instrument Sans", sans-serif;
}

h1 {
    /* font-size: 40px - 72px; */
    /* font-size: 2.5rem;
    font-size: clamp(2.5rem, -3.5rem + 10vw, 4.5rem); */
    font-size: 2.5rem;
    font-size: clamp(2.5rem, -2.000000000000001rem + 7.500000000000001vw, 3.6rem);
    text-transform: capitalize;
    line-height: 100%;
    margin-bottom: 1rem;
    margin-top: 1rem;
    font-family: "Playfair Display", serif;
    font-weight: 700;
}

p:not(#hero p, .heading, #cta-xl p, footer p) {
    font-size: 18px;
    color: #1B2623;
    font-family: "Instrument Sans", sans-serif;
    line-height: 140%;
    letter-spacing: .03ch;
}

.heading {
    margin: .5rem 0 1.25rem 0;
    font-family: "Playfair Display", serif;
    /* font-size: 28px-48px; */
    font-size: 1.75rem;
    font-size: clamp(1.75rem, 0rem + 5vw, 2.25rem);
    font-weight: bold;
    line-height: 100%;
    text-transform: capitalize;
}

.subtitle {
    font-family: "Instrument Sans", sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.subtitle:not(#hero .subtitle, #cta-xl .subtitle) {
    color: #58615D;
}

#hero .subtitle,
#cta-xl .subtitle {
    color: #E3D8A6;
}

.em {
    font-style: italic;
}

.buttons:not(#book-author .buttons, #cta-xl .buttons) {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 1rem 0;
}

/* .button-icon {
    max-width: 12%;
    padding-right: .5rem;
} */

#hero a {
    background: url(/Amazon.png) no-repeat left 24px center;
    background-size: 15%;
    padding-left: 3.5rem;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}

.buttons a {
    border: none;
    border-radius: 100px;
    color: #1B2623;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: "Instrument Sans", sans-serif;
    text-decoration: none;
}

#hero .buttons {
    justify-content: center;
}

#hero .buttons a,
#cta-xl .buttons a {
    background-color: #fff;
}

.buttons a:hover,
#hero .buttons a:hover,
#book-synopsis .buttons a:hover {
    background-color: #1B2623;
    color: #fff;
}

#cta-xl .buttons a:hover {
    background-color: #316A5B;
    color: #fff;
}

#book-synopsis .buttons a {
    background-color: transparent;
    border: 1px solid #1b262345;
    width: 100%;
}

#hero {
    padding: 0 2rem;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0 6rem;
    flex-direction: column-reverse;
    padding-bottom: 2rem;
    text-align: center;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

#hero>div>h1+p {
    /* font-size: 22-28px; */
    font-size: 1.375rem;
    font-size: clamp(1.375rem, 0.85rem + 1.5vw, 1.75rem);
}

#hero img:not(.button-icon) {
    max-width: 475px;
    width: 100%;
}

#hero .cta {
    margin-top: 2rem;
}

main {
    background: url(/paper-texture2.jpg) repeat;
    background-size: 35%;
    background-position: 10% 100%;

}

#book {
    padding: 3rem 2rem;
   max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

#book-synopsis,
#book-author {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}


#book-author {
    display: flex;
    flex-wrap: wrap-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 5rem;
    margin-bottom: 1.5rem;
}

#book-synopsis img:not(.button-icon)
{
      width: 100%;
    min-width: 375px;
    max-width: 500px;
    height: auto;
}

#book-author img:not(.button-icon) {
    /* max-width: 500px;
    width: 100%; */
    max-width: 100%;
    height: auto;
}


#book-synopsis>img:nth-child(1) {
    position: relative;
    right: 25px;
}

#book-author a {
    color: #407B75;
    font-family: "Instrument Sans", sans-serif;
    font-weight: bold;
    text-transform: capitalize;
    letter-spacing: .04ch;
}
#book-author>div {
    margin-top: 1.5rem;
}
#book-author>div:nth-child(1)>p:nth-child(3) {
    margin-bottom: .5rem;
}


#cta-xl {
    display: flex;
    background: linear-gradient(30deg, #305954e0, #2c4f48eb, #426c61e8, #42685be8, #5b8472eb, #60806fed, #769282e4, #819789e0);
    /* background: linear-gradient(30deg, #3d766f, #487f74, #538779, #5f907f, #6c9885, #7aa18d, #89a996, #98b2a1); */
    border-radius: 20px;
    /* gap: 1rem; */
    padding: 1.5rem .5rem 0;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}


#cta-xl div:not(.buttons) {
    max-width: 55%;
}

#cta-xl p {
    font-family: "Playfair Display", serif;
    color: #fff;
    /* font-size: 18-28px; */
    /* font-size: 1.125rem;
    font-size: clamp(1.125rem, 0.25rem + 2.5vw, 1.75rem); */
    font-size: 1.025rem;
    font-size: clamp(1.025rem, 0.25rem + 2.5vw, 1.5rem);
    margin: .5rem 0 1rem;
}

#cta-xl img:not(.button-icon) {
    max-width: 40%;
    height: auto;
    object-fit: contain;
}


#cta-xl .buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    justify-content: flex-start;
    width: 100%;
}

#cta-xl .buttons a {
     box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;

    /* width: 100%; */
    /* desktop ????*/
    /* padding: .5rem 1rem; */
}


footer {
    background-color: #1B2623;
    padding: 1rem 2rem;
    color: #fff;
    display: flex;
    flex-wrap: wrap;

}

footer p,
footer small,
footer .form {
    font-family: "Instrument Sans", sans-serif;
    letter-spacing: .03ch;
       max-width: 1100px;
}

footer a {
    font-family: "Playfair Display", serif;
             color: #E3D8A6;
}

.group {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.group:not(.group.full-width) p {
    font-weight: bold;
    font-size: 20px;
}

.full-width {
    margin-top: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #31737A;
}


@media screen and (width >=1024px) {

    nav {
        padding: 1.5rem 16rem;
    }

    nav ul {
        justify-content: flex-end;
    }

    .buttons:not(#book-author .buttons, #cta-xl .buttons) {
        max-width: 350px;
    }

    #hero {
        padding: 0 10.5rem;
        gap: 6rem;
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }

    #hero .buttons {
        justify-content: flex-start;
    }

    #book {
        padding: 7.5rem 10.5rem;
    }

    #book-synopsis,
    #book-author {
        flex-wrap: nowrap;
           margin-bottom: 0;
    }

    #book-author img {
        width: 100%;
        min-width: 480px;
        max-width: 500px;
    }

    #book-synopsis>img:nth-child(1) {
        right: 77px;
    }

    #book-synopsis .buttons a {
        width: unset;
    }

    #cta-xl {
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 2.5rem;
        padding: 1.5rem 1rem 0;
    }

    #cta-xl img:not(.button-icon) {
        max-width: 200px;
    }

    #cta-xl .buttons {
        margin: 2rem 0;
        width: 30%;
    }

    #cta-xl .button-icon {
        max-width: 17%;
    }

    #cta-xl div:not(.buttons) {
        max-width: 100%;
    }

    footer {
        padding: 0 10.5rem;
    }
}

@media screen and (width >=1270px) {
    #hero {
        margin-bottom: -8.25rem;
        padding: 0 12rem;
    }

    #book {
        padding: 12rem 12rem;
    }

    footer {
        padding: 0 12rem;
    }

}