* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #030d2e;
    color: white;
    font-family: Barlow, sans-serif;
    font-size: 16px;
}

.splash {
    position: relative;
    isolation: isolate;
    overflow: clip;
    background: linear-gradient(to top, #275d9c, transparent),
        url("./assets/backdrop.webp") center / cover no-repeat, #030d2e;
}

.foreground {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100vh;
    height: 100dvh;
}

.brand {
    flex: 0 0 auto;
    width: fit-content;
    height: 96px;
}

.brand img {
    display: block;
    width: auto;
    height: 100%;
}

.announcement {
    display: flex;
    flex: 1 1 0;
    min-height: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 493px;
    max-width: calc(100% - 40px);
    gap: 24px;
    text-align: center;
    padding-top: 40px;
}

.message {
    font-size: 1.1em;
    font-weight: 500;
    line-height: 1.3;
}

p, h1 {
    margin: 0;
}

h1 {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

/* Figma trims the leading above and below these two text boxes. */
@supports (text-box-trim: trim-both) {
    .message p:first-child {
        text-box-trim: trim-start;
        text-box-edge: cap alphabetic;
    }

    .message p:last-child {
        text-box-trim: trim-end;
        text-box-edge: cap alphabetic;
    }

    h1 {
        text-box-trim: trim-both;
        text-box-edge: cap alphabetic;
    }
}

.studio {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    background: url("./assets/slideout-hosts-studio.webp") center bottom / auto 300px no-repeat;
    pointer-events: none;
}

@media (min-width: 375px) {
    .brand {
        height: 270px;
    }
}

@media (min-width: 390px) {
    .brand {
        height: 320px;
    }
}

@media (min-width: 420px) {
    .message {
        font-size: 1.2em;
    }
}

@media (min-width: 576px) {
    .message {
        font-size: 1.3em;
    }
}

@media (min-width: 768px) {
    .brand {
        height: 360px;
    }

    .studio {
        background-size: auto 400px;
    }
}

@media (min-width: 1200px) {
    .studio {
        background-size: auto 460px;
    }
}

@media (min-width: 1400px) {
    .message {
        font-size: 1.4em;
    }

    h1 {
        font-size: 32px;
    }

    .studio {
        background-size: 140% auto;
    }
}

@media (min-width: 1600px) {
    .studio {
        background-size: 130% auto;
    }
}

@media (min-width: 1920px) {
    .studio {
        background-size: 100% auto;
    }
}
