:root {
    --bg: #f7faf8;
    --surface: #ffffff;
    --surface-soft: #f1f6f3;
    --text: #1f2a24;
    --text-soft: #5b6a62;
    --brand: #2f9e73;
    --brand-strong: #23855f;
    --border: #dce8e1;
    --shadow: 0 10px 30px rgba(21, 51, 38, 0.08);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 999px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: linear-gradient(180deg, #f8fcfa 0%, #f5f9f7 100%);
    color: var(--text);
}

a {
    color: var(--brand-strong);
}

.site-header {
    background: radial-gradient(circle at top right, #48bb87 0%, var(--brand) 45%, #227f5b 100%);
    color: #fff;
    padding: 52px 20px 46px;
}

.brand-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.header-nav-link {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: 600;
}

.header-nav-link:hover,
.brand-link:hover {
    color: #fff;
    text-decoration: underline;
}

.site-header h1 {
    margin: 0;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    letter-spacing: -0.02em;
}

.site-header p {
    margin: 10px 0 0;
    font-size: 1.05rem;
    opacity: 0.96;
}

.page-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 28px auto 38px;
}

.section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 22px;
}

.section h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-weight: 700;
    color: var(--brand-strong);
    text-decoration: none;
}

.recipe-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.recipe-card {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.recipe-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(21, 51, 38, 0.11);
    border-color: #b9d7c9;
}

.recipe-card-media {
    display: block;
    border-radius: calc(var(--radius-md) - 2px);
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid #cfe3d8;
    background: #edf5f0;
}

.recipe-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.recipe-title-link {
    text-decoration: none;
    color: var(--text);
}

.recipe-card h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    line-height: 1.35;
}

.recipe-card p {
    margin: 0 0 12px;
    color: var(--text-soft);
    line-height: 1.65;
}

.recipe-meta {
    font-size: 0.92rem;
    color: var(--text-soft);
    line-height: 1.6;
}

.chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e7f6ee;
    border: 1px solid #bce4cf;
    color: #1f6f4f;
    border-radius: var(--radius-sm);
    text-decoration: none;
    padding: 8px 12px;
    font-size: 0.88rem;
    font-weight: 600;
}

.meta-block {
    margin-bottom: 24px;
    color: var(--text-soft);
}

.recipe-image-wrap {
    margin-bottom: 22px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #f4f9f6;
}

.recipe-image {
    display: block;
    width: 100%;
    max-height: 460px;
    object-fit: cover;
}

.meta-block p {
    margin: 0;
    line-height: 1.8;
}

.content-list {
    margin: 0;
    padding-left: 22px;
}

.content-list li {
    line-height: 1.75;
    margin-bottom: 6px;
}

.site-footer {
    text-align: center;
    padding: 24px;
    color: #6a756f;
    font-size: 0.9rem;
}

@media (max-width: 720px) {
    .section {
        padding: 18px;
    }

    .page-shell {
        width: min(1120px, calc(100% - 20px));
    }
}
