@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Space+Grotesk:wght@300..700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background-color: rgb(143, 92, 106);
    color: white;
}

html {
    font-size: 16px;
    font-family: "Outfit", sans-serif;
    scroll-behavior: smooth;
}

p {
    line-height: 1.2rem;
}

body {
    position: relative;
    min-height: 100vh;
    padding-bottom: 10rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Space Grotesk", sans-serif;
    font-weight: bold;
    text-transform: capitalize;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    padding: 1rem;
    background-color: #5d2a42;
    color: white;
    border-radius: 5px;
    text-decoration: none;
}

a:focus,
a:hover {
    background-color: white;
    color: #5d2a42;
    box-shadow: 0 0 20px rgba(20, 20, 20, 20%);
    border: 2px solid #5d2a42;
}

a:active {
    position: relative;
    top: 2px;
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 10rem;
    background-color: #5d2a42;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    border-top: 0.5rem solid #a92f3e;
}

footer a:hover {
    box-shadow: none;
}

header {
    background-color: #5d2a42;
    color: white;
    padding: 1rem;
    border-bottom: 0.5rem solid #a92f3e;
}

header svg {
    display: block;
    margin: 0 auto;
}

header h1 {
    margin: 1rem;
    background-color: transparent;
    color: white;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

aside {
    background-color: #a92f3e;
    padding: 1rem;
    margin: 1rem auto;
    border-radius: 5px;
}

header h1 span {
    flex-basis: 100%;
    text-align: center;
}

header h1 span:last-child {
    color: #fb6376;
    background-color: transparent;
}

nav {
    list-style: none;
    text-transform: capitalize;
}

nav ul {
    border-bottom: 0.5rem solid #a92f3e;
}

nav li {
    display: flex;
}

nav p {
    margin: 0;
}

nav a {
    font-weight: bold;
    text-decoration: none;
    color: white;
    background-color: #a92f3e;
    border-radius: 0;
    padding: 0.5rem;
    flex-basis: 100%;
}

nav a:focus,
nav a:hover {
    background-color: white;
    color: #5d2a42;
    box-shadow: none;
    border: none;
}

article {
    margin: 1rem;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(93, 42, 66, 20%);
    background-color: #fff;
    color: #000;
}

article h2 {
    text-align: center;
    margin: 1rem;
}

article p {
    margin: 1rem;
}

article p:last-child {
    margin: 2rem 1rem;
}

article h3 {
    margin: 1.2rem;
    margin-bottom: 0;
}

article ul {
    list-style: none;
    margin: 1rem;
    display: flex;
}

article ul a {
    padding: 0.5rem;
    margin: 0.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.7rem;
    text-transform: uppercase;
    background-color: rgba(20%, 20%, 20%, 20%);
    color: #000;
}

article ul a:focus,
article ul a:hover {
    color: white;
    background-color: #000;
}

article figure {
    background-color: #5d2a42;
    color: white;
    max-width: 100%;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 0 10px rgba(93, 42, 66, 20%);
    margin: 1rem;
}

article figure img {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

article figcaption {
    padding: 0.3rem;
}

@media screen and (min-width: 768px) {
    html {
        font-size: 18px;
    }

    body {
        padding-bottom: 4rem;
    }

    footer {
        height: 4rem;
    }

    p {
        line-height: 1.5rem;
    }

    header h1 {
        flex-wrap: nowrap;
    }

    header h1 span {
        flex-basis: auto;
    }

    header h1 span:last-child {
        padding-left: 0.5rem;
    }

    nav ul {
        display: flex;
        justify-content: space-evenly;
    }

    nav ul li {
        flex-basis: 100%;
        text-align: center;
    }

    footer {
        flex-direction: row;
    }

    aside {
        max-width: 768px;
    }

    .container {
        max-width: 768px;
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    #merch,
    #links {
        flex-basis: 45%;
    }

    #merch,
    #links,
    #project {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    #foto {
        flex-basis: 100%;
        order: 1;
    }

    #merch {
        order: 2;
    }

    #links {
        order: 3;
    }

    #project {
        order: 4;
    }
}

@media screen and (min-width: 1200px) {
    aside {
        max-width: 1200px;
        margin: 1rem auto;
    }

    .container {
        max-width: 1200px;
    }

    #foto {
        flex-basis: 60%;
    }

    #foto div {
        display: flex;
        align-items: center;
    }

    #foto div p {
        flex-basis: 60%;
    }

    #foto div figure {
        flex-basis: 40%;
        font-size: 0.8rem;
    }

    #project {
        order: 4;
        flex-basis: 60%;
    }

    #merch {
        order: 2;
        flex-basis: 32%;
    }

    #links {
        order: 3;
        flex-basis: 32%;
    }
}
