* {
    box-sizing: border-box;
}

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

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: 760px;
    margin: 40px auto 12px;
    padding: 0 16px;

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

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

.brand-icon {
    width: 90px;
    height: auto;
}

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

.search {
    width: 100%;
    display: flex;
    align-items: center;
}

.search input {
    flex: 1;
    height: 50px;
    border: 2px solid #999;
    border-right: none;
    border-radius: 10px 0 0 10px;
    padding: 0 14px;
    font-size: 18px;
}

.search button {
    width: 58px;
    height: 50px;
    border: 2px solid #999;
    border-left: none;
    border-radius: 0 10px 10px 0;
    background: white;
    cursor: pointer;

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

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

.divider {
    max-width: 760px;
    margin: 0 auto 18px;
    border: none;
    border-top: 2px solid #ccc;
}

.content {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 16px 30px;

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

.recipe {
    border: 2px solid #888;
    border-radius: 10px;
    overflow: hidden;
    background: white;

    display: flex;
    flex-direction: column;
}

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

.recipe-body {
    padding: 16px;

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

.recipe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-block;
    border: 1px solid #777;
    padding: 4px 8px;
    font-size: 14px;
    background: white;
}

.recipe-title {
    margin: 0;
    font-family: "Amatic SC", cursive;
    font-size: 34px;
    line-height: 1.1;
    color: #4aa3df;
}

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

.recipe-desc {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
}

.no-results {
    text-align: center;
    font-size: 20px;
    padding: 20px;
}

.site-footer {
    max-width: 760px;
    margin: 10px auto 30px;
    padding: 0 16px;

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

.attrib {
    font-size: 12px;
}

.social {
    display: flex;
    gap: 10px;
}

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

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

    .recipe-img {
        width: 42%;
        height: 260px;
        flex-shrink: 0;
    }

    .recipe-body {
        width: 58%;
        justify-content: flex-start;
    }

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