:root {
  color-scheme: light;
}

.site-dark {
  color-scheme: dark;
}

.skip-link {
  position: fixed;
  z-index: 140;
  left: 12px;
  top: 12px;
  transform: translateY(-200%);
  padding: 12px 16px;
  background: #fff;
  color: #050607;
}

.skip-link:focus-visible {
  transform: none;
}

:where(h1, h2, h3) {
  text-wrap: balance;
}

:where(p) {
  text-wrap: pretty;
}

#story,
#spaces,
#events,
#contacts,
.menu-group {
  scroll-margin-top: 112px;
}

.search-field {
  margin: 8px auto;
  max-width: 1148px;
  height: 48px;
  border: 1px solid #d8dcda;
  background: #f4f5f3;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
}

.search-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #07090a;
  font-size: 15px;
}

.search-field:focus-within {
  border-color: var(--stage-accent);
  box-shadow: 0 0 0 2px rgba(216, 170, 85, .24);
}

.search-field button {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #5c6263;
  font-size: 21px;
}

.dish-card {
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: auto 210px;
}

.card-open {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.card-open:focus-visible {
  outline: 3px solid var(--stage-accent);
  outline-offset: -3px;
}

.dish-copy,
.dish-photo {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.add-button,
.favorite-button {
  z-index: 3;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .hero {
    grid-template-rows: 48svh auto;
  }

  .hero-side {
    top: 33svh;
    height: 160px;
  }

  .hero-copy {
    padding-top: 28px;
    padding-bottom: 92px;
  }

  .hero-copy > p:first-child {
    margin-bottom: 14px;
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .hero-actions {
    margin-top: 22px;
  }

  .menu-showcase {
    padding-bottom: 14px;
  }

  .menu-showcase > div {
    height: 132px;
  }

  .menu-showcase > div:nth-child(2) {
    height: 112px;
  }

  .menu-intro {
    padding-top: 24px;
    padding-bottom: 22px;
  }

  .menu-intro h1 {
    font-size: 44px;
  }

  .dish-card {
    contain-intrinsic-size: auto 180px;
  }
}

@media (max-width: 900px) and (max-height: 700px) {
  .hero {
    grid-template-rows: 43svh auto;
  }

  .hero-side {
    top: 29svh;
    height: 142px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-open {
    scroll-behavior: auto;
  }
}
