:root {
  color-scheme: light;
  --bg: #f5f4ef;
  --text: #1f2623;
  --muted: #606b66;
  --line: #d9d6cc;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --warn: #9a5b00;
  --error: #a63a3a;
}

* {
  box-sizing: border-box;
}

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

.site-header,
main,
footer {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding: 32px 0 20px;
  border-bottom: 1px solid var(--line);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

#target-date {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1.05rem;
}

#generated-at {
  color: var(--muted);
  text-align: right;
  font-size: 0.95rem;
}

#restaurants {
  display: grid;
  gap: 14px;
  padding: 14px 0 28px;
}

.intro {
  padding-top: 18px;
  color: var(--muted);
  max-width: 760px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.card-header {
  display: block;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.25;
}

.meta,
.status-message,
.empty,
footer {
  color: var(--muted);
}

.badge {
  border-radius: 999px;
  background: #dff3ef;
  color: var(--accent-dark);
  padding: 2px 8px;
  font-size: 0.75rem;
  line-height: 1.5;
  font-weight: 700;
}

.status-stale .badge,
.status-not_published .badge,
.status-unsupported .badge {
  background: #fff3d7;
  color: var(--warn);
}

.status-error .badge {
  background: #ffe2e2;
  color: var(--error);
}

.menu-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.menu-list li {
  border-radius: 0;
  padding: 8px 10px;
}

.menu-list li:nth-child(odd) {
  background: #f8f7f2;
}

.menu-list li:nth-child(even) {
  background: #ffffff;
}

.menu-item-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px;
  gap: 12px;
  align-items: baseline;
  font-weight: 700;
}

.item-title-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}

.item-price {
  white-space: nowrap;
  text-align: right;
}

.price {
  margin-top: 8px;
  font-weight: 700;
}

.inline-description {
  color: var(--muted);
  font-weight: 400;
}

.tags {
  display: inline-flex;
  gap: 5px;
  flex-wrap: wrap;
  vertical-align: baseline;
}

.tags span {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.menu-intro {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.menu-intro .item-price {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.status-message {
  margin-top: 10px;
}

.freshness {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

a {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent-dark);
  font-weight: 700;
}

footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 32px;
  font-size: 0.95rem;
}

footer p + p {
  margin-top: 8px;
}

footer a {
  margin-top: 0;
}

@media (max-width: 640px) {
  .site-header {
    display: block;
  }

  #generated-at {
    text-align: left;
    margin-top: 12px;
  }

  .menu-item-main {
    align-items: baseline;
  }
}
