body, html {
    --grace-purple: #600117;
    --grace-gray: #767676;
    background-color: #fff;
    height: 100dvh;
    max-width: 100dvw;
    width: 100dvw;
}

body {
    background-image: url(/img/large_bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

a, a:visited, a:active, a:hover {
    color: inherit;
    text-decoration: none;
}

div.center {
    background-color: white;
    height: 100dvh;
    margin: 0 auto;
    max-height: 100%;
    max-width: 1600px;
    overflow-x: hidden;
    overflow-y: scroll;
    width: 100dvw;
}

h1.title, h2.title {
    font-family: 'Amiri', 'Garamond', 'Times New Roman', serif;
    font-weight: 700;
}

h1.title {
    color: var(--grace-purple);
    font-size: calc(min(10dvw, 48px));
    padding-top: 20px;
    text-align: center;
}

h1.post-editor-title {
    border-bottom: 1px solid var(--grace-purple);
    color: var(--grace-purple);
    font-size: 24px;
    font-weight: 700;
    margin: 40px 40px;
    padding-bottom: 7px;
    padding-top: 20px;
    text-align: center;
}

h2.title {
    color: var(--grace-gray);
    font-size: 18px;
    font-weight: 400;
    margin-top: -4px;
    padding-bottom: 20px;
    text-align: center;
}

nav.main {
    background-color: var(--grace-purple);
    color: white;
    font-family: 'Open Sans', sans-serif;
    font-size: calc(min(3.25dvw, 18px));
    font-weight: 500;
    letter-spacing: 0.2px;
    padding: 20px 0px;
    text-align: center;
    width: 100%;

    a, a:visited, a:active, a:hover {
        border-right: 1px solid white;
        color: inherit;
        padding-left: 15px;
        padding-right: 20px;
        text-decoration: none;

        &:last-child {
            border: none;
            padding-right: none;
        }
    }
}

section.hero {
    width: 100%;
    
    img {
        height: 53dvw;
        max-height: 530px;
        max-width: 1600px;
        width: 100dvw;

        @media screen and (max-width:1600){
            display: none;
        }
    }

}

p.post-editor-instructions {
    font-family: 'Open sans', sans-serif;
    font-size: 16px;
    letter-spacing: 0.2px;
    line-height: 20px;
    margin: 20px auto;
    max-width: 800px;
    text-align: center;
    width: 90dvw;
}

p.success-true {
    color: green;
}

p.success-false {
    color: red;
}

.post-editor-form {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    margin: 40px auto;
    max-width: 800px;

    input, textarea {
        border: 1px solid var(--grace-gray);
        border-radius: 5px;
        font-family: 'Open sans', sans-serif;
        font-size: 16px;
        padding: 10px;
        width: 100%;
    }

    select {
        border: 1px solid var(--grace-gray);
        border-radius: 5px;
        font-family: 'Open sans', sans-serif;
        font-size: 16px;
        padding: 10px;
        width: 20%;
    }

    button {
        background-color: var(--grace-purple);
        border: none;
        border-radius: 5px;
        box-sizing: border-box;
        color: white;
        cursor: pointer;
        font-family: 'Open sans', sans-serif;
        font-size: 16px;
        font-weight: 700;
        height: 40px;
        letter-spacing: 0.2px;
        padding: 8px 10px 10px 10px;
        text-transform: uppercase;
        width: 150px;
    }
}

section.book .grid-book {

    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    margin: 40px auto;
    max-width: 1000px;
    width: 80dvw;

    h1.title, h2.title {
        font-family: 'Amiri', 'Garamond', 'Times New Roman', serif;
        font-weight: 700;
    }

    h1.title {
        color: black;
        font-size: 48px;
        padding-top: 20px;
        text-align: center;
        text-transform: uppercase;
    }

    h2.title {
        color: var(--grace-gray);
        font-size: 32px;
        font-weight: 400;
        margin-top: -4px;
        padding-bottom: 20px;
        text-align: center;
    }

    p {
        font-family: 'Open sans', sans-serif;
        font-size: 18px;
        letter-spacing: 0.2px;
        line-height: 20px;
    }

    img.cover {
        margin-right: 40px;
        width: 275px;
    }

    img.buy-link {
        display: block;
        margin: 20px auto;
        text-align: center;
        
    }

}

section.book .line-book {

    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 40px auto;
    width: 90dvw;

    h1.title, h2.title {
        font-family: 'Amiri', 'Garamond', 'Times New Roman', serif;
        font-weight: 700;
    }

    h1.title {
        color: black;
        font-size: 8dvw;
        padding-top: 20px;
        text-align: center;
        text-transform: uppercase;
    }

    h2.title {
        color: var(--grace-gray);
        font-size: 6.5dvw;
        font-weight: 400;
        margin-top: -4px;
        padding-bottom: 20px;
        text-align: center;
    }

    p {
        font-family: 'Open sans', sans-serif;
        font-size: 18px;
        letter-spacing: 0.2px;
        line-height: 20px;
        margin: 20px 0px
    }

    img.cover {
        width: 60%;
    }

    img.buy-link {
        display: block;
        margin: 20px auto;
        text-align: center;
        
    }

}

section.grace .grace-grid {
    align-items: center;
    background-image: url(/img/beach-field.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    color: white;
    display: flex;
    flex-direction: row;
    font-family: 'Open sans', sans-serif;
    font-size: 24px;
    height: 423px;
    justify-content: flex-start;
    letter-spacing: 0.2px;
    line-height: 26px;
    width: 100%;

    .column-1 {
        max-width: 400px;
        text-align: center;
        width: 25dvw;

        img {
            min-width: 250px;
            padding: 0dvw 2dvw;
            width: 13dvw;
        }

    }

    p {
        margin-bottom: 20px;
        padding-right: 2dvw;
    }  
    
    div.buttons {
        display: flex;
        flex-direction: row;
        gap: 10px;
        justify-content: flex-end;
        margin-left: auto;
        padding-right: 2dvw;
    }

    button.minor-cta {
        background-color: #b3bfc5;
        border-radius: 9px;
        box-sizing: border-box;
        color: black;
        cursor: pointer;
        font-family: 'Open sans', sans-serif;
        font-size: 16px;
        height: 40px;
        letter-spacing: 0.2px;
        padding: 6px 10px 14px 10px;
        text-transform: uppercase;
    }

    button.major-cta {
        background-color: goldenrod;
        border-radius: 9px;
        box-sizing: border-box;
        color: black;
        cursor: pointer;
        font-family: 'Open sans', sans-serif;
        font-size: 16px;
        height: 40px;
        letter-spacing: 0.2px;
        padding: 6px 10px 14px 10px;
        text-transform: uppercase;
    }
}

section.grace .grace-line {
    align-items: center;
    color: white;
    display: flex;
    flex-direction: column;
    font-family: 'Open sans', sans-serif;
    font-size: 24px;
    height: 423px;
    justify-content: flex-start;
    letter-spacing: 0.2px;
    line-height: 26px;
    width: 100%;

    .column-1 {
        background-image: url(/img/beach-field.jpg);
        background-position: center center;
        background-repeat: no-repeat;
        text-align: center;
        width: 100%;

        img {
            padding: 20dvw 0;
            width: 45dvw;
        }

    }

    p {
        color: black;
        font-family: 'Open sans', sans-serif;
        font-size: 18px;
        letter-spacing: 0.2px;
        line-height: 20px;
        padding: 20px;
    }   
    
div.buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
        width: 80dvw;
    }

    button.minor-cta {
        background-color: #b3bfc5;
        border-radius: 9px;
        box-sizing: border-box;
        color: black;
        cursor: pointer;
        font-family: 'Open sans', sans-serif;
        font-size: 16px;
        height: 40px;
        letter-spacing: 0.2px;
        padding: 6px 10px 14px 10px;
        text-transform: uppercase;
    }

    button.major-cta {
        background-color: goldenrod;
        border-radius: 9px;
        box-sizing: border-box;
        color: black;
        cursor: pointer;
        font-family: 'Open sans', sans-serif;
        font-size: 16px;
        height: 40px;
        letter-spacing: 0.2px;
        padding: 6px 10px 14px 10px;
        text-transform: uppercase;
    }    
}

section.latest-posts {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
    margin: 40px auto;
    max-width: 1500px;
    width: 100dvw;

    h1.title {
        color: black;
        font-family: 'Amiri', 'Garamond', 'Times New Roman', serif;
        font-size: 36px;
        padding-top: 20px;
        text-align: center;
        text-transform: uppercase;
    }

    div.titles {
        font-family: 'Amiri', 'Garamond', 'Times New Roman', serif;
        text-align: center;
        font-weight: 700;

        h1.latest-posts-title {
            color: var(--grace-purple);
            font-size: calc(min(6dvw, 32px));
            margin-bottom: 0px;
            padding-top: 20px;
            text-transform: uppercase;
        }

        h2.latest-posts-subtitle {
            color: var(--grace-gray);
            font-size: calc(min(3dvw, 14px));
            margin-top: 0px;
            padding-bottom: 20px;
            text-transform: uppercase;
        }
    }

    .posts-container {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
        width: 100%;
    }

    .post-card {
        /* border: 1px solid var(--grace-gray); */
        border-radius: 5px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        height: auto;
        max-width: 420px;
        width: 90dvw;

        .post-title {
            font-family: 'Amiri', 'Garamond', 'Times New Roman', serif;
            font-size: 24px;
            font-weight: 700;
            letter-spacing: 0.2px;
            margin: 20px 0px;
            text-align: center;
            text-transform: uppercase;
        }

        .read-more {
            font-size: 14px;
            color: var(--grace-purple);
            text-decoration: underline;
        }

        .post-blurb {
            font-family: 'Open sans', sans-serif;
            font-size: 16px;
            letter-spacing: 0.2px;
            line-height: 20px;
            margin: 0px 20px 20px 20px;
            text-align: left;
        }

        img {
            border-radius: 5px;
            height: auto;
            max-width: 420px;
            width: 80vw;
        }
    }

    .no-posts {
        font-family: 'Open sans', sans-serif;
        font-size: 18px;
        letter-spacing: 0.2px;
        text-align: center;
        width: 100%;
    }
}

@media screen and (max-width:1575px){

     section.hero img {
        height: auto;
        width: 100%;
     }
}

@media screen and (max-width:835px){

     .tablet-fix {
        display: none;
     }
}

@media screen and (max-width:500px){

     .small-hide {
        display: none;
     }
}

@media screen and (min-width:501px){

     .small-only {
        display: none;
     }
}

@media screen and (min-width: 1101px){
    .line-book {
        display: none !important;
    }
    .grace-line {
        display: none !important;
    }
}

@media screen and (max-width: 1100px){
    .grid-book {
        display: none !important;
    }
    .grace-grid {
        display: none !important;
    }
}
