@font-face {
  font-family: "Uncial Antiqua";
  src: url("./vendor/UncialAntiqua-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  background: #0d0b0d;
}

body {
  margin: 0;
}

.title-screen {
  display: grid;
  min-block-size: 100vh;
  min-block-size: 100svh;
  place-items: center;
}

.menu {
  --gold: #d1a86b;
  --cream: #ffe7b8;
  --step: clamp(4px, .55cqw, 10px);
  --plaque-shape: polygon(0 var(--step), var(--step) var(--step), var(--step) 0,
    calc(100% - var(--step)) 0, calc(100% - var(--step)) var(--step), 100% var(--step),
    100% calc(100% - var(--step)), calc(100% - var(--step)) calc(100% - var(--step)),
    calc(100% - var(--step)) 100%, var(--step) 100%, var(--step) calc(100% - var(--step)),
    0 calc(100% - var(--step)));
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  box-sizing: border-box;
  inline-size: min(100%, calc(100vh * 16 / 9));
  inline-size: min(100%, calc(100svh * 16 / 9));
  aspect-ratio: 16 / 9;
  background: #071419;
  color: var(--cream);
}

.menu-art,
.menu-art img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
}

.menu-art {
  position: absolute;
  z-index: -1;
  inset: 0;
}

.menu-art img {
  object-fit: cover;
}

.menu-art::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 77%, #0b090fa6 100%),
    linear-gradient(180deg, #09151c2b 25%, transparent 46% 69%, #100b135e 100%);
  content: "";
}

.menu-trim {
  position: absolute;
  z-index: 3;
  inset: .5%;
  border: 1px solid #d2a875;
  box-shadow: inset 0 0 0 2px #1b1013, inset 0 0 0 3px #bc8b58;
  pointer-events: none;
}

.menu-trim i {
  position: absolute;
  inset: -2px auto auto -2px;
  inline-size: 2.8cqw;
  aspect-ratio: 1;
  clip-path: polygon(0 0, 100% 0, 100% 8%, 49% 8%, 49% 17%, 34% 17%, 34% 25%, 47% 25%,
    47% 34%, 35% 34%, 35% 46%, 25% 46%, 25% 34%, 17% 34%, 17% 49%, 8% 49%, 8% 100%, 0 100%);
  background: var(--gold);
}

.menu-trim i:nth-child(even) {
  inset-inline: auto -2px;
  scale: -1 1;
}

.menu-trim i:nth-child(n+3) {
  inset-block: auto -2px;
  scale: 1 -1;
}

.menu-trim i:last-child {
  scale: -1;
}

.menu-bar {
  position: absolute;
  z-index: 2;
  inset: .65% .68% auto;
  display: grid;
  place-items: center;
  block-size: 2.37cqw;
  border-block-end: 2px solid #bf9866;
  background: #130e12;
  font: 700 clamp(.63rem, 1.36cqw, 1.6rem)/1 Georgia, serif;
  letter-spacing: .13em;
  text-align: center;
}

.menu-bar > span:last-child::before,
.menu-bar > span:last-child::after {
  margin-inline: 1.25cqw;
  color: var(--gold);
  content: "✦";
}

.window-marks {
  position: absolute;
  inset-inline-start: 2.35cqw;
  display: flex;
  gap: .4cqw;
}

.window-marks i {
  display: grid;
  place-items: center;
  inline-size: 1.65cqw;
  block-size: 1.24cqw;
  border-radius: 1px;
  background: #e4bc89;
  color: #2b1119;
  font: 700 1.2cqw/.85 system-ui, sans-serif;
  letter-spacing: 0;
}

.menu-title {
  position: absolute;
  inset: 5.2% 20.1% auto 20.2%;
  text-align: center;
}

.menu-crest {
  position: relative;
  display: grid;
  place-items: center;
  inline-size: 10cqw;
  block-size: 4.25cqw;
  margin: 0 auto -.12cqw;
}

.menu-crest::before {
  position: absolute;
  inset: -13% -3%;
  mask-image: radial-gradient(ellipse, transparent 22%, #000 38%, #0009 52%, transparent 71%);
  background: repeating-conic-gradient(from 4deg, #c5945d 0deg 1deg, transparent 1deg 9deg);
  content: "";
}

.menu-crest::after {
  position: relative;
  inline-size: 4.4cqw;
  block-size: 4.1cqw;
  clip-path: polygon(50% 0, 61% 11%, 57% 18%, 57% 34%, 80% 34%, 87% 27%, 100% 43%,
    87% 58%, 80% 51%, 57% 51%, 57% 74%, 63% 82%, 50% 100%, 37% 82%, 43% 74%,
    43% 51%, 20% 51%, 13% 58%, 0 43%, 13% 27%, 20% 34%, 43% 34%, 43% 18%, 39% 11%);
  background: linear-gradient(120deg, #7d472e, #ffe5aa 35%, #ac663c 48%, #f0bd7a 61%, #7b442d);
  box-shadow: inset 0 0 0 2px #d9a46e;
  content: "";
}

.menu-title h1 {
  position: relative;
  inset-inline-start: 50%;
  inline-size: max-content;
  margin: 0;
  transform: translateX(-50%);
  font: 400 5.72cqw/1.05 "Uncial Antiqua", Georgia, serif;
  font-variant: small-caps;
  letter-spacing: -.055em;
  text-shadow: 0 .12cqw #d49a71, 0 .32cqw #81334a, 0 .49cqw #591b30, 0 .62cqw #361520,
    0 .72cqw .9cqw #080b11;
  white-space: nowrap;
}

.menu-title p {
  display: inline-block;
  margin: .65cqw 0 0;
  padding: .42cqw 1.7cqw .6cqw;
  clip-path: polygon(0 12%, 12% 4%, 50% 0, 88% 4%, 100% 12%, 96% 50%, 100% 88%, 86% 98%,
    50% 95%, 14% 98%, 0 88%, 4% 50%);
  background: linear-gradient(#f4d6a2, #d5a273);
  color: #2d171a;
  font: 700 1.68cqw/1.16 Georgia, serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.menu-title p::before,
.menu-title p::after {
  margin-inline: .7em;
  font-size: .68em;
  vertical-align: .13em;
  content: "✦";
}

.menu-link {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  min-block-size: max(30px, 4.12cqw);
  padding: .32em .62em;
  color: inherit;
  font: 400 max(.88rem, 1.92cqw)/1.13 "Uncial Antiqua", Georgia, serif;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 2px #210d1b;
  touch-action: manipulation;
}

.menu-link::before,
.menu-link::after,
.menu-start::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  clip-path: var(--plaque-shape);
  background: linear-gradient(#efc78d, #9d6945);
  content: "";
}

.menu-link::after {
  z-index: -1;
  inset: 2px;
  background: linear-gradient(#561b32, #2b1122);
  box-shadow: inset 0 0 0 2px #26101e, inset 0 0 0 3px #d097595c;
}

.menu-link:is(:hover, :active, :focus-visible)::after {
  background: linear-gradient(#812b45, #461729);
}

.menu-link:focus-visible {
  border-radius: 4px;
  outline: 2px solid #ffe5b1;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px #260b18;
}

.menu-options {
  position: absolute;
  inset: 12% 1.4% auto auto;
  display: grid;
  gap: 1cqw;
  inline-size: 18.5%;
}

.menu-options .menu-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .55em;
}

.menu-icon {
  color: #efce95;
  font: 700 .93em/1 Georgia, serif;
}

.menu-cart {
  position: relative;
  box-sizing: border-box;
  inline-size: .85em;
  block-size: .54em;
  margin: 0 0 .18em .15em;
  border: max(1px, .075em) solid currentColor;
  border-radius: 0 0 .12em .12em;
  transform: skewX(-12deg);
}

.menu-cart::before {
  position: absolute;
  inset: auto auto -.23em .06em;
  inline-size: .13em;
  aspect-ratio: 1;
  border-radius: 50%;
  background: currentColor;
  box-shadow: .39em 0 currentColor;
  content: "";
}

.menu-cart::after {
  position: absolute;
  inset: -.2em auto auto -.23em;
  inline-size: .22em;
  block-size: .25em;
  border-block-start: max(1px, .075em) solid currentColor;
  border-inline-end: max(1px, .075em) solid currentColor;
  transform: skewX(24deg);
  content: "";
}

.menu-start {
  position: absolute;
  isolation: isolate;
  inset: auto auto 9.2% 50.1%;
  box-sizing: border-box;
  inline-size: max(10rem, 23%);
  padding: .7cqw 1.25cqw .9cqw;
  transform: translateX(-50%);
  text-align: center;
}

.menu-start::before {
  box-shadow: inset 0 0 0 2px #e2b372, inset 0 0 0 5px #28101e, inset 0 0 0 6px #aa714c;
  background: linear-gradient(#451323, #280f1d);
}

.menu-start i {
  position: absolute;
  z-index: -1;
  inset: 0 -4.5cqw;
  pointer-events: none;
}

.menu-start i::before,
.menu-start i::after {
  position: absolute;
  inset: 50% auto auto .75cqw;
  inline-size: 2.45cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: -.62cqw .24cqw #e6bb7b;
  transform: translateY(-58%) rotate(-19deg);
  content: "";
}

.menu-start i::after {
  inset-inline: auto .75cqw;
  scale: -1 1;
}

.menu-start p {
  margin: 0 0 .45cqw;
  font: 700 max(.92rem, 1.85cqw)/1.1 Georgia, serif;
  letter-spacing: .06em;
  text-shadow: 0 2px #210d1b;
}

#start {
  min-block-size: max(31px, 3.77cqw);
  color: #351720;
  font-size: max(1rem, 2.06cqw);
  text-shadow: 0 1px #fff0cd;
}

#start::after {
  background: linear-gradient(#ffe9ad, #d89a58);
  box-shadow: inset 0 0 0 3px #663242, inset 0 0 0 4px #ffe1a6;
}

#start:is(:hover, :active, :focus-visible)::after {
  background: linear-gradient(#fff3cb, #ebb36e);
}

#menu-facebook {
  position: absolute;
  z-index: 3;
  inset: .6% 3% auto auto;
  inline-size: max(26px, 2.2cqw);
  min-block-size: max(21px, 2.45cqw);
  padding: 0;
  font: 750 max(.9rem, 1.6cqw)/1 system-ui, sans-serif;
  text-shadow: none;
}

#menu-facebook:hover {
  color: #fff9e6;
}

#menu-facebook::before,
#menu-facebook::after,
.facebook-label {
  display: none;
}

.menu-footer {
  position: absolute;
  inset: auto .7% .67%;
  margin: 0;
  padding: .43cqw 1rem .33cqw;
  border-block-start: 1px solid #d2a875;
  background: #130e12;
  font: 700 clamp(.58rem, 1.15cqw, 1.35rem)/1.05 Georgia, serif;
  letter-spacing: .21em;
  text-align: center;
  text-transform: uppercase;
}

.menu-footer span {
  margin-inline: .7em;
  color: var(--gold);
}

@media (max-width: 700px), (max-width: 1024px) and (pointer: coarse) {
  .menu {
    --step: 8px;
    inline-size: min(100%, 40rem);
    min-block-size: 100svh;
    aspect-ratio: auto;
    padding: max(2rem, calc(env(safe-area-inset-top) + 1.4rem))
      max(1.6rem, env(safe-area-inset-right))
      max(1.65rem, calc(env(safe-area-inset-bottom) + 1rem))
      max(1.6rem, env(safe-area-inset-left));
    background: #180e17;
  }

  .menu::after {
    position: absolute;
    z-index: 1;
    inset: 7px;
    border: 1px solid var(--gold);
    box-shadow: inset 0 0 0 2px #160e13, inset 0 0 0 3px #bd94545e;
    pointer-events: none;
    content: "";
  }

  .menu-art {
    inset-block-end: auto;
    block-size: min(max(125vw, 72svh), 50rem);
  }

  .menu-art img {
    object-position: center 25%;
  }

  .menu-art::after {
    background: linear-gradient(180deg, #09151ca6, #09151c55 23%, transparent 43% 65%, #180e1780 82%, #180e17);
  }

  .menu-trim,
  .menu-bar,
  .menu-crest,
  .menu-start i,
  .menu-start > p,
  .menu-start::before,
  .menu-icon,
  .menu-footer,
  .facebook-mark {
    display: none;
  }

  .menu-title {
    position: static;
  }

  .menu-title h1 {
    position: static;
    inline-size: auto;
    transform: none;
    font: 400 clamp(1.8rem, 9.65vw, 4rem)/1.04 "Uncial Antiqua", Georgia, serif;
    letter-spacing: -.038em;
    text-shadow: 0 2px #a97056, 0 4px #501e30, 0 6px #21101c, 0 6px 18px #070b12;
    white-space: normal;
  }

  .menu-title h1 span {
    display: block;
  }

  .menu-title p {
    display: block;
    margin: .75rem 0 0;
    padding: 0;
    clip-path: none;
    background: none;
    color: inherit;
    font: 700 .86rem/1.35 Georgia, serif;
    letter-spacing: .22em;
    text-shadow: 0 2px 5px #090913;
  }

  .menu-title p::before,
  .menu-title p::after {
    display: inline-block;
    inline-size: 6px;
    block-size: 6px;
    margin-inline: .7rem;
    transform: translateY(-.14em) rotate(45deg);
    background: var(--gold);
    vertical-align: baseline;
    content: "";
  }

  .menu nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
    max-inline-size: 28rem;
    margin: max(clamp(10rem, 69vw, 25rem), calc(100svh - 28rem)) auto 0;
  }

  .menu-start,
  .menu-options {
    display: contents;
  }

  .menu-link {
    min-block-size: 3.4rem;
    padding: .55rem;
    font: 400 clamp(.94rem, 4vw, 1.15rem)/1.25 "Uncial Antiqua", Georgia, serif;
  }

  .menu-options #menu-enter {
    display: none;
  }

  #start {
    grid-column: 1 / -1;
    min-block-size: 4rem;
    font-size: clamp(1.3rem, 5.1vw, 1.7rem);
  }

  #menu-facebook {
    position: relative;
    z-index: auto;
    inset: auto;
    grid-column: 1 / -1;
    inline-size: auto;
    min-block-size: 2.75rem;
    padding: .55rem;
    font: 600 .875rem/1.35 Georgia, serif;
    letter-spacing: .06em;
  }

  .facebook-label {
    display: inline;
  }

  @media (orientation: landscape) and (max-height: 500px) {
    .menu-title h1 {
      font-size: clamp(1.8rem, 6vw, 2.7rem);
    }

    .menu-art {
      block-size: min(68vw, 35rem);
    }

    .menu nav {
      margin-block-start: clamp(6.5rem, 24svh, 9rem);
    }
  }
}
