:root {
    --ink: #271e18;
    --muted: #68584c;
    --paper: #faf5ed;
    --panel: #fffaf3;
    --line: #e4d7c8;
    --accent: #9b3525;
    --accent-text: #fffaf3;
    --highlight: #943c21;
    color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.5 system-ui, sans-serif; }
a { color: var(--highlight); text-underline-offset: .2em; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem 1rem; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent); color: var(--accent-text); text-decoration: none; font: inherit; font-weight: 750; cursor: pointer; }
.secondary { background: var(--panel); color: var(--ink); border-color: var(--line); }
.link { min-height: 35px; padding: 0; background: none; color: var(--highlight); border: 0; text-decoration: underline; font-weight: 650; }
button:hover, .button:hover { filter: brightness(1.13); }
:focus-visible { outline: 3px solid #c58342; outline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .55em; }
p, ul { margin: .55em 0; }
small { display: block; color: var(--muted); }
img { display: block; max-width: 100%; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px max(4vw, 16px); background: #231b15; color: #fff2db; }
.topbar a:not(.button) { color: inherit; }
.topbar .secondary { color: #fff2db; background: #34271f; border-color: #65503f; }
.topbar nav { display: flex; align-items: center; justify-content: flex-end; gap: .9rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 900; letter-spacing: -.03em; font-size: 1.25rem; }
.shell { max-width: 1400px; margin-inline: auto; padding: 24px clamp(16px, 4vw, 56px) 64px; }
.notice { padding: .75rem 1rem; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid #5e8852; border-radius: 6px; }
.notice.error { border-left-color: #e3634e; padding-inline-start: 1.9rem; }
section[id], details[id] { scroll-margin-top: .75rem; }
.storefront { --ink: #fff0d5; --muted: #d0bca8; --paper: #181411; --panel: #251f19; --line: #4d3c30; --accent: #df6248; --accent-text: #160f0c; --highlight: #f4ba64; color-scheme: dark; }
.hero { min-height: 390px; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 1rem; background: #18241c; border: 1px solid #344333; padding: clamp(20px, 5vw, 65px); }
.hero h1 { font: 1000 clamp(3rem, 8vw, 7.75rem)/.92 system-ui, sans-serif; letter-spacing: -.08em; text-transform: uppercase; }
.hero em { color: #f4ba64; font-style: normal; }
.hero p { color: var(--muted); margin: 1.25rem 0; }
.hero img { width: min(100%, 375px); height: auto; justify-self: center; }
.service-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-block: 16px 42px; gap: 8px; }
.service-strip div { padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); }
.service-strip p { margin: 0; color: var(--muted); }
#menu h2, .page-title { font-weight: 900; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -.045em; }
.section-nav { display: flex; flex-wrap: wrap; gap: .85rem; }
.menu-section { margin-block: 1.7rem; }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); gap: 12px; }
.product { display: flex; flex-direction: column; min-width: 0; background: var(--panel); border: 1px solid var(--line); }
.product-photo { display: grid; place-items: center; min-height: 158px; height: clamp(158px, 20vw, 240px); background: radial-gradient(#4e3423, var(--panel) 67%); }
.product-photo img, .cutout { display: block; width: min(90%, 187px); height: auto; aspect-ratio: 1; object-fit: contain; }
.cutout { background: url("images/menu-pizza-cutouts.webp") 0 0 / 200% 200% no-repeat; }
.pizza-top-right { background-position: 100% 0; }
.pizza-bottom-right { background-position: 100% 100%; }
.product-body { display: flex; flex: 1; flex-direction: column; align-items: stretch; padding: 15px; }
.product-body p { color: var(--muted); }
.price { color: var(--highlight); margin-top: auto; padding-block: .6rem; }
footer { padding: 1rem 0; border-top: 1px solid var(--line); }
dialog { width: min(calc(100% - 24px), 520px); max-height: 90dvh; overflow-y: auto; border: 1px solid var(--line); border-top: 4px solid var(--accent); color: var(--ink); background: var(--panel); padding: clamp(14px, 4vw, 25px); }
dialog::backdrop { background: #000b; }
dialog .close { min-width: 44px; padding: 0; }
dialog form { margin-top: .8rem; }
dialog form > button[type=submit], .checkout-grid form > button[type=submit], .sign-in button { width: 100%; }
fieldset { min-width: 0; padding: 0; margin: 0 0 .85rem; border: 0; }
legend { padding: 0; font-weight: 700; margin-bottom: .25rem; }
.option { display: grid; grid-template-columns: auto 1fr auto; gap: .65rem; align-items: center; padding: .45rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.option input { inline-size: 1.15em; block-size: 1.15em; }
.option span { color: var(--highlight); }
.option[hidden] { display: none; }
.split { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.checkout-grid, .order-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: clamp(14px, 2vw, 24px); }
.spaced { margin-block: .8rem; }
.profile { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.profile form { margin-inline-start: auto; }
.history-order + .history-order { border-top: 2px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
.sign-in, .receipt { max-width: 550px; margin: clamp(15px, 7vh, 70px) auto 0; }
form label { display: block; margin-bottom: .65rem; font-weight: 570; }
input:not([type=checkbox], [type=radio], [type=hidden]), select, textarea { inline-size: 100%; min-height: 40px; display: block; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--ink); font: inherit; }
textarea { min-height: 78px; resize: vertical; }
.quantity { display: flex; }
.quantity input, input.narrow { max-width: 100px; }
.item-list { list-style: none; padding: 0; }
.item-list li { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.item-list p { color: var(--muted); }
.item-price { flex-shrink: 0; text-align: right; }
.total { padding-block: .7rem; margin-bottom: .45rem; border-top: 1px solid var(--line); font-weight: 750; }
.kitchen-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(195px, 255px); gap: 16px; align-items: start; }
.portions { position: sticky; top: 12px; }
.portions details, .cost-section { border-top: 1px solid var(--line); padding-block: .5rem; }
.portions summary, .cost-section summary, #costs summary, #supplies summary, #coupons summary { cursor: pointer; font-weight: 750; }
.portions dd { margin: 0; white-space: nowrap; font-weight: 700; }
.portions dl { margin-bottom: 0; }
.status-filters { margin: .35rem 0 .85rem; gap: 6px; }
.status-filters .button { font-size: .86rem; }
.status-filters [aria-current] { background: #4a3426; color: #fff8e9; }
.cost-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 155px),1fr)); gap: 12px; margin-block: .7rem; }
.cost-grid > div { border-bottom: 1px solid var(--line); padding-block: .45rem; }
.cost-grid dd { margin: 0; font-size: 1.14rem; font-weight: 750; }
.dashboard-head { background: #302219; color: #fff1da; border-top: 5px solid #c44b35; border-radius: 10px; padding: clamp(18px, 4vw, 43px); }
.dashboard-head p { margin: 0; color: #dbc4ae; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badges span, .state { display: inline-flex; padding: .34rem .65rem; border-radius: 5px; white-space: nowrap; }
.badges span { background: #4b3628; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-block: 14px 24px; }
.filters label { margin: 0; }
.order header { border-bottom: 1px solid var(--line); padding-bottom: .65rem; }
.order-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-block: .55rem; overflow-wrap: anywhere; }
.order-detail > div { padding-top: .75rem; }
.order-detail p { margin: .32rem 0; }
.state { background: #efdfbf; color: #62441f; font-size: .88rem; font-weight: 750; }
.state-preparing { background: #f1d9c7; color: #7f3923; }
.state-dispatched { background: #dce7ef; color: #21445c; }
.state-delivered { background: #deead8; color: #335735; }
.state-cancelled { background: #eed8d4; color: #802e22; }
.actions { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.actions label { min-width: 120px; margin: 0; }
.stock { margin-top: 24px; }
.stock summary { cursor: pointer; font-size: 1.2rem; font-weight: 750; }
.stock form { margin-top: .9rem; }
.stock-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; padding-block: 1rem; }
.stock-row { display: flex; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.stock-row input { max-width: 75px; }
@media (max-width: 760px) {
    .kitchen-layout { grid-template-columns: 1fr; }
    .portions { position: static; }
    .hero { min-height: 300px; grid-template-columns: 1fr 1fr; padding: 19px; }
    .hero h1 { font-size: clamp(2.15rem, 10vw, 4.8rem); }
    .checkout-grid, .order-grid { grid-template-columns: 1fr; }
    .products { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .stock-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%, 200px),1fr)); }
}
@media (max-width: 415px) {
    .topbar { gap: .3rem; }
    .topbar nav { gap: .35rem; font-size: .84rem; }
    .service-strip { grid-template-columns: 1fr; }
    .dashboard-head { align-items: flex-start; flex-direction: column; }
    .product-photo { min-height: 125px; height: 136px; }
    .product-body { padding: 10px; }
}
