@font-face {
    font-family: 'Nunito Sans';
    src: url('../resources/font/NunitoSans-VariableFont_YTLC,opsz,wdth,wght.ttf') format('truetype');
    font-weight: 200 1000;
    font-style: normal;
}

@font-face {
    font-family: 'Nunito Sans';
    src: url('../resources/font/NunitoSans-Italic-VariableFont_YTLC,opsz,wdth,wght.ttf') format('truetype');
    font-weight: 200 1000;
    font-style: italic;
}

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

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #fff;
    color: #000;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-weight: 700;
    z-index: 10000;
    border-radius: 0 0 0.25rem 0;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* Visually hidden but accessible to screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Hide scrollbar for Chrome, Safari and Opera */
*::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
* {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

body {
    font-family: 'Nunito Sans', sans-serif;
    background-color: #000;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    color: #fff;
}

body::after {
    content: '';
    position: fixed;
    top: -100px;
    left: -100px;
    right: -100px;
    bottom: -100px;
    width: calc(100vw + 200px);
    height: calc(100vh + 200px);
    min-height: calc(100dvh + 200px);
    background-image: url('../resources/stradt.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: -2;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

body::before {
    content: '';
    position: fixed;
    top: -100px;
    left: -100px;
    right: -100px;
    bottom: -100px;
    width: calc(100vw + 200px);
    height: calc(100vh + 200px);
    min-height: calc(100dvh + 200px);
    background-image: url('../resources/weißbrot.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.125;
    z-index: -1;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

.logo {
    width: 12.5rem;
    display: block;
    margin: 0 auto;
    padding: 1.25rem 0;
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo.intro {
    width: 18rem;
    opacity: 1;
    z-index: 1000;
}

.logo.loaded {
    opacity: 0.85;
}

.anatomy-stack {
    position: absolute;
    top: 10rem;
    right: 2.5rem;
    width: 25rem;
    height: auto;
    opacity: 0;
    transition: opacity 0.8s ease 0.6s;
}

.anatomy-stack.visible {
    opacity: 1;
}

.idk {
    width: 25rem;
    position: absolute;
    top: 0;
    left: 0;
    opacity: .5;
}

.desc {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.desc.visible {
    opacity: 1;
    transform: translateY(0);
}

.desc-top h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.1rem;
    margin-bottom: 0.625rem;
    color: #000;
    padding: .2rem 1rem .1rem 1.2rem;
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease;
    cursor: default;
}

.desc-top h1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    transform: translateX(0);
    transition: transform 0.4s ease;
    z-index: -1;
}

.desc-top h1:hover {
    color: #fff;
}

.desc-top h1:hover::before {
    transform: translateX(101%);
}

.desc-bottom p {
    font-size: 1.125rem;
    font-weight: 400;
    max-width: 30rem;
    opacity: 0.75;
    cursor: default;
}

#countdown-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.25rem;
    margin: 1rem auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

#countdown-section.visible {
    opacity: 1;
    transform: translateY(0);
}

#countdown-display {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

#countdown-display > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
    padding: .5rem 1rem;
    min-width: 7rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    perspective: 1000px;
    cursor: default;
}

#countdown-display > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

#countdown-display span {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    display: inline-block;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    opacity: 0.65;
}

#countdown-display span.flip {
    animation: flip 0.6s ease-in-out;
}

@keyframes flip {
    0% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(90deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

#countdown-display label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: .5rem;
    margin-top: 0.75rem;
}

#launch-date {
    font-size: .725rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    margin-top: 0rem;
    cursor: default;
}

#launched-message {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.spacer {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.25);
    margin: 1rem auto;
    max-width: 60rem;
    opacity: 0;
    transition: opacity 0.8s ease 0.4s;
}

.spacer.visible {
    opacity: 1;
}


.leave-blank {
    height: 2rem;
    width: 100%;
    background-color: none;
}

@media (max-width: 768px) {
    #countdown-display {
        gap: 0.5rem;
        flex-wrap: nowrap;
    }

    #countdown-display > div {
        padding: 0.5rem 0.75rem;
        min-width: auto;
        flex: 1;
    }

    #countdown-display span {
        font-size: 1.75rem;
    }

    #countdown-display label {
        font-size: 0.6rem;
        letter-spacing: 0.15rem;
    }

    .spacer {
        width: 90vw;
    }

    body::after {
        opacity: 0.35;
    }
}