/* DISMAL one-page site: one screen of key art, a link row under the logo, a footer. */

:root {
    --dm-ground: #0a0c11;
    --dm-bone: #ece4d6;
    --dm-muted: #a59c8e;
}

html, body {
    margin: 0;
    background: var(--dm-ground);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---- Landscape: the art covers the screen ---- */

.page {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* Keeps the wide art's aspect (1232 x 706 = 1.745) while covering the viewport.
   Left-anchored so the logo is never cropped; positions inside are % of the art. */
.stage {
    position: absolute;
    left: 0;
    top: 50%;
    width: max(100vw, 174.5vh);
    height: max(100vh, 57.3vw);
    transform: translateY(-50%);
}

.art-wide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.art-tall {
    display: none;
}

/* The logo spans 6.8-54 % of the art's width and ends at ~59 % of its height. */
.links {
    position: absolute;
    left: 6.8%;
    width: 47.2%;
    top: 65%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.mud-button-root.mud-button-size-large {
    min-height: 48px;
}

.ghost.mud-button-outlined {
    background: rgba(10, 12, 17, 0.55);
    border-color: rgba(236, 228, 214, 0.4);
    color: var(--dm-bone);
}

.ghost.mud-button-outlined:hover {
    background: rgba(236, 228, 214, 0.12);
}

.foot {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 4px 24px;
    padding: 10px 32px;
    background: rgba(10, 12, 17, 0.78);
    border-top: 1px solid rgba(236, 228, 214, 0.1);
    color: var(--dm-muted);
    font-size: 14px;
}

.foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
}

.foot-links a {
    color: var(--dm-muted);
    text-decoration: none;
    padding: 12px 0;
}

.foot-links a:hover {
    color: var(--dm-bone);
}

/* ---- Portrait / narrow: poster on top, links and footer below ---- */

@media (max-aspect-ratio: 23/20) {
    .page {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        display: flex;
        flex-direction: column;
    }

    .stage {
        position: static;
        width: auto;
        height: auto;
        transform: none;
    }

    .art-wide {
        display: none;
    }

    .art-tall {
        display: block;
        width: 100%;
        height: auto;
    }

    .links {
        position: static;
        width: auto;
        padding: 8px 20px 40px;
    }

    .foot {
        position: static;
        margin-top: auto;
        padding: 10px 20px;
    }
}

/* ---- 404 ---- */

.not-found {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 24px;
    text-align: center;
}

.not-found h1 {
    margin: 0;
    font-family: Cinzel, serif;
    font-weight: 700;
    font-size: clamp(24px, 4vw, 40px);
    color: var(--dm-bone);
}
