:root {
  --idle-ms: 60000;
  --ink: #fff7e8;
  --muted: #cfb990;
  --muted-2: #927a57;
  --gold: #c3924f;
  --old-gold: #9a6a32;
  --ember: #b34e22;
  --wood: #3a1b0f;
  --night: #100705;
  --coal: #070605;
  --leaf: #5b6f55;
  --ocean: #294b54;
  --panel: rgba(17, 10, 7, 0.78);
  --line: rgba(207, 185, 144, 0.28);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--coal);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    linear-gradient(180deg, rgba(7, 6, 5, 0.18), rgba(7, 6, 5, 0.92)),
    var(--background-image, url("assets/images/background.png")) center top / cover fixed,
    var(--coal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  user-select: none;
  touch-action: manipulation;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.screensaver {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--coal);
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.screensaver.is-active {
  opacity: 1;
  pointer-events: auto;
}

.screensaver__video,
.screensaver__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screensaver__video {
  z-index: 1;
}

.screensaver__fallback {
  z-index: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(195, 146, 79, 0.22), rgba(16, 7, 5, 0.04) 38%, rgba(16, 7, 5, 0.94) 78%),
    var(--background-image, url("assets/images/background.png")) center / cover;
  transform: scale(1.03);
  animation: slowBreath 9s ease-in-out infinite alternate;
}

.app {
  position: relative;
  min-height: 100vh;
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: stretch;
  padding: 0;
  background: var(--coal);
}

.hero__cover {
  width: 100%;
  min-height: 100svh;
  display: block;
  object-fit: cover;
  object-position: center top;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.4rem, 11vw, 9.5rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-block: 1px solid var(--line);
  background: rgba(9, 7, 6, 0.86);
  backdrop-filter: blur(18px);
}

.section-nav__scroller {
  display: flex;
  gap: 0.75rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  overflow-x: auto;
  scrollbar-width: none;
}

.section-nav__scroller::-webkit-scrollbar {
  display: none;
}

.section-nav button {
  flex: 0 0 auto;
  min-height: 56px;
  padding: 0 1.25rem;
  border: 1px solid rgba(195, 146, 79, 0.32);
  border-radius: 999px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(195, 146, 79, 0.16), rgba(41, 75, 84, 0.12));
  font: inherit;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.menu {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 6rem clamp(1.25rem, 5vw, 4rem) 9rem;
}

.menu-section {
  scroll-margin-top: 96px;
  padding-block: 4rem 3rem;
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.4rem;
  text-align: center;
}

.section-heading span {
  color: var(--gold);
  font-size: 1.35rem;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.items {
  display: grid;
  gap: 1rem;
}

.menu-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem 1.5rem;
  min-height: 112px;
  padding: 1.3rem 1.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 247, 232, 0.05), rgba(195, 146, 79, 0.08)),
    var(--panel);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
}

.menu-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--gold), var(--ember), var(--leaf));
  opacity: 0.75;
}

.menu-item h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.18rem, 2.2vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: uppercase;
}

.menu-item__price {
  align-self: start;
  color: #ffc06f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  white-space: nowrap;
}

.menu-item__description {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.55;
}

.menu-item--linked {
  cursor: pointer;
  border-color: rgba(255, 192, 111, 0.42);
}

.menu-item--linked:focus-visible,
.menu-item--linked:active {
  outline: 3px solid rgba(255, 192, 111, 0.5);
  outline-offset: 4px;
}

.menu-item__photo-hint {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.8rem;
  border: 1px solid rgba(255, 192, 111, 0.34);
  border-radius: 999px;
  color: #ffc06f;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.photo-break {
  min-height: clamp(520px, 58vh, 780px);
  margin: 4.5rem calc(clamp(1.25rem, 5vw, 4rem) * -1);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--wood);
  box-shadow: var(--shadow);
}

.photo-break img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(0.98) contrast(1.05);
}

.photo-break::after {
  content: "";
  grid-area: 1 / 1;
  align-self: stretch;
  background: linear-gradient(180deg, rgba(7, 6, 5, 0.08), rgba(7, 6, 5, 0.62));
}

.photo-break figcaption {
  grid-area: 1 / 1;
  z-index: 1;
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.top-button {
  position: fixed;
  right: clamp(1rem, 4vw, 3rem);
  bottom: clamp(1rem, 4vw, 3rem);
  z-index: 12;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 192, 111, 0.45);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(18, 9, 4, 0.82);
  box-shadow: var(--shadow);
  font-size: 2rem;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.top-button.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@keyframes slowBreath {
  from {
    transform: scale(1.03);
    filter: brightness(0.86);
  }
  to {
    transform: scale(1.08);
    filter: brightness(1.05);
  }
}

@media (min-width: 960px) {
  .items {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 100svh;
  }

  .menu-item {
    grid-template-columns: 1fr;
  }

  .menu-item__price {
    justify-self: start;
  }
}
