body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.5;
    color: #222222;
    background-color: #f3efe7;
}

* {
    box-sizing: border-box;
}

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

a {
    color: #4f6b3c;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3,
p,
ul,
ol {
    margin-top: 0;
}

.site-header {
    padding: 20px 16px 0 16px;
}

.site-header__inner,
.page-shell {
    max-width: 700px;
    margin: 0 auto;
}

.site-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 16px;
}

.site-branding__link {
    font-size: 1.5rem;
    font-weight: bold;
    color: #222222;
    text-transform: uppercase;
}

.site-branding__tagline,
.recipe-card__author,
.results-summary,
.profile-panel__username,
.section-heading__subtle,
.recipe-detail__author {
    color: #666666;
}

.site-branding__tagline {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.site-branding {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.site-nav,
.account-nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.site-nav a,
.account-nav a {
    font-weight: bold;
    text-transform: uppercase;
}

.page-shell {
    padding: 16px 16px 40px 16px;
}

.page-intro {
    margin-bottom: 20px;
    text-align: center;
}

.page-intro h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.page-intro p:last-child {
    color: #555555;
    margin-bottom: 0;
}

.content-panel {
    margin-bottom: 20px;
    padding: 18px;
    background-color: #fcfaf6;
    border: 1px solid #d8d2c7;
    border-radius: 8px;
}

.page-section-heading {
    margin-top: 20px;
}

.hero,
.section,
.profile-panel,
.auth-card,
.recipe-detail__hero,
.content-card {
    background-color: #fcfaf6;
    border: 1px solid #d8d2c7;
    border-radius: 8px;
}

.hero,
.section,
.profile-panel,
.auth-card,
.recipe-detail__hero {
    padding: 20px;
}

.hero + .section,
.profile-panel + .section,
.section + .section {
    margin-top: 20px;
}

.eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #6b7c55;
    margin-bottom: 10px;
    font-weight: bold;
}

.hero h1,
.profile-panel h1,
.recipe-detail h1,
.auth-card h1,
.section h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.hero__text,
.recipe-detail__description {
    font-size: 1rem;
    color: #555555;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.section-heading__link {
    font-weight: bold;
}

.recipe-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recipe-card {
    display: flex;
    background-color: #ffffff;
    border: 1px solid #d8d2c7;
    border-radius: 8px;
    overflow: hidden;
}

.recipe-card__image-link {
    width: 180px;
    flex: 0 0 180px;
    background-color: #e5dece;
}

.recipe-card__image {
    width: 100%;
    height: 100%;
    min-height: 170px;
    object-fit: cover;
}

.recipe-card__image--placeholder,
.recipe-detail__image--placeholder,
.profile-panel__photo--placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666666;
    font-weight: bold;
}

.recipe-card__body {
    padding: 18px;
    flex: 1;
}

.recipe-card__title {
    margin-bottom: 6px;
}

.recipe-card__description {
    margin-bottom: 14px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background-color: #dfe6d4;
    color: #445a34;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

.tag--muted {
    background-color: #e7e3dc;
    color: #666666;
}

.search-form {
    margin: 0;
}

.search-form label,
.login-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.search-form__row {
    display: flex;
    gap: 10px;
}

input[type="search"],
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #cfc8bc;
    border-radius: 4px;
    font: inherit;
    background-color: #ffffff;
}

button {
    padding: 12px 18px;
    border: none;
    border-radius: 4px;
    background-color: #5f7544;
    color: white;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background-color: #4f6238;
}

.profile-panel {
    display: flex;
    gap: 20px;
    align-items: center;
}

.profile-panel__media {
    flex: 0 0 120px;
}

.profile-panel__photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #d8d2c7;
    background-color: #e5dece;
}

.profile-panel__username {
    margin-bottom: 12px;
}

.recipe-detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recipe-detail__hero {
    display: flex;
    gap: 20px;
}

.recipe-detail__intro,
.recipe-detail__media {
    flex: 1;
}

.recipe-detail__image {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    border-radius: 6px;
    background-color: #e5dece;
}

.recipe-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.recipe-stats__item {
    border: 1px solid #d8d2c7;
    border-radius: 6px;
    background-color: #ffffff;
    padding: 12px;
    min-width: 100px;
}

.recipe-stats__label {
    display: block;
    color: #666666;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.recipe-detail__content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.content-card {
    flex: 1;
    padding: 20px;
}

.ingredient-list,
.step-list {
    padding-left: 20px;
    margin-bottom: 0;
}

.ingredient-list li,
.step-list li {
    margin-bottom: 10px;
}

.auth-card {
    max-width: 480px;
}

.login-form p {
    margin-bottom: 16px;
}

.form-message {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 6px;
}

.form-message--error {
    background-color: #f1dfdb;
    border: 1px solid #d8bbb5;
    color: #7a3f36;
}

.empty-state {
    margin-bottom: 0;
    padding: 16px;
    border: 1px dashed #cfc8bc;
    border-radius: 6px;
    color: #666666;
    background-color: #f8f5ef;
}

.review-section {
    margin-top: 20px;
}

.review-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
    gap: 20px;
}

.review-list,
.review-panel {
    min-width: 0;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.review-card {
    background-color: #ffffff;
    border: 1px solid #d8d2c7;
    border-radius: 8px;
    padding: 16px;
}

.review-card__header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.review-card__date {
    color: #666666;
    font-size: 0.9rem;
}

.review-card__rating {
    margin-bottom: 8px;
    color: #9a7b18;
    font-size: 1.05rem;
    letter-spacing: 0;
}

.review-card__star--filled {
    color: #9a7b18;
}

.review-card__comment {
    margin-bottom: 0;
}

.review-card__comment--empty {
    color: #666666;
}

.review-panel {
    background-color: #ffffff;
    border: 1px solid #d8d2c7;
    border-radius: 8px;
    padding: 16px;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.review-form__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-form__label {
    font-weight: bold;
}

.review-stars {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.review-stars__button {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 6px;
    background-color: #f0eadf;
    color: #8b7a53;
    font-size: 1.4rem;
    line-height: 1;
}

.review-stars__button:hover,
.review-stars__button:focus-visible {
    background-color: #dfe6d4;
    color: #445a34;
}

.review-stars__button.is-selected {
    background-color: #5f7544;
    color: #ffffff;
}

.review-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cfc8bc;
    border-radius: 4px;
    font: inherit;
    background-color: #ffffff;
    resize: vertical;
    min-height: 110px;
}

.review-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-message--success {
    background-color: #e7f0dd;
    border: 1px solid #c9d8b7;
    color: #4f6238;
}

.review-summary--muted {
    color: #666666;
}

@media (max-width: 760px) {
    .recipe-card,
    .profile-panel,
    .recipe-detail__hero,
    .recipe-detail__content {
        flex-direction: column;
    }

    .review-layout {
        grid-template-columns: 1fr;
    }

    .recipe-card__image-link,
    .profile-panel__media {
        width: 100%;
        flex-basis: auto;
    }

    .recipe-card__image {
        min-height: 220px;
    }
}

@media (max-width: 520px) {
    .site-header {
        padding-top: 16px;
    }

    .hero,
    .section,
    .profile-panel,
    .auth-card,
    .recipe-detail__hero,
    .content-card {
        padding: 16px;
    }

    .hero h1,
    .profile-panel h1,
    .recipe-detail h1,
    .auth-card h1,
    .section h1 {
        font-size: 1.8rem;
    }

    .search-form__row {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    .review-stars__button {
        width: 42px;
    }
}
