h1 {
    max-width: 8ch;
}

main {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    align-items: center;
    width: 100%;
    min-height: 100vh;
    gap: clamp(24px, 4vw, 64px);
    padding: clamp(20px, 5vw, 80px);
}

.main-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 48px;
}

.cool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}

.cool-grid article {
    min-width: 0;
    border-radius: 24px;
    background: #f2f2f2;
    padding: 8px;
}

.cool-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 6 / 4;
    border-radius: 16px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.2s ease-in-out;
}

.cool-grid img:hover {
    filter: grayscale(0%);
}

.cool-grid h2 {
    margin: 12px 8px 8px;
    font-family: "Inter Display", "Inter", sans-serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.05;
}

.cool-grid p {
    margin: 0 8px 12px;
    font-family: "Inter Display", "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.3;
    opacity: 0.7;
}

@media (max-width: 900px) {
    h1 {
        max-width: 9ch;
        text-align: center;
        transform-origin: center center;
    }

    main {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 32px;
        padding: 24px 16px 40px;
    }

    .main-title {
        align-items: center;
        gap: 18px;
    }

    #backBtn {
        margin-top: 0;
    }

    .cool-grid {
        grid-template-columns: 1fr;
        width: min(100%, 560px);
        align-self: center;
    }
}

@media (max-width: 420px) {
    .cool-grid h2 {
        font-size: 24px;
    }

    .cool-grid p {
        font-size: 15px;
    }
}
