:root {
    --studio: #101d32;
    --studio-2: #172842;
    --studio-3: #0a1322;
    --paper: #f3e7bd;
    --paper-2: #f1ead7;
    --ink: #10141b;
    --muted: #aebcd0;
    --line: #49617f;
    --line-soft: #30435e;
    --red: #d74a30;
    --yellow: #f5dc63;
    --depth: #071923;
    --depth-2: #0b2a36;
    --cyan: #6eb9c2;
    --max: 1180px;
    --reading: 760px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--studio);
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--studio);
    color: #f7f2df;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.58;
    text-rendering: optimizeLegibility;
}

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

figure {
    margin: 0;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
}

    a:hover {
        text-decoration-thickness: 2px;
    }

    a:focus-visible {
        outline: 3px solid var(--yellow);
        outline-offset: 4px;
    }

::selection {
    background: var(--yellow);
    color: var(--ink);
}

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

.hero-grid > *,
.project-grid > *,
.game-title > *,
.story > *,
.poster-row > *,
.contact-grid > *,
.note-grid > * {
    min-width: 0;
}

.skip {
    position: fixed;
    left: 12px;
    top: -80px;
    z-index: 100;
    padding: 9px 12px;
    background: var(--yellow);
    color: var(--ink);
    font: 700 13px/1 Arial, Helvetica, sans-serif;
    text-decoration: none;
    border: 2px solid var(--ink);
}

    .skip:focus {
        top: 12px;
    }

header {
    border-bottom: 1px solid var(--line);
    background: var(--studio);
}

.head {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    font-family: "Arial Black", Arial, Helvetica, sans-serif;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: .045em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px 22px;
    flex-wrap: wrap;
    font: 700 12px/1.2 Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: .11em;
}

    nav a {
        position: relative;
        padding: 8px 0 7px;
        color: #e9eef5;
        text-decoration: none;
    }

        nav a::after {
            content: "";
            position: absolute;
            left: 0;
            right: 100%;
            bottom: 2px;
            height: 1px;
            background: currentColor;
            transition: right 120ms ease-out;
        }

        nav a:hover::after,
        nav a[aria-current="page"]::after {
            right: 0;
        }

h1,
h2,
h3 {
    margin: 0;
    font-family: "Arial Black", Arial, Helvetica, sans-serif;
    font-weight: 900;
    line-height: .94;
    letter-spacing: -.035em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(56px, 8.8vw, 126px);
}

h2 {
    font-size: clamp(38px, 5.6vw, 72px);
}

h3 {
    font-size: clamp(28px, 3.2vw, 44px);
}

.links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.linkbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 2px solid currentColor;
    padding: 10px 14px;
    font: 800 13px/1.15 Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: .055em;
    text-decoration: none;
    transition: transform 110ms ease-out, background-color 110ms linear, color 110ms linear;
}

    .linkbox::after {
        content: " ↗";
        margin-left: 7px;
        font-weight: 400;
    }

    .linkbox[href^="/games/"]::after,
    .linkbox[href$=".html"]::after,
    .linkbox[href^="#"]::after {
        content: " →";
    }

    .linkbox.hot {
        background: var(--yellow);
        border-color: var(--yellow);
        color: var(--ink);
    }

    .linkbox:hover {
        background: #f7f2df;
        border-color: #f7f2df;
        color: var(--ink);
        transform: translateY(-2px);
    }

.hero {
    padding: 66px 0 54px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(300px, .62fr);
    gap: 42px;
    align-items: end;
}

.hero-copy h1 {
    font-size: clamp(58px, 5.7vw, 94px);
    line-height: .92;
    max-width: 100%;
}

.hero-copy .small {
    margin: 0 0 18px;
    color: var(--muted);
    font: 700 12px/1.5 Arial, Helvetica, sans-serif;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.hero-copy > p:not(.small) {
    max-width: 700px;
    margin: 24px 0 0;
    font-size: clamp(19px, 1.8vw, 26px);
    line-height: 1.4;
}

.hero-figure {
    width: min(100%, 430px);
    justify-self: end;
    border-left: 10px solid var(--red);
    background: #0a1322;
}

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

.index {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.index-row {
    display: grid;
    grid-template-columns: 86px minmax(180px, 1fr) 175px 120px;
    gap: 18px;
    align-items: baseline;
    padding: 15px 0;
    border-bottom: 1px solid #314964;
}

    .index-row:last-child {
        border-bottom: 0;
    }

    .index-row strong {
        font-family: "Arial Black", Arial, Helvetica, sans-serif;
        font-size: 23px;
        line-height: 1.1;
    }

    .index-row span,
    .index-row a {
        color: #b9c5d5;
        font: 700 12px/1.4 Arial, Helvetica, sans-serif;
        text-transform: uppercase;
        letter-spacing: .08em;
    }

    .index-row a {
        color: var(--yellow);
        justify-self: end;
        font-weight: 800;
    }

.project {
    padding: 64px 0;
}

    .project.atomic {
        background: #182946;
        color: #f7f2df;
        border-top: 12px solid var(--yellow);
    }

    .project.depth {
        background: var(--depth);
        color: #e8f2f3;
        border-top: 12px solid var(--cyan);
    }

.project-grid {
    display: grid;
    grid-template-columns: minmax(290px, .88fr) minmax(0, 1.12fr);
    gap: 46px;
    align-items: start;
}

.project-text p {
    max-width: 610px;
}

    .project-text p:first-of-type {
        margin-top: 24px;
        font-size: 22px;
        line-height: 1.45;
    }

.project-meta {
    margin: 27px 0;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
}

    .project-meta div {
        display: grid;
        grid-template-columns: 135px minmax(0, 1fr);
        gap: 14px;
        padding: 9px 0;
        border-bottom: 1px solid rgba(255, 255, 255, .18);
    }

        .project-meta div:last-child {
            border-bottom: 0;
        }

    .project-meta dt {
        font: 700 11px/1.5 Arial, Helvetica, sans-serif;
        text-transform: uppercase;
        letter-spacing: .1em;
    }

    .project-meta dd {
        margin: 0;
    }

.project-figure {
    justify-self: end;
    width: min(100%, 760px);
}

    .project-figure img {
        width: 100%;
        border: 1px solid rgba(255, 255, 255, .35);
    }

.note {
    padding: 48px 0;
    background: var(--paper);
    color: var(--ink);
}

.note-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 42px;
}

.note p {
    max-width: 800px;
    margin: 0;
    font-size: 20px;
}

.contact {
    padding: 54px 0;
    background: var(--studio-3);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 46px;
}

.contact h2 {
    font-size: clamp(38px, 5vw, 64px);
}

.contact p {
    max-width: 520px;
}

.contact-list {
    border-top: 1px solid #4c5f79;
}

    .contact-list a {
        display: grid;
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 14px;
        padding: 13px 0;
        border-bottom: 1px solid #4c5f79;
        text-decoration: none;
    }

        .contact-list a:hover strong {
            text-decoration: underline;
        }

    .contact-list span {
        color: #a9b8ca;
        font: 700 11px/1.5 Arial, Helvetica, sans-serif;
        text-transform: uppercase;
        letter-spacing: .1em;
    }

    .contact-list strong {
        min-width: 0;
        overflow-wrap: anywhere;
        font-family: Arial, Helvetica, sans-serif;
    }

.game-hero {
    padding: 58px 0 38px;
}

    .game-hero.atomic {
        background: #182946;
        border-bottom: 12px solid var(--yellow);
    }

    .game-hero.depth {
        background: var(--depth);
        border-bottom: 12px solid var(--cyan);
    }

.game-title {
    display: grid;
    grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
    gap: 44px;
    align-items: end;
}

    .game-title p {
        max-width: 650px;
        margin: 20px 0 0;
        font-size: 21px;
    }

.game-capsule {
    width: min(100%, 720px);
    margin: 0 0 18px auto;
    border: 1px solid rgba(255, 255, 255, .35);
}

.game-body {
    background: var(--paper-2);
    color: var(--ink);
    padding: 58px 0 70px;
}

.story {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 42px;
    margin-bottom: 48px;
}

    .story h2 {
        font-size: clamp(31px, 4vw, 42px);
    }

.story-copy {
    max-width: var(--reading);
}

    .story-copy p:first-child {
        margin-top: 0;
    }

.full-image {
    width: min(100%, 800px);
    margin: 0 auto 58px;
}

    .full-image img {
        width: 100%;
        border: 1px solid #8a8067;
        background: #111;
    }

.poster-row {
    display: grid;
    grid-template-columns: minmax(240px, 420px) minmax(220px, 1fr);
    gap: 34px;
    align-items: start;
    margin-top: 30px;
}

    .poster-row figure {
        width: min(100%, 420px);
        justify-self: start;
    }

    .poster-row img {
        width: 100%;
        border: 1px solid #8a8067;
    }

    .poster-row p {
        margin-top: 0;
        font-size: 20px;
    }

.quote {
    margin: 62px 0 0;
    font: 900 clamp(32px, 4.8vw, 62px)/1.04 "Arial Black", Arial, Helvetica, sans-serif;
    letter-spacing: -.03em;
}

.socials {
    padding: 44px 0 50px;
    background: var(--studio-3);
}

    .socials h2 {
        font-size: clamp(34px, 4.8vw, 58px);
    }

.social-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
    border-top: 1px solid #40536e;
}

    .social-list a {
        padding: 14px 0;
        border-bottom: 1px solid #40536e;
        font: 700 15px/1.4 Arial, Helvetica, sans-serif;
        text-decoration: none;
    }

        .social-list a:nth-child(odd) {
            padding-right: 24px;
        }

        .social-list a:nth-child(even) {
            padding-left: 24px;
            border-left: 1px solid #40536e;
        }

        .social-list a:hover {
            color: var(--yellow);
            text-decoration: underline;
        }

.legal {
    min-height: 70vh;
    padding: 56px 0 76px;
    background: var(--paper-2);
    color: var(--ink);
}

    .legal a {
        text-decoration: underline;
    }

.legal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 18px;
    margin-bottom: 34px;
    border-bottom: 2px solid var(--ink);
}

    .legal-head h1 {
        font-size: clamp(44px, 6.6vw, 82px);
    }

.langs {
    white-space: nowrap;
    font: 700 12px/1.5 Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: .08em;
}

    .langs a {
        margin-left: 14px;
    }

.legal section {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 32px;
    padding: 21px 0;
    border-top: 1px solid #8c846f;
}

    .legal section:first-of-type {
        border-top: 0;
    }

.legal h2 {
    font-size: 23px;
}

.legal p,
.legal dl {
    max-width: 820px;
    margin: 0;
}

    .legal dl div {
        display: grid;
        grid-template-columns: 165px minmax(0, 1fr);
        gap: 12px;
        padding: 5px 0;
    }

.legal dt {
    font: 700 12px/1.5 Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.legal dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.error {
    min-height: 70vh;
    padding: 80px 0;
    background: #182946;
    color: #f7f2df;
}

    .error h1 {
        color: var(--yellow);
        font-size: clamp(96px, 18vw, 230px);
    }

    .error p {
        max-width: 620px;
        font-size: 22px;
    }

footer {
    padding: 22px 0 36px;
    background: #07101d;
    color: #9cafc6;
    border-top: 1px solid #24384f;
    font: 12px/1.6 Arial, Helvetica, sans-serif;
}

.foot {
    display: flex;
    justify-content: space-between;
    gap: 18px 30px;
    flex-wrap: wrap;
}

    .foot a {
        color: #e9eef5;
    }

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

    .hero-grid,
    .project-grid,
    .game-title,
    .story,
    .contact-grid,
    .note-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 48px;
    }

    .hero-grid {
        gap: 32px;
    }

    .hero-copy h1 {
        font-size: clamp(54px, 13vw, 88px);
    }

    .hero-figure {
        width: min(100%, 560px);
        justify-self: start;
    }

    .index-row {
        grid-template-columns: 72px minmax(0, 1fr) 150px 110px;
        gap: 14px;
    }

    .project {
        padding: 50px 0;
    }

    .project-grid {
        gap: 30px;
    }

    .project-figure {
        justify-self: start;
        width: min(100%, 720px);
    }

    .note-grid,
    .story {
        gap: 16px;
    }

    .story {
        margin-bottom: 38px;
    }

    .story-copy {
        max-width: 760px;
    }

    .game-capsule {
        width: min(100%, 720px);
        margin-left: 0;
    }

    .game-body {
        padding-top: 46px;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 16px;
    }

    .wrap {
        width: calc(100% - 24px);
    }

    .head {
        min-height: 0;
        padding: 15px 0 12px;
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .logo {
        font-size: 18px;
    }

    nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        border-top: 1px solid #314964;
    }

        nav a {
            min-width: 0;
            padding: 10px 8px 9px 0;
            border-bottom: 1px solid #314964;
            overflow-wrap: anywhere;
        }

            nav a:nth-child(even) {
                padding-left: 12px;
                border-left: 1px solid #314964;
            }

            nav a::after {
                display: none;
            }

            nav a[aria-current="page"] {
                color: var(--yellow);
            }

    h1 {
        font-size: clamp(48px, 17vw, 76px);
    }

    h2 {
        font-size: clamp(34px, 11vw, 52px);
    }

    .hero {
        padding: 38px 0 42px;
    }

    .hero-copy h1 {
        font-size: clamp(48px, 16vw, 74px);
    }

    .hero-copy > p:not(.small) {
        font-size: 19px;
    }

    .hero-figure {
        width: min(100%, 430px);
        border-left-width: 7px;
    }

    .links {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .linkbox {
        width: 100%;
        min-height: 46px;
        text-align: center;
    }

    .index-row {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 4px 12px;
        padding: 14px 0;
    }

        .index-row > :nth-child(1) {
            grid-column: 1;
            grid-row: 1 / span 2;
        }

        .index-row > :nth-child(2) {
            grid-column: 2;
        }

        .index-row > :nth-child(3) {
            grid-column: 2;
        }

        .index-row > :nth-child(4) {
            grid-column: 2;
            justify-self: start;
            margin-top: 5px;
        }

        .index-row strong {
            font-size: 20px;
        }

    .project-text p:first-of-type {
        font-size: 19px;
    }

    .project-meta div {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 10px;
    }

    .note p {
        font-size: 18px;
    }

    .contact-list a {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 10px;
    }

    .game-hero {
        padding: 40px 0 30px;
    }

    .game-title {
        gap: 30px;
    }

        .game-title p,
        .poster-row p {
            font-size: 18px;
        }

    .full-image {
        margin-bottom: 42px;
    }

    .poster-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

        .poster-row figure {
            width: min(100%, 420px);
        }

    .quote {
        margin-top: 46px;
    }

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

        .social-list a:nth-child(odd),
        .social-list a:nth-child(even) {
            padding: 13px 0;
            border-left: 0;
        }

    .legal-head {
        display: block;
    }

    .langs {
        margin-top: 14px;
    }

        .langs a {
            margin: 0 14px 0 0;
        }

    .legal section {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .legal dl div {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 8px 0;
    }

    .foot {
        flex-direction: column;
    }
}

@media (max-width: 390px) {
    .wrap {
        width: calc(100% - 20px);
    }

    .logo {
        white-space: normal;
    }

    nav {
        font-size: 11px;
    }

    h1 {
        font-size: clamp(44px, 16vw, 62px);
    }

    .project-meta div,
    .contact-list a {
        grid-template-columns: 1fr;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
