* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: #ffffff;
    color: #000000;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 14px;
    line-height: 1.3;
}


/* ========================================
   LINKS
   ======================================== */

a {
    color: #000000;
    text-decoration: none;
}

a:hover {
    color: #ffc0cb;
}


/* ========================================
   MAIN SITE CONTAINER
   ======================================== */

.site {
    width: 92%;
    max-width: 1400px;

    margin: 0 auto;

    padding: 25px 0 60px;
}


/* ========================================
   HEADER
   ======================================== */

.site-header {
    display: flex;

    justify-content: space-between;
    align-items: baseline;

    border-bottom: 1px solid #000000;

    padding-bottom: 10px;

    margin-bottom: 50px;
}




.site-title {
    font-size: 17px;
}




nav a {
    margin-left: 20px;
}


/* ========================================
   ARCHIVE / ART PAGE
   ======================================== */

.archive {
    min-height: 70vh;
}




.archive h1 {
    font-size: 18px;
    font-weight: normal;

    margin: 0 0 10px;
}




.archive-description {
    color: #777777;

    margin: 0 0 50px;
}


/* ========================================
   YEAR LIST
   ======================================== */

.year-list {
    display: flex;

    flex-direction: column;

    width: max-content;
}


/* Individual year */

.year-entry {
    margin-bottom: 25px;
}


/* Year number */

.year {
    font-size: 18px;

    margin-bottom: 8px;
}


/* Images / videos links */

.year-links {
    display: flex;

    gap: 20px;

    margin-left: 20px;
}


/* Hover effect */

.year-links a:hover {
    text-decoration: underline;
    color: #ffc0cb;
}


/* ========================================
   GALLERY PAGE
   ======================================== */

.gallery-page {
    min-height: 70vh;
}


/* ========================================
   GALLERY TOP BAR
   ======================================== */

.gallery-top {
    display: flex;

    justify-content: space-between;
    align-items: baseline;

    border-bottom: 1px solid #000000;

    margin-bottom: 40px;
}


/* Gallery year heading */

.gallery-top h1 {
    font-size: 16px;
    font-weight: normal;

    margin: 0 0 8px;
}


/* Back to archive */

.back-link {
    font-size: 11px;
}


/* ========================================
   ARTWORK GRID
   ======================================== */

.art-grid {
    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 20px;

    width: 100%;
}


/* ========================================
   ARTWORK CONTAINER
   ======================================== */


.artwork-container {
    width: 100%;

    aspect-ratio: 1 / 1;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;
}


/* ========================================
   ARTWORK LINKS
   ======================================== */


.artwork-link {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;
    height: 100%;
}


/* ========================================
   IMAGE PREVIEWS
   ======================================== */


.artwork {
    display: block;

    width: 92%;
    height: 92%;

    object-fit: contain;

    cursor: pointer;

    transition:
        opacity 0.3s ease;

    image-rendering: auto;
}


/* ========================================
   GIF PREVIEWS
   ======================================== */


.artwork.gif-preview {
    width: 75%;
    height: 75%;

    object-fit: contain;

    image-rendering: auto;
}


/* Image / GIF hover */

.artwork:hover {
    opacity: 0.65;
}


/* ========================================
   VIDEOS
   ======================================== */

#video-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#video-gallery .artwork-container {
    width: auto;

    height: auto;

    aspect-ratio: auto;

    overflow: visible;
}


.video-artwork {
    display: block;

    width: auto;
    height: 500px;

    max-width: 90vw;

    margin: 0 auto;

    background: #000000;

    cursor: pointer;
}


/* ========================================
   PAGE NAVIGATION
   ======================================== */

.page-navigation {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 15px;

    margin-top: 70px;

    min-height: 20px;
}


/* Navigation links */

.page-navigation a {
    color: #000000;
}


/* Navigation hover */

.page-navigation a:hover {
    color: #ffc0cb;
}


/* Current page */

.page-navigation .current-page {
    text-decoration: underline;
}


/* ========================================
   FOOTER
   ======================================== */

footer {
    border-top: 1px solid #000000;

    margin-top: 100px;
    padding-top: 10px;

    color: #777777;

    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin-left: auto;
}

.footer-links a {
    color: #777777;
}

.footer-links a:hover {
    color: #ffc0cb;
}

/* ========================================
   TABLET
   ======================================== */

@media (max-width: 1000px) {

    .site {
        width: 90%;
    }


    .art-grid {
        grid-template-columns:
            repeat(4, 1fr);

        gap: 15px;
    }

}


/* ========================================
   SMALL SCREENS
   ======================================== */

@media (max-width: 650px) {

    .site {
        width: 90%;

        padding-top: 20px;
    }


    /* Header */

    .site-header {
        display: block;
    }


    /* Navigation */

    nav {
        margin-top: 12px;
    }


    nav a {
        margin-left: 0;

        margin-right: 15px;
    }


    /* Gallery header */

    .gallery-top {
        display: block;
    }


    .gallery-top h1 {
        margin-top: 15px;
    }


    /* Gallery grid */

    .art-grid {
        grid-template-columns:
            repeat(3, 1fr);

        gap: 10px;
    }


    /* GIF previews */

    .artwork.gif-preview {
        width: 75%;
        height: 75%;
    }


    /* Videos */

    .video-artwork {
        max-width: 90vw;

        max-height: 500px;
    }


    /* Archive years */

    .year {
        font-size: 17px;
    }


    /* Archive links */

    .year-links {
        margin-left: 15px;

        gap: 15px;
    }


    /* Pagination */

    .page-navigation {
        gap: 12px;

        margin-top: 60px;
    }

}


/* ========================================
   HOME PAGE
   ======================================== */

.home {
    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;
}


.home-content {
    text-align: center;
}


/* Name */

.home-content h1 { margin: 0; font-size: 64px; font-weight: normal; letter-spacing: -2px; line-height: 1; }

.home-content h1 {
    margin: 0;

    font-size: 64px;
    font-weight: normal;

    letter-spacing: -2px;
    line-height: 1;

    cursor: default;
}


/* Rainbow hover */

.home-content h1:hover {
    animation: pink-flash 0.35s linear infinite;
}


@keyframes pink-flash {

    0% {
        color: #f7b2c4;
    }

    20% {
        color: #f8c8d8;

    }

    40% {
        color: #f5d0dc;
    }

    60% {
        color: #eeb6d0;
    }

    80% {
        color: #e8bfd4;
    }

    100% {
        color: #f7b2c4;
    }

}



/* Home links */

.home-links {
    display: flex;

    justify-content: center;

    gap: 20px;

    margin-top: 20px;
}


.home-links a {
    color: #000000;
}


.home-links a:hover {
    color: #ffc0cb;
}


/* ========================================
   KAOMOJI MARQUEES
   ======================================== */

.kaomoji-marquee {
    position: fixed;

    left: 0;
    width: 100%;

    overflow: hidden;

    white-space: nowrap;

    pointer-events: none;

    font-size: 13px;

    z-index: 10;
}


/* Top marquee */

.marquee-top {
    top: 15px;
}


/* Bottom marquee */

.marquee-bottom {
    bottom: 15px;
}


/* Moving track */

.marquee-track {
    display: inline-block;

    width: max-content;

    will-change: transform;

    word-spacing: 12px;
}

/* Top moves left → right */

.marquee-top .marquee-track {
    animation:
        marquee-right 30s linear infinite;
}


.marquee-bottom .marquee-track {
    animation:
        marquee-left 30s linear infinite;
}


/* Left → right */

@keyframes marquee-right {

    from {
        transform: translateX(-25%);
    }

    to {
        transform: translateX(0);
    }

}


/* Right → left */

@keyframes marquee-left {

    from {
        transform: translateX(-25%);
    }

    to {
        transform: translateX(-50%);
    }

}

/* ========================================
   ART PAGE
   ======================================== */

.art-page {
    min-height: 70vh;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 100px;
}


/* ========================================
   ART ARCHIVE
   ======================================== */

.art-archive {
    min-width: 0;
}


/* ========================================
   ART FOR SALE
   ======================================== */

.art-sale {
    min-width: 0;
}


.art-sale h2 {
    margin: 0;

    font-size: 64px;
    font-weight: normal;

    letter-spacing: -2px;
    line-height: 1;
}


/* Slideshow */

.sale-slideshow {
    width: 100%;

    max-width: 500px;

    margin-top: 40px;
}


/* Image link */

.sale-image-link {
    display: block;

    width: 100%;
}


/* Artwork */

.sale-image {
    display: block;

    width: 100%;

    aspect-ratio: 1 / 1;

    object-fit: contain;

    cursor: pointer;

    transition:
        opacity 0.3s ease;
}


.sale-image:hover {
    opacity: 0.65;
}


/* Title + counter */

.sale-info {
    display: flex;

    justify-content: space-between;

    align-items: baseline;

    margin-top: 15px;

    min-height: 16px;
}


/* Artwork title */

#sale-title {
    color: #000000;
}


/* Counter */

#sale-counter {
    color: #777777;
}


/* Slideshow arrows */

.sale-navigation {
    display: flex;

    justify-content: space-between;

    margin-top: 15px;
}


/* Arrow buttons */

.sale-navigation button {
    padding: 0;

    border: 0;

    background: none;

    color: #000000;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 12px;

    cursor: pointer;
}


.sale-navigation button:hover {
    color: #ffc0cb;
}


/* ========================================
   MOBILE ART PAGE
   ======================================== */

@media (max-width: 800px) {

    .art-page {

        grid-template-columns:
            1fr;

        gap: 80px;

    }


    .sale-slideshow {

        max-width: 100%;

    }

}

/* ========================================
   ART PAGE TITLE
   ======================================== */

.art-archive h1 {
    margin: 0;

    font-size: 64px;
    font-weight: normal;

    letter-spacing: -2px;
    line-height: 1;
}

/* ========================================
   SIMPLE CONTENT PAGES
   ======================================== */

.simple-page {
    min-height: 70vh;
}


.simple-page h1 {
    margin: 0;

    font-size: 64px;
    font-weight: normal;

    letter-spacing: -2px;
    line-height: 1;
}


.page-description {
    color: #777777;

    margin: 10px 0 50px;
}


.page-content {
    max-width: 700px;
}

/* WRITING SLIDESHOW */

.writing-slideshow {
width: 100%;
max-width: 500px;
margin-top: 40px;
}

.writing-image-link {
display: block;
width: 100%;
}

.writing-image {
display: block;
width: 100%;
aspect-ratio: 1 / 1;
object-fit: contain;
cursor: pointer;
transition: opacity 0.3s ease;
}

.writing-image:hover {
opacity: 0.65;
}

.writing-info {
display: flex;
justify-content: space-between;
align-items: baseline;
margin-top: 15px;
min-height: 16px;
}

.writing-info span:first-child {
color: #000000;
}

.writing-info span:last-child {
color: #777777;
}

@media (max-width: 650px) {


.writing-slideshow {
    max-width: 100%;
}


}

/* PROJECT HEADINGS */

.project-title {
    margin: 0 0 5px;
    font-size: 24px;
    font-weight: normal;
    letter-spacing: -1px;
    line-height: 1;
}

.project-year {
    margin: 0 0 15px;
    color: #777777;
}

.sparkle {
    width: 20px;
    height: auto;
    vertical-align: middle;
}

.footer-sparkle {
    width: 20px;
    height: auto;
    vertical-align: middle;
}

/* =========================
   ARTWORK TITLE OVERLAY
   ========================= */

.artwork-container {
    position: relative;
    display: inline-block;
}


/* title hidden by default */

.artwork-title {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    width: 90%;
    max-width: 500px;

    box-sizing: border-box;

    text-align: center;

    font-family: "Times New Roman", serif;
    font-size: 12px;
    letter-spacing: 1px;
    line-height: 16px;

    color: black;

    opacity: 0;

    pointer-events: none;

    z-index: 10;

    transition: opacity 0.25s ease;
}


/* show title when artwork is hovered */

.artwork-container:hover .artwork-title {
    opacity: 1;
}