:root {
    --primary-color: #333;
}

html,
body,
h1,
h2,
a,
address,
ul,
li,
p,
figure,
figcaption {
    all: unset;
}

h1,
h2,
ul,
li,
p,
figure {
    display: block;
}

a {
    cursor: pointer;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

p {
    margin-top: 1em;
    margin-bottom: 1em;
}

body {
    font-family: "Merriweather Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-size: 15px;
    line-height: 1.5em;
    color: var(--primary-color);
}

body>* {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 980px;
}

body>header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    display: flex;
    justify-content: center;
    background: white;
}

body>main {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 10px;
}

body>main>* {
    grid-column: 2;
}

body>main>section {
    background: #F5F5F5;
}

a.button {
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 0.9em;
    border: 1px solid var(--primary-color);
    padding: 10px 15px;
    transition: background-color 0.3s ease-in-out;
}

@media (pointer: fine) {
    a.button:hover {
        background-color: #fcfcfc;
    }
}

a.button svg {
    display: block;
    height: 25px;
}

section.image {
    aspect-ratio: 0.80;
}

section.image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h2 {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 20px;
    line-height: 25px;
    font-weight: 300;
}

.logo {
    width: auto;
    height: 30px;
}

#cover img {
    display: block;
    width: 100%;
    height: auto;
}

#about,
#opening-hours,
#contact {
    padding: 30px;
}

#about {
    display: flex;
    flex-direction: column;
    align-items: start;
}

#about p {
    margin-bottom: 0;
}

#brands ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    padding: 30px;
}

#brands ul>li>a {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border: 1px solid var(--primary-color);
    overflow: hidden;
}

#brands ul>li>a>figure {
    display: contents;
}

#brands ul>li>a>figure>img {
    display: block;
    width: 80%;
    height: auto;
}

#brands ul>li>a>figure>figcaption {
    display: none;
}

#opening-hours ul {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    column-gap: 10px;
    margin-top: 1em;
}

#opening-hours ul>li {
    display: contents;
}

#opening-hours ul>li .day {
    margin-right: 15px;
}

#opening-hours ul>li .closed {
    grid-column: span 3;
}

#contact .street,
#contact .country {
    display: block;
}

#contact p {
    margin-bottom: 0;
}

footer {
    margin-top: 20px;
    border-top: 1px solid #F5F5F5;
    padding-top: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    width: calc(100% - 60px);
    color: #808080;
    font-size: 11px;
    text-transform: uppercase;
}

@media screen and (min-width: 600px) {
    body>header {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    body>main {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    body>main>* {
        grid-column: auto;
    }

    h2 {
        font-size: 28px;
        line-height: 34px;
        text-align: center;
    }

    .logo {
        height: 50px;
    }

    #cover img {
        max-height: 500px;
        object-fit: cover;
    }

    #cover,
    #image-wide,
    #about,
    #brands {
        grid-column: 1 / -1;
    }

    #about {
        align-items: center;
    }

    #about h2 {
        max-width: 300px;
    }

    #about a.button {
        margin-top: 15px;
    }

    #about>* {
        max-width: 568px;
    }

    #about {
        padding: 60px;
    }

    #brands ul {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        padding: 60px;
    }

    #opening-hours,
    #contact {
        padding: 0px;
    }

    #opening-hours,
    #contact {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #contact {
        text-align: center;
    }

    footer {
        text-align: center;
    }
}