:root {
    --margin-large: 7rem;
    --margin-medium: 5rem;  
    --margin-small: 2rem;
}

@font-face {
    font-family: 'Merriweather';
    src: url('../assets/fonts/merriweather.woff2') format('woff2');
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
    margin: 0;
}

html {
    font-size: 10px;
    min-height: 100vh;
}

body {
    background-image: linear-gradient(to bottom, #fffdbf 0%, #fffef2 20rem,#fffef2 100%);
    box-sizing: border-box;
    font-family: 'Merriweather', sans-serif;
    min-height: 100vh;
}

main {
    padding-bottom: var(--margin-large);
}

h1 {
    background-image: url('../assets/images/logo.png');
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center center;
    margin-bottom: var(--margin-medium);
    overflow: hidden;
    text-indent: -9999px;
    height: 23rem;
}

h2 {
    font-size: 4rem;
    margin-bottom: var(--margin-small);
    text-align: center;
}

h3 {
    font-size: 2.8rem;
    margin-bottom: var(--margin-small);
}

p {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 2;
    margin-bottom: var(--margin-small);
}

form {
    margin-top: var(--margin-large);
}

.ordering-closed p {
    margin: var(--margin-large) auto;
    text-align: center;
    max-width: 450px;
}

.container {
    margin: 0 auto;
    padding: 0 2rem;
    max-width: 1200px;
}

.columns {
    column-count: 2;
    column-gap: var(--margin-large);
}

h2 + .columns {
    margin-top: 6rem;
}

.group {
    break-inside: avoid;
    margin-bottom: var(--margin-large);
}

table {
    border-collapse: collapse;
    width: 100%;
}

table td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1.7rem;
    font-weight: 300;
    line-height: 1.4;
}

table th:nth-child(1),
table td:nth-child(1) {
    padding: 1rem 0;
    width: 8rem;
}

table th:nth-child(3),
table td:nth-child(3),
table th:nth-child(4),
table td:nth-child(4) {
    width: 6rem;
}

table tr:last-child td {
    border-bottom: none;
}

input[type="number"] {
    border: 1px solid #222;
    border-radius: 0.5rem;
    font-size: 2rem;
    font-weight: 300;
    padding: 1rem;
    width: 4.5rem;
}

.lunch-box-item td:nth-child(1) {
    font-size: 2rem;
}

.lunch-box-item__details {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1rem 0;
}

.lunch-box-item__details select {
    border: 1px solid #222;
    border-radius: 0.5rem;
    font-size: 1.7rem;
    font-weight: 300;
    padding: 1rem;
}

button {
    background-color: #000;
    border: 0;
    border-radius: 0.5rem;
    color: #fff;
    cursor: pointer;
    font-size: 2rem;
    font-weight: 800;
    padding: 1.6rem 4rem;
}

.bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--margin-large);
}

.instructions {
    flex: 1 1 50%;
}

.instructions label {
    display: block;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: var(--margin-small);
}

.instructions textarea {
    border: 1px solid #222;
    border-radius: 0.5rem;
    box-sizing: border-box;
    flex: 1 1 50%;
    font-family: 'Merriweather', sans-serif;
    font-size: 1.7rem;
    font-weight: 300;
    padding: 1rem;
    width: 100%;
}

.order {
    flex: 1 1 50%;
    margin-top: var(--margin-large);
}

.order-button {
    gap: 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.order-button.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.order-total {
    font-size: 2rem;
}

.order-limit {
    font-size: 1.6rem;
    text-align: right;
}

.hidden {
    display: none;
}

.sr-only {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

footer {
    background-color: #000;
    color: #fff;
    padding: var(--margin-large) 0;
}

footer .container {
    display: flex;
    align-items: center;
    gap: var(--margin-medium);
}

footer p {
    margin-bottom: var(--margin-small);
    font-size: 1.6rem;
}

footer p:last-child {
    margin-bottom: 0;
}

footer a {
    color: #fff;
}

footer img {
    display: block;
    width: 15rem;
    height: auto;
}

@media (max-width: 900px) {
    footer .container {
        flex-direction: column;
    }

    footer .container > div {
        order: 1;
    }

    footer img {
        margin: 0 auto;
        width: auto;
        max-width: 60%;
    }

    .columns {
        column-count: 1;
    }

    .bottom {
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-start;
        gap: 0;
    }

    .instructions {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .lunch-box-item__details {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }
}