@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Inter:wght@400;500;600&display=swap');


:root {
    --display-left: 4rem;
    --text-left: clamp(60px, 8vw, 100px);
    --essay-width: 650px;

    --page-width: 1280px;
    --essay-sheet-width: 850px;
    --media-sheet-width: 1180px;

    --paper: #fbfaf7;
    --background: #f6f5f1;
    --accent: #6f1d1b;
    --note-overhang: 0.75rem;
    --note-mobile-inset: 5vw;
}


* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}


body {
    margin: 0;
    background: var(--background);
    color: #111;
    font-family: "Libre Baskerville", Georgia, serif;
    overflow-x: hidden;
}

/* Navigation */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;

    width: 100%;
    padding: 1rem 2rem;

    display: flex;
    justify-content: space-between;

    background: rgba(246,245,241,.94);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(0,0,0,.06);

    font-family: Inter, system-ui, sans-serif;
    font-size: 0.8rem;
}

.site-nav a,
.site-nav button {
    color: #111;
    background: transparent;
    border: 0;
    text-decoration: none;
    padding: 0.5rem 0.75rem; /* Expands interactive hit-area */
    font: inherit;
}

.index-button {
    border-bottom: 1px solid #6f1d1b;
}

/* Page */

.page {
    width: min(1280px, calc(100vw - 4rem));
    margin: 0 auto;
    padding: 5.5rem 0 6rem;
}

/* Sheets */

.hero-sheet,
.essay-sheet,
.media-sheet {
    background: var(--paper);
}


.hero-sheet {
    position: relative;
    z-index: 30;

    width: calc(100% + 220px);
    margin-left: -110px;
        margin-bottom: -2rem;
    padding: 4rem;
    background: var(--paper);
    box-shadow:
        0 4px 8px rgba(0,0,0,.10),
        0 18px 32px rgba(0,0,0,.30);
}

.essay-sheet {
    position: relative;
    z-index: 10;
    width: min(850px, 100%);
    margin: 0 auto -3rem;
    padding: 5rem 0 3rem;

    background: var(--paper);

    box-shadow:
        0 4px 8px rgba(0,0,0,.10),
        0 18px 32px rgba(0,0,0,.30);
}

.media-sheet {
    position: relative;
    z-index: 20;
    width: fit-content;
    max-width: min(var(--media-sheet-width), calc(100vw - 4rem));
    margin: -2rem auto;
    padding: 1rem;
    background: var(--paper);
    overflow: visible;
    text-align: center;
    box-shadow:
        0 6px 12px rgba(0,0,0,.12),
        0 22px 36px rgba(0,0,0,.30);
}


.film-still {
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Hero */


.hero-sheet {
    position: relative;
    z-index: 30;

    width: calc(100% + 220px);
    margin-left: -110px;
    margin-bottom: -2rem;

    padding: 4rem 1.5rem 4.5rem;
    background: var(--paper);

    text-align: center;

    box-shadow:
        0 4px 8px rgba(0,0,0,.10),
        0 18px 32px rgba(0,0,0,.30);
}

.category {
    margin: 0 auto 1rem;
    font-family: Inter, system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: #6f1d1b;
}

.hero-sheet h1 {
    margin: 0 auto 1.5rem;
    padding: 0;

    max-width: 90%;
    font-size: clamp(2.6rem, 5vw + 1rem, 6.5rem);
    line-height: 0.9;
    letter-spacing: -0.035em;
    font-weight: 400;
}

.hero-sheet h2 {
    margin: 0.5rem auto 0;
    max-width: 700px;

    font-size: clamp(1.4rem, 2.2vw, 2.4rem);
    line-height: 1.2;
    font-weight: 400;
    color: #6f1d1b;
}

.author {
    margin: 1.25rem auto 0;
    font-family: Inter, system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: #6f1d1b;
}






/* Essay */

.essay {
    width: var(--essay-width);
    margin-left: var(--text-left);
    font-size: 1.22rem;
    line-height: 1.9;
}

.essay p {
    margin: 0 0 1em;
}

em {
    font-style: italic;
}

/* Poster / cover */

.object-thumb {
    float: right;

    width: 150px;
    margin: 0 -220px 2rem 3rem;

    position: relative;
    z-index: 40;

    box-shadow:
        0 10px 20px rgba(0,0,0,.15),
        0 24px 40px rgba(0,0,0,.38);
}

.thumb-placeholder {
    aspect-ratio: 2 / 3;

    background: #d8d5cc;
    border: 1px solid rgba(0,0,0,.12);

    display: flex;
    align-items: flex-end;

    padding: 0.75rem;

    font-family: Inter, system-ui, sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6f1d1b;
}

/* Still sheet */

.film-still img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 85vh;
    margin: 0 auto;
}

.film-still figcaption {
    margin-top: .5rem;
    font-family: Inter, system-ui, sans-serif;
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #555;
}

/* Notes */

.note {
    --note-tilt: 0deg;
    position: relative;
    z-index: 40;

    float: right;
    clear: right;
    width: min(clamp(280px, 32vw, 360px), 100%);
    max-width: 100%;
    margin: 2rem calc(var(--text-left) + var(--essay-width) - var(--essay-sheet-width) - var(--note-overhang)) 2rem 3rem;
    transform: rotate(var(--note-tilt));
    padding: 1.35rem 1.45rem;

    font-family: Inter, system-ui, sans-serif;
    font-size: 0.9rem;
    line-height: 1.55;

    box-shadow:
        0 8px 16px rgba(0,0,0,.12),
        0 20px 34px rgba(0,0,0,.35);
}

.note::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: rotate(-0.3deg);
    background: inherit;
    z-index: -1;
    opacity: 0.65;

    box-shadow:
        0 8px 14px rgba(0,0,0,.18),
        0 18px 28px rgba(0,0,0,.30);
}

.note h3 {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.25rem;
    line-height: 1.15;
    font-weight: 400;
    margin: 0.45rem 0 0.75rem;
}

.note ul {
    margin: 0;
    padding-left: 1.1rem;
}

.work-note {
    background: #e8ddc7;
}

.concept-note {
    background: #dfe7ea;
    --note-tilt: 0.35deg;
}

.timeline-note {
    background: #e8e8df;
    border-top: 3px solid #6f1d1b;
    --note-tilt: -0.2deg;
}

.reflection-note {
    background: #ece7de;
    --note-tilt: 0.25deg;
}

/* Intro floated image
   Mirrors the report-page floated image treatment.
   The image stays in the essay flow and floats into the right margin.
*/

.essay--with-float-image {
    position: relative;
}

.essay--with-float-image::after {
    content: "";
    display: block;
    clear: both;
}

.essay--with-float-image .essay-float-image {
    float: right;
    width: 190px;
    margin: 0.35rem -160px 1.75rem 2rem;
    position: relative;
    z-index: 40;
}

.essay--with-float-image .essay-float-image a {
    display: block;
}

.essay--with-float-image .essay-float-image img {
    display: block;
    width: 100%;
    height: auto;

    box-shadow:
        0 10px 20px rgba(0,0,0,.15),
        0 24px 40px rgba(0,0,0,.38);
}





/* Mobile */

@media (max-width: 900px) {
    .page {
        width: calc(100vw - 2rem);
        padding: 6rem 0 3rem;
    }

    .hero-sheet {
        width: calc(100% + 2rem);
        margin-left: -1rem;
        padding: 3rem 1.25rem 4rem;
        text-align: center;
    }

    .media-sheet {
        width: fit-content;
        max-width: calc(100vw - 2rem);
        margin: -2rem auto;
        padding: 1rem;
    }

    .film-still img {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 80vh;
        margin: 0 auto;
    }

    .film-still figcaption {
        padding: 0 4vw;
    }

    /* Intro floated image — tablet */

.essay--with-float-image .essay-float-image {
    float: right;
    width: 150px;
    margin: 0.5rem -3rem 0.75rem 0.75rem;
}

    /* Keep hero elements centered */
    .category,
    .hero-sheet h1,
    .hero-sheet h2,
    .author {
        margin: 0 auto;
        text-align: center;
        width: 100%;
    }

.category {
    margin-bottom: 1.25rem;
}

.hero-sheet h1 {
    margin-bottom: 2rem;
}

.hero-sheet h2 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.author {
    margin-top: 1.75rem;
}

    /* Essay collapses to full width on mobile */
    .essay {
        width: 100%;
        margin-left: 0;
        font-size: 1.1rem;
        line-height: 1.75;
    }

    .hero-sheet h1 {
        font-size: clamp(2.6rem, 4.2vw + 1rem, 5.2rem);
        line-height: 0.95;
        letter-spacing: -0.03em;
    }

    }

@media (max-width: 1100px) and (min-width: 601px) {
    .essay {
        width: calc(100% - var(--note-mobile-inset));
        margin-left: var(--note-mobile-inset);
    }

    .note {
        float: right;
        clear: right;
        width: min(50%, 360px);
        max-width: 100%;
        margin: 2rem calc(-1 * var(--note-overhang)) 2rem 2rem;
    }
}

@media (max-width: 700px) and (min-width: 601px) {
    .note {
        width: min(95%, calc(100% - var(--note-mobile-inset)));
    }
}

/* True mobile */
@media (max-width: 600px) {
    .media-sheet {
        width: 100vw;
        max-width: none;
        margin-left: calc(50% - 50vw);
        margin-right: 0;
        padding: 0;
    }

    .essay {
        width: calc(100% - var(--note-mobile-inset));
        margin-left: var(--note-mobile-inset);
    }

    .note {
        float: right;
        clear: right;
        width: min(85%, calc(100% - var(--note-mobile-inset)));
        max-width: 100%;
        margin: 2rem calc(-1 * var(--note-overhang)) 2rem 2rem;
    }

    .note + * {
        clear: both;
    }

    .object-thumb {
        float: none;
        clear: none;
        width: 100%;
        max-width: none;
        margin: 2rem 0;
    }

    .film-still img {
        width: 100%;
        max-width: none;
        height: auto;
        max-height: none;
    }

    .film-still figcaption {
        padding: 0.75rem 5vw 1rem;
    }
/* Intro floated image — true mobile */

.essay--with-float-image .essay-float-image {
    width: 125px;
    margin: 0.4rem -0.5rem 0.75rem 0.75rem;
}
}
