@font-face {
    font-family: "Amoitar-Regular";
    src: url("./fonts/Amoitar%20Regular.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --title-font: "Amoitar-Regular", Georgia, serif;
    --body-font: "Montserrat", "Segoe UI", sans-serif;
    --color-text: #fff8e9;
    --color-accent: #ffd166;
}

* {
    box-sizing: border-box;
}

body {
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: clamp(1rem, 4vw, 2.5rem);
    color: var(--color-text);
    font-family: var(--body-font);
    text-align: center;
    background:
        linear-gradient(135deg, rgb(29 18 42 / 70%), rgb(88 36 13 / 48%)),
        url("../public/GC_web2.webp") no-repeat center / cover,
        #44230f;
}

.contentCenter {
    display: flex;
    width: min(100%, 48rem);
    flex-direction: column;
    align-items: center;
    padding: clamp(1.5rem, 5vw, 3.5rem);
    border: 1px solid rgb(255 230 172 / 35%);
    border-radius: 2rem;
    background: rgb(35 24 30 / 78%);
    box-shadow: 0 1.5rem 5rem rgb(24 12 9 / 40%);
    backdrop-filter: blur(12px);
    animation: card-entrance 700ms ease-out both;
}

.contentCenter img {
    width: clamp(8rem, 28vw, 15rem);
    height: auto;
    margin-bottom: 1rem;
    object-fit: contain;
    filter: drop-shadow(0 0.75rem 1.5rem rgb(0 0 0 / 35%));
    animation: logo-float 4s ease-in-out 700ms infinite;
}

.contentCenter h1 {
    margin: 0.25rem 0 0.75rem;
    color: var(--color-accent);
    font-family: var(--title-font);
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.15;
    text-shadow: 0 0.2rem 1.5rem rgb(255 159 28 / 25%);
}

.contentCenter p {
    margin: 0.4rem 0;
    font-size: clamp(1rem, 2.8vw, 1.25rem);
    line-height: 1.6;
}

.discord-link {
    display: inline-flex;
    justify-content: center;
    margin-top: 1.25rem;
    padding: 0.9rem 1.5rem;
    border: 1px solid rgb(255 255 255 / 25%);
    border-radius: 999px;
    color: #28170d;
    font-weight: 800;
    text-decoration: none;
    background: linear-gradient(135deg, #ffe08a, #ff9f43);
    box-shadow: 0 0.5rem 1.5rem rgb(255 159 67 / 25%);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        filter 180ms ease;
}

.discord-link:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);
    box-shadow: 0 0.75rem 2rem rgb(255 159 67 / 38%);
}

.discord-link:focus-visible {
    outline: 3px solid var(--color-text);
    outline-offset: 4px;
}

@keyframes card-entrance {
    from {
        opacity: 0;
        transform: translateY(1rem) scale(0.98);
    }

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

@keyframes logo-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-0.4rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
