/* Shared stylesheet for hero/centered pages (index, 404, 50x) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "IBM Plex Mono", monospace;
    font-size: 16px;
    background-color: #2d2d2d;
    color: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

main {
    text-align: center;
    max-width: 600px;
}

h1 {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 1.5em;
}

h1.error-code {
    font-size: 72px;
    font-weight: 400;
    margin-bottom: 0.5em;
    color: #a8a8a8;
}

h2 {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 1.5em;
}

p {
    line-height: 1.6;
    margin-bottom: 1em;
}

p.subtitle {
    color: #a8a8a8;
}

a {
    color: #a8a8a8;
    text-decoration: underline;
    transition: color 0.2s;
}

a:hover {
    color: #e8e8e8;
}

.home-link {
    display: inline-block;
    margin-top: 2em;
    padding: 12px 24px;
    background-color: #3d3d3d;
    border: 1px solid #4d4d4d;
    text-decoration: none;
    transition: all 0.2s;
}

.home-link:hover {
    background-color: #4d4d4d;
    border-color: #5d5d5d;
    color: #ffffff;
}

footer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    text-align: right;
}

footer p {
    margin-bottom: 0.5em;
}

@media (max-width: 768px) {
    body {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 100vh;
        padding: 40px 15px 20px 15px;
    }

    main {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-bottom: 0;
    }

    h1.error-code {
        font-size: 56px;
    }

    footer {
        position: static;
        margin-top: 2em;
        padding-top: 2em;
        border-top: 1px solid #4d4d4d;
        text-align: center;
    }

    footer p {
        margin-bottom: 0.5em;
        font-size: 14px;
    }
}
