body {
    margin: 60px auto;
    width: 70%;
    background: transparent  url("../harpa_ceiling.webp") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
}
nav ul, footer ul {
    font-family:'Helvetica', 'Arial', 'Sans-Serif';
    padding: 0px;
    list-style: none;
    font-weight: bold;
}
nav ul li, footer ul li {
    display: inline;
    margin-right: 20px;
    font-size: 1.5em;
}
a {
    text-decoration: none;
    color: #0660FE;
}
a:hover {
    text-decoration: underline;
}
h1 {
    font-size: 3em;
    font-family:'Helvetica', 'Arial', 'Sans-Serif';
}
p {
    font-size: 1.5em;
    line-height: 1.4em;
    color: #333;
}
footer {
    border-top: 1px solid #d5d5d5;
    font-size: .8em;
}

ul.posts {
    margin: 20px auto 40px;
    font-size: 1.5em;
}

ul.posts li {
    list-style: none;
}

/* Base Variables for Consistency */
:root {
--primary-color: #2c3e50;
--accent-color: #e67e22; /* A nice food-appetizing orange */
--bg-color: #f8f9fa;
--card-bg: #ffffff;
--text-color: #333;
--border-radius: 12px;
}

/* Layout & Container */
.recipe-container {
max-width: 900px;
margin: -40px auto 40px; /* Pulls card up over hero image */
background: var(--card-bg);
padding: 40px;
border-radius: var(--border-radius);
box-shadow: 0 10px 30px rgba(0,0,0,0.08);
position: relative;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
color: var(--text-color);
}

/* Hero Image Styling */
.recipe-hero {
width: 100%;
height: 300px;
object-fit: cover;
border-radius: var(--border-radius);
}

/* Typography */
.recipe-header h1 {
font-size: 2.5rem;
margin-bottom: 10px;
color: var(--primary-color);
text-align: center;
}

.recipe-meta {
display: flex;
justify-content: center;
gap: 20px;
color: #666;
font-size: 0.9rem;
margin-bottom: 40px;
text-transform: uppercase;
letter-spacing: 1px;
}

h3 {
font-size: 1.2rem;
text-transform: uppercase;
letter-spacing: 1px;
border-bottom: 2px solid var(--accent-color);
padding-bottom: 10px;
margin-bottom: 20px;
display: inline-block;
}

/* Two-Column Layout for Desktop */
.recipe-content {
display: grid;
grid-template-columns: 1fr 2fr; /* Ingredients narrow, steps wide */
gap: 40px;
}

/* Interactive Ingredients List */
.ingredient-list {
list-style: none;
padding: 0;
}

.ingredient-list li {
margin-bottom: 12px;
}

.ingredient-list label {
display: flex;
align-items: center;
cursor: pointer;
transition: color 0.2s;
}

.ingredient-list input[type="checkbox"] {
margin-right: 12px;
accent-color: var(--accent-color);
width: 18px;
height: 18px;
}

/* Strikethrough effect when checked */
.ingredient-list input:checked + span,
.ingredient-list input:checked + label {
text-decoration: line-through;
color: #999;
}

/* Steps Styling */
.step-list {
counter-reset: step-counter;
list-style: none;
padding: 0;
}

.step-list li {
position: relative;
padding-left: 50px;
margin-bottom: 25px;
line-height: 1.6;
}

.step-list li::before {
content: counter(step-counter);
counter-increment: step-counter;
position: absolute;
left: 0;
top: 0;
width: 32px;
height: 32px;
background-color: var(--primary-color);
color: white;
border-radius: 50%;
text-align: center;
line-height: 32px;
font-weight: bold;
font-size: 14px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
.recipe-content {
    grid-template-columns: 1fr; /* Stack vertically on mobile */
}

.recipe-container {
    margin: 20px;
    padding: 20px;
}
}
