@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --fg: #111;
    --muted: #888;
    --border: #e5e5e5;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background: #fff;
    color: var(--fg);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 550;
    font-optical-sizing: none;
}

/* ── LINKS ── */
a {
    color: var(--fg);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}

a:hover {
    color: var(--muted);
    border-color: var(--muted);
}

/* ── MORE INFO BUTTON (DESKTOP) ── */
.more-info {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
    z-index: 10;
}

.more-info:hover {
    color: var(--fg);
}

/* ── HERO ── */
#hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

.logo {
    width: 296px;
    height: 296px;
    object-fit: contain;
    border-radius: 18px;
    flex-shrink: 0;
}

/* ── SECTIONS ── */
.sections-row {
    display: flex;
    border-top: 1px solid var(--border);
}

section {
    flex: 1;
    padding: 4rem 2rem;
    border-right: 1px solid var(--border);
}

section:last-child {
    border-right: none;
}

section h2 {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2rem;
}

section p {
    color: var(--fg);
    margin-bottom: 1rem;
}

section p:last-child {
    margin-bottom: 0;
}

/* ── FOOTER ── */
footer {
    text-align: center;
    padding: 3rem 2rem;
    font-size: 0.75rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

footer a {
    color: var(--muted);
}

footer a:hover {
    color: var(--muted);
    border-color: transparent;
}

/* ── SUBPAGES ── */
.page {
    max-width: 520px;
    margin: 0 auto;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 2rem;
}

.back {
    position: fixed;
    top: 1.5rem;
    left: 2rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    border: none;
    padding: 0;
    transition: color 0.2s;
    z-index: 10;
}

.back:hover {
    color: var(--fg);
    border-color: transparent;
}

.page h1 {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2rem;
}

.page h2 {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.page p {
    margin-bottom: 1rem;
}

.not-found-page {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(4rem, 8vw, 8rem) 2rem 6rem;
    text-align: center;
}

.not-found-page p {
    max-width: 36rem;
    margin: 0 auto 1rem;
    color: var(--fg);
}


.updated {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 2.5rem;
}

/* ── OUTLINE BUTTON ── */
.btn-outline {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 1.25rem;
    border-radius: 2px;
    cursor: pointer;
    background: none;
    color: var(--muted);
    border: 1px solid var(--border);
    transition: color 0.2s, border-color 0.2s;
}

.btn-outline:hover {
    color: var(--fg);
    border-color: var(--muted);
}

/* ── COOKIE BANNER ── */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    z-index: 100;
    font-size: 0.8rem;
    color: var(--muted);
}

#cookie-banner p {
    margin: 0;
    line-height: 1.5;
}

#cookie-banner a {
    color: var(--muted);
    border-bottom: 1px solid var(--border);
}

#cookie-banner a:hover {
    color: var(--fg);
    border-color: var(--muted);
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-banner-actions button {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 1.25rem;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

#cookie-decline {
    background: none;
    color: var(--muted);
    border: 1px solid var(--border);
}

#cookie-decline:hover {
    border-color: var(--muted);
    color: var(--fg);
}

#cookie-accept {
    background: var(--fg);
    color: #fff;
    border: 1px solid var(--fg);
}

#cookie-accept:hover {
    background: #333;
    border-color: #333;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
    .page {
        padding: 5rem 1.5rem;
    }

    #hero {
        padding: 0 2.5rem;
    }

    .logo {
        width: 200px;
        height: 200px;
    }

    .back {
        position: static;
        display: block;
        width: 100%;
        text-align: left;
        padding: 1rem 1.5rem 0 1.5rem;
    }

    /* no fixed positioning on mobile */
    .more-info {
        position: static;
        display: block;
        width: 100%;
        text-align: right;
        padding: 1rem 1.5rem 0 1.5rem;
        background: none;
        border: none;
        z-index: auto;
    }

    .sections-row {
        flex-direction: column;
    }

    section {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    section:last-child {
        border-bottom: none;
    }

    #cookie-banner {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding: 0.85rem 1.25rem;
    }

    .cookie-banner-actions {
        flex-shrink: 0;
    }
}

/* ── UTILITIES ── */
.text-center {
    text-align: center;
}

/* ── PORTFOLIO ── */
.portfolio-wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 6rem 2rem 5rem;
    min-height: 100svh;
}

.portfolio-wrap h1 {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 3rem;
}

.game-grid {
    display: flex;
    flex-direction: column;
    gap: 9rem;
    max-width: 900px;
    margin: 0 auto;
}

.game-card {
    display: flex;
    flex-direction: column;
}

/* Swap this div for an <img> when the real asset is ready */
.game-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

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

/* Placeholder — remove when real image is in place */
.game-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-image-placeholder span {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.game-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.store-btn {
    padding: 0.85rem 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    color: var(--muted);
    text-decoration: none;
    border: 1px solid var(--border);
    margin-top: -1px;
    transition: color 0.2s, border-color 0.2s;
    line-height: 1;
}

.store-btn:last-child {
    margin-left: -1px;
}

.store-btn:hover {
    color: var(--fg);
    border-color: var(--muted);
    position: relative;
    z-index: 1;
}

@media (max-width: 600px) {
    .portfolio-wrap {
        padding: 5rem 1.5rem 4rem;
    }

    .game-grid {
        gap: 1.5rem;
    }
}