:root {
  color-scheme: light;
  --rose: #f0e4dc;
  --pearl: #f6f4f5;
  --page-bg:
    radial-gradient(circle at 50% 36%, var(--pearl) 0 34%, var(--rose) 84%, #ead8ce 100%);
  --paper: #fbf7f4;
  --ink: #080708;
  --shadow: rgba(67, 48, 33, 0.2);
  --font-display: "Cuphead Memphis", "Cooper Black", "Courier New", monospace;
}

@font-face {
  font-family: "Cuphead Memphis";
  src:
    url("assets/cupheadmemphis-medium.ttf") format("truetype"),
    local("Cuphead Memphis"),
    local("CupheadMemphis"),
    local("CupheadMemphis-Regular");
  font-weight: 400 900;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  min-height: 100vh;
  min-height: max(100vh, 100svh);
  background: var(--page-bg) fixed;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: max(100vh, 100svh);
  margin: 0;
  background: var(--page-bg) fixed;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
}

button {
  font: inherit;
}

.site-shell {
  display: grid;
  place-items: start center;
  min-height: 100vh;
  min-height: max(100vh, 100svh);
  background: var(--page-bg) fixed;
}

.poster {
  position: relative;
  width: min(100%, 560px);
  min-height: 100vh;
  min-height: max(100vh, 100svh);
  overflow-x: hidden;
  overflow-y: visible;
  padding: 14px clamp(14px, 4vw, 26px) 32px;
  background: transparent;
}

.logo-button {
  position: relative;
  z-index: 9;
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.logo {
  display: block;
  width: clamp(76px, 19vw, 96px);
  height: auto;
  object-fit: contain;
  transition: opacity 180ms ease;
}

.logo-button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 8px;
}

.poster.is-home .logo {
  width: clamp(98px, 25vw, 118px);
  margin-top: 8px;
}

h1 {
  margin: -2px 0 22px;
  font-family: var(--font-display);
  font-size: clamp(42px, 11vw, 64px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  transition: opacity 180ms ease, transform 360ms ease, font-size 360ms ease;
}

.main-view {
  display: grid;
  align-content: start;
  justify-items: center;
  padding: clamp(188px, 24svh, 225px) 0 0;
  gap: clamp(24px, 3.3svh, 30px);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 360ms ease;
}

.main-menu-link {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(34px, 8.2vw, 42px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-menu-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 8px;
}

.menu-view,
.detail-view {
  transition: opacity 260ms ease, transform 900ms cubic-bezier(0.16, 0.84, 0.22, 1);
}

.menu-view {
  opacity: 1;
}

.menu-poster {
  display: none;
}

.poster.is-home h1,
.poster.is-home .menu-view {
  display: none;
}

.poster:not(.is-home) .main-view {
  display: none;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-18px);
}

.poster:not(.is-home) h1,
.poster:not(.is-home) .menu-view {
  display: block;
}

.menu-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(10px, 4vw, 28px);
  row-gap: clamp(44px, 10vw, 68px);
  align-items: start;
  max-width: 500px;
  margin: 0 auto;
  padding-bottom: clamp(72px, 16vw, 110px);
}

.menu-item {
  display: grid;
  justify-items: center;
  align-items: start;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transform: translate(var(--part-x, 0px), calc(var(--drop) + var(--part-y, 0px)));
  transition:
    opacity 260ms ease,
    transform 900ms cubic-bezier(0.16, 0.84, 0.22, 1);
}

.menu-item:nth-child(2n) {
  --drop: clamp(42px, 12vw, 76px);
}

.menu-item:nth-child(2n + 1) {
  --drop: 0px;
}

.menu-item-content {
  display: grid;
  justify-items: center;
  align-items: start;
  gap: 10px;
  width: 100%;
}

.menu-item img {
  display: block;
  justify-self: center;
  width: min(100%, 214px);
  height: auto;
  filter: drop-shadow(12px 18px 13px var(--shadow));
  transition: transform 220ms ease, filter 220ms ease;
}

.menu-item.is-zoom-source .menu-item-content {
  opacity: 0;
}

.menu-item.is-parting {
  pointer-events: none;
}

.menu-item-content > span {
  display: grid;
  justify-self: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-transform: lowercase;
}

.menu-item:hover img,
.menu-item:focus-visible img {
  filter: drop-shadow(14px 20px 16px rgba(67, 48, 33, 0.28));
  transform: scale(1.045);
}

.menu-item:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}

.breakfast-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(10px, 4vw, 28px);
  row-gap: clamp(44px, 10vw, 68px);
  align-items: start;
  max-width: 500px;
  margin: 0 auto;
  padding-bottom: clamp(72px, 16vw, 110px);
}

.breakfast-item {
  display: grid;
  justify-items: center;
  align-items: start;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transform: translate(var(--part-x, 0px), calc(var(--drop) + var(--part-y, 0px)));
  transition:
    opacity 260ms ease,
    transform 900ms cubic-bezier(0.16, 0.84, 0.22, 1);
}

.breakfast-item:nth-child(2n) {
  --drop: clamp(42px, 12vw, 76px);
}

.breakfast-item:nth-child(2n + 1) {
  --drop: 0px;
}

.breakfast-item img {
  display: block;
  width: min(100%, var(--image-width, 205px));
  height: auto;
  filter: drop-shadow(12px 18px 13px var(--shadow));
  transition: transform 220ms ease, filter 220ms ease;
}

.breakfast-item > span {
  display: block;
  max-width: min(100%, 180px);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-transform: lowercase;
}

.breakfast-item.is-zoom-source > img,
.breakfast-item.is-zoom-source > span {
  opacity: 0;
}

.breakfast-item.is-parting {
  pointer-events: none;
}

.breakfast-item:hover img,
.breakfast-item:focus-visible img {
  filter: drop-shadow(14px 20px 16px rgba(67, 48, 33, 0.28));
  transform: scale(1.045);
}

.breakfast-item:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}

.poster.is-breakfasts h1 {
  margin-bottom: clamp(24px, 6vw, 36px);
  font-size: clamp(42px, 10.6vw, 62px);
}

.poster.is-evening h1 {
  margin-bottom: clamp(24px, 6vw, 36px);
  font-size: clamp(34px, 8.5vw, 50px);
}

.poster.is-bar h1 {
  margin: clamp(16px, 4vw, 24px) 0 clamp(40px, 9vw, 58px);
  font-size: clamp(42px, 11vw, 60px);
}

.poster.is-cocktails h1 {
  margin: clamp(16px, 4vw, 24px) 0 clamp(40px, 9vw, 58px);
  font-size: clamp(38px, 9.8vw, 56px);
}

.bar-page {
  display: grid;
  justify-items: center;
  width: min(100%, 298px);
  max-width: 500px;
  margin: 0 auto;
  padding-bottom: 0;
}

.bar-coffee-section,
.bar-list-section {
  display: grid;
  justify-items: center;
  width: min(100%, 360px);
}

.bar-list-section {
  margin-top: clamp(54px, 14vw, 76px);
}

.bar-page h2 {
  margin: 0 0 clamp(24px, 7vw, 34px);
  font-size: 27px;
  font-weight: 900;
  line-height: 0.95;
  text-align: center;
}

.bar-coffee {
  display: block;
  width: clamp(118px, 38vw, 160px);
  height: auto;
  padding-right: 30px;
  margin-bottom: clamp(36px, 10vw, 48px);
  filter: drop-shadow(12px 18px 13px var(--shadow));
}

.bar-list {
  width: min(100%, 249px);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.08;
}

.bar-list ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bar-list ul + ul {
  margin-top: 30px;
}

.bar-list li {
  position: relative;
  display: block;
  padding-left: 18px;
}

.bar-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
}

.bar-list li.bar-list-note {
  padding-left: 0;
  text-align: center;
}

.bar-list li.bar-list-note::before {
  content: none;
}

.cocktail-classics-section h2 {
  margin-bottom: 8px;
}

.cocktail-classics-section .bar-list ul:first-child + ul {
  margin-top: 28px;
}

.bar-list b {
  display: inline;
  margin-left: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.bar-drinks-section {
  width: 100%;
  margin-top: clamp(74px, 18vw, 105px);
}

.cocktail-author-section {
  margin-top: 0;
}

.bar-drinks-section h2 {
  margin-bottom: clamp(30px, 8vw, 44px);
}

.bar-drink-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(10px, 4vw, 28px);
  row-gap: clamp(48px, 11vw, 72px);
  align-items: start;
  width: 100%;
}

.bar-drink {
  display: grid;
  justify-items: center;
  align-items: start;
  gap: 10px;
  min-width: 0;
  transform: translate(var(--part-x, 0px), calc(var(--drop) + var(--part-y, 0px)));
}

.bar-drink-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  transition:
    opacity 260ms ease,
    transform 900ms cubic-bezier(0.16, 0.84, 0.22, 1);
}

.bar-drink:nth-child(2n) {
  --drop: clamp(42px, 12vw, 76px);
}

.bar-drink:nth-child(2n + 1) {
  --drop: 0px;
}

.bar-drink img {
  display: block;
  width: min(100%, var(--image-width, 190px));
  height: auto;
  padding-right: 40px;
  filter: drop-shadow(12px 18px 13px var(--shadow));
}

.bar-drink span {
  display: block;
  width: min(100%, 121.5px);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-transform: none;
  text-wrap: balance;
}

.cocktail-author-section .bar-drink span {
  font-weight: 800;
}

.bar-drink-button.is-zoom-source > img,
.bar-drink-button.is-zoom-source > span {
  opacity: 0;
}

.bar-drink-button.is-parting {
  pointer-events: none;
}

.bar-drink-button:hover img,
.bar-drink-button:focus-visible img {
  filter: drop-shadow(14px 20px 16px rgba(67, 48, 33, 0.28));
}

.bar-drink-button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}

.detail-view {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transform: translate(0, 0) scale(1);
  transform-origin: 0 0;
}

.toast-stage {
  position: absolute;
  z-index: 4;
  top: clamp(280px, 35svh, 360px);
  left: 50%;
  display: grid;
  place-items: center;
  width: min(76vw, 370px);
  transform: translateX(-50%);
}

.detail-toast {
  width: 100%;
  height: auto;
  opacity: 1;
  filter: drop-shadow(18px 24px 18px rgba(67, 48, 33, 0.24));
  transform: scale(1);
  transition: transform 900ms cubic-bezier(0.16, 0.84, 0.22, 1);
}

.callouts {
  position: absolute;
  z-index: 2;
  inset: 0;
}

.callout {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: min(var(--box), calc(100% - 20px));
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0);
  border-radius: 28px;
  background: transparent;
  color: var(--ink);
  font-size: clamp(14px, var(--size), 20px);
  font-weight: 500;
  line-height: 1;
  overflow-wrap: break-word;
  text-align: center;
  text-wrap: balance;
  white-space: normal;
  opacity: 0;
  transform: translate(var(--pop-x, 0px), var(--pop-y, 42px)) scale(0.76);
  transition: opacity 260ms ease, transform 420ms cubic-bezier(0.18, 0.84, 0.28, 1);
  transition-delay: var(--delay);
}

.callout-ray {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  width: var(--line-l);
  height: 1px;
  background: var(--ink);
  opacity: 0;
  transform: rotate(var(--line-r)) scaleX(0);
  transform-origin: left center;
  translate: var(--line-x) var(--line-y);
  transition:
    opacity 180ms ease,
    transform 420ms cubic-bezier(0.18, 0.84, 0.28, 1);
  transition-delay: calc(var(--delay) + 90ms);
}

.back-button {
  position: absolute;
  z-index: 8;
  top: 14px;
  left: 18px;
  display: none;
  width: 32px;
  height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.back-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.back-button:focus-visible {
  outline: 0;
}

.poster.is-detail {
  min-height: max(100svh, 920px);
  overflow: hidden;
}

.poster.is-detail h1 {
  margin-top: -2px;
  font-size: clamp(40px, 10vw, 58px);
}

.poster.is-detail .menu-view {
  pointer-events: none;
  opacity: 0;
  transform: scale(0.96);
}

.poster.is-detail.is-animating .menu-view {
  opacity: 0.9;
  transform: scale(1);
}

.poster.is-detail .detail-view {
  pointer-events: auto;
  opacity: 1;
  transform: scale(1);
}

.poster.is-detail .detail-toast {
  transform: scale(1);
}

.poster.is-detail.is-callout-ready .callout {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.poster.is-detail.is-callout-ready .callout-ray {
  opacity: 1;
  transform: rotate(var(--line-r)) scaleX(1);
}

.poster:not(.is-home) .back-button {
  display: block;
}

@media (max-width: 420px) {
  .poster {
    padding-inline: 12px;
  }

  .menu-board {
    column-gap: 4px;
    row-gap: 42px;
  }

  .menu-item img {
    width: min(100%, 180px);
  }

  .callout {
    font-size: clamp(13px, var(--size), 17px);
  }

  .main-view {
    padding-top: clamp(178px, 23svh, 205px);
  }

  .breakfast-board {
    column-gap: 4px;
    row-gap: 42px;
  }

  .breakfast-item img {
    width: min(100%, calc(var(--image-width, 205px) * 0.88));
  }
}

@media (min-width: 720px) {
  .poster {
    width: min(100%, 720px);
    min-height: 100svh;
    padding-inline: 46px;
  }

  .menu-board {
    max-width: 620px;
    column-gap: 54px;
    row-gap: 74px;
  }

  .menu-item img {
    width: min(100%, 270px);
  }

  .menu-item:nth-child(2n) {
    --drop: 82px;
  }

  .breakfast-board {
    max-width: 620px;
    column-gap: 54px;
    row-gap: 74px;
  }

  .breakfast-item img {
    width: min(100%, calc(var(--image-width, 205px) * 1.26));
  }

  .breakfast-item:nth-child(2n) {
    --drop: 82px;
  }

  .bar-page {
    width: min(100%, 500px);
  }
}
