/* DISMAL one-page site: a centred column with the key art on top, a short pitch, the links and a footer. */

:root {
    --dm-ground: #0a0c11;
    --dm-panel: #0e1016;
    --dm-line: #1c2029;
    --dm-bone: #ece4d6;
    --dm-text: #b9b0a1;
    --dm-muted: #8f8779;
    --dm-accent: #e0874e;
    /* The key art is 1232 px wide; keep the column well under that so it is never upscaled. */
    --dm-column: 760px;
}

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

/* A fixed layer rather than background-attachment: fixed, which iOS Safari ignores. */
.backdrop {
    position: fixed;
    inset: 0;
    background: var(--dm-ground) url("images/background.webp") center / cover no-repeat;
}

.shell {
    position: relative;
}

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

.column {
    max-width: var(--dm-column);
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: var(--dm-panel);
    border-left: 1px solid var(--dm-line);
    border-right: 1px solid var(--dm-line);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.6);
}

/* Once the column fills the screen the backdrop is never visible; hiding it also skips the download. */
@media (max-width: 760px) {
    .backdrop {
        display: none;
    }
}

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

.content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 40px 48px 56px;
}

.content section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Every section after the intro sits under a hairline. */
.content .block {
    border-top: 1px solid var(--dm-line);
    padding-top: 40px;
}

.content h2 {
    margin: 0 0 4px;
    font-family: Cinzel, serif;
    font-weight: 700;
    font-size: 19px;
    line-height: 1.35;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dm-accent);
}

.content p,
.content li {
    margin: 0;
    font-size: 18px;
    line-height: 1.65;
    color: var(--dm-text);
}

.content .hook {
    font-family: Cinzel, serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.35;
    color: var(--dm-bone);
}

.content .em {
    font-weight: 500;
    color: var(--dm-bone);
}

.awaits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.awaits li {
    position: relative;
    padding-left: 28px;
}

/* Small diamond centred on the first line. */
.awaits li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: calc(0.825em - 4px);
    width: 8px;
    height: 8px;
    box-sizing: border-box;
    border: 1.5px solid var(--dm-accent);
    transform: rotate(45deg);
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

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

/* Slightly tighter than MudBlazor's large buttons so all five fit one row in the column. */
.links .mud-button-root {
    padding-left: 16px;
    padding-right: 16px;
}

.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 {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 24px;
    padding: 12px 48px;
    border-top: 1px solid var(--dm-line);
    color: var(--dm-muted);
    font-size: 14px;
}

.foot span,
.foot a {
    padding: 12px 0;
}

.foot a {
    color: var(--dm-muted);
    text-decoration: none;
}

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

/* Phones: the portrait poster replaces the wide art (see <picture> in Home.razor). */
@media (max-width: 599px) {
    .column {
        border: 0;
    }

    .content {
        gap: 32px;
        padding: 28px 20px 40px;
    }

    .content .block {
        padding-top: 32px;
    }

    .content .hook {
        font-size: 20px;
    }

    .content p,
    .content li {
        font-size: 17px;
    }

    .foot {
        padding: 8px 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);
}
