/* Modernist start screen overlay. Everything lives under #modern-menu. */

#modern-menu {
    --mm-bg: #f2f0ea;
    --mm-ink: #111;
    --mm-muted: #77746c;
    --mm-red: #e4002b;
    --mm-green: #00a651;
    --mm-yellow: #ffc800;
    --mm-blue: #0057b8;

    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--mm-bg);
    color: var(--mm-ink);
    font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

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

#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: 24px;
    display: flex;
    flex-direction: column;
}

/* ---- Header ---- */

#modern-menu .mm-head {
    padding-top: clamp(24px, 6vh, 56px);
}

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

#modern-menu .mm-tagline {
    margin: 16px 0 0;
    font-size: 17px;
    line-height: 1.4;
    color: var(--mm-muted);
}

/* 2px ink rule with the four accent colours as a flat bar beneath it */
#modern-menu .mm-rule {
    margin-top: 28px;
    height: 2px;
    background: var(--mm-ink);
}

#modern-menu .mm-accents {
    display: flex;
    height: 6px;
}

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

#modern-menu .mm-accents .a1 { background: var(--mm-red); }
#modern-menu .mm-accents .a2 { background: var(--mm-green); }
#modern-menu .mm-accents .a3 { background: var(--mm-yellow); }
#modern-menu .mm-accents .a4 { background: var(--mm-blue); }

/* ---- Numbered sections ---- */

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

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

#modern-menu .mm-section:last-child {
    border-bottom: 0;
}

#modern-menu .mm-num {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

#modern-menu .mm-section[data-n="01"] .mm-num { color: var(--mm-red); }
#modern-menu .mm-section[data-n="02"] .mm-num { color: var(--mm-blue); }

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

#modern-menu .mm-p {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
    color: var(--mm-ink);
}

/* ---- Play button ---- */

#modern-menu .mm-play {
    margin-top: auto;
    margin-bottom: 24px;
    width: 100%;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    border: 2px solid var(--mm-ink);
    border-radius: 0;
    background: var(--mm-ink);
    color: #fff;
    font-family: inherit;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    -webkit-appearance: none;
    appearance: none;
}

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

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

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

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

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

@media (hover: none) {
    #modern-menu .mm-play:hover {
        transform: none;
        box-shadow: none;
    }
}
