/* Modernist start screen overlay. All selectors are scoped to #modern-menu. */

:root {
  --mm-bg: #f2f0ea;
  --mm-ink: #111;
  --mm-muted: #77746c;
  --mm-red: #e4002b;
  --mm-green: #00a651;
  --mm-yellow: #ffc800;
  --mm-blue: #0057b8;
  --mm-font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
}

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

#modern-menu {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  background: var(--mm-bg);
  color: var(--mm-ink);
  font-family: var(--mm-font);
  -webkit-font-smoothing: antialiased;
}

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

#modern-menu .mm-col {
  container-type: inline-size;
  width: 100%;
  max-width: 480px;
  margin: auto;
  padding: 24px;
}

#modern-menu .mm-kicker {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mm-muted);
}

#modern-menu .mm-title {
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.92;
  font-size: clamp(52px, 14vw, 80px);
  font-size: clamp(52px, 14.5cqi, 80px);
}

#modern-menu .mm-title span {
  display: block;
  white-space: nowrap;
}

#modern-menu .mm-tagline {
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.4;
}

#modern-menu .mm-rule {
  height: 0;
  margin: 24px 0 0;
  border: 0;
  border-top: 2px solid var(--mm-ink);
}

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

#modern-menu .mm-section {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 2px solid var(--mm-ink);
}

#modern-menu .mm-num {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--mm-red);
  font-variant-numeric: tabular-nums;
}

#modern-menu .mm-section:nth-child(2) .mm-num {
  color: var(--mm-blue);
}

#modern-menu .mm-section h2 {
  margin: 2px 0 6px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#modern-menu .mm-section p {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

#modern-menu .mm-play {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 72px;
  margin: 32px 0 0;
  padding: 0 24px;
  border: 2px solid var(--mm-ink);
  border-radius: 0;
  background: var(--mm-ink);
  color: var(--mm-bg);
  font-family: var(--mm-font);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  -webkit-tap-highlight-color: transparent;
}

#modern-menu .mm-play svg {
  width: 28px;
  height: 28px;
  flex: none;
}

#modern-menu .mm-play:hover {
  transform: translate(-3px, -3px);
  box-shadow: 4px 4px 0 var(--mm-red);
}

#modern-menu .mm-play:active {
  transform: none;
  box-shadow: none;
}

#modern-menu .mm-play:focus-visible {
  outline: 3px solid var(--mm-blue);
  outline-offset: 4px;
}

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