header {
    user-select: none;
    position: relative;
    height: 500px;
    /*min-height: 520px;*/
    background:
        linear-gradient(to bottom, var(--header-overlay-start), var(--header-overlay-end)),
        url("../images/background.png");
    background-size: cover;
    background-position: center;

    transition: all 0.25s ease-in-out;
}

.hero {
    height: 120%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    color: var(--hero-title);
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 12px;
}

.hero h2 {
    color: var(--hero-subtitle);
    margin-bottom: 28px;
}

.cta {
    margin: 5px;
    padding: 14px 28px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent), var(--cta-gradient-end));
    color: var(--accent-contrast);
    font-weight: 600;
    cursor: default;
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 0 25px var(--accent-soft);
    text-decoration: none;
}

.cta.discord {
    display: flex;
    justify-content: center;
    background: linear-gradient(135deg, var(--discord-gradient-start), var(--discord-gradient-end));
    color: var(--discord-text-contrast);
    box-shadow: 0 0 45px var(--discord-shadow);
    color: var(--discord-text);
    padding: 7px 28px;
}

.cta.discord img {
    width: 20px;
    height: 20px;
    margin: 2px;
}

.cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--header-gloss), transparent 60%);
    opacity: 0;
    transition: opacity .25s ease;
}

.cta:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 45px var(--accent-soft);
}

.cta:hover::after {
    opacity: 1;
}

header.compact {
    /* The compact header is exactly as high as the fixed navigation. */
    height: var(--nav-height, 91px);
}

header.compact > .hero {
    height: 0;
    min-height: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
}
