/* The home page and Factory Redux's page: loaded by index.html and games/factory-redux.html only, after
   style.css. Values are on a 4px grid; the poster's colours are the game's own (violet #33207a, gold #ffd23a). */

/* The home page opens with the studio's own line, its h1, set as the text it was. */
.opening {
    max-width: 40rem;
    margin: 0 0 40px;
}

.opening-line {
    font-family: 'Patua One', serif;
    font-size: 28px;
    line-height: 1.3;
    margin: 0 0 12px;
    text-wrap: pretty;
}

.opening-more {
    color: #5f5a68;
    margin: 0;
}

/* The Factory Redux poster: inset on the paper and rounded, the one saturated object on the screen. */
.launch {
    background: #33207a;
    color: #c9c0ea;
    border-radius: 20px;
    padding: 48px;
}

.launch-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
    align-items: center;
}

/* Safari: let the columns shrink below the video's intrinsic width. */
.launch-grid > * {
    min-width: 0;
}

.launch h1,
.launch h2 {
    color: #fff;
    font-size: 44px;
    line-height: 1.1;
    margin: 0 0 16px;
}

.launch-sub {
    color: #c9c0ea;
    font-size: 16px;
    margin: -8px 0 16px;
}

.launch-lede {
    color: #fff;
    font-size: 20px;
    line-height: 28px;
    margin: 0 0 12px;
    max-width: 32rem;
}

/* #c9c0ea on the violet is 7.5:1. */
.launch-facts {
    font-size: 17px;
    line-height: 26px;
    margin: 0 0 24px;
    max-width: 32rem;
}

.launch-status {
    color: #fff;
    text-wrap: balance;
    font-size: 16px;
    line-height: 24px;
    margin: 0 0 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* The one signature: a short run of belt chevrons, as on the game's belts. */
.belt {
    display: inline-block;
    width: 40px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='12' viewBox='0 0 10 12'%3E%3Cpath d='M2 2l4 4-4 4' fill='none' stroke='%23ffd23a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") repeat-x left center / 10px 12px;
    flex: none;
}

/* Launch day: the line under the badges on the home page. */
.launch-more {
    margin: 16px 0 0;
    font-size: 15px;
}

.launch-more a {
    color: #ffb547;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.launch-more a:hover {
    color: #fff;
}

/* Launch day: the official badges at one visible height, a quarter of it clear around them. Google's file
   carries its own clear space (41 of its 250 px each side), so it is drawn larger and pulled in by it. */
.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 0;
}

.store-badges a {
    display: block;
    line-height: 0;
}

.store-badges img {
    height: 48px;
    width: auto;
}

.store-badges .badge-google {
    height: 72px;
    margin: -12px;
}

/* In the works: a plain block with a 4px edge in The Bank Job remake's night colour. */
.works {
    border-left: 4px solid #3b3a5a;
    padding-left: 20px;
}

.works h3 {
    margin: 0 0 8px;
}

.works p {
    color: #5f5a68;
    max-width: 40rem;
    margin: 0;
}

.more-link {
    margin: 24px 0 0;
    font-weight: 700;
}

/* The game page: the poster is the first block and carries the h1. */
.shots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 40px 0 64px;
}

.shots img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 552;
    border-radius: 12px;
    box-shadow: 0 0 0 1px #e3dbc9;
}

.section-head h2 {
    margin: 0 0 8px;
}

.section-head p {
    margin: 0 0 24px;
    max-width: 40rem;
    text-wrap: balance;
}

.section-head .page-meta {
    margin: -12px 0 24px;
}

/* The packs sit in the screenshots' three columns, each a violet-on-paper panel with its square picture on
   top at the panel's full width: the page's best moment. */
.packs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 64px;
}

.packs > * {
    min-width: 0;
}

.pack {
    padding: 16px;
    background: #ece6f6;
    border: 1px solid #d9d0ee;
    border-radius: 12px;
}

.pack img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 8px;
    margin-bottom: 12px;
}

.pack h3 {
    font-size: 20px;
    margin: 0 0 4px;
}

.pack p {
    color: #5f5a68;
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .launch-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    /* The name, the pitch and the way to get it come first, the trailer after them. */
    .launch-copy {
        order: -1;
    }
}

@media (max-width: 768px) {
    .launch {
        border-radius: 16px;
        padding: 20px;
    }

    .launch h1,
    .launch h2 {
        font-size: 32px;
    }

    .launch-lede {
        font-size: 18px;
        line-height: 26px;
    }

    .shots {
        gap: 12px;
        margin-bottom: 48px;
    }

    .store-badges img {
        height: 44px;
    }

    .store-badges .badge-google {
        height: 66px;
        margin: -11px;
    }
}

@media (max-width: 600px) {
    .shots {
        grid-template-columns: minmax(0, 1fr);
    }

    .packs {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    /* Phones: each pack a row, the picture at 96px beside its name. */
    .pack {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 16px;
        align-items: center;
        padding: 12px;
    }

    .pack img {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .opening-line {
        font-size: 22px;
    }
}
