@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #F9F7F4;
    min-height: 100vh;
    padding-top: 4.5rem;
}

/* Recipes container - flexbox layout for footer positioning */
.recipes-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 4.5rem);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

/* Recipe index page - website styling */
.recipes-header {
    text-align: center;
    margin-bottom: 2rem;
}

.recipes-header h1 {
    font-size: 3rem;
    font-weight: 600;
    color: #D97D55;
    letter-spacing: -0.02em;
    margin: 0;
}

.recipes-main {
    flex: 1;
    padding: 0;
}

.recipes-list {
    list-style: none;
    display: grid;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.recipes-list li {
    margin: 0;
}

.recipes-list a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 400;
    display: block;
    padding: 1.5rem;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid rgba(184, 196, 169, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.recipes-list a:hover {
    color: #D97D55;
    border-color: #D97D55;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 125, 85, 0.15);
}

/* Recipe pages - minimal beautiful styling */
body > ul:not(.recipes-list) {
    max-width: 600px;
    margin: 4rem auto;
    padding: 0 2rem;
    list-style: none;
}

body > ul:not(.recipes-list) li {
    margin-bottom: 1rem;
}

body > ul:not(.recipes-list) a {
    color: #6FA4AF;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 400;
    display: inline-block;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

body > ul:not(.recipes-list) a:hover {
    color: #D97D55;
    border-bottom-color: #D97D55;
}

.recipes-container > h1 {
    max-width: 600px;
    margin: 0 auto 2rem;
    padding: 0;
    font-size: 2.5rem;
    font-weight: 600;
    color: #D97D55;
    text-align: center;
    letter-spacing: -0.02em;
}

.recipes-container > .notes {
    max-width: 600px;
    margin: 0 auto 3rem;
    padding: 0;
    text-align: center;
}

.recipes-container > .notes p {
    color: #6FA4AF;
    font-size: 1rem;
    font-weight: 400;
}

.recipes-container > #ingredients,
.recipes-container > #instructions {
    max-width: 600px;
    margin: 0 auto 3rem;
    padding: 0;
}

.recipes-container > #ingredients ul,
.recipes-container > #instructions ol {
    list-style: none;
    padding-left: 0;
}

.recipes-container > #ingredients ul li,
.recipes-container > #instructions ol li {
    color: #2c3e50;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.recipes-container > #ingredients ul li::before {
    content: '•';
    color: #B8C4A9;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
}

.recipes-container > #instructions ol li {
    counter-increment: step-counter;
    padding-left: 2rem;
}

.recipes-container > #instructions ol {
    counter-reset: step-counter;
}

.recipes-container > #instructions ol li::before {
    content: counter(step-counter);
    color: #D97D55;
    font-weight: 600;
    position: absolute;
    left: 0;
    width: 1.5rem;
    text-align: right;
}

@media (max-width: 768px) {
    body {
        padding-top: 4rem;
    }
    
    .recipes-header {
        padding: 1.5rem 1.5rem 1.5rem;
    }
    
    .recipes-header h1 {
        font-size: 2.2rem;
    }
    
    .recipes-main {
        padding: 0 1.5rem 3rem;
    }
    
    .recipes-list a {
        font-size: 1.1rem;
        padding: 1.2rem;
    }
    
    .recipes-container > h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .recipes-container {
        padding: 1.5rem;
        min-height: calc(100vh - 4rem);
    }
    
    body > ul:not(.recipes-list) a {
        font-size: 1.1rem;
    }
}

/* Footer */
.footer {
    text-align: center;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(184, 196, 169, 0.3);
}

.footer p {
    color: #6FA4AF;
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

