:root {
  --bg: #faf7f2;
  --ink: #1f1b16;
  --muted: #6b6359;
  --line: #e8e0d4;
  --accent: #b8541a;
  --row-alt: #f3ede2;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.4;
}

header {
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid var(--line);
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.controls input[type="date"],
.controls button {
  font: inherit;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 6px;
  cursor: pointer;
}

.controls button:hover { background: var(--row-alt); }
.controls input[type="date"] { cursor: text; }

.meta {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.meta .dot { margin: 0 0.5em; }

main { padding: 1rem 1.5rem 3rem; }

.status {
  color: var(--muted);
  padding: 0.5rem 0;
  min-height: 1.5em;
}
.status.error { color: #a32a1c; }

.items {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1.5rem;
}

.items li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
}

.items li:nth-child(even) { background: var(--row-alt); }

.items .name { font-weight: 500; }
.items .qty {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--accent);
  min-width: 3.5ch;
  text-align: right;
}

/* Kitchen tablet / TV — bump everything up. */
@media (min-width: 1100px) {
  body { font-size: 22px; }
  h1 { font-size: 2rem; }
  .items { font-size: 1.9rem; }
}
