body {
    font-family:Times, Times New Roman,-serif;
    margin: 0;
}

h1, h2, h3 {
    font-family: Garamond, Times New Roman, Serif;
    font-weight:normal;
    color: #7b635c;
    margin-block-end: 0.2em;
    line-height: 120%;
}

a {
    color: #7b635c;
    text-decoration: none;
    &:hover, &:focus {
        text-decoration: underline;
    }
}

a.button {
    padding: 0.5em 2em;
    margin-bottom: 1em;
    /* border: 1px solid #7b635c; */
    border: 1px outset buttonborder;
    border-radius: 3px;
    color: black;
    background-color: #ede3ba;
    text-decoration: none;
}

div.site-title {
    margin: 0;
    padding: 0.5em 2em;
    color: white;
    background: #7b635c;
    & h1 {
        color: white;
        margin: 1rem 0;
        & a {
            color: white;
            text-decoration: none;
        };
    };
}

div.content {
    padding-bottom: 3rem;
}

div.more {
    margin-top: 3rem;
}

header nav {
    background-color: #ede3ba;
    color: gray;
    padding: 0.5em 2em;
    margin: 0;
    margin-block: 0;
    & ul  {
        list-style-type: none;
        margin: 0;
        padding: 0;
        & li {
            display: inline;
            margin-right: 1em;
        }
    }

    & a {
        color: gray;
        text-decoration: none; 
    }
}

div.content {
    margin: 4rem 4rem;

    line-height: 133%;

    @media (width > 80rem) {
        margin: 4rem auto;
    }
    @media (48rem < width <= 80rem) {
        margin: 2rem;
    }
    @media (width <= 48rem) {
        margin: 1rem;
    }

}

div.subtitle {
    font-size: 120%;
    color: #7b635c;
}

div.author {
    font-size: 110%;
    font-style: italic;
    color: #777777;
}

.template-homepage {
    & div.content {
        font-size: 110%;
        max-width: 64rem;
    }
}


.template-general {
    & div.content {
        font-size: 110%;
        max-width: 64rem;
    }
    
    & img.left {
        float: left;
        margin-right: 1em;
        margin-bottom: 1em;
        border: 1px solid #ccc;
        padding: 0.2em;
        background-color: #f9f9f9;
    }
}

.template-homepage {
    & div.content {
        & .bookshelf {
            text-align: center;
            margin: 1em auto 1em auto;
        }
    }
}

.template-bookindexpage {
    & div.content {
        max-width: 64rem;

        & .bookshelf {
            text-align: center;

            & .book-entry {
                border: 1px solid gray;
                border-radius: 3px;
                width: 15rem;
                min-height: 15rem;

                & img {
                    margin-bottom: 1em;
                }
            }
        }
    }
}

.book-entry {
    display: inline-block;
    padding: 1em;
    margin-right: 2em;
    margin-bottom: 2em;
    text-align: center;
    vertical-align: top;
    max-width: 15rem;
    & h2 {
        margin-top: 0;
        margin-bottom: 1rem;
    }
    &:hover,
    &:focus-within {
        box-shadow: 2px 2px 5px #ccc;
    }
    & img {
        border: 1px solid #ccc;
        padding: 0.2em;
        background-color: #f9f9f9;
    }

    & div.teaser {
        font-size: 90%;
        color: #555555;
        line-height: 125%;
    }
}


.template-book {

  & div.content {
    max-width: 48rem;

    & div.author {
        margin-top: 0.25rem;
    }

    & h2 {
        clear: both;
        border-top: 1px dotted gray;
        margin: 1em 0;
        padding: 1rem 0;
    }
  }

  & img.book-theme {
    float: right;
    margin-left: 1em;
    margin-bottom: 1em;
    border: 1px solid #ccc;
    padding: 0.2em;
    background-color: #f9f9f9;
  }

  & div.review {
    max-width: 32rem;;
    & div.review-body {
        font-style: italic;
        margin-top: 2rem;
        margin-bottom: 1rem;
        padding-left: 1rem;
        border-left: 4px solid #ccc;  
    }

    & div.reviewer {
        text-align: right;
        color: #555555;
        margin-bottom: 2rem;
    }
    & div.reviewer::before {
        content: "— ";
    }
}

  & ul.editions-list {
    list-style-type: none;
    padding-left: 0;

    & li {
        width: 16rem;
        text-align: center;
        display: inline-block;
        margin-bottom: 1em;

        & img.edition-theme {
            display: block;
            float: none;
            margin: 0 auto 1em;
        }
      
    }

  }
}


.template-edition {

  & div.content {
    max-width: 48rem;

    & img.edition-theme {
        display: block;
        float: left;
        margin: 1em 2em 1em 0em;
    }


    & div.info {
        margin-top: 1rem;
        float: left;

        & ul.vendors-list {
            list-style-type: none;
            padding-left: 0;

            & li {
                margin-top: 1.5rem;
                margin-left: 0;
                width: 16rem;
            }

        }

    }

    & h2 {
        clear: both;
        margin-top: 2rem;
    }

  }

}

.template-review {
    & div.review {
        max-width: 32rem;

        & div.review-body {
            font-style: italic;
            margin-top: 2rem;
            margin-bottom: 1rem;
            padding-left: 1rem;
            border-left: 4px solid #ccc;  
        }

        & div.reviewer {
            text-align: right;
            color: #555555;
            margin-bottom: 2rem;
        }
        & div.reviewer::before {
            content: "— ";
        }
    }
}

.template-factoid {
    & div.content {
        font-size: 110%;
        max-width: 64rem;
    }
}

.template-articleindexpage {
    & div.content {
        max-width: 64rem;

        & .articleshelf {
            text-align: left;
        }
    }

    .article-entry {
        padding-left: 1rem;
        border-left: 4px solid #ccc;  
        margin-bottom: 1em;
    }

    .article-date {
        font-size: 90%;
    }
}

.template-article {
    & div.content {
        max-width: 32rem;

        & div.article-body {
            font-style: italic;
            margin-top: 2rem;
            margin-bottom: 1rem;
            padding-left: 1rem;
            border-left: 4px solid #ccc;  
        }

        & div.articleer {
            text-align: right;
            color: #555555;
            margin-bottom: 2rem;
        }
        & div.articleer::before {
            content: "— ";
        }
    }
}
