/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
    list-style: none;
}

/* Set core root defaults */
html:focus-within {
    scroll-behavior: smooth;
}

html {
    overflow-y: scroll;
}

@supports (scrollbar-gutter: stable) {
    html {
        overflow-y: auto;
        scrollbar-gutter: stable;
    }
}

/* Set core body defaults */
body {
    min-height: 100vh;
    min-height: 100svh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
    font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}
#main {
        font-family: system-ui, sans-serif;
        font-size: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        min-height: 100vh;
        min-height: 100svh;
    }

    img {
        height: auto;
    }

    .scene {
        perspective: 70rem;
    }

    .carousel {
        --w: 16rem;
        --h: 10rem;
        --gap: 1.15;

        width: var(--w);
        height: var(--h);
        transform-style: preserve-3d;
        transform: rotateX(-16deg);
    }

    .carousel-ring {
        position: relative;
        width: 100%;
        height: 100%;
        transform-style: preserve-3d;
        animation: carousel-spin 24s linear infinite;
    }

    .carousel-slide {
        position: absolute;
        inset: 0;
        margin: 0;
        transform-style: preserve-3d;
        transform: rotateY(calc(360deg / var(--n) * var(--i)))
            translateZ(calc(var(--w) / 2 / tan(180deg / var(--n)) * var(--gap)));
    }

    .carousel-slide::after {
        content: "";
        display: block;
        position: absolute;
        height: 200%;
        width: 11px;
        background: gold;
        top: -50%;
        left: 101px;
    }

    .recto,
    .verso {
        position: absolute;
        inset: 0;
        backface-visibility: hidden;
    }

    .recto {
        background: white;
        transform: translateZ(2px);
        text-align: center;
    }

    .verso {
        transform: rotateY(180deg) translateZ(2px);
    }

    .verso picture {
        height: 100%;
    }

    @keyframes carousel-spin {
        to {
            transform: rotateY(-360deg);
        }
    }

    .scene:hover .carousel-ring,
    .scene:focus-within .carousel-ring {
        animation-play-state: paused;
    }

    @media (prefers-reduced-motion: reduce) {
        .carousel-ring {
            animation: none;
        }
    }