@font-face {
  font-family: Doran;
  src: url("fonts/Doran-Regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --viewport-height: 115vh;
  --gold: #efd020;
  --sky: linear-gradient(180deg, #052465 0%, #052465 8%, #082768 15.625%, #0f3171 27.344%, #204482 39.063%, #2d548f 46.875%, #4067a0 54.688%, #557db1 62.5%, #7199ca 70.313%, #8ab0d4 100%);
}

@supports (height: 100dvh) {
  :root { --viewport-height: 100dvh; }
}

* { box-sizing: border-box; }

html {
  height: 100%;
  background: #052465;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100%;
  color: #fff;
  font-family: Doran, Tahoma, sans-serif;
}

.viewport {
  display: grid;
  place-items: center;
  width: 100%;
  height: var(--viewport-height);
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  overflow: hidden;
  background: var(--sky);
}

/* Every measurement uses the same unit from the 720 × 1280 reference.
   Fit the complete composition into the available screen without distortion. */
.poster {
  --safe-width: calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
  --safe-height: calc(var(--viewport-height) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  --u: min(calc(var(--safe-width) / 720), calc(var(--safe-height) / 1280));
  position: relative;
  isolation: isolate;
  width: calc(720 * var(--u));
  height: calc(1280 * var(--u));
  
  background: var(--sky);
}

.brand img,
.clouds,
.building {
  position: absolute;
  display: block;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.brand__mark {
  top: calc(85 * var(--u));
  left: calc(252 * var(--u));
  width: calc(211.43 * var(--u));
  z-index: 2;
}

.brand__tagline {
  top: calc(255 * var(--u));
  left: calc(268 * var(--u));
  width: calc(184 * var(--u));
  z-index: 3;
}

.menu {
  position: absolute;
  z-index: 4;
  top: calc(394 * var(--u));
  left: calc(107 * var(--u));
  display: grid;
  grid-auto-rows: calc(88 * var(--u));
  gap: calc(36 * var(--u));
  width: calc(498 * var(--u));
}

.menu__link {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 calc(80 * var(--u));
  border: max(1px, calc(1.8 * var(--u))) solid var(--gold);
  border-radius: calc(48 * var(--u));
  background: rgba(230, 240, 255, 0.13);
  color: #fff;
  font-size: calc(48 * var(--u));
  font-weight: 300;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color 160ms ease;
}

.menu__label { white-space: nowrap; }

.menu__icon {
  position: absolute;
  top: 50%;
  left: calc(11 * var(--u));
  display: grid;
  place-items: center;
  width: calc(64 * var(--u));
  height: calc(64 * var(--u));
  border-radius: 50%;
  background: radial-gradient(circle at 38% 23%, #ffe967 0%, #f9d320 55%, #ebbc08 100%);
  box-shadow: 0 0 calc(5 * var(--u)) rgba(255, 219, 35, 0.5);
  transform: translateY(-50%);
  pointer-events: none;
}

.menu__icon img { display: block; height: auto; }
.menu__dish {
  width: 115%;
  transform: translateY(calc(-8 * var(--u)));
}

/* Mobile */
@media (max-width: 600px) {
  .menu__dish {
    transform: translateY(calc(-8 * var(--u)));
  }
}

.menu__earth { width: 70%; }

.menu__link:focus-visible {
  outline: calc(3 * var(--u)) solid #fff;
  outline-offset: calc(5 * var(--u));
  background: rgba(230, 240, 255, 0.25);
}

@media (hover: hover) {
  .menu__link:hover { background: rgba(230, 240, 255, 0.24); }
}

.menu__link:active { background: rgba(230, 240, 255, 0.3); }

.clouds {
  z-index: 1;
  top: calc(720 * var(--u));
  left: 0;
  width: 100%;
}

.building {
  z-index: 2;
  top: calc(891 * var(--u));
  left: calc(-25 * var(--u));
  width: calc(772 * var(--u));
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .menu__link { transition: none; }
}
