.food-main.frame {
  --food-ink: #213d36;
  --food-muted: #4c5a4d;
  --food-red: #a13528;
  --food-border: #d8cbb5;
  --food-surface: #fffbf2;
  max-width: min(1328px, calc(100% - 48px)) !important;
  padding-bottom: 64px;
  color: var(--food-ink);
}

.food-main :focus-visible { outline: 2px solid var(--food-red); outline-offset: 3px; }
.food-main [hidden] { display: none !important; }

.food-card h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.35;
}
.food-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.food-empty { padding: 18px 20px; border: 1px solid var(--food-border); background: var(--food-surface); }
.food-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  scroll-margin-top: 120px;
  background: var(--food-surface);
  border: 1px solid var(--food-border);
}
.food-card:target { outline: 2px solid var(--food-red); outline-offset: 3px; }
.food-card img {
  display: block;
  width: min(100%, var(--food-photo-width, 100%));
  margin-inline: auto;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e8e1d3;
}
.food-card-photo { display: block; }
.food-card h2 a { text-decoration: underline; text-decoration-color: #9fb0a6; text-underline-offset: 4px; }
.food-card h2 a:hover { text-decoration-color: currentColor; }
.food-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px;
}
.food-card-place { margin: 0 0 6px; color: #8b3b2a; font-size: 13px; font-weight: 650; }
.food-card-description {
  margin: 8px 0 14px;
  color: var(--food-muted);
  font-size: 15px;
  line-height: 1.7;
}
.food-card-source {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
  margin: auto 0 0;
  padding-top: 7px;
  border-top: 1px solid #e4dac7;
  font-size: 13px;
}
.food-card-source a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--food-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.food-card-source a:hover { color: var(--food-red); }

.food-detail figure img { aspect-ratio: 16 / 10; }
.food-detail .stays-hero {
  width: min(100%, var(--food-photo-width, 100%));
  justify-self: center;
  align-self: start;
}
.food-detail .stays-facts dl { margin-bottom: 0; }
.food-detail .stays-facts h2,
.food-detail .stays-story h2 {
  color: var(--stays-ink);
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-weight: 700;
}
.food-detail figcaption a { text-decoration: underline; text-underline-offset: 3px; }
.food-detail .stays-story { margin-top: 16px; padding: clamp(16px, 2.4vw, 30px); }

@media (min-width: 761px) {
  .food-detail .stays-detail-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}

@media (max-width: 960px) {
  .food-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .food-main.frame { padding-bottom: 40px; }
  .food-grid { grid-template-columns: minmax(0, 1fr); }
  .food-card-source a { min-height: 44px; }
}
