@import "../src/widgets.css";

:root {
  --bg: #f3eee6;
  --ink: #241c16;
  --muted: #5a5046;
  --paper: #fffaf3;
  --accent: #9a3f1d;
  --line: #e3d6c6;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", "Avenir Next", sans-serif;
  --radius: 16px;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--chrome, 0px) - var(--header-h));
  display: grid;
  align-items: end;
  color: #f7f1e7;
  overflow: hidden;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 12, 8, 0.84), rgba(18, 12, 8, 0.18) 52%, rgba(18, 12, 8, 0.32));
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.4rem 0 2.6rem;
}
.hero h1 {
  margin: 0;
  max-width: 9ch;
  color: #f8f3ea;
  font-size: clamp(3.6rem, 9vw, 7.2rem);
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 0.88;
}
.hero .lede { color: #f4ece2; margin-top: 0.9rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.hero .btn { background: #f6f1e8; color: #241c16; }
.hero .btn.secondary {
  background: transparent;
  color: #f6f1e8;
  box-shadow: inset 0 0 0 1.5px rgba(246, 241, 232, 0.75);
}
.hero :focus-visible { outline-color: #f6f1e8; }

.intro { padding-top: 3rem; }
.intro p { margin: 0; max-width: 40rem; }
.chef {
  display: grid;
  gap: 1rem;
}
.chef img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
}

.cat-bar {
  position: sticky;
  top: calc(var(--chrome, 0px) + var(--header-h));
  z-index: 25;
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.75rem 0;
  background: var(--bg);
}
.cat-bar a {
  text-decoration: none;
  white-space: nowrap;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.diet { margin: 0.2rem 0 0.4rem; }
.menu-cat h3 { margin: 1.5rem 0 0.2rem; font-size: 2rem; }
.dish {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 0.8rem;
  align-items: center;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}
.dish.has-photo { grid-template-columns: 76px 1fr auto; }
.dish img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  grid-row: 1 / span 2;
}
.dish h4 { margin: 0; font-size: 1.35rem; }
.dish p { margin: 0.15rem 0 0; color: var(--muted); }
.dish-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; }
.dish .price { font-variant-numeric: tabular-nums; }
.add {
  min-height: 40px;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
}
.tag { margin-top: 0.35rem; }

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem;
}
.visit-grid, .gallery {
  display: grid;
  gap: 0.7rem;
}
.gallery figure { margin: 0; position: relative; min-height: 210px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; min-height: 210px; }
.gallery figcaption {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  background: rgba(255, 250, 243, 0.92);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.site-footer.dark {
  background: #1a1511;
  color: #e7dfd4;
  border-top: 0;
}
.site-footer.dark a { color: #f6f1e8; }

@media (min-width: 800px) {
  .chef { grid-template-columns: 280px 1fr; gap: 2rem; align-items: center; }
  .visit-grid { grid-template-columns: 0.75fr 1.25fr; gap: 1.2rem; align-items: stretch; }
  .gallery { grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: 220px; }
  .gallery figure:first-child { grid-row: span 2; }
  .gallery figure, .gallery img { height: 100%; min-height: 0; }
  .panel { padding: 1.4rem; }
}

@media (max-width: 560px) {
  .dish.has-photo { grid-template-columns: 64px 1fr; }
  .dish-buy { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; }
  .dish img { grid-row: 1 / span 3; width: 64px; height: 84px; }
}
