@font-face {
    font-family: 'Minecraft';
    src: url('fonts/Minecraft.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.landingGrid {
    display: grid;
    height: 100%;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 25px;
    padding: 16px;
    box-sizing: border-box;
    border: none;
    outline: none;
}

.Box {
    border: 1px solid #c4a882;
    border-radius: 4px;
    box-shadow: 6px 6px 30px rgba(0,0,0,0.3);
    transition: 500ms;
}

a {
    text-decoration: none;
}

h1 {
    font-family: 'Minecraft', 'Exo 2', serif;
    font-weight: normal;
    color: #4A3728;
    font-size: clamp(22px, 4vw, 52px);
    text-align: center;
}

.projectBox {
    background-color: #faedcb;
}
.projectBox:hover {
    background-color: #E7D7B1;
}

.skillsBox {
    background-color: #c9e4de;
}
.skillsBox:hover {
    background-color: #ADCCC5;
}

.aboutMeBox {
    background-color: #c6def1;
}
.aboutMeBox:hover {
    background-color: #AAC5DE;
}

.roomBox {
    background-color: #f7d9c4;
}
.roomBox:hover {
    background-color: #E1C0A5;
}

.nameplate {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px 52px;
    background-color: #e8d0d0;
    border: 2px solid #c4a882;
    border-radius: 6px;
    box-shadow: 8px 8px 20px rgba(0,0,0,0.2);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nameplate h1 {
    letter-spacing: 0.04em;
    padding-left: 0.04em;
    text-align: center;
    font-size: clamp(26px, 4.5vw, 60px);
    line-height: 1;
    transform: translateY(0.13em);
}

/* ---- Mobile ---- */

@media (max-width: 768px) {
    /* body is a flex row on desktop; stack its children on mobile with the
       nameplate (a sibling of .container) pulled above the grid. */
    body {
        flex-direction: column;
        gap: 14px;
        padding: 16px 12px;
        box-sizing: border-box;
    }

    .container {
        width: 100%;
        height: auto;
        flex: 1;
        order: 2;
        display: flex;
        flex-direction: column;
    }

    .landingGrid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        gap: 14px;
        padding: 0;
        flex: 1;
    }

    .Box {
        min-height: 80px;
    }

    /* The nameplate is fixed-centered on desktop and would cover the stacked
       boxes on mobile, so pin it to the top as a static banner instead. */
    .nameplate {
        position: static;
        transform: none;
        width: 100%;
        order: 1;
        padding: 14px 24px;
        box-sizing: border-box;
    }
}