/* Modernist start screen overlay. Everything is scoped to #modern-menu. */

#modern-menu {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  box-sizing: border-box;
  background: #f2f0ea;
  color: #111;
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

#modern-menu[hidden],
#modern-menu.mm-hidden {
  display: none !important;
}

#modern-menu *,
#modern-menu *::before,
#modern-menu *::after {
  box-sizing: border-box;
}

#modern-menu .mm-col {
  width: 100%;
  max-width: 480px;
  min-height: 100%;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: flex;
  flex-direction: column;
}

#modern-menu .mm-title {
  margin: 0;
  font-size: clamp(52px, 15vw, 80px);
  line-height: 0.92;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}

#modern-menu .mm-tag {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.4;
  color: #77746c;
}

#modern-menu .mm-rule {
  height: 2px;
  background: #111;
  margin: 28px 0 0;
}

#modern-menu .mm-sections {
  list-style: none;
  margin: 0;
  padding: 0;
}

#modern-menu .mm-sec {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 2px solid #111;
}

#modern-menu .mm-num {
  flex: 0 0 auto;
  min-width: 36px;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

#modern-menu .mm-sec:nth-child(1) .mm-num { color: #e4002b; }
#modern-menu .mm-sec:nth-child(2) .mm-num { color: #00a651; }
#modern-menu .mm-sec:nth-child(3) .mm-num { color: #0057b8; }

#modern-menu .mm-sec h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#modern-menu .mm-sec p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #77746c;
}

#modern-menu .mm-play {
  appearance: none;
  -webkit-appearance: none;
  margin-top: 32px;
  width: 100%;
  min-height: 64px;
  padding: 0 20px;
  border: 2px solid #111;
  border-radius: 0;
  background: #111;
  color: #f2f0ea;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

#modern-menu .mm-play:hover:not(:disabled) {
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0 #111;
}

#modern-menu .mm-play:focus-visible {
  outline: 3px solid #ffc800;
  outline-offset: 3px;
}

#modern-menu .mm-play:disabled {
  opacity: 0.45;
  cursor: default;
}

#modern-menu .mm-arrow {
  font-size: 24px;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  #modern-menu .mm-play {
    transition: none;
  }
}
