/* ==================================================
   GLOBAL PAGE SETTINGS
   ================================================== */

body {
    font-family: monospace; /* Film embed test only: local font not included */
    font-size: 13px;
    line-height: 1.6;
    color: #383838;
    background-color: #ffffff;
    margin: 40px;
}


/* ==================================================
   HEADINGS
   ================================================== */

h1,
h2,
h3 {
    font-size: 13px;
    font-weight: bold;
}


/* ==================================================
   LINKS
   ================================================== */

a,
a:visited {
    color: #383838;
    text-decoration: none;
}

a:hover,
a:focus-visible {
    text-decoration: underline;
}


/* ==================================================
   IMAGES
   ================================================== */

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


/* ==================================================
   NAVIGATION
   ================================================== */

nav {
    position: fixed;
    top: 40px;
    left: 40px;
    line-height: 2;
}

nav h1 {
    font-size: 13px;
    font-weight: bold;
    line-height: 1.6;
    margin-bottom: 30px;
}


/* ==================================================
   MAIN CONTENT
   ================================================== */

main {
    margin-left: 300px;
    padding-top: 5px;
}

nav h1,
main > :first-child {
    margin-top: 0;
}


/* ==================================================
   HOME
   ================================================== */

.home-text {
    width: 420px;
    line-height: 1.5;
    margin-left: 600px;
}

main > .home-text {
    margin-top: 550px;
}


/* ==================================================
   ABOUT
   ================================================== */

.about-portrait {
    width: 300px;
    margin-left: 600px;
}

.about-portrait p {
    margin-top: 8px;
}

.about-text {
    width: 550px;
    margin-top: 120px;
    line-height: 1.5;
}

/* ==================================================
   JOURNAL
   ================================================== */

/* Journal index */

.journal-year {
    margin-bottom: 100px;
}

.journal-year:first-of-type {
    margin-top: 80px;
}

.journal-year h3 {
    margin-bottom: 30px;
}

.journal-month {
    margin-bottom: 60px;
}

.journal-month h4 {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 15px;
}

.journal-month p {
    margin-top: 0;
    margin-bottom: 8px;
    margin-left: 25px;
}


/* Individual journal entries */

.journal-entry {
    width: 550px;
    line-height: 1.5;
}

.journal-image {
    display: block;
    width: 550px;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* ==================================================
   COLLECTIONS
   ================================================== */

.collection-year {
    margin-bottom: 100px;
}

.collection-year:first-of-type {
    margin-top: 80px;
}

.collection-year h3 {
    margin-bottom: 15px;
}

.collection-year p {
    margin-left: 25px;
}


/* ==================================================
   ZINES
   ================================================== */

.zine-grid {
    display: grid;
    grid-template-columns: repeat(3, 220px);
    gap: 50px;
    margin-top: 40px;
}

.zine-index-item img {
    display: block;
    width: 220px;
    height: auto;
}

.zine-index-item p {
    margin-top: 10px;
}


/* ==================================================
   FILM
   ================================================== */

.film-page {
    max-width: 800px;
}

.film-page h2 {
    margin-bottom: 40px;
}

.film {
    margin-bottom: 80px;
}

.film-video {
    width: 720px;
    aspect-ratio: 16 / 9;
}

.film-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.film-title {
    margin-top: 12px;
    margin-bottom: 0;
}

.film-date {
    margin-top: 4px;
}


/* ==================================================
   SMALL SCREEN BLOCK
   ================================================== */

.small-screen-block {
    display: none;
}

@media (max-width: 899px) {

    /* Hide the main website */

    body > *:not(.small-screen-block) {
        display: none;
    }

    /* Show the small-screen message */

    .small-screen-block {
        display: block;
        margin: 40px;
        max-width: 400px;
        line-height: 1.5;
    }

}

/* ==================================================
   LINKS CATALOGUE
   ================================================== */

.catalogue {
    width: 500px;
    margin-top: 40px;
}

.catalogue-tabs {
    display: flex;
    gap: 6px;
    align-items: flex-end;
}

.catalogue-tab {
    font: inherit;
    background: white;
    border: 1px solid #383838;
    padding: 8px 12px;
    cursor: pointer;
}

.catalogue-tab:hover {
    text-decoration: underline;
}

.catalogue-tab.active {
    padding-bottom: 14px;
}

.catalogue-card {
    border: 1px solid #383838;
    padding: 30px;
    min-height: 250px;
    margin-top: -1px;
}

.catalogue-section {
    display: none;
}

.catalogue-section.active {
    display: block;
}