@font-face {
    font-family: "Instrument Sans";
    src: url("fonts/InstrumentSans-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Instrument Sans";
    src: url("fonts/InstrumentSans-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #f8f7f4;
    color: #404040;

    font-family: "Instrument Sans", sans-serif;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 1.8rem;

    width: min(760px, 90vw);

    padding: 2rem;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

h1 {
    font-size: 3.3rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.045em;
    color: #404040;
}

p {
    margin-top: 2rem;

    display: flex;
    gap: 1.8rem;

    font-size: .78rem;
    font-weight: 400;

    text-transform: uppercase;
    letter-spacing: .18em;

    color: #9a9a9a;
}

.hero-image {
    transform: translateY(-25px);
}

.hero-image img {
    width: 260px;
    height: auto;
    display: block;
}

/* --------------------------------------- */
/* Responsive */
/* --------------------------------------- */

@media (max-width: 768px) {

    body {
        padding: 2rem 0;
    }

    .hero {
        flex-direction: column-reverse;

        width: 100%;
        max-width: 420px;

        gap: 2.5rem;

        padding: 2rem;

        text-align: center;
    }

    .hero-text {
        align-items: center;
    }

    h1 {
        font-size: 2.35rem;
    }

    p {
        margin-top: 1.3rem;

        justify-content: center;
        gap: 1rem;

        font-size: .72rem;
        letter-spacing: .16em;

        flex-wrap: wrap;
    }

    .hero-image {
        transform: none;
    }

    .hero-image img {
        width: min(300px, 72vw);
        max-width: 100%;
    }

}