/* Modernist start overlay. Everything is scoped to #modern-menu and mm- classes. */

#modern-menu {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  background: #f2f0ea;
  color: #111;
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#modern-menu[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%;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

#modern-menu .mm-strip {
  display: flex;
  height: 10px;
  margin-top: 8px;
}

#modern-menu .mm-strip span {
  flex: 1 1 0;
}

#modern-menu .mm-strip .mm-red { background: #e4002b; }
#modern-menu .mm-strip .mm-green { background: #00a651; }
#modern-menu .mm-strip .mm-yellow { background: #ffc800; }
#modern-menu .mm-strip .mm-blue { background: #0057b8; }

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

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

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

#modern-menu .mm-sec {
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 14px;
  padding: 20px 0;
  border-bottom: 2px solid #111;
}

#modern-menu .mm-num {
  align-self: start;
  display: inline-block;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  padding-bottom: 6px;
  border-bottom: 6px solid #e4002b;
  width: fit-content;
}

#modern-menu .mm-sec:nth-of-type(2) .mm-num {
  border-bottom-color: #0057b8;
}

#modern-menu .mm-sec h2 {
  margin: 2px 0 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#modern-menu .mm-sec p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #111;
}

#modern-menu .mm-foot {
  margin-top: auto;
  padding-top: 28px;
  padding-bottom: 8px;
}

#modern-menu .mm-play {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 68px;
  margin: 0;
  padding: 0 22px;
  border: 2px solid #111;
  border-radius: 0;
  background: #111;
  color: #f2f0ea;
  font: inherit;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

#modern-menu .mm-play svg {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

#modern-menu .mm-play:focus {
  outline: none;
}

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

@media (hover: hover) {
  #modern-menu .mm-play:hover {
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0 #e4002b;
  }
}

#modern-menu .mm-play:active {
  transform: translate(0, 0);
  box-shadow: none;
}

@media (max-width: 360px) {
  #modern-menu .mm-sec {
    grid-template-columns: 52px 1fr;
  }
}
