:root {
    --green: #123b30;
    --green-light: #245c49;
    --gold: #d7b77a;
    --cream: #f5f2eb;
    --text: #24352e;
    --muted: #64736c;
    --border: #dedfd8;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
}

.hero {
    background: radial-gradient(
        ellipse at top, #285b46, #123b30 65%, #0c2b23
    );
    color: white;
    padding: 32px 16px;
    text-align: center;
    border-bottom: 4px solid var(--gold);
}

.hero h1 {
    font-family: Georgia, serif;
    font-size: clamp(32px, 7vw, 52px);
    font-weight: normal;
    line-height: 1.12;
    color: #f4dfb6;
    margin: 18px 0;
}

.hero p {
    margin: 4px 0;
    font-size: 17px;
}

.decoration {
    color: var(--gold);
    letter-spacing: 8px;
    margin: 10px 0;
}

.eyebrow {
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 4px;
}

main {
    max-width: 760px;
    margin: 24px auto;
    padding: 0 14px;
}

.panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 14px;
    box-shadow: 0 2px 6px #00000005;
}

h2 {
    margin: 0 0 12px;
    font-size: 21px;
    color: var(--green);
}

h3 {
    color: var(--green);
    margin-top: 24px;
}

p {
    margin: 8px 0;
}

fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

input:not([type=radio]):not([type=checkbox]),
textarea {
    display: block;
    width: 100%;
    border: 1px solid #c8d0ca;
    border-radius: 8px;
    padding: 13px;
    font: inherit;
    background: white;
}

input:focus, textarea:focus {
    outline: 2px solid var(--green-light);
    outline-offset: 2px;
}

summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 19px;
    color: var(--green);
}

.menu-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 10px;
    margin: 8px 0;
    border: 1px solid transparent;
    border-bottom-color: #e7e9e5;
    border-radius: 8px;
    cursor: pointer;
    font-weight: normal;
}

.menu-item:has(input:checked) {
    background: #edf5ef;
    border-color: #7aa38c;
}

.menu-item input {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: var(--green);
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.item-name {
    font-weight: 650;
}

.price {
    white-space: nowrap;
    font-weight: 700;
}

.description, .muted, .diet {
    font-size: 13px;
    color: var(--muted);
}

.description {
    margin-top: 5px;
}

.diet {
    font-weight: 600;
}

.ingredients {
    padding-left: 18px;
    font-size: 14px;
    margin: 10px 0;
}

.notice {
    background: #f8f2e4;
    border-left: 3px solid var(--gold);
    padding: 12px;
    font-size: 14px;
}

#partnerBox {
    padding: 16px 0 0;
}

.total-row, .selected-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
}

.total-row {
    border-top: 1px solid var(--border);
    margin-top: 12px;
    font-size: 23px;
    color: var(--green);
}

button {
    border: 0;
    border-radius: 8px;
    padding: 15px;
    width: 100%;
    margin-top: 12px;
    background: var(--green);
    color: white;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

button:hover {
    background: var(--green-light);
}

button.secondary {
    background: white;
    color: var(--green);
    border: 1px solid var(--green);
}

button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

#status {
    white-space: pre-wrap;
    color: #a32626;
    font-weight: 600;
}

#deadline {
    color: var(--green);
    font-weight: 650;
}

footer {
    padding: 24px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 480px) {
    .panel {
        padding: 15px;
    }

    .menu-item {
        padding: 12px 4px;
        gap: 8px;
    }

    .item-heading {
        font-size: 14px;
    }
}
