* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
@view-transition{
    navigation: auto;
}
body{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
/* declare variables */
:root{
    --main_font: "Faculty Glyphic", sans-serif;
    --color-primary:#8b1e24;
    --color-primary-hover:#68171c;
    --color-text: #2d2421;
    --color-link: #24553f;
    --color-background: #fff8f0;
    --color-surface: #ffffff;
    --color-border: #d9c6b3;
    --color-footer: #3d302b;
}
header{
    background-color: var(--color-background);
    display: flex;
    padding: 0 20px;
    height: 75px;
    align-items: center;
    border-bottom: 3px solid var(--color-primary);
}
header figure img{
    height: 70px;
}
header nav{
    flex: 1;  /*allow the flex box item to use all available space*/
}
header nav ul{
    display: flex;
    justify-content: space-evenly;
}
header nav ul li{
    list-style: none;
}

header nav ul li a{
    font-family: var(--main_font);
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-primary);
    display: inline-block;
    padding: 10px 12px;
    border-radius: 6px;
}

.active_link{
    color: var(--color-surface);
    background-color: var(--color-primary);
    font-weight: bold;
}

header nav ul li a:hover{
    color: var(--color-surface);
    background-color: var(--color-primary-hover);
}

header nav ul li > i{
    color: var(--color-primary);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible{
    outline: 3px solid var(--color-link);
    outline-offset: 3px;
}

main{
    flex: 1 0 auto;
    background-color: var(--color-background);
    color: var(--color-text);
    min-height: calc(100vh - 75px - 20px);
    padding: 20px;
font-family: var(--main_font);
}

h1, h2 {
    text-align: center;
    padding: 5px 0 20px 0;
}

.section_wrapper{
    display: flex;
    gap: 20px;
}
.salt_section_wrapper{
    margin-right: -20px;
}
.salt_section_wrapper figure{
    margin-left: auto;
}
.section_img, .section_wrapper figure{
    width: 200px;
}

.husband_photo{
    flex: 0 0 340px;
    width: 340px;
}

.husband_photo .section_img{
    width: 100%;
}

#awards{
    padding-left: 24px;
    line-height: 1.5;
}

.recipe_step_image{
    display: block;
    width: min(100%, 320px);
    height: auto;
    margin: 12px auto;
}

.recipe_step_gallery{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    margin: 12px auto;
}

.recipe_step_gallery img{
    display: block;
    width: min(100%, 220px);
    height: auto;
}

p{
    padding: 30px 0;
}

footer{
    flex-shrink: 0;
    margin-top: auto;
    background-color: var(--color-footer);
    color: var(--color-surface);
    height: 20px;
    text-align: center;
    line-height: 20px;
font-family: var(--main_font);
}

/* ================ FORM =================== */
#booking_form{
    width: 500px;
    margin: 30px auto;
    background-color: var(--color-surface);
    color: var(--color-text);
    box-shadow: 0 4px 16px rgb(61 48 43 / 18%);
    padding: 20px;
    border-radius: 20px;
}

#recipe_form{
    width: min(100%, 500px);
    margin: 30px auto;
}

#booking_form legend{
    text-align: center;
}

#booking_form fieldset{
    border: 2px solid var(--color-border);
    border-radius: 20px;
}

#booking_form input{
    accent-color: var(--color-primary);
}

.input_group{
    margin: 15px 0;
    padding: 0px 15px;
    display: flex;
    gap: 20px;
}

.input_group input, .input_group textarea, .input_group select{
    padding: 3px;
    flex: 1;
    color: var(--color-text);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    accent-color: var(--color-primary);
}

.input_group textarea{
    resize: vertical;
}

.radio_button_group{
    display: flex;
    flex: 1;
    justify-content: space-between;
}

.radio_button_group div{
    padding: 0 16px;
}

#terms{
    margin: 12px 9px;
}

.recipe_textarea{
    min-height: 90px;
}

.consent_group{
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 12px 9px;
}

.consent_group input{
    flex: none;
    margin-top: 4px;
}

.consent_group label{
    line-height: 1.4;
}


#submit_btn{
    width: 100%;
    padding: 10px;
    font-size: 25px;
    border: none;
    border-radius: 10px;
    transition: 0.5s;
    background-color: var(--color-primary);
    color: var(--color-surface);
    cursor: pointer;
}

#submit_btn:hover{
    background-color: var(--color-primary-hover);
}

@media print{
    @page{
        size: A4;
        margin: 16mm;
    }

    body{
        display: block;
        min-height: 0;
        color: #000;
        background: #fff;
    }

    header,
    footer{
        display: none;
    }

    body main{
        min-height: 0;
        padding: 0;
        background: #fff;
        color: #000;
    }

    p{
        font-family: "Times New Roman", Times, serif;
        font-size: 12pt;
        line-height: 1.35;
        orphans: 3;
        widows: 3;
    }

    h1, h2, h3, h4, h5, summary{
        break-after: avoid-page;
        page-break-after: avoid;
    }

    img{
        max-width: 100%;
        height: auto;
    }

    .recipe_step_gallery,
    .recipe_step_image,
    table tr,
    details{
        break-inside: avoid-page;
        page-break-inside: avoid;
    }

    table{
        width: 100%;
        border-collapse: collapse;
    }

    thead{
        display: table-header-group;
    }

    tr{
        break-inside: avoid-page;
        page-break-inside: avoid;
    }

    a{
        color: #000;
        text-decoration: none;
    }
}
/* ================ RECIPE PAGE =================== */
		.nav_icon_button {
			border: 0;
			background: transparent;
			color: var(--color-primary);
			cursor: pointer;
			font: inherit;
			padding: 2px 4px;
		}

		.nav_icon_button:focus-visible {
			outline: 2px solid currentColor;
			outline-offset: 2px;
		}

		main {
			min-height: calc(100vh - 95px);
		}

		.about_content,
		.page_links {
			max-width: 760px;
			margin: 0 auto 32px;
		}

		.about_content p {
			padding: 10px 0;
			line-height: 1.65;
		}

		.page_links {
			padding: 20px;
			background: #f1e9da;
			border-left: 5px solid var(--color-link);
		}

		.page_links h2 {
			text-align: left;
			padding-bottom: 12px;
		}

		.page_links ul {
			display: grid;
			grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
			gap: 10px 24px;
			padding-left: 20px;
		}

		a {
			color: var(--color-link);
		}

		a:focus-visible {
			outline: 3px solid var(--color-link);
			outline-offset: 3px;
		}
        .nav_print_link {
            font-family: var(--main_font);
            text-transform: uppercase;
            text-decoration: none;
            color: var(--color-primary);
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 10px 12px;
            border-radius: 6px;
            background: transparent;
            border: none;
            cursor: pointer;
            font-size: inherit;
        }

            /* Hover + focus same as <a> links */
            .nav_print_link:hover,
            header nav ul li a:hover {
                color: var(--color-surface);
                background-color: var(--color-primary-hover);
            }

            /* Keep focus visible consistent */
            .nav_print_link:focus-visible {
                outline: 3px solid var(--color-link);
                outline-offset: 3px;
            }
				.ingredients_table {
					width: 100%;
					border-collapse: collapse;
					background-color: #ffffff;
					color: #000000;
					font-size: 16px;
					text-align: center;
				}

					.ingredients_table th,
					.ingredients_table td {
						border: 1px solid #000000;
						padding: 6px;
					}

						.ingredients_table th:first-child,
						.ingredients_table td:first-child {
							width: 80%;
						}

						.ingredients_table th:last-child,
						.ingredients_table td:last-child {
							width: 20%;
						}

					.ingredients_table th {
						font-weight: bold;
					}

				.faq_list {
					max-width: 760px;
					margin: 0 auto 36px;
				}

					.faq_list details {
						border-bottom: 1px solid var(--color-border);
						padding: 16px 4px;
					}

					.faq_list summary {
						cursor: pointer;
						font-weight: bold;
					}

					.faq_list p {
						padding: 12px 0 0;
					}

                .notes {
                    max-width: 760px;
                    margin: 0 auto 32px;
                    color: #000000;
                }

                    .notes h2 {
                        color: var(--color-primary);
                        font-size: 25px;
                        text-align: left;
                        padding: 5px 0 15px 0;
                    }

                    .notes ul {
                        padding-left: 20px;
                        color: #000000;
                    }

                    .notes li {
                        padding: 8px 0;
                        line-height: 1.5;
                        color: #000000;
                    }
