body {
    font-family: monospace;
    line-height: 1.5;
    background: #1F130B;
    color: #F4EAE1;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 15px;
}

header,
footer,
nav,
section,
main {
    display: block;
    margin-bottom: 2em;
}

h1,
h2,
h3,
h4 {
    color: #E2C9A1;
    border-bottom: 1px solid #3B281B;
    padding-bottom: 5px;
    margin-top: 1.5em;
}

h3 {
    margin-top: 0.5em;
    border-bottom: none;
}

a {
    color: #C4B296;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

a:visited {
    color: #f5deb9;
}

a:hover {
    text-decoration: underline;
}

nav a {
    margin-right: 15px;
    font-weight: bold;
    display: inline-block;
}

.recipe-gallery {
    display: block;
    text-align: left;
    margin-right: -15px;
    margin-bottom: -15px;
}

.recipe-card {
    display: inline-block;
    width: 230px;
    vertical-align: top;
    margin-right: 15px;
    margin-bottom: 20px;
    border: 1px solid #3B281B;
    background: #2B1D14;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.recipe-card a {
    display: block;
    color: inherit;
    text-decoration: none;
    padding: 10px;
}

.recipe-card a:hover {
    text-decoration: none;
}

.recipe-card:hover {
    border-color: #C1A478;
    background: #38271C;
}

.recipe-card img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    border: 1px solid #3B281B;
    margin-bottom: 10px;
}

.recipe-card h3 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
}

.recipe-card p {
    margin: 0;
    font-size: 0.9em;
    color: #c5b8a5;
}

.recipe-img {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    border: 2px solid #3B281B;
    margin: 0 auto 20px auto;
}

ul {
    list-style-type: square;
    padding-left: 20px;
}

li {
    margin-bottom: 0.8em;
    border-left: 2px solid #C1A478;
    padding-left: 10px;
}

.tips-box {
    background: #2B1D14;
    border: 1px solid #3B281B;
    border-left: 3px solid #C1A478;
    padding: 15px;
    margin-top: 20px;
    color: #F4EAE1;
}

.tips-box h2 {
    margin-top: 0;
    border-bottom: none;
}

hr {
    height: 2px;
    border: 0;
    background-color: #3B281B;
    color: #3B281B;
}

code {
    font-family: monospace;
    background: #2B1D14;
    padding: 2px 5px;
    border: 1px solid #3B281B;
}

@media screen and (max-width: 600px) {
    body {
        margin: 20px auto;
        font-size: 14px;
        padding: 0 12px;
    }

    .recipe-gallery {
        text-align: center;
        margin-right: 0;
    }

    .recipe-card {
        width: 100%;
        max-width: 300px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    nav a {
        margin-bottom: 5px;
    }
}