:root {
    --bg: #0b061d;
    --bg-soft: #12092c;
    --ink: #f8eddb;
    --muted: #a79bb7;
    --purple: #aa4cdf;
    --purple-soft: #472064;
    --line: rgba(248, 237, 219, 0.16);
    --max: 1120px;
    --mono: "JetBrains Mono", monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 15px;
    line-height: 1.7;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 100;
    padding: 0.7rem 1rem;
    transform: translateY(-150%);
    background: var(--ink);
    color: var(--bg);
}

.skip-link:focus {
    transform: translateY(0);
}

.wrap {
    width: min(calc(100% - 3rem), var(--max));
    margin-inline: auto;
}

.site-header {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}

.nav {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.brand img {
    width: 42px;
    height: 42px;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.25rem);
}

.nav-links a {
    color: var(--muted);
    font-size: 0.74rem;
    text-decoration: none;
    text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--ink);
}

.studio-hero {
    position: relative;
    max-width: 1500px;
    margin-inline: auto;
    border-bottom: 1px solid var(--line);
    background: #0c071d;
}

.studio-hero picture,
.studio-hero picture img {
    width: 100%;
}

.studio-hero picture img {
    min-height: 380px;
    max-height: 560px;
    object-fit: cover;
}

.hero-copy {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: none;
}

.hero-copy p,
.section-title > p,
.contact-inner > div > p,
.kicker {
    margin: 0 0 0.7rem;
    color: var(--purple);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.2;
}

h1 {
    max-width: 10ch;
    margin-bottom: 0;
    font-size: clamp(2.4rem, 5.5vw, 5rem);
    letter-spacing: -0.07em;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(1.7rem, 3.6vw, 3rem);
    letter-spacing: -0.06em;
}

h3 {
    font-size: 1rem;
}

.intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 3rem;
    padding-block: clamp(3.5rem, 7vw, 6rem);
}

.intro > p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.arrow-link,
.game-list a,
.game-list > article > span,
.facts > a {
    flex: 0 0 auto;
    color: var(--ink);
    font-size: 0.76rem;
    text-decoration: none;
}

.arrow-link:hover,
.game-list a:hover,
.facts > a:hover {
    color: var(--purple);
}

.section {
    padding-block: clamp(5rem, 10vw, 8.5rem);
}

.section-title {
    margin-bottom: clamp(2rem, 5vw, 4rem);
}

.featured-game {
    border-bottom: 1px solid var(--line);
}

.featured-art {
    width: 100%;
    aspect-ratio: 920 / 430;
    object-fit: cover;
}

.featured-text {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 0.7fr);
    gap: clamp(2rem, 6vw, 5rem);
    padding-block: 2rem 2.5rem;
}

.featured-text > p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    gap: 0.45rem;
}

.tags span {
    padding: 0.25rem 0.55rem;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.66rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.4rem;
    margin-top: 1.5rem;
}

.featured-text .actions {
    grid-column: 1 / -1;
    margin-top: -0.5rem;
}

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0.65rem 0.95rem;
    border: 1px solid var(--ink);
    color: var(--ink);
    font-size: 0.75rem;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.button:hover {
    background: var(--ink);
    color: var(--bg);
}

.text-button {
    color: var(--muted);
    font-size: 0.75rem;
    text-decoration: none;
}

.text-button:hover {
    color: var(--ink);
}

.game-list {
    margin-top: clamp(4rem, 8vw, 7rem);
    border-top: 1px solid var(--line);
}

.game-list article {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.8fr) auto;
    align-items: center;
    gap: 2rem;
    padding-block: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.game-list article > div > p {
    margin: 0 0 0.2rem;
    color: var(--purple);
    font-size: 0.64rem;
    text-transform: uppercase;
}

.game-list h3,
.game-list article > p {
    margin: 0;
}

.game-list article > p {
    color: var(--muted);
    font-size: 0.82rem;
}

.game-list > article > span {
    color: var(--muted);
}

.game-list .poki-link {
    display: inline-block;
    justify-self: end;
    line-height: 1;
}

.poki-link img {
    width: auto;
    height: 34px;
}

.team-section {
    border-top: 1px solid var(--line);
}

.team-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
}

.team-list article {
    padding: 1.5rem 1.5rem 1.5rem 0;
    border-bottom: 1px solid var(--line);
}

.team-list article + article {
    padding-left: 1.5rem;
    border-left: 1px solid var(--line);
}

.team-list h3 {
    margin-bottom: 0.4rem;
}

.team-list p {
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
}

.contact {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
}

.contact-inner {
    display: flex;
    min-height: 300px;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
}

.contact-links a {
    color: var(--ink);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    text-decoration: none;
}

.contact-links a:hover {
    color: var(--purple);
}

.footer {
    padding-block: 2rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    color: var(--muted);
    font-size: 0.7rem;
}

.footer-inner p {
    margin: 0;
}

.footer-inner > div {
    display: flex;
    gap: 1.5rem;
}

.footer-inner a {
    text-decoration: none;
}

.footer-inner a:hover {
    color: var(--ink);
}

/* Press kit */
.press-hero {
    display: grid;
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 7rem);
    padding-block: clamp(4rem, 9vw, 8rem);
}

.press-logo {
    width: min(100%, 460px);
    margin-block: 2rem;
}

.press-hero > div > p:not(.kicker) {
    color: var(--muted);
}

.press-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.press-layout {
    display: grid;
    grid-template-columns: minmax(230px, 0.32fr) minmax(0, 0.68fr);
    align-items: start;
    gap: clamp(3rem, 9vw, 8rem);
    padding-block: clamp(5rem, 10vw, 9rem);
    border-top: 1px solid var(--line);
}

.facts h2 {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    letter-spacing: -0.04em;
}

.facts dl {
    margin: 0 0 1.5rem;
}

.facts dl > div {
    padding-block: 0.8rem;
    border-top: 1px solid var(--line);
}

.facts dt {
    margin-bottom: 0.2rem;
    color: var(--purple);
    font-size: 0.62rem;
    text-transform: uppercase;
}

.facts dd {
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
}

.press-copy > section + section {
    margin-top: clamp(4rem, 8vw, 7rem);
    padding-top: clamp(4rem, 8vw, 7rem);
    border-top: 1px solid var(--line);
}

.press-copy h2 {
    margin-bottom: 1.5rem;
}

.press-copy section > p:not(.kicker) {
    color: var(--muted);
}

.press-copy strong {
    color: var(--ink);
}

.plain-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.plain-list li {
    padding-block: 1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.plain-list li::before {
    margin-right: 0.8rem;
    color: var(--purple);
    content: "+";
}

.press-media {
    padding-block: clamp(5rem, 10vw, 8.5rem);
    border-block: 1px solid var(--line);
    background: var(--bg-soft);
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.screenshot-grid a:first-child {
    grid-column: 1 / -1;
}

.screenshot-grid img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.download-list {
    border-top: 1px solid var(--line);
}

.download-list a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 0.4fr) auto;
    gap: 1.5rem;
    padding-block: 1.2rem;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

.download-list small {
    color: var(--muted);
}

.download-list b {
    color: var(--purple);
}

.download-list a:hover span {
    color: var(--purple);
}

@media (max-width: 820px) {
    .featured-text,
    .press-hero,
    .press-layout {
        grid-template-columns: 1fr;
    }

    .featured-text .actions {
        grid-column: auto;
    }

    .game-list article {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .game-list .poki-link {
        justify-self: start;
    }

    .team-list {
        grid-template-columns: 1fr;
    }

    .team-list article + article {
        padding-left: 0;
        border-left: 0;
    }

    .press-cover {
        order: -1;
    }
}

@media (max-width: 620px) {
    .wrap {
        width: min(calc(100% - 2rem), var(--max));
    }

    .nav {
        min-height: 98px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 0.65rem;
    }

    .brand img {
        width: 34px;
        height: 34px;
    }

    .nav-links {
        width: 100%;
        gap: 1rem;
        overflow-x: auto;
        padding-bottom: 0.2rem;
    }

    .nav-links a {
        flex: 0 0 auto;
        font-size: 0.67rem;
    }

    .studio-hero picture img {
        min-height: auto;
        max-height: none;
        aspect-ratio: 1;
    }

    .hero-copy {
        position: static;
        padding-block: 2.5rem;
        pointer-events: auto;
    }

    .hero-copy h1 {
        font-size: 2.5rem;
    }

    .intro,
    .contact-inner,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .intro {
        gap: 1.5rem;
    }

    .featured-text {
        padding-block: 1.5rem 2rem;
    }

    .contact-inner {
        min-height: 280px;
        justify-content: center;
    }

    .contact-links {
        align-items: flex-start;
    }

    .footer-inner {
        gap: 1rem;
    }

    .screenshot-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-grid a:first-child {
        grid-column: auto;
    }

    .download-list a {
        grid-template-columns: 1fr auto;
    }

    .download-list small {
        grid-column: 1;
    }

    .download-list b {
        grid-column: 2;
        grid-row: 1 / 3;
        align-self: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
