
@import url('https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&display=swap');

* {
    box-sizing: border-box;
}

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

body {
    background: #080d0c;
    color: #ffffff;
    font-family: "Silkscreen", monospace;
    overflow: hidden;
}


/* HERO */

.hero {
    position: relative;

    width: 100%;
    min-height: 100vh;
    min-height: 100svh;

    display: flex;
    align-items: center;
    justify-content: center;

    isolation: isolate;

    background:
        linear-gradient(
            rgba(4, 9, 8, 0.28),
            rgba(4, 9, 8, 0.45)
        ),
        url("background.png");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}


/* DARK VIGNETTE */

.hero::after {
    content: "";

    position: absolute;
    inset: 0;

    z-index: -1;

    background:
        radial-gradient(
            ellipse at center,
            transparent 15%,
            rgba(0, 0, 0, 0.25) 70%,
            rgba(0, 0, 0, 0.5) 100%
        );

    pointer-events: none;
}


/* CONTENT */

.hero-content {
    width: calc(100% - 40px);
    max-width: 800px;

    padding: 20px;

    text-align: center;

    transform: translateY(-3vh);
}


/* TITLE */

h1 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(44px, 9vw, 92px);
    font-weight: 700;
    line-height: 1;

    letter-spacing: -0.045em;

    text-shadow:
        0 3px 0 rgba(0, 0, 0, 0.35),
        0 8px 30px rgba(0, 0, 0, 0.4);
}


/* TAGLINE */

p {
    margin: 24px 0 32px;

    color: rgba(255, 255, 255, 0.86);

    font-size: clamp(12px, 2vw, 17px);
    line-height: 1.6;

    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.7);
}


/* DISCORD BUTTON */

.discord-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;

    min-width: 205px;
    padding: 15px 19px;

    background: #ffffff;
    color: #111111;

    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 9px;

    font-family: "Silkscreen", monospace;
    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.28);

    transition:
        transform 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.discord-button:hover {
    background: #eeeeee;

    transform: translateY(-2px);

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.35);
}

.discord-button:active {
    transform: translateY(0);
}

.arrow {
    font-family: Arial, sans-serif;
    font-size: 21px;
    line-height: 1;
}


/* -------------------------------- */
/* MOBILE */
/* -------------------------------- */

@media (max-width: 600px) {

    .hero {
        /*
         * The original image is 16:9.
         * On a phone, cover crops a lot of the sides.
         * Moving the image slightly downward keeps the
         * moon/sky and foreground balanced.
         */
        background-position: 50% center;
    }

    .hero-content {
        width: calc(100% - 32px);
        max-width: 420px;

        padding: 16px;

        transform: translateY(-5vh);
    }

    h1 {
        /*
         * Prevents "Kejsare.xyz" from becoming too wide.
         */
        font-size: clamp(38px, 12vw, 58px);

        letter-spacing: -0.04em;

        white-space: nowrap;
    }

    p {
        margin: 20px 0 27px;

        font-size: 11px;
        line-height: 1.7;
    }

    .discord-button {
        width: auto;
        min-width: 190px;

        padding: 14px 17px;

        gap: 18px;

        font-size: 11px;
    }

    .arrow {
        font-size: 19px;
    }
}


/* SMALL PHONES */

@media (max-width: 380px) {

    .hero-content {
        width: calc(100% - 24px);
        padding: 10px;
    }

    h1 {
        font-size: 35px;
    }

    p {
        font-size: 10px;
    }

    .discord-button {
        min-width: 180px;

        padding: 13px 15px;

        font-size: 10px;
    }
}


/* VERY SHORT SCREENS */

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

    .hero-content {
        transform: none;
    }

    h1 {
        font-size: 38px;
    }

    p {
        margin: 16px 0 20px;
    }
}

