* {
    box-sizing: border-box;
}


/* =========================
   Base
   ========================= */

html {
    background: #f5f1e8;
}

body {
    margin: 0;

    background: #f5f1e8;

    color: #24211d;

    font-family: "Libre Bodoni", "Times New Roman", serif;

    overflow-x: hidden;
}


/* =========================
   Floating Star Particles
   ========================= */

#star-field {
    position: fixed;

    inset: 0;

    z-index: 0;

    pointer-events: none;

    overflow: hidden;

    background: #f5f1e8;
}


/* Individual stars */

.star {
    position: absolute;

    display: block;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.55);

    box-shadow:
        0 0 6px rgba(255, 255, 255, 0.35),
        0 0 12px rgba(255, 255, 255, 0.15);

    will-change: transform, opacity;

    animation:
        starFloat var(--duration) ease-in-out infinite,
        starTwinkle var(--twinkle) ease-in-out infinite alternate;
}


/* =========================
   Star Sizes
   ========================= */

.star.small {
    width: 2px;

    height: 2px;
}


.star.medium {
    width: 3px;

    height: 3px;
}


.star.large {
    width: 4px;

    height: 4px;

    background: rgba(255, 255, 255, 0.7);

    box-shadow:
        0 0 8px rgba(255, 255, 255, 0.45),
        0 0 16px rgba(255, 255, 255, 0.2);
}


/* =========================
   Star Movement
   ========================= */

@keyframes starFloat {

    0% {
        transform:
            translate3d(0, 0, 0);
    }

    25% {
        transform:
            translate3d(
                var(--move-x),
                var(--move-y),
                0
            );
    }

    50% {
        transform:
            translate3d(
                calc(var(--move-x) * -0.5),
                var(--move-y),
                0
            );
    }

    75% {
        transform:
            translate3d(
                calc(var(--move-x) * 0.4),
                calc(var(--move-y) * -0.6),
                0
            );
    }

    100% {
        transform:
            translate3d(0, 0, 0);
    }

}


/* =========================
   Star Twinkle
   ========================= */

@keyframes starTwinkle {

    0% {
        opacity: 0.15;
    }

    50% {
        opacity: 0.65;
    }

    100% {
        opacity: 0.25;
    }

}


/* =========================
   Introduction
   ========================= */

header {
    position: relative;

    z-index: 1000;

    width: 100%;

    padding: 55px 30px 50px;

    text-align: center;
}

header h1 {
    margin: 0 0 14px;

    font-size: 68px;

    line-height: 0.95;

    font-weight: 700;

    letter-spacing: -0.04em;
}

.artist-info {
    margin: 0 0 22px;

    font-size: 16px;

    line-height: 1.4;

    font-weight: 400;

    letter-spacing: 0.02em;
}

.artist-info a {
    color: inherit;

    text-decoration: none;

    border-bottom: 1px solid currentColor;
}

.artist-info a:hover {
    opacity: 0.65;
}

.artist-statement {
    margin: 0;

    font-size: 22px;

    line-height: 1.35;

    font-style: normal;

    font-weight: 400;
}


/* =========================
   Artwork Wall
   ========================= */

#art-wall {
    position: relative;

    z-index: 1;

    width: 100%;

    min-height: 1750px;

    overflow: hidden;
}


/* =========================
   Individual Artworks
   ========================= */

.art {
    position: absolute;

    width: 250px;

    height: auto;

    cursor: grab;

    user-select: none;

    -webkit-user-drag: none;

    touch-action: none;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.12);

    transition:
        box-shadow 0.15s ease;
}

.art-310 {
    width: 310px;
}

.art-190 {
    width: 190px;
}

.art:hover {
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.16);
}

.art.dragging {
    cursor: grabbing;

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.22);

    transition: none;
}


/* =========================
   Fullscreen Viewer
   ========================= */

#viewer {
    position: fixed;

    inset: 0;

    z-index: 2000;

    display: none;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    padding: 40px;

    background: rgba(20, 20, 20, 0.94);
}

#viewer-image {
    max-width: 75vw;

    max-height: 70vh;

    object-fit: contain;
}

#description {
    max-width: 650px;

    margin-top: 25px;

    color: white;

    text-align: center;
}

#description h2 {
    margin: 0 0 12px;

    font-size: 28px;

    font-weight: 500;
}

#description p {
    margin: 0;

    font-family: "Crimson Pro", "Times New Roman", serif;

    font-size: 18px;

    line-height: 1.5;

    color: #ddd;

    white-space: pre-line;
}


/* =========================
   Close Button
   ========================= */

#close {
    position: absolute;

    top: 25px;

    right: 35px;

    border: none;

    background: none;

    color: white;

    font-family: "Crimson Pro", "Times New Roman", serif;

    font-size: 42px;

    cursor: pointer;
}


/* =========================
   Mobile
   ========================= */

@media (max-width: 700px) {

    header {
        padding: 45px 20px 40px;
    }

    header h1 {
        font-size: 46px;
    }

    header p {
        font-size: 19px;
    }

    #art-wall {
        min-height: 1850px;
    }

    .art {
        width: 145px;
    }

}
