/* Stranogene customizations. Keep after Strata's main.css. */
:root {
    --ink: #fff;
    --muted: #2a2b2b;
    --accent: #ef5966;
    --line: #e5e8e8;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 28px;
}

body,
input,
select,
textarea {
    font-family: "Source Sans Pro", "Segoe UI", sans-serif;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.65;
}

body {
    background: #fff;
}

h1,
h2,
h3 {
    color: #2a2b2b;
    font-weight: 400;
}

a {
    color: var(--accent);
    text-decoration: none;
    border-bottom-color: currentColor;
}

a:hover {
    color: #155764 !important;
    border-bottom-color: transparent;
}

a:focus-visible {
    outline: 3px solid #df8493;
    outline-offset: 6px;
    border-radius: 2px;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: 12px;
    z-index: 10;
    background: #fff;
    padding: 10px 16px;
    transform: translateY(-180%);
}

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

#header {
    background: var(--ink);
    width: 30%;
    padding: 64px 46px 40px;
    text-align: left;
    color: #d0d5d6;
    align-items: flex-start;
    justify-content: space-between;
    overflow-y: auto;
}

#header>.inner {
    margin: 0;
    flex-grow: 0;
}

.studio-logo {
    display: block;
    border: 0;
    max-width: 245px;
    margin-bottom: 26px;
    background: #fff;
    padding: 14px 12px;
}

.studio-logo img {
    display: block;
    width: 100%;
    height: auto;
}

#header .studio-caption {
    margin: 0 0 42px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
}

.section-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

#header .section-nav a {
    color: #bac1c3;
    border: 0;
    font-size: 19px;
    line-height: 1.6;
}

#header .section-nav a:hover,
#header .section-nav a[aria-current] {
    color: #fff !important;
}

#header .section-nav a[aria-current]::after {
    content: " /";
    color: #8bc4cf;
    margin-left: 5px;
}

.sidebar-bottom {
    margin-top: 80px;
}

#header .sidebar-note {
    color: #fff;
    font-size: 21px;
    line-height: 1.5;
    margin: 0 0 24px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-links li {
    padding: 0;
}

#header .social-links a {
    color: #656a6c !important;
    font-size: 14px;
}

#header .social-links a:hover {
    color: #00a9b7 !important;
}

#main {
    margin-left: 30%;
    width: 70%;
    max-width: none;
    padding: 62px clamp(32px, 4.3vw, 80px) 32px;
}

#main>section {
    border-top: 1px solid var(--line);
    margin: 46px 0 0;
    padding: 42px 0 0;
    scroll-margin-top: 28px;
}

#main>section:first-child {
    border: 0;
    margin: 0;
    padding: 0;
}

.section-label {
    color: var(--muted);
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: 0 0 12px;
}

#about h1 {
    font-size: clamp(34px, 3.1vw, 49px);
    line-height: 1.16;
    letter-spacing: -.025em;
    margin: 0 0 22px;
}

.about-copy {
    color: var(--muted);
    max-width: 620px;
    margin: 0;
    font-size: 18px;
    line-height: 1.65;
}

.section-heading {
    margin-bottom: 27px;
}

.section-heading h2 {
    font-size: 27px;
    line-height: 1.25;
    margin: 0 0 7px;
    letter-spacing: -.02em;
}

.section-heading>p {
    color: var(--muted);
    font-size: 15px;
    margin: 0;
}

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

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

.game-art {
    display: block;
    border: 0;
    overflow: hidden;
    background: #eceeee;
    margin-bottom: 20px;
}

.game-art img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 924 / 530;
    object-fit: cover;
    transition: opacity .15s ease;
}

.game-art:hover img {
    opacity: .9;
}

.game-type {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin: 0 0 6px;
    line-height: 1.5;
}

.game-card h3 {
    font-size: 24px;
    margin: 0 0 9px;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.game-description {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 19px;
}

.game-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: auto;
    font-size: 15px;
}

.text-link {
    color: var(--muted);
    border-bottom: 1px solid #9bbec4;
    padding-bottom: 2px;
}

.text-link span {
    margin-left: 5px;
    color: var(--muted);
}

.secondary-link {
    color: var(--muted);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 24px;
}

.team-member {
    min-width: 0;
}

.team-photo {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    margin-bottom: 15px;
}

.team-member h3 {
    font-size: 18px;
    line-height: 1.3;
    margin: 0 0 7px;
}

.team-title {
    color: var(--accent);
    font-size: 15px;
    line-height: 1.4;
    margin: 0 0 6px;
}

.team-role {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.photo-pending {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf0ee;
    color: #667b7f;
    font-size: 30px;
    letter-spacing: -.03em;
}

#footer {
    position: static;
    padding: 32px 0 0;
    margin: 42px 0 0;
    width: auto;
    text-align: left;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
}

#footer p {
    margin: 0;
}

#footer a {
    color: inherit;
}

@media (max-width: 1200px) and (min-width: 981px) {
    #header {
        padding: 52px 30px 32px;
        width: 28%;
    }

    #main {
        width: 72%;
        margin-left: 28%;
        padding-left: 36px;
        padding-right: 36px;
    }

    .team-grid {
        gap: 32px 18px;
    }
}

@media (max-width: 980px) {
    #header {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        padding: 32px 40px;
        display: block;
        overflow: visible;
    }

    #header>.inner {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        column-gap: 30px;
    }

    .studio-logo {
        max-width: 205px;
        margin: 0;
    }

    #header .studio-caption {
        grid-column: 1;
        font-size: 13px;
        margin: 12px 0 0;
    }

    .section-nav {
        grid-column: 2;
        grid-row: 1 / 3;
        flex-direction: row;
        gap: 20px;
    }

    #header .section-nav a {
        font-size: 16px;
    }

    #header .section-nav a[aria-current]::after {
        content: none;
    }

    .sidebar-bottom {
        margin-top: 24px;
        display: flex;
        align-items: center;
        gap: 24px;
    }

    #header .sidebar-note {
        display: none;
    }

    #main {
        width: 100%;
        margin-left: 0;
        padding: 42px 40px 28px;
    }

    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #about h1 {
        font-size: 40px;
    }
}

@media (max-width: 560px) {
    #header {
        padding: 28px 24px;
    }

    #header>.inner {
        display: block;
    }

    .studio-logo {
        max-width: 185px;
    }

    #header .studio-caption {
        margin: 12px 0 21px;
    }

    .section-nav {
        gap: 28px;
    }

    .section-nav a {
        padding: 3px 0;
    }

    .sidebar-bottom {
        margin-top: 20px;
    }

    .social-links {
        gap: 10px 18px;
    }

    #main {
        padding: 34px 24px 24px;
    }

    #about h1 {
        font-size: 34px;
    }

    .about-copy {
        font-size: 17px;
    }

    #main>section {
        margin-top: 34px;
        padding-top: 32px;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .team-member {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr);
        column-gap: 18px;
    }

    .team-photo {
        grid-column: 1;
        grid-row: 1 / 4;
        width: 72px;
        height: 72px;
        margin: 0;
    }

    .team-member h3,
    .team-title,
    .team-role {
        grid-column: 2;
    }

    .team-member h3 {
        font-size: 17px;
        margin-bottom: 5px;
    }

    .team-title {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .team-role {
        font-size: 12px;
    }
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

}

/* Colore normale del menu */
#header .section-nav a {
    color: #656a6c;
}

/* Voce attiva e passaggio del mouse */
#header .section-nav a:hover,
#header .section-nav a[aria-current] {
    color: #00a9b7 !important;
}

/* Indicatore della voce attiva */
#header .section-nav a[aria-current]::after {
    color: #00a9b7;
}