* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    overflow: hidden;
    background: #111318;
    font-family: Arial, Helvetica, sans-serif;
}


/* =========================================
   MAIN PAGE
========================================= */

.page {
    position: relative;

    width: 100vw;
    height: 100vh;
    height: 100svh;

    overflow: hidden;

    background: #111318;
}


/* =========================================
   MOBILE BACKGROUND
========================================= */

.background {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    /*
       Image ratio = 941 × 1672
       Keep aspect ratio.
       Do NOT stretch.
    */

    object-fit: cover;
    object-position: center center;

    display: block;

    z-index: 1;
}


/* =========================================
   OVERLAY
========================================= */

.overlay {
    position: absolute;

    inset: 0;

    z-index: 2;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.04) 0%,
            rgba(0, 0, 0, 0.00) 45%,
            rgba(0, 0, 0, 0.08) 100%
        );
}


/* =========================================
   TOP NOTICE
========================================= */

.notice {
    position: absolute;

    top: max(
        14px,
        env(safe-area-inset-top)
    );

    left: 50%;

    transform: translateX(-50%);

    z-index: 10;

    white-space: nowrap;

    padding: 7px 13px;

    border-radius: 50px;

    background: rgba(0, 0, 0, 0.38);

    border: 1px solid rgba(255, 255, 255, 0.20);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    color: #fff;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 1.2px;
}


/* =========================================
   CONTENT BOX
========================================= */

.content {
    position: absolute;

    z-index: 5;

    /*
       Put text around the lower-middle
       portion of the artwork.
    */

    left: 50%;

    bottom: calc(
        12vh + env(safe-area-inset-bottom)
    );

    transform: translateX(-50%);

    width: min(
        calc(100vw - 42px),
        500px
    );

    padding: 18px 20px;

    text-align: center;

    color: #111;
}


/* =========================================
   DESCRIPTION
========================================= */

.description {
    margin: 0 auto;

    font-size: clamp(
        13px,
        3.8vw,
        17px
    );

    line-height: 1.5;

    font-weight: 700;

    letter-spacing: 0;

    text-shadow:
        0 1px 1px
        rgba(255, 255, 255, 0.35);

    animation:
        textAppear
        0.9s
        ease-out
        both;
}


/* =========================================
   EMAIL
========================================= */

.email {
    display: inline-block;

    margin-top: 11px;

    max-width: 100%;

    color: #111;

    font-size: clamp(
        12px,
        3.5vw,
        16px
    );

    line-height: 1.3;

    font-weight: 800;

    text-decoration: none;

    overflow-wrap: anywhere;

    text-shadow:
        0 1px 1px
        rgba(255, 255, 255, 0.35);

    animation:
        emailPulse
        3s
        ease-in-out
        infinite;
}


/* =========================================
   ANIMATIONS
========================================= */

@keyframes textAppear {

    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes emailPulse {

    0%,
    100% {
        opacity: 0.82;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-2px);

        filter:
            drop-shadow(
                0 0 7px
                rgba(255, 255, 255, 0.4)
            );
    }
}


/* =========================================
   SMALL PHONES
========================================= */

@media (max-width: 380px) {

    .notice {
        font-size: 7px;

        padding: 6px 10px;

        letter-spacing: 0.9px;
    }

    .content {
        width: calc(100vw - 28px);

        bottom: calc(
            9vh + env(safe-area-inset-bottom)
        );

        padding: 14px 12px;
    }

    .description {
        font-size: 12.5px;

        line-height: 1.45;
    }

    .email {
        margin-top: 8px;

        font-size: 12px;
    }
}


/* =========================================
   VERY TALL PHONES
========================================= */

@media (min-height: 850px) and (max-width: 600px) {

    .content {
        bottom: calc(
            11vh + env(safe-area-inset-bottom)
        );
    }
}


/* =========================================
   LANDSCAPE MOBILE
========================================= */

@media (orientation: landscape) and (max-height: 600px) {

    .background {
        object-position: center center;
    }

    .content {
        width: 46vw;

        left: 72%;

        bottom: 7vh;

        padding: 10px;
    }

    .description {
        font-size: 11px;
    }

    .email {
        font-size: 10px;
    }

    .notice {
        top: 8px;

        font-size: 6px;

        padding: 5px 9px;
    }
}
