:root {
    color-scheme: dark;
    --ink: #07131d;
    --ink-soft: #0c1d29;
    --paper: #f5f1e8;
    --white: #ffffff;
    --blue: #2f91ee;
    --orange: #ff6a2a;
    --line: rgba(255, 255, 255, 0.17);
    --display: "League Spartan", system-ui, sans-serif;
    --serif: "Merriweather", Georgia, serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--white);
    font-family: var(--display);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.hero {
    min-height: 100svh;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.hero-art,
.hero-scrim {
    position: absolute;
    inset: 0;
}

.hero-art {
    z-index: -3;
    background: var(--ink) url("../assets/img/keyart/library_hero.png") center / cover no-repeat;
    transform: scale(1.012);
}

.hero-scrim {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(3, 10, 15, 0.95) 0%, rgba(3, 10, 15, 0.82) 17%, rgba(3, 10, 15, 0.18) 47%, rgba(3, 10, 15, 0.03) 72%),
        linear-gradient(180deg, rgba(3, 10, 15, 0.6) 0%, transparent 25%, transparent 65%, rgba(3, 10, 15, 0.65) 100%);
}

.site-header {
    width: min(100% - 64px, 1440px);
    height: 110px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.studio-mark {
    display: block;
    width: 160px;
}

.studio-mark img {
    width: 100%;
    max-height: 82px;
    object-fit: contain;
}

.header-link {
    display: flex;
    gap: 10px;
    align-items: center;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 180ms ease;
}

.header-link:hover {
    color: var(--white);
}

.hero-content {
    width: min(100% - 64px, 1440px);
    min-height: calc(100svh - 110px);
    margin: 0 auto;
    padding: clamp(48px, 7vh, 92px) 0 80px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.game-logo {
    width: clamp(280px, 30vw, 450px);
    height: auto;
    margin: -28px 0 4px;
    transform: translateX(-2.6%);
}

.hero-copy {
    max-width: 530px;
}

.eyebrow {
    margin: 0 0 16px;
    color: #8dccff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1,
.updates h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(3.2rem, 6.1vw, 6.5rem);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 0.82;
    text-wrap: balance;
}

.hero-summary {
    max-width: 510px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--serif);
    font-size: clamp(0.88rem, 1.15vw, 1.03rem);
    font-weight: 300;
    line-height: 1.75;
}

.store-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
    margin-top: 34px;
}

.switch-announcement {
    display: grid;
    grid-template-columns: 96px 138px;
    gap: 8px;
}

.switch-logo {
    display: block;
    width: 96px;
    height: 96px;
}

.switch-release {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(9, 21, 31, 0.82);
    font-family: "Roboto", Arial, sans-serif;
    line-height: 1;
    backdrop-filter: blur(10px);
}

.switch-release small {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.switch-release strong {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.steam-announcement {
    display: grid;
    grid-template-columns: 96px 138px;
    gap: 8px;
    color: var(--white);
    text-decoration: none;
    transition: transform 180ms ease;
}

.steam-announcement:hover {
    transform: translateY(-3px);
}

.steam-mark,
.steam-release {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(9, 21, 31, 0.82);
    backdrop-filter: blur(10px);
}

.steam-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(39, 52, 61, 0.92);
    font-size: 2.8rem;
}

.steam-release {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.steam-release small {
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.steam-release strong {
    font-size: 1.05rem;
}

.platform-date {
    display: block;
    margin-top: 7px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    opacity: 0.76;
}

.scroll-cue {
    position: absolute;
    right: 32px;
    bottom: 36px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-decoration: none;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.scroll-cue i {
    font-size: 1rem;
}

.updates {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--ink-soft);
}

.updates::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 15, 23, 0.8) 0%, rgba(5, 15, 23, 0.58) 45%, rgba(5, 15, 23, 0.42) 100%),
        linear-gradient(180deg, rgba(5, 15, 23, 0.08), rgba(5, 15, 23, 0.28));
    content: "";
}

.updates-video {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(1.12) saturate(1.08) contrast(1.04);
}

.updates-inner {
    width: min(100% - 64px, 1180px);
    min-height: 620px;
    margin: 0 auto;
    padding: 110px 0;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: clamp(60px, 9vw, 140px);
    align-items: center;
}

.updates h2 {
    font-size: clamp(3rem, 5.3vw, 5.3rem);
}

.updates-copy > p:last-child {
    max-width: 440px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-family: var(--serif);
    font-size: 0.98rem;
    font-weight: 300;
    line-height: 1.8;
}

.signup-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
    min-height: 0;
    padding: 24px;
    justify-self: end;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 7px;
    background: rgba(6, 17, 25, 0.62);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
}

.signup-label {
    margin: 0 0 15px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.email-signup-widget,
.sender-form-field {
    min-height: 125px;
}

.email-signup-widget {
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.sender-form-field > div {
    margin-bottom: -44px;
    transform: scale(0.9);
    transform-origin: top center;
}

.sender-form-field iframe {
    opacity: 1;
    filter: none;
}

.privacy-note {
    margin: 15px 0 0;
    color: rgba(255, 255, 255, 0.34);
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    text-align: center;
}

.site-footer {
    background: #040c12;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    width: min(100% - 64px, 1180px);
    margin: 0 auto;
    padding: 68px 0 34px;
}

.footer-title {
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(22px, 4vw, 54px);
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: color 180ms ease, transform 180ms ease;
}

.social-links a:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.social-links i {
    color: #7bc1fb;
    font-size: 1.25rem;
}

.footer-meta {
    margin-top: 22px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
}

.legal-notice {
    max-width: 760px;
    margin: 54px 0 0;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.67rem;
    line-height: 1.6;
}

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

.footer-meta a:hover {
    color: rgba(255, 255, 255, 0.72);
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-contact i {
    margin-left: 3px;
    font-size: 0.72rem;
}

:focus-visible {
    outline: 3px solid #8dccff;
    outline-offset: 4px;
}

@media (max-width: 900px) {
    .hero {
        min-height: auto;
        padding-top: min(54svh, 510px);
        background: var(--ink);
    }

    .hero-art {
        bottom: auto;
        height: min(54svh, 510px);
        background-position: 56% center;
        background-size: auto 100%;
        transform: none;
    }

    .hero-scrim {
        bottom: auto;
        height: min(54svh, 510px);
        background: linear-gradient(180deg, rgba(3, 10, 15, 0.42) 0%, transparent 42%, rgba(7, 19, 29, 0.1) 68%, var(--ink) 100%);
    }

    .site-header {
        position: absolute;
        top: 0;
        left: 32px;
        right: 32px;
        width: auto;
        height: 88px;
    }

    .studio-mark {
        width: 120px;
    }

    .hero-content {
        width: min(100% - 48px, 680px);
        min-height: auto;
        padding: 0 0 76px;
        align-items: center;
        text-align: center;
    }

    .game-logo {
        width: min(500px, 96vw);
        margin: -55px 0 10px;
        transform: none;
    }

    .hero-copy {
        max-width: 590px;
    }

    .hero h1 {
        font-size: clamp(3.5rem, 11vw, 5.6rem);
        line-height: 0.84;
    }

    .hero-summary {
        margin-right: auto;
        margin-left: auto;
    }

    .store-links {
        justify-content: center;
    }

    .scroll-cue {
        display: none;
    }

    .updates-inner {
        width: min(100% - 48px, 680px);
        min-height: auto;
        padding: 90px 0;
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .updates::before {
        background: rgba(5, 15, 23, 0.62);
    }

    .footer-inner {
        width: min(100% - 48px, 680px);
    }
}

@media (max-width: 540px) {
    .hero {
        padding-top: min(47svh, 420px);
    }

    .hero-art,
    .hero-scrim {
        height: min(47svh, 420px);
    }

    .site-header {
        left: 20px;
        right: 20px;
    }

    .header-link span {
        display: none;
    }

    .header-link {
        width: 40px;
        height: 40px;
        border: 1px solid rgba(255, 255, 255, 0.28);
        border-radius: 50%;
        justify-content: center;
    }

    .hero-content,
    .updates-inner,
    .footer-inner {
        width: calc(100% - 40px);
    }

    .game-logo {
        width: 100vw;
        max-width: none;
        margin: -52px 0 8px;
    }

    .hero h1 {
        font-size: clamp(3.1rem, 13.6vw, 3.8rem);
    }

    .hero-summary {
        font-size: 0.86rem;
        line-height: 1.65;
    }

    .store-links {
        width: 100%;
        flex-direction: column;
    }

    .switch-announcement {
        width: 100%;
        grid-template-columns: 96px 1fr;
    }

    .steam-announcement {
        width: 100%;
        grid-template-columns: 96px 1fr;
    }

    .updates-inner {
        padding: 76px 0;
    }

    .updates h2 {
        font-size: clamp(3.2rem, 15vw, 4.25rem);
    }

    .signup-card {
        padding: 20px 14px;
        justify-self: center;
    }

    .social-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-meta {
        margin-top: 22px;
        flex-direction: column;
        gap: 10px;
    }

    .footer-contact {
        flex-wrap: wrap;
        gap: 10px 20px;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }

    .updates-video {
        display: none;
    }
}
