/* Drews Brews and Carnies Sarnies: a striped deli awning over two counters. */
:root {
  --roast: #2b1d16;
  --crema: #9a5b26;
  --mustard: #e2b23a;
  --pickle: #36583f;
  --tomato: #b8322a;
  --paper: #ffffff;
  --steam: #f1ede8;
  --ink: var(--roast);
  --muted: #6b5a50;
  --rule: #d9cfc6;
  --slab: Rockwell, "Rockwell Nova", "Roboto Slab", "Zilla Slab", "DejaVu Serif", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #1c1411; --steam: #2a201b; --ink: #f3ece4; --muted: #c2b3a7; --rule: #4a3b33; --crema: #e0a46b; color-scheme: dark; }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
.wrap { width: min(72rem, 100% - 2rem); margin-inline: auto; }
a { color: var(--crema); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--slab); line-height: 1.15; font-weight: 700; }

/* The shopfront: awning stripes, then the sign. */
.awning {
  height: 2.25rem;
  background: repeating-linear-gradient(90deg, var(--mustard) 0 2.5rem, var(--paper) 2.5rem 5rem);
  -webkit-mask: radial-gradient(1.25rem at 50% 100%, transparent 98%, #000) 0 0 / 2.5rem 100%;
          mask: radial-gradient(1.25rem at 50% 100%, transparent 98%, #000) 0 0 / 2.5rem 100%;
}
.sign { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; border-bottom: 3px solid var(--ink); }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--slab); font-size: clamp(1.35rem, 3.2vw, 2rem); font-weight: 700; letter-spacing: -0.01em; }
.brand-name .and { font-weight: 400; color: var(--muted); }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; }
nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
nav a:hover, nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--mustard); }
.count { display: inline-block; min-width: 1.5em; padding: 0 0.4em; border-radius: 1em; background: var(--mustard); color: var(--roast); text-align: center; font-size: 0.85em; }

main { padding-block: 2rem 3rem; min-height: 60vh; }
footer { padding-block: 1.5rem 2.5rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.875rem; }

.hero { padding-block: 1rem 2.5rem; max-width: 46rem; }
.hero h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); margin: 0 0 1rem; letter-spacing: -0.02em; }
.hero p { font-size: 1.2rem; color: var(--muted); margin: 0 0 1.5rem; }
.page-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 1.25rem; }

/* Menu boards with dotted leaders, one per counter. */
.counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr)); gap: 2.5rem; }
.board h2 { font-size: 1.75rem; margin: 0; padding-bottom: 0.4rem; border-bottom: 6px solid var(--mustard); }
.board.drews_brews h2 { border-color: var(--crema); }
.board h3 { font-size: 1.1rem; margin: 1.75rem 0 0.25rem; }
.tagline { color: var(--muted); margin: 0.5rem 0 0; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.item { display: grid; grid-template-columns: 2.5rem auto 1fr auto auto; align-items: center; gap: 0.75rem; padding-block: 0.65rem; border-bottom: 1px solid var(--rule); }
.item img { width: 2.5rem; height: 2.5rem; }
.item-text { display: flex; flex-direction: column; }
.item-name { font-weight: 700; }
.item-desc { font-size: 0.875rem; color: var(--muted); max-width: 28rem; }
.leader { align-self: end; margin-bottom: 0.45rem; border-bottom: 2px dotted var(--rule); min-width: 1rem; }
.price { font-family: var(--slab); font-weight: 700; font-variant-numeric: tabular-nums; }
.sold-out .item-name, .sold-out .price { color: var(--muted); text-decoration: line-through; }
.unavailable { font-size: 0.8rem; font-weight: 600; color: var(--tomato); }

/* Buttons and forms */
.button, .add { display: inline-block; border: 2px solid var(--ink); border-radius: 0.4rem; background: var(--mustard); color: var(--roast); font: 700 1rem var(--sans); text-decoration: none; cursor: pointer; }
.button { padding: 0.7rem 1.4rem; }
.add { padding: 0.25rem 0.8rem; font-size: 0.875rem; }
.button:hover, .add:hover { background: var(--roast); color: var(--mustard); }
.link { background: none; border: 0; padding: 0; color: var(--crema); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.inline { display: inline; }
.quantity { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
input, select { font: inherit; padding: 0.3rem 0.5rem; border: 1px solid var(--muted); border-radius: 0.3rem; background: var(--paper); color: var(--ink); }
input[type="number"] { width: 4.5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.notice { padding: 0.75rem 1rem; border-left: 6px solid var(--pickle); background: var(--steam); }
.notice.error { border-color: var(--tomato); }
.hint { color: var(--muted); font-size: 0.875rem; }

/* Tables, statuses and admin figures */
.table { width: 100%; border-collapse: collapse; margin-block: 1rem 1.5rem; }
.table th, .table td { padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.table thead th { font-size: 0.875rem; color: var(--muted); border-bottom: 2px solid var(--ink); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .total { font-family: var(--slab); font-weight: 700; font-size: 1.15rem; }
.status { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 0.3rem; font: 600 0.8rem var(--sans); vertical-align: middle; }
.status-placed { background: var(--mustard); color: var(--roast); }
.status-preparing { background: var(--crema); color: #fff; }
.status-ready { background: var(--pickle); color: #fff; }
.status-collected { background: var(--steam); color: var(--muted); }
.status-cancelled { border: 1px solid var(--tomato); color: var(--tomato); }
.subnav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-bottom: 1.5rem; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; margin: 0 0 2rem; }
.figures div { padding: 1rem 1.25rem; background: var(--steam); border-top: 6px solid var(--mustard); }
.figures dt { color: var(--muted); font-size: 0.9rem; }
.figures dd { margin: 0.25rem 0 0; font: 700 2rem var(--slab); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 2rem; }
.ranked { padding-left: 1.25rem; }
.ranked li { padding-block: 0.3rem; }
.error-page { max-width: 40rem; }

@media (max-width: 40rem) {
  .item { grid-template-columns: 2.5rem 1fr auto; }
  .leader { display: none; }
  .item .inline, .item .unavailable { grid-column: 2 / -1; }
}
