/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.8;
    color: #3a2f28;
    background: linear-gradient(135deg, #fdfbf7 0%, #f5f0e8 100%);
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    color: #5d4037;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #4a3526;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #d4a574;
}

h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: #6d4c41;
}

h4 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: #795548;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #fff9f0 0%, #fef5e7 100%);
    padding: 3rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

#header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

#first-cheesecake {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    border-radius: 15px;
}

#first-cheesecake:hover {
    transform: scale(1.02);
}

/* Information Section */
#information {
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e1 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border: 4px solid #f4a460;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

#information p {
    font-weight: 600;
    color: #6d4c41;
    font-size: 0.95rem;
    text-transform: capitalize;
}

/* Dietary Restrictions */
#dietary-restrictions {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border: 4px solid #ff9800;
}

#dietary-restrictions h3 {
    color: #e65100;
    margin-top: 0;
    font-size: 1.2rem;
}

#dietary-restrictions ul {
    list-style: none;
    padding-left: 0;
}

#dietary-restrictions li {
    padding: 0.4rem 0;
    color: #bf360c;
    font-weight: 500;
    position: relative;
    padding-left: 1.5rem;
}

#dietary-restrictions li:before {
    position: absolute;
    left: 0;
    color: #ff9800;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

/* Ingredients Section */
#ingredients {
    background: linear-gradient(135deg, #f8f0e3 0%, #edcb91 100%);
    color: #4a3526;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 15px;
}

#ingredients ul {
    margin: 1rem 0 1.5rem 2rem;
}

#ingredients li {
    padding: 0.3rem 0;
    color: #5d4037;
}

#ingredients > p {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    font-style: italic;
}

/* Instructions Section */
#instructions {
    background: linear-gradient(135deg, #f8f0e3 0%, #edcb91 100%);
    color: #4a3526;
    padding: 2rem;
    border-radius: 15px;
}

#instructions > div {
    background-color: rgba(255, 255, 255, 0.4);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 10px;
}

#instructions ol {
    margin: 1rem 0 1rem 2rem;
}

#instructions li {
    padding: 0.5rem 0;
    color: #5d4037;
}

#instructions ul {
    list-style: none;
    margin: 1rem 0 0 0;
    padding: 1rem;
    background-color: rgba(255, 235, 205, 0.5);
    border-radius: 6px;
    font-style: italic;
}

#instructions b {
    color: #bf360c;
    font-weight: 700;
}

/* Desktop Responsive */
@media (min-width: 769px) {
    #header-container {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "title image"
            "info image"
            "dietary image";
        gap: 2rem;
    }

    #first-cheesecake {
        grid-area: image;
        min-height: 450px;
    }

    h1 {
        grid-area: title;
        align-self: end;
    }

    #information {
        grid-area: info;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    #information p {
        text-align: center;
    }

    #dietary-restrictions {
        grid-area: dietary;
        align-self: start;
    }

    .two-images {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    
    .two-images img {
        padding: .2rem;
    }
    
}

/* Tablet Responsive */
@media (min-width: 600px) and (max-width: 768px) {
    #information {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    header {
        box-shadow: none;
    }
    
    #first-cheesecake {
        max-height: 300px;
    }
}

img {
    width: 100%;
    object-fit: cover;
    border-radius: 15px;
}


