@import url('https://fonts.googleapis.com/css?family=Playfair+Display|Source+Sans+Pro:200,400');

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

p, a {
    font-family: 'Source Sans Pro', sans-serif;
}

/* Generic styles */
html {
    scroll-behavior: smooth;
}

a {
    background-color: #b0cb9d;
    text-decoration: none;
    color: white;
    border-radius: .25rem;
    text-align: center;
    display: inline-block;
    transition: all .3s;
}

a:hover {
    opacity: .6;
}

/* Styles for the hero image */
.hero {
    /* Photo by mnm.all on Unsplash */
    background: url("/static/img/tempPage/Westlands24359.jpg") center;
    background-size: cover;
    padding: 4rem 2rem;
    /* grid styles */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: center;
    border-radius: 10px;
}

.hero > * {
    color: white;
}

.hero > h1 {
    font-size: 4rem;
    padding-bottom: 1rem;
}

.hero > article > p {
    font-size: 1.5rem;
    font-weight: 200;
}

.hero > article > a {
    padding: 1rem;
    margin-top: .75rem;
}

/* breweries styles */
.herbs {
    padding: 2rem;
}

.herbs > ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-gap: 1rem;
    list-style-type: none;
    padding-inline-start: 0px;
}

.herbs > ul > li {
    border: 1px solid #E2E2E2;
    border-radius: .5rem;
}

.herbs > ul > li > figure {
    max-height: 220px;
    overflow: hidden;
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
    position: relative;
}

.herbs > ul > li > figure > img {
    width: 100%;
}

.herbs > ul > li > figure > figcaption {
    position: absolute;
    bottom: 0;
    background-color: rgba(0,0,0,.7);
    width: 100%;
}

.herbs > ul > li > figure > figcaption > h3 {
    color: white;
    padding: .75rem;
    font-size: 1.25rem;
}

.herbs > ul > li > p {
    font-size: 1rem;
    line-height: 1.5;
    padding: 1rem .75rem;
    color: #666666;
}

.herbs > ul > li > a {
    padding: .5rem 1rem;
    margin: .5rem;
}

/* footer */
footer {
    background-color: #b0cb9d;
    padding: .75rem;
    color: white;
    text-align: center;
    font-size: .75rem;
}

div.img {
    display: grid;
    margin: 20px;
    justify-content: center;
}