/* || Set root variables */
:root {
    --priCyan: hsl(179, 62%, 43%);
    --secCyan: hsla(179, 62%, 43%, 0.833);
    --tertCyan: hsl(179, 62%, 75%);
    --shadowCyan: hsl(179, 62%, 30%); 
    --priBrightYellow: hsl(71, 73%, 54%);

    --neuLightGray: hsl(204, 43%, 93%);
    --neuGrayishBlue: hsl(218, 22%, 67%);
    --mcBoxShadow: hsla(200, 18%, 80%, 0.877);
    --heavy-font: 700;
    --light-font: 400;
}

/* || Basic CSS reset */
*, 
*::after,
*::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

    font-family: "Karla", serif;
    font-optical-sizing: auto;
}

h1, h2, h3, .sub-cost, button {
    font-weight: 700;
}

h1 {
    font-size: 1.25rem;
}

h2 {
    font-size: 1rem;
}

h3 {
    font-size: 1rem;
}

p {
    font-size: 0.8rem;
    line-height: 1.25;
}

p, li, .sub-info, .sub-time {
    font-weight: 400;
}

body {
    width: 100dvw;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--neuLightGray);
}

section {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 2rem 2rem;
}

/* || Generic stylings - join  */
main {
    box-shadow: 0rem 1rem 0.75rem var(--mcBoxShadow);
    border-radius: 0.5rem;
}
#join-section {
    background-color: white;
    border-radius: 0.5rem 0.5rem 0rem 0rem;
}

#join-section h1 {
    color: var(--priCyan);
}

#join-section h3 {
    color: var(--priBrightYellow);
}

#join-section .join-section-p {
    color: var(--neuGrayishBlue);
}

/* || Generic stylings - subscription  */
#subscription-section {
    background-color: var(--priCyan);
}

#subscription-section h2 {
    color: white;
}

#subscription-section .subscription-pricing {
    display: flex;
}

#subscription-section .subscription-pricing .sub-cost {
    color: white;
    font-size: 1.5rem;
}

#subscription-section .subscription-pricing .sub-time {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--tertCyan);
    margin-left: 0.5rem;
}

#subscription-section .sub-info {
    color: var(--neuLightGray);
    font-size: 1rem;
}

#subscription-section button {
    background-color: var(--priBrightYellow);
    border: none;
    color: white;
    box-shadow: 0rem 0.125rem 0.5rem var(--shadowCyan);
    height: 2.625rem;
    width: 95%;
    margin: 0.5rem;
    border-radius: 0.25rem;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* || Generic stylings - why */
#why-section {
    background-color: var(--secCyan);
    border-radius: 0rem 0rem 0.5rem 0.5rem;
}

#why-section h2 {
    color: white;
}

#why-section li {
    list-style-type: none;
    color: var(--neuLightGray);
    margin: 0.25rem 0rem;
    font-size: 0.8rem;
}

/* || Mobile-viewport stylings */
main {
    width: 80%;
    height: max-content;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
section {
    width: 100%;
    height: 225px;
}

/* || Join section styling */
#join-section {
    width: 100%;
}

#join-section h3 {
    line-height: 1.5;
}
#join-section .join-section-p {
    line-height: 1.625;
}

/* || Desktop-viewport stylings */
@media screen and (min-width: 500px) {
    main {
        max-width: 700px;
        display: flex;
        align-items: stretch;
        flex-wrap: wrap;
    }

    section {
        padding: 2rem 2rem 1.75rem;
        height: 250px;
    }

    #join-section {
        max-width: 700px;
        height: 225px;
    }

    #join-section h1 {
        font-size: 1.5rem;
        font-weight: 750;
    }

    #join-section h3 {
        font-size: 1.125rem;
    }

    .join-section-p {
        font-size: 1rem;
        width: 85%;
    }

    #subscription-section {
        width: 350px;
        border-radius: 0rem 0rem 0rem 0.5rem;
    }

    h2 {
        font-size: 1.25rem;
        font-weight: 400;
    }

    #subscription-section .subscription-pricing {
        margin: 0.375rem 0rem;
    }

    #subscription-section .subscription-pricing .sub-cost {
        font-size: 2rem;
        font-weight: 500;
    }

    #subscription-section button {
        height: 3rem;
        margin: 1rem 0rem 0rem;
    }

    

    #why-section {
        width: 350px;
        border-radius: 0rem 0rem 0.5rem 0rem;
    }

    #why-section li {
        font-size: 0.9rem;
    }
}

/*
main {}
section {}

 || Join section styling 
#join-section {}
#join-section h1 {}
#join-section h3 {}
#join-section .join-section-p {}

 || Subscription section styling 
#subscription-section {}
#subscription-section h2 {}
#subscription-section .subscription-pricing {}
#subscription-section .subscription-pricing .sub-cost {}
#subscription-section .subscription-pricing .sub-time {}
#subscription-section .sub-info {}
#subscription-section button {}

 || Why section styling 
#why-section {}
#why-section h2 {}
#why-section ul {}
#why-section li{}
*/











/* || Footer */
footer {
    display: none;
    position: absolute;
    bottom: 0;
}

.attribution {
     font-size: 11px; text-align: center; 
}

.attribution a { 
    color: hsl(228, 45%, 44%);
}
