*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

/* Utility */

.inner-container {
    max-width: 75rem;
}

.flex-container {
    display: flex;
}


p {
    max-width: 70ch;
}

html {
    font-size: 100%;
}



/* build structure */

body {
    max-width: 100%;
    justify-self: center;
    background-color: rgb(54, 34, 34);
    font-size: 1rem;
    line-height: 1.5rem;
}

h1,
h2,
h3 {
    padding: 1.875rem 0rem;
    justify-self: center;
}


p {
    padding-bottom: 1.875rem;
    justify-self: center;
    text-align: justify;
}

header,
article,
footer,
aside {
    padding: 1rem;
    margin: 0 1rem;
}

header,
footer {
    background-color: rgb(24, 23, 23);
}

header {
    display: flex;
    justify-content: space-between;
}

section {
    background-image: url(../img/banner-hotpot.avif);
    background-repeat: no-repeat;
    background-attachment: local;
    background-size: cover;
    background-position: center center;
    padding: 1rem;
    margin: 1rem;
}

img {
    display: block;
    margin: 0 1rem;
    justify-self: center;
    border-radius: 10%;
}

a:hover {
    color: rgb(255, 255, 255);
    font-weight: bolder;
}

nav {
    flex: 1 0 100%;
    position: absolute;
    top: 0;
    left: -15.625rem;
    width: 10rem;
    height: 100%;
    transition: left 0.3s ease-in-out;
    padding-top: 3.75rem;
    background-color: rgb(24, 23, 23);
    padding-left: 0.5rem;
}

.show-nav {
    left: 0;
}

nav ul {
    list-style-type: none;
    flex-direction: column;
}

nav a {
    padding: 1rem;
    display: inline-block;
}

nav li {
    margin: 0.25rem 0;
    display: inline-block;
    text-align: center;
}

a {
    text-decoration: none;
    color: rgb(255, 0, 0);
}

article img,
footer img {
    width: 100%;
    height: 100%;
}

svg {
    width: 2rem;
}

article,
aside,
footer {
    background-color: rgb(0, 0, 0);
    border: solid rgb(255, 0, 0) 1px;
    margin: 1rem;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #ffffff;
    color: #fff;
    text-align: center;
    padding: 10px;
}

header img {
    width: 5rem;
}

/* typeface */

h1,
h2 {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 2rem;
    line-height: 2.5rem;
    color: rgb(255, 0, 0);
    text-align: center;
    text-shadow: 1px 1px rgb(255, 255, 255);
}

p {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    line-height: 1.5rem;
    color: rgb(255, 0, 0);
    text-align: start;
}

section p {
    text-shadow: 0 0 3px rgb(255, 255, 255);
    color: rgb(255, 0, 0);
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    letter-spacing: 3px;
    font-size: 1.2rem;
}

footer a {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.5rem;
    line-height: 2.0rem;
    color: rgb(255, 0, 0);
    text-align: center;
}

footer p {
    margin-top: 1rem;
}

footer li {
    list-style-type: none;
}


/* media queries */

/* md version */

@media (width > 800px) {

    header {
        align-items: center;
    }

    nav {
        display: block;
        flex: auto;
        position: relative;
        left: -28rem;
        top: 0;
        max-width: 43.75rem;
        height: auto;
        padding: 0;
        background-color: transparent;
    }

    button {
        display: none;
    }

    nav ul {
        display: flex;
        justify-content: space-evenly;
        margin: 0 auto 0 10rem;
        padding: 0;
        gap: 0;
        width: 100%;
        flex-direction: initial;
    }

    nav li {
        flex-wrap: nowrap;
    }

    nav a {
        max-width: 100%;
    }

    

    main {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(8, minmax(2rem, 1fr));
    }

    section {
        grid-column: 1 / -1;
        grid-row: 1 / -1;
    }

    footer {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .owner {
        grid-column: 1 / -1;
    }

    .links {
        grid-column: 1 / 2;
    }

    .socials {
        grid-column: 2 / 3;
    }

}

/* lg version */

@media (width > 1200px) {

    main {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: repeat(6, minmax(5rem, 1fr));
    }

    section {
        grid-column: 1 / -1;
        grid-row: 1 / 2;
    }

    .about-art {
        grid-column: 1 / 5;
        grid-row: 2 / 4;
    }

    .experience-art {
        grid-column: 5 / 9;
        grid-row: 2 / 4;
    }

    .origin-art {
        grid-column: 9 / 13;
        grid-row: 2 / 4;
    }

    .recipe-art {
        grid-column: 1 / 5;
        grid-row: 4 / 6;
    }

    .aesthetics-art {
        grid-column: 5 / 9;
        grid-row: 4 / 6;
    }

    .health-art {
        grid-column: 9 / 13;
        grid-row: 4 / 6;
    }

    aside {
        grid-column: 1 / -1;
        grid-row: 6 / 7;
    }

    footer {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .owner {
        grid-column: 1 / -1;
    }

    .links {
        grid-column: 1 / 2;
    }

    .socials {
        grid-column: 2 / 3;
    }
}