:root {
    --primary-color: #9e7e6b;
    --secondary-color: #d2c4b0;
    --accent-color: #a5b5a9;
    --background-color: #e6d9c0;
    --text-color: #292420;
    --email-color: #52672d;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--background-color);
    color: var(--text-color);
    padding: 8px 16px;
    font-size: 14px;
    z-index: 100;
    text-decoration: none;
}

.skip-link:focus {
    top: 8px;
}

:focus-visible {
    outline: 2px solid var(--email-color);
    outline-offset: 2px;
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    background: url("/assets/images/bg.jpg") no-repeat left top fixed;
    background-size: cover;
    animation: backgroundMove 30s linear forwards;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@keyframes backgroundMove {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    flex: 1;
    text-align: center;
}

.logo {
    max-width: 350px;
    height: auto;
    margin-bottom: 20px;
}

.mascot {
    max-width: 235px;
    height: auto;
    margin-bottom: 20px;
    padding-right: 8px;
}

.email-container {
    position: relative;
    width: 100%;
    font-size: 16px;
    color: var(--email-color);
    text-align: center;
    padding: 10px 0;
    background-color: var(--background-color);
}

.email-part {
    display: none;
}

.email-container a {
    color: var(--email-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.email-container a:hover {
    color: var(--accent-color);
    cursor: pointer;
}

.tagline {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: -8px;
    text-shadow: 0 0 8px var(--background-color), 0 0 16px var(--background-color);
}

.footer-link-left {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

.footer-link-right {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

.footer-link-left a,
.footer-link-right a {
    color: var(--email-color);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    padding: 14px 8px;
    margin: -14px -8px;
}

.footer-link-left a:hover,
.footer-link-right a:hover {
    opacity: 1;
}

@media (max-height: 600px) {
    .container {
        justify-content: flex-start;
        padding-top: 40px;
    }

    .email-container {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .logo {
        max-width: 250px;
        margin-bottom: 10px;
    }

    .mascot {
        max-width: 168px;
        margin-bottom: 10px;
    }

    .email-container {
        font-size: 14px;
        padding: 12px 20px;
    }

    .footer-link-left,
    .footer-link-right {
        position: static;
    }

    .email-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
}

@keyframes surface {
    0% {
        opacity: 0;
    }
    40% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.mascot {
    animation: surface 2.4s ease both;
}

.logo {
    animation: surface 2.4s ease 0.6s both;
}

@keyframes settle {
    0% {
        opacity: 0;
        letter-spacing: 12px;
    }
    40% {
        opacity: 0;
        letter-spacing: 12px;
    }
    100% {
        opacity: 1;
        letter-spacing: 3px;
    }
}

.tagline {
    animation: settle 2.2s ease 1.4s both;
}

@media (prefers-reduced-motion: reduce) {
    body,
    html {
        animation: none;
    }

    .mascot,
    .logo,
    .tagline {
        animation: none;
    }
}
