@font-face {
    font-family: "Fake Receipt";
    src: url("fonts/Fake%20Receipt.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: #fff;
    color: #000;
    font-family: Helvetica, Arial, sans-serif;
}


/* =========================================================
   HEADER — SAME ACROSS THE WHOLE WEBSITE
   ========================================================= */

.site-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 16px 30px 0;
}

.ascii-link {
    display: block;
    width: fit-content;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    color: #000;
    text-decoration: none;
}

.ascii-name {
    margin: 0;
    padding: 0;
    color: #000;
    font-family: "Courier New", Courier, monospace;
    font-size: 4px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    white-space: pre;
}

.site-nav {
    display: flex;
    gap: 24px;
    margin-left: auto;
    padding-top: 2px;
    white-space: nowrap;
}

.site-nav a {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
    text-decoration: none;
}

/* HASTINGS = BLUE */

.site-nav a[href="hastings.html"],
.site-nav a[href="drawings.html"] {
    color: #002fa7;
}

/* OTHER WORK = BLACK */

.site-nav a[href="work.html"] {
    color: #000;
}

/* ABOUT / CONTACT = YELLOW */

.site-nav a[href="about.html"] {
    color: #2c9f45;
}

.site-nav a:hover,
.ascii-link:hover {
    opacity: 0.45;
}


/* =========================================================
   HOMEPAGE
   ========================================================= */

.homepage {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 45px 70px 55px 30px;
}

.homepage-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.homepage-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 66vw;
    max-height: 68vh;
    object-fit: contain;
}

.home-message {
    margin-top: 14px;
    color: #000;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
    text-align: left;
}


/* =========================================================
   RANDOM ARCHIVE BUTTON
   ========================================================= */

.random-archive-button {
    position: fixed;
    left: 24px;
    bottom: 24px;
    display: block;
    z-index: 10;
}

.random-archive-button img {
    display: block;
    width: 360px;
    height: auto;
}


/* =========================================================
   HASTINGS GALLERY
   ========================================================= */

.hastings-page {
    padding: 55px 30px 100px;
}

.hastings-gallery {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
}

.hastings-main {
    position: relative;
    width: 100%;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#main-hastings-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 78vw;
    max-height: 68vh;
    object-fit: contain;
}

.gallery-arrow {
    appearance: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #000;
    padding: 10px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 30px;
    font-weight: 400;
    cursor: pointer;
    z-index: 2;
}

.gallery-arrow.prev {
    left: 0;
}

.gallery-arrow.next {
    right: 0;
}

.gallery-arrow:hover {
    opacity: 0.45;
}


/* HASTINGS THUMBNAILS */

.hastings-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 22px;
    padding-bottom: 8px;
    overflow-x: auto;
    overflow-y: hidden;
}

.hastings-thumbnail {
    appearance: none;
    flex: 0 0 auto;
    width: 74px;
    height: 74px;
    padding: 0;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
}

.hastings-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hastings-thumbnail.active {
    border-color: #000;
}

.hastings-thumbnail:hover {
    opacity: 0.65;
}


/* HASTINGS TEXT */

.hastings-message {
    max-width: 460px;
    margin-top: 28px;
    font-size: 15px;
    line-height: 1.35;
}

.hastings-message p {
    margin: 0 0 14px;
}

.hastings-message a {
    color: #000;
    text-decoration: none;
}

.hastings-message a:hover {
    opacity: 0.45;
}


/* =========================================================
   GENERAL PROJECT / INDEX PAGES
   ========================================================= */

.project-index,
.project-page {
    padding: 80px 40px 120px;
}

.project-index h1,
.project-page h1 {
    margin: 0 0 28px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.project-index a {
    display: block;
    width: fit-content;
    margin-bottom: 8px;
    color: #000;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.project-index a:hover {
    opacity: 0.45;
}


/* =========================================================
   RANDOM DRAWING PAGE
   ========================================================= */

.random-display {
    min-height: calc(100vh - 70px);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.random-display img {
    display: block;
    width: 70vw;
    height: 62vh;
    object-fit: contain;
}

#another-drawing {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    color: #000;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -0.02em;
    cursor: pointer;
}

#another-drawing:hover {
    opacity: 0.45;
}


/* =========================================================
   SCULPTURE SCROLL PAGES
   ========================================================= */

.theseus-page {
    padding: 40px 5vw 120px;
}

.theseus-section {
    min-height: 92vh;
    display: flex;
    align-items: center;
}

.theseus-section.right {
    justify-content: flex-end;
}

.theseus-section.left {
    justify-content: flex-start;
}

.theseus-section img {
    display: block;
    width: auto;
    height: auto;
    max-width: 66vw;
    max-height: 86vh;
    object-fit: contain;
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity 1.2s ease,
        transform 1.2s ease;
}

.theseus-section img.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   FAKE RECEIPT FONT
   ========================================================= */

.print-info-line {
    font-family: "Fake Receipt", Helvetica, Arial, sans-serif !important;
}


/* =========================================================
   MEDIUM SCREENS
   ========================================================= */

@media (max-width: 1050px) {

    .ascii-name {
        font-size: 3px;
    }

    .site-nav {
        gap: 18px;
    }

    .site-nav a {
        font-size: 18px;
    }

    #main-hastings-image {
        max-width: 82vw;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .site-header {
        flex-direction: column;
        gap: 14px;
        padding: 14px 18px 0;
    }

    .ascii-name {
        font-size: 2.5px;
    }

    .site-nav {
        width: 100%;
        margin-left: 0;
        padding-top: 0;
        gap: 15px;
        flex-wrap: wrap;
    }

    .site-nav a {
        font-size: 18px;
    }


    /* HOME */

    .homepage {
        justify-content: center;
        padding: 45px 20px 55px;
    }

    .homepage-image {
        max-width: 90vw;
        max-height: 62vh;
    }

    .home-message {
        margin-top: 12px;
        font-size: 13px;
    }


    /* RANDOM BUTTON */

    .random-archive-button {
        left: 16px;
        bottom: 16px;
    }

    .random-archive-button img {
        width: 240px;
    }


    /* HASTINGS */

    .hastings-page {
        padding: 40px 18px 80px;
    }

    .hastings-main {
        min-height: 55vh;
    }

    #main-hastings-image {
        max-width: 82vw;
        max-height: 58vh;
    }

    .gallery-arrow {
        font-size: 24px;
        padding: 5px;
    }

    .gallery-arrow.prev {
        left: -8px;
    }

    .gallery-arrow.next {
        right: -8px;
    }

    .hastings-thumbnail {
        width: 58px;
        height: 58px;
    }

    .hastings-message {
        font-size: 13px;
    }


    /* PROJECT PAGES */

    .project-index,
    .project-page {
        padding: 60px 20px 90px;
    }


    /* RANDOM DRAWINGS */

    .random-display {
        padding: 30px 20px;
    }

    .random-display img {
        width: 90vw;
        height: 60vh;
    }

    #another-drawing {
        font-size: 18px;
    }


    /* THESEUS */

    .theseus-page {
        padding: 30px 20px 80px;
    }

    .theseus-section {
        min-height: 82vh;
    }

    .theseus-section.right,
    .theseus-section.left {
        justify-content: center;
    }

    .theseus-section img {
        max-width: 92vw;
        max-height: 72vh;
    }
}
/* Keep both homepage markup versions constrained without affecting galleries. */
main:has(> .home-image) {
    min-height: calc(100vh - 70px);
    display: grid;
    grid-template-columns: max-content;
    align-content: center;
    justify-content: end;
    padding: 55px 70px 55px 30px;
}

.home-image img,
.homepage .homepage-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 66vw;
    max-height: 74vh;
    object-fit: contain;
}

.home-image + .home-message {
    margin-top: 14px;
    color: #000;
    font-size: 15px;
    line-height: 1.3;
    text-align: left;
}

@media (max-width: 700px) {
    main:has(> .home-image) {
        justify-content: center;
        padding: 50px 5vw;
    }

    .home-image img,
    .homepage .homepage-image {
        max-width: 90vw;
        max-height: 68vh;
    }

    .home-image + .home-message {
        margin-top: 12px;
        font-size: 13px;
    }
}
