* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: black;
    color: white;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Roboto", sans-serif;
}


/* main container */

.main-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px;
    background-color: #111;
}


/* header */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: block;
}

.logo {
    max-width: 180px;
    height: auto;
    display: block;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 26px;
    height: 26px;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.social-link img {
    width: 26px;
    height: 26px;
    display: block;
    opacity: 0.8;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-link:hover img {
    opacity: 1;
}

.social-link:focus-visible {
    outline: 2px solid #f2f2f2;
    outline-offset: 4px;
}


/* section */

.section {
    padding: 32px 0;
}

.section-title {
    font-family: "Oswald", sans-serif;
    font-size: 28px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.about-section p {
    line-height: 1.6;
    color: grey;
    text-align: center;
    font-size: 18px;
}

.section-title-small {
    font-family: "Oswald", sans-serif;
    font-size: 20px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.generic-section p {
    line-height: 1.6;
    color: grey;
    text-align: left;
    font-size: 18px;
}


/* featured in-development card */

.featured-game-card {
    display: block;
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;

    margin: 0 auto;
    overflow: hidden;

    background-size: cover;
    background-position: center;

    color: #f2f2f2;

    border: 1px solid rgba(255, 255, 255, 0.08);

    transition:
        box-shadow 0.2s ease,
        filter 0.2s ease,
        border-color 0.2s ease;
}

.featured-game-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9),
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0)
    );

    transition: background 0.2s ease;
}

.featured-game-card:hover {
    filter: brightness(1.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.25);
}

.featured-game-card:hover::before {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85),
        rgba(0, 0, 0, 0.25),
        rgba(0, 0, 0, 0)
    );
}

.featured-game-content {
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 32px;
    z-index: 1;
}

.featured-game-content h3 {
    font-family: "Roboto", sans-serif;
    font-size: 34px;
    font-weight: normal;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.featured-game-content p {
    max-width: 800px;
    line-height: 1.5;
    color: #ddd;
    font-size: 16px;
    text-transform: uppercase;
}


/* featured card buttons */

.featured-game-buttons {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.game-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 16px;

    font-size: 14px;
    font-weight: 500;
    text-decoration: none;

    border: 1px solid rgba(255, 255, 255, 0.25);

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.game-button.primary {
    background: #f2f2f2;
    color: #111;
    border-color: #f2f2f2;
}

.game-button.primary:hover {
    background: #ffffff;
    border-color: #ffffff;
}

.game-button.secondary {
    background: rgba(0, 0, 0, 0.45);
    color: #f2f2f2;
}

.game-button.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
}

.game-button:focus-visible {
    outline: 2px solid #f2f2f2;
    outline-offset: 4px;
}


/* released games */

.released-games {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 24px;
}

.released-game-card {
    position: relative;
    display: block;

    width: 180px;
    aspect-ratio: 2 / 3;

    overflow: hidden;

    background-size: cover;
    background-position: center;

    text-decoration: none;
    color: #f2f2f2;

    border: 1px solid rgba(255, 255, 255, 0.08);

    transition:
        box-shadow 0.2s ease,
        filter 0.2s ease,
        border-color 0.2s ease;
}

.released-game-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.85),
        rgba(0, 0, 0, 0.25),
        rgba(0, 0, 0, 0)
    );

    transition: background 0.2s ease;
}

.released-game-card:hover {
    filter: brightness(1.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.25);
}

.released-game-card:hover::before {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.75),
        rgba(0, 0, 0, 0.18),
        rgba(0, 0, 0, 0)
    );
}

.released-game-card:focus-visible {
    outline: 2px solid #f2f2f2;
    outline-offset: 4px;
}

.released-game-card h3 {
    position: relative;
    z-index: 1;

    padding: 16px 12px 0;
    text-align: center;

    font-family: "Roboto", sans-serif;
    font-size: 18px;
    font-weight: normal;
    letter-spacing: 0.3px;
}


/* footer */

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 32px 0;
    margin-top: 32px;

    border-top: 1px solid #333;

    font-size: 14px;
    color: grey;
}

.site-footer p {
    line-height: 1.5;
}

.site-footer a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
}

.site-footer a:hover {
    color: #f2f2f2;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #f2f2f2;
}


/* mobile */

@media (max-width: 700px) {
    .main-container {
        padding: 24px 18px;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 12px;
    }

    .section {
        padding: 28px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .about-section p {
        font-size: 16px;
    }

    .featured-game-content {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .featured-game-content h3 {
        font-size: 24px;
    }

    .featured-game-content p {
        font-size: 14px;
    }

    .game-button {
        padding: 9px 14px;
        font-size: 13px;
    }

    .released-game-card {
        width: 140px;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 12px;
    }
}


/* reduced motion */

@media (prefers-reduced-motion: reduce) {
    .social-link,
    .featured-game-card,
    .released-game-card,
    .featured-game-card::before,
    .released-game-card::before,
    .game-button {
        transition: none;
    }

    .social-link:hover {
        transform: none;
    }
}