* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #222;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

img {
    max-width: 100%;
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    max-width: 900px;
    margin: 26px auto 14px;
    padding: 0 16px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 56px;
    height: 56px;
}

.brand-title {
    margin: 0;
    font-family: "Amatic SC", cursive;
    font-weight: 700;
    font-size: 64px;
    letter-spacing: 1px;
}

.search {
    width: 100%;
    max-width: 780px;

    display: flex;
    align-items: center;
}

.search input {
    flex: 1;
    height: 38px;
    border: 1px solid #333;
    border-right: 0;
    border-radius: 6px 0 0 6px;
    padding: 0 12px;
    font-size: 14px;
}

.search button {
    height: 38px;
    width: 46px;

    border: 1px solid #333;
    border-left: 0;
    border-radius: 0 6px 6px 0;
    background: #fff;
    cursor: pointer;

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

.search button img {
    width: 18px;
    height: 18px;
}

.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px 36px;

    display: flex;
    justify-content: center;
}

.recipe {
    width: 100%;
    max-width: 780px;

    border: 2px solid #222;
    border-radius: 8px;
    overflow: hidden;

    display: flex;
    flex-direction: column;
}

.recipe-img {
    width: 100%;
    height: auto;
}

.recipe-body {
    padding: 12px 14px;

    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tag {
    width: fit-content;
    font-size: 12px;
    border: 1px solid #222;
    border-radius: 4px;
    padding: 2px 8px;
}

.recipe-title {
    margin: 0;
    font-family: "Amatic SC", cursive;
    font-size: 40px;
    font-weight: 700;
    color: #1f6feb;
}

.rating {
    font-size: 18px;
    line-height: 1;
}

.recipe-desc {
    margin: 0;
    font-size: 14px;
}

.site-footer {
    max-width: 900px;
    margin: 6px auto 26px;
    padding: 0 16px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.attrib {
    font-size: 12px;
}

.social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social img {
    width: 28px;
    height: 28px;
}

@media (max-width: 699px) {
    .recipe-desc {
        display: none;
    }
}

@media (min-width: 700px) {
    .recipe {
        flex-direction: row;
    }

    .recipe-img {
        width: 55%;
        object-fit: cover;
    }

    .recipe-body {
        width: 45%;
    }

    .recipe-desc {
        display: block;
    }

    .site-footer {
        flex-direction: row;
        justify-content: space-between;
    }
}