:root {
  --bg: #0e0d0c;
  --surface: rgb(255 255 255 / 0.035);
  --surface-hover: rgb(255 255 255 / 0.06);
  --border: rgb(255 255 255 / 0.08);
  --border-strong: rgb(255 255 255 / 0.16);
  --text: #f4efe8;
  --muted: #a39b90;
  --faint: #6f685f;
  --accent: #ff7a3d;
  --accent-2: #ffb86b;
  --accent-soft: rgb(255 122 61 / 0.14);
  --glow-a: rgb(255 122 61 / 0.22);
  --glow-b: rgb(255 196 120 / 0.10);
  --open: #5ee39a;
  --open-soft: rgb(94 227 154 / 0.12);
  --closing: #ffc24d;
  --closing-soft: rgb(255 194 77 / 0.14);
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f1ea;
    --surface: rgb(255 255 255 / 0.7);
    --surface-hover: #ffffff;
    --border: rgb(30 25 20 / 0.08);
    --border-strong: rgb(30 25 20 / 0.18);
    --text: #1b1916;
    --muted: #6b645a;
    --faint: #9a9287;
    --accent: #e0561c;
    --accent-2: #f08a2c;
    --accent-soft: rgb(224 86 28 / 0.1);
    --glow-a: rgb(255 122 61 / 0.18);
    --glow-b: rgb(255 196 120 / 0.22);
    --open: #13864a;
    --open-soft: rgb(19 134 74 / 0.1);
    --closing: #a36a00;
    --closing-soft: rgb(163 106 0 / 0.12);
  }
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.glow {
  position: fixed;
  top: -20vh;
  right: -10vw;
  width: 70vw;
  height: 70vh;
  background:
    radial-gradient(closest-side, var(--glow-a), transparent 70%),
    radial-gradient(closest-side at 30% 70%, var(--glow-b), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

.hero, main, footer {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding-inline: 16px;
}

@media (min-width: 720px) {
  .hero, main, footer { padding-inline: 32px; }
}

/* Hero */

.hero { padding-block: clamp(40px, 7vw, 80px) clamp(28px, 4vw, 44px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--faint);
}

.live .dot {
  background: var(--open);
  animation: pulse 2s var(--ease) infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(94 227 154 / 0.5); }
  100% { box-shadow: 0 0 0 10px rgb(94 227 154 / 0); }
}

h1 {
  margin: 20px 0 0;
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.today {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.today::first-letter { text-transform: uppercase; }

main {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 16px;
  align-items: start;
}

/* Masonry: app.js sets each card's row span from its height, so short cards leave no hole below. */
main.masonry { grid-auto-rows: 4px; row-gap: 0; }

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.4s var(--ease);
  animation: rise 0.7s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

.card:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

/* Animates `translate`, not `transform`, so the held end state doesn't block the hover lift. */
@keyframes rise {
  from { opacity: 0; translate: 0 16px; }
  to { opacity: 1; translate: 0 0; }
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.idx {
  color: var(--faint);
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.status {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.status.open { background: var(--open-soft); color: var(--open); }
.status.closing { background: var(--closing-soft); color: var(--closing); }
.status.closed { color: var(--faint); }

.card h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.meta span {
  padding: 2px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.meta .walk { border-color: transparent; background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.price { margin: -4px 0 0; color: var(--muted); font-size: 0.9rem; }

.dishes {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
}

.dishes li {
  display: grid;
  gap: 3px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.dishes li:last-child { padding-bottom: 4px; }

.category {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dish {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.desc { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }

.embed {
  width: 100%;
  aspect-ratio: 1 / 1.4143;
  border: 0;
  border-radius: 14px;
  background: #fff;
}

.badge.warn {
  margin: 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--closing-soft);
  color: var(--closing);
  font-size: 0.85rem;
}

.empty, .notice { margin: 0; color: var(--muted); }
.notice { padding: 8px 0 8px; grid-column: 1 / -1; }

.source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.source .arrow { color: var(--accent); transition: transform 0.3s var(--ease); }
.source:hover { background: var(--accent-soft); border-color: transparent; }
.source:hover .arrow { transform: translate(2px, -2px); }
.source:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Loading skeleton */

.skeleton { gap: 12px; min-height: 260px; }

.skeleton span {
  display: block;
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--surface) 0%, var(--border-strong) 50%, var(--surface) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.skeleton span:first-child { width: 55%; height: 28px; margin-bottom: 8px; }
.skeleton span:nth-child(2) { width: 90%; }
.skeleton span:nth-child(3) { width: 75%; }
.skeleton span:nth-child(4) { width: 82%; }

@keyframes shimmer { to { background-position: -200% 0; } }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 40px 56px;
  color: var(--faint);
  font-size: 0.82rem;
}

footer p { margin: 0; }

.report a { color: var(--muted); text-underline-offset: 3px; }
.report a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
