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

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #e9ffff;
    color: #111111;
    line-height: 1.5;
}

header {
    background-color: #005bbb;
    color: white;
    padding: 24px 20px;
    text-align: center;
}

header p {
    margin-top: 5px;
}

nav {
    background-color: #b7ff4a;
    border-bottom: 2px solid #111111;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0;
}

nav a,
nav .active {
    display: block;
    padding: 12px 18px;
    color: #000000;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover,
nav .active {
    background-color: #ffffff;
    text-decoration: underline;
}

main {
    width: min(1100px, 94%);
    margin: 0 auto;
    padding: 24px 0 80px 0;
}

h2,
h3,
h4 {
    margin: 18px 0 10px 0;
}

p {
    margin-bottom: 12px;
}

ul,
ol {
    margin: 0 0 15px 28px;
}

.hero,
.featured,
.recipe-intro,
.card-grid,
.form-section {
    background-color: white;
    border: 1px solid #cccccc;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 18px;
}

.featured,
.recipe-intro {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.featured div,
.recipe-intro div {
    flex: 1;
}

figure {
    margin: 0 0 16px 0;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #cccccc;
}

.featured figure,
.recipe-intro figure {
    width: 35%;
    min-width: 260px;
}

figcaption {
    font-size: 0.95rem;
    margin-top: 5px;
}

.image-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 15px 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.card {
    border: 1px solid #cccccc;
    border-radius: 8px;
    padding: 14px;
    background-color: #fafafa;
}

.button,
button,
input[type="submit"] {
    display: inline-block;
    background-color: #005bbb;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 14px;
    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
    background-color: #003f85;
}

form {
    background-color: white;
    border: 1px solid #cccccc;
    border-radius: 10px;
    padding: 18px;
}

form div,
fieldset {
    margin-bottom: 16px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

input,
select,
textarea {
    width: 100%;
    padding: 9px;
    border: 1px solid #888888;
    border-radius: 5px;
    font-size: 1rem;
}

fieldset {
    border: 1px solid #888888;
    border-radius: 6px;
    padding: 12px;
}

fieldset label {
    display: inline-block;
    font-weight: normal;
    margin-right: 18px;
}

fieldset input {
    width: auto;
    margin-right: 5px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
    background-color: white;
}

th,
td {
    border: 1px solid #333333;
    padding: 10px;
    vertical-align: top;
    text-align: left;
}

th {
    background-color: #eeeeee;
}

footer {
    background-color: #cc1f1f;
    color: white;
    text-align: center;
    padding: 12px;
}

footer a {
    color: white;
    font-weight: bold;
}

@media (max-width: 760px) {
    .featured,
    .recipe-intro {
        flex-direction: column;
    }

    .featured figure,
    .recipe-intro figure {
        width: 100%;
        min-width: 0;
    }
}

@media print {
    nav,
    footer,
    .no-print,
    .image-row,
    .recipe-intro figure {
        display: none;
    }

    body {
        background-color: white;
        color: black;
        font-size: 11pt;
        line-height: 1.25;
    }

    main {
        width: 100%;
        padding: 0;
    }

    .hero,
    .featured,
    .recipe-intro,
    .card-grid,
    .form-section {
        border: none;
        padding: 0;
        margin-bottom: 8px;
    }

    h1,
    h2,
    h3,
    h4 {
        margin: 6px 0;
    }

    p,
    ul,
    ol {
        margin-bottom: 6px;
    }
}
