.home-body {
    background-color: #ffffff;
    color: #000000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    padding: 2rem 1rem 4rem;
}

.site-attribution {
    position: fixed;
    right: 1em;
    bottom: 0.5em;
}

.mechmath-link {
    position: fixed;
    bottom: 0.5em;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25em 0.5em;
    border: 2px solid black;
    color: inherit;
    background-color: white;
    text-decoration: none;
}

.options-header {
    text-align: center;
    font-size: 3em;
    margin: 0.5em 0 1em;
}

/* 3x2 Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1080px;
    width: 100%;
    box-sizing: border-box;
}

/* Card Container */
.options-card {
    display: flex;
    flex-direction: column;
    color: black;
    text-decoration: none;
    border: 2px solid black;
    border-radius: 10px;
    background-color: white;
    overflow: hidden;
    transition: background-color 0.25s ease-out;
}

/* Full card turns #CCC on hover */
.options-card:hover {
    background-color: #CCC;
}

/* Image Slot */
.card-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-bottom: 2px solid black;
    background-color: #ffffff;
    overflow: hidden;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Bottom Label with original underline animation */
.card-footer {
    text-align: center;
    font-size: 1.35em;
    padding: 0.75em 0.5em;
}

.card-footer span {
    display: inline-block;
    position: relative;
}

.card-footer span::after {
    content: "";
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -1px;
    left: 0;
    background-color: black;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.options-card:hover .card-footer span::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .site-attribution {
        bottom: 3em;
        font-size: 0.8em;
    }
}