/* ============================================================
   lauren eiko — site styles
   monospace · lowercase · vintage web
   ============================================================ */

:root {
    --font: "Space Mono", monospace;
    --bg: #f4f4f0;
    --fg: #111;
    --fg-muted: #777;
    --accent: #000;
    --border: #ccc;
    --nav-width: 220px;
    --header-height: 3rem;
    --gutter: 1.25rem;
}

/* ---- reset ---- */

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

html {
    font-size: 14px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--fg);
    text-transform: lowercase;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

body.page-home,
body.page-carousel {
    height: 100vh;
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    font-size: inherit;
    text-transform: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1rem 0;
}


/* ============================================================
   header
   ============================================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--gutter);
    pointer-events: none;
}

.site-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    pointer-events: auto;
    display: inline-block;
    text-decoration: none;
    border-bottom: 1px solid var(--fg);
}

.site-title:hover {
    border-bottom-color: transparent;
}


/* ============================================================
   nav — shared link styles
   ============================================================ */

.nav-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 400;
    padding: 0.1rem 0;
    display: block;
    text-align: left;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.nav-link:hover,
.nav-link:focus,
.nav-link:active {
    border-bottom-color: var(--fg);
    text-decoration: none;
}

.dropdown-toggle {
    text-align: left;
    width: 100%;
    text-decoration: none;
}

.dropdown-toggle::after {
    content: " [+]";
    font-size: 0.7em;
    color: var(--fg-muted);
}

.nav-item.open .dropdown-toggle::after {
    content: " [−]";
}

.dropdown-panel {
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nav-item.open .dropdown-panel {
    max-height: 500px;
}

.nav-child {
    font-size: 0.75rem;
    padding-left: 1rem;
    color: var(--fg-muted);
    text-decoration: none;
}

.nav-child:hover {
    color: var(--fg);
    text-decoration: none;
}


/* ============================================================
   INNER PAGES — nav fixed on left, near top
   ============================================================ */

.side-nav {
    position: fixed;
    top: 25%;
    left: 2.5rem;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

body:not(.page-home) .site-header {
    position: static;
    padding: 0;
    pointer-events: none;
}

body:not(.page-home) .site-title {
    display: none;
}

.side-nav .nav-title {
    display: none;
}

body:not(.page-home) .side-nav .nav-title {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-bottom: 1px solid var(--fg);
    pointer-events: auto;
    margin-bottom: 1rem;
}

body:not(.page-home) .side-nav .nav-title:hover {
    border-bottom-color: transparent;
}

.content {
    padding-top: calc(var(--header-height) + var(--gutter));
    padding-left: calc(var(--nav-width) + var(--gutter));
    padding-right: var(--gutter);
    padding-bottom: 4rem;
    min-height: 100vh;
}


/* ============================================================
   HOMEPAGE — menu ~1/3 from left, hover over collage, title above
   ============================================================ */

.page-home .site-header {
    position: static;
    padding: 0;
    pointer-events: none;
}

.page-home .site-title {
    display: none;
}

.page-home .side-nav .nav-title {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-bottom: 1px solid var(--fg);
    pointer-events: auto;
    margin-bottom: 1rem;
}

.page-home .side-nav .nav-title:hover {
    border-bottom-color: transparent;
}

.page-home .side-nav {
    position: fixed;
    top: 33%;
    left: 28%;
    transform: translateX(-50%);
    align-items: flex-start;
}

.page-home .nav-link,
.page-home .dropdown-toggle {
    font-size: 1.1rem;
}

.page-home .nav-child {
    font-size: 0.95rem;
}

.page-home .content {
    padding-left: 28%;
    padding-right: 5%;
    padding-top: 0;
    padding-bottom: 0;
}

.photo-bucket {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.bucket-item {
    position: absolute;
    display: none;
    pointer-events: none;
}

.bucket-item.visible {
    display: block;
}

.bucket-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.empty-state {
    width: 100%;
    padding: 4rem 0;
    text-align: center;
    color: var(--fg-muted);
}

.newsletter-signup {
    position: fixed;
    bottom: var(--gutter);
    right: var(--gutter);
    z-index: 100;
}

.newsletter-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-form label {
    font-size: 0.75rem;
    color: var(--fg-muted);
}

.newsletter-form input {
    font-family: var(--font);
    font-size: 0.8rem;
    text-transform: lowercase;
    border: none;
    border-bottom: 1px solid var(--border);
    background: transparent;
    padding: 0.2rem 0;
    width: 220px;
}

.newsletter-form input:focus {
    outline: none;
    border-bottom-color: var(--fg);
}

.newsletter-form button {
    font-size: 0.75rem;
    background: var(--fg);
    color: var(--bg);
    padding: 0.3rem 0.7rem;
    border: none;
}

.newsletter-form button:hover {
    opacity: 0.7;
}

.newsletter-msg {
    font-size: 0.75rem;
    height: 1.2em;
    margin: 0.3rem 0 0;
    text-align: right;
}

.newsletter-msg.mc-success { color: var(--fg); }
.newsletter-msg.mc-error   { color: #b33; }


/* ============================================================
   series — shared
   ============================================================ */

.series-title {
    font-size: 0.85rem;
    font-weight: 700;
}

.series-desc {
    color: var(--fg-muted);
    font-size: 0.8rem;
    margin-top: 0.3rem;
    max-width: 500px;
}


/* ============================================================
   series — carousel
   ============================================================ */

.series-page--carousel {
    display: flex;
    flex-direction: column;
    height: calc(100svh - var(--header-height) - var(--gutter) * 2 - 4rem);
}

.carousel {
    position: relative;
    flex: 1;
    min-height: 0;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: opacity 0.3s ease;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.carousel-slide .image-caption {
    position: absolute;
    bottom: 0.5rem;
    left: 0;
}

.carousel-btn {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 5;
    font-size: 0;
    opacity: 0;
}

.carousel-btn--prev {
    left: 0;
    cursor: w-resize;
}

.carousel-btn--next {
    right: 0;
    cursor: e-resize;
}

.carousel-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
}

.carousel-counter {
    font-size: 0.8rem;
    color: var(--fg-muted);
}


/* ============================================================
   series — simple scroll
   ============================================================ */

.series-page--messy {
    padding-bottom: 6rem;
}

.series-page--messy .series-title {
    margin-bottom: 0.3rem;
}

.series-page--messy .series-desc {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.messy-series {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.messy-item img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border: 1px solid var(--border);
}

.image-caption {
    display: block;
    font-size: 0.75rem;
    color: var(--fg-muted);
    margin-top: 0.4rem;
}


/* ============================================================
   text pages
   ============================================================ */

.text-page {
    max-width: 600px;
}

/* about page — content left, form fixed at bottom right on desktop */
.text-page--about {
    max-width: none;
}

.about-image {
    margin-bottom: 1.5rem;
}

.about-image img {
    max-width: 100%;
    height: auto;
}

.about-content-col {
    max-width: 480px;
}

.about-form-col {
    position: fixed;
    top: calc(var(--header-height) + var(--gutter));
    left: calc(var(--nav-width) + var(--gutter) + 480px + var(--gutter));
    right: var(--gutter);
    width: auto;
    max-width: 480px;
}

.about-form-col .contact-form input,
.about-form-col .contact-form textarea {
    max-width: none;
}

.about-form-col .contact-form-wrap {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

@media (max-width: 1200px) {
    .about-form-col {
        position: static;
        width: auto;
        max-width: 480px;
    }

    .about-form-col .contact-form-wrap {
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid var(--border);
    }
}

.text-page--tape {
    max-width: 600px;
}

.tape-image {
    margin-bottom: 1.5rem;
}

.tape-image img {
    max-width: 100%;
    height: auto;
}

.page-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-content {
    font-size: 0.85rem;
    line-height: 1.7;
}

.page-content p {
    margin-bottom: 1em;
}

.page-content a {
    text-decoration: underline;
}

.page-content a:hover {
    text-decoration: none;
}

.flash-msg {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.flash-success {
    color: #111;
}

.flash-error {
    color: #900;
}

.contact-form-wrap {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.form-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-form .form-row {
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    max-width: 400px;
    font-family: var(--font);
    font-size: 0.9rem;
    padding: 0.4rem 0;
    border: none;
    border-bottom: 1px solid var(--border);
    background: transparent;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-send {
    margin-top: 0.5rem;
    padding: 0.3rem 0.7rem;
    background: var(--fg);
    color: var(--bg);
    border: none;
    cursor: pointer;
}

.btn-send:hover {
    opacity: 0.7;
}


/* ============================================================
   selection
   ============================================================ */

::selection {
    background: var(--fg);
    color: var(--bg);
}


/* ============================================================
   mobile
   ============================================================ */

@media (max-width: 768px) {
    :root {
        --nav-width: 0px;
    }

    .site-header,
    body:not(.page-home) .site-header {
        position: relative;
        padding: var(--gutter);
        padding-bottom: 0;
        text-align: left;
        pointer-events: auto;
    }

    .site-title,
    body:not(.page-home) .site-title,
    .page-home .site-title {
        display: inline-block;
    }

    .side-nav .nav-title {
        display: none !important;
    }

    .page-home .site-header {
        position: relative;
        padding: var(--gutter);
        padding-bottom: 0;
        pointer-events: auto;
    }

    .page-home .site-header {
        text-align: left;
    }

    .side-nav,
    .page-home .side-nav {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        padding: 0;
        margin: 0.4rem var(--gutter) 0.5rem;
        align-items: flex-start;
    }

    .nav-menu,
    .page-home .nav-menu {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.1rem 0.75rem;
        padding-top: 0;
        align-items: flex-start;
    }

    .content {
        padding-left: var(--gutter);
        padding-right: var(--gutter);
        padding-top: var(--gutter);
    }

    .page-home .content {
        padding: 0;
    }

    .photo-bucket {
        height: calc(100vh - 5rem);
        overflow: hidden;
    }

    .bucket-item img {
        width: 100%;
        height: auto;
    }

    .series-page--carousel {
        height: calc(100svh - var(--header-height) - var(--gutter) * 4);
    }

    .carousel-info {
        font-size: 0.8rem;
    }
}
