/* ---------------------------------------------------------
   Lean & Clean Cookbook
   Base Styles
--------------------------------------------------------- */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #2f2f2f;
    background: #f5f3ee;
}


/* ---------------------------------------------------------
   Header
--------------------------------------------------------- */

.site-header {
    padding: 56px 24px 52px;
    text-align: center;
    background: #365c45;
    color: #ffffff;
    border-bottom: 5px solid #8b2e2e;
}

.site-header h1 {
    margin: 0;
    font-size: 3rem;
    line-height: 1.15;
    letter-spacing: 0.02em;
}

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

.site-header p:last-child {
    margin-top: 18px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.header-link {
    color: inherit;
    text-decoration: none;
}

.header-link:hover {
    text-decoration: underline;
}
/* Home page header artwork */
.home-page .site-header {
    background-image: url("../images/home-header.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* ---------------------------------------------------------
   Main Cookbook
--------------------------------------------------------- */

main {
    width: min(900px, 92%);
    margin: 40px auto;
}


/* ---------------------------------------------------------
   Home Introduction
--------------------------------------------------------- */

.home-intro {
    max-width: 700px;
    margin: 0 auto 36px;
    text-align: center;
}

.home-intro h2 {
    margin: 0 0 10px;
    color: #365c45;
    font-size: 1.8rem;
}

.home-intro p {
    margin: 0;
    color: #555555;
    font-size: 1.05rem;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   Home Categories
--------------------------------------------------------- */

.home-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 30px;
    background: #ffffff;
    border-radius: 10px;
    border-top: 4px solid #365c45;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}

.category-card h2 {
    margin: 0 0 10px;
    color: #8b2e2e;
    font-size: 1.4rem;
    line-height: 1.25;
    text-align: center;
}

.category-card:hover h2 {
    color: #365c45;
}

.category-card p {
    margin: 0;
    color: #555555;
    line-height: 1.5;
}

.category-card-image {
    width: 155px;
    height: 120px;
    flex-shrink: 0;
    object-fit: contain;
}

.category-card-content {
    flex: 1;
}

@media (max-width: 700px) {

    .category-card {
        flex-direction: column;
        text-align: center;
    }

    .category-card-image {
        width: 160px;
        height: 120px;
    }

}


/* ---------------------------------------------------------
   Recipe Category Pages
--------------------------------------------------------- */

.recipe-category {
    margin-bottom: 60px;
}

.recipe-category > h2 {
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 2px solid #365c45;
    color: #365c45;
}
.category-intro {
    max-width: 700px;
    margin: 0 auto 36px;
    text-align: center;
}

.category-intro h2 {
    margin: 0 0 10px;
    color: #365c45;
    font-size: 1.8rem;
}

.category-intro p {
    margin: 0;
    color: #555555;
    font-size: 1.05rem;
    line-height: 1.6;
}

.category-recipes {
    max-width: 760px;
    margin: 0 auto;
}
.recipe-link-card {
    display: block;
    margin-bottom: 18px;
    padding: 24px 28px;
    background: #ffffff;
    border-radius: 10px;
    border-top: 4px solid #365c45;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.recipe-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}

.recipe-link-card h3 {
    margin: 0;
    color: #8b2e2e;
    font-size: 1.35rem;
    text-align: center;
}

.recipe-link-card:hover h3 {
    color: #365c45;
}

.recipe-description {
    max-width: 720px;
    margin: 0.5rem auto 1.5rem;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
}


/* ---------------------------------------------------------
   Recipe Page
--------------------------------------------------------- */

.recipe-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 40px;
    background: #ffffff;
    border-radius: 8px;
}

.recipe-title {
    margin: 0 0 20px;
    color: #8b2e2e;
    font-size: 2rem;
    line-height: 1.2;
    text-align: center;
}

.recipe-image-wrapper {
    margin: 0 0 16px;
}

.recipe-image {
    display: block;
    width: 100%;
    max-width: 700px;
    height: 400px;
    margin: 0 auto;
    object-fit: cover;
    border-radius: 8px;
}

.recipe-servings {
    margin: 0 0 28px;
    font-weight: 600;
}

.recipe-section {
    margin-bottom: 28px;
}

.recipe-section h2 {
    margin: 0 0 12px;
    color: #365c45;
    font-size: 1.15rem;
}

.recipe-section ul,
.recipe-section ol {
    margin: 0;
    padding-left: 28px;
}

.recipe-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.recipe-nutrition {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid #dddddd;
    font-size: 0.95rem;
}

.recipe-badges {
    display: flex;
    gap: 8px;
    margin: -16px 0 28px;
}

.recipe-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid #365c45;
    border-radius: 4px;
    color: #365c45;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}


/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */

.site-footer {
    margin-top: 60px;
    padding: 28px 24px;
    text-align: center;
    background: #365c45;
    color: #ffffff;
}

.site-footer p {
    margin: 0;
}

.site-footer p:first-child {
    font-weight: 700;
}

.site-footer p:last-child {
    margin-top: 4px;
    font-size: 0.85rem;
    opacity: 0.8;
}

