* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: inherit;
    grid-gap: 2rem;
    text-decoration-thickness: 0.05em;
    text-underline-offset: 0.15rem;
}

html {
    font-size: 62.5%;
}
body {
    --main: 2rem/1.25 sans-serif;
    --secondary: 1.5rem/1.25 sans-serif;
    --space-main: 2.5rem;
    --space-double: 5rem;
    --space-secondary: 1.5rem;
    --grid: repeat(8, minmax(min-content, 1fr));

    padding: 5.9rem 2rem 5.9rem;
    min-height: 100vh;
    overflow-x: hidden;
    font: var(--main);
    font-kerning: normal;
    -webkit-font-smoothing: antialiased;
    color: var(--colour-text);
    background: var(--colour-bg);
}

/* GLOBALS */
img,
video {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}

.text {
    max-width: 75ch;
    margin: auto;
}
.text * {
    font-size: inherit;
}
.text h1 {
    margin-bottom: var(--space-main);
}
.text h2 {
    font-weight: normal;
    text-decoration: underline;
}
.text h1:not(:first-of-type) {
    margin-top: var(--space-double);
}
.text p + p,
.text ul + p,
.text ol + p,
.top,
.text figure,
.text h2,
.product-description p + p {
    margin-top: var(--space-main);
}
.text a:hover {
    text-decoration: none;
}
.text hr {
    margin: var(--space-double) 0;
    border: 0.5px solid;
}

.half {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.details hr:first-of-type {
    margin-top: var(--space-double);
}
.details hr {
    margin: var(--space-main) 0;
}
.details summary {
    cursor: pointer;
}
.details details > :nth-child(2) {
    margin-top: var(--space-main);
}

/* NAV/FOOTER */
nav,
footer {
    position: fixed;
    z-index: 100;
    width: calc(100% - 4rem);
    display: grid;
    grid-template-columns: var(--grid);
    margin-bottom: 2rem;
    font: var(--secondary);
    text-transform: uppercase;
}
nav {
    position: fixed;
    top: 2rem;
}
nav svg {
    height: 1.125rem;
}
nav a,
footer a {
    text-decoration: none;
}
nav a:hover,
footer a:hover,
nav .active {
    text-decoration: underline;
}
.nav-shop {
    grid-column: 8;
}
.nav-about {
    grid-column: 8;
}
.nav-programming {
    grid-column: 7;
}
.nav-callout {
    grid-column: 6;
    color: blue;
}
footer {
    bottom: 0;
}
footer div:first-child {
    grid-column: span 7;
}

/* HOME */
.home {
    display: flex;
    gap: 0;
    flex-direction: column;
    min-height: calc(100vh - 11.8rem);
}
.aoc {
    flex: 1;
    display: flex;
    min-height: 50%;
    text-align: center;
}
.aoc article {
    padding-bottom: 5.9rem;
}

/* PROGRAMS LIST */
.list {
    width: calc(100% + 4rem);
    margin-left: -2rem;
}
.list a {
    text-decoration: none;
}
.list-item {
    display: grid;
    grid-template-columns: var(--grid);
    padding: 1rem 2rem 1.25rem;
    align-items: baseline;
}
.list-item:hover {
    filter: brightness(105%);
}
.list-item h1 {
    grid-column: span 4;
    font: var(--main);
}
.list-item h2 {
    grid-column: span 2;
    font: var(--secondary);
}
.list-program {
    border-radius: 2rem;
}
.list-more {
    padding-bottom: 0;
}
.list-more h1 {
    grid-column: 3/7 !important;
}
.list-more a:hover {
    text-decoration: underline;
}
.programming .text {
    margin-bottom: 6rem;
}

/* EXHIBITION */
.exhibition-cover {
    height: calc(100vh - 11.8rem);
    display: flex;
    align-items: center;
    margin-bottom: 5.9rem;
}
.exhibition-cover svg {
    fill: currentColor;
    max-height: 100%;
}
.exhibition-notes div {
    font: var(--secondary);
}
.exhibition img,
.exhibition-cover svg {
    width: 100%;
}
.exhibition-info h1,
.exhibition-info h2 {
    font-weight: normal;
}
.exhibition-info span {
    font: var(--secondary);
    text-transform: uppercase;
}
.exhibition-documentation {
    margin-top: calc(var(--space-main) * 3);
}
.exhibition figure + figure {
    margin-top: var(--space-main);
}
.exhibition-notes div,
.exhibition-files div {
    grid-column: 2;
}
.exhibition-logos {
    margin-top: calc(var(--space-double) * 2);
    margin-bottom: var(--space-double);
}
.exhibition-logos figcaption {
    text-align: center;
    font: var(--secondary);
}

/* ABOUT */
.about h1 {
    font-weight: normal;
}
.about h2 {
    margin: 0.4em 0 calc(var(--space-main) * 0.5);
    font: var(--secondary) !important;
    text-decoration: none;
}
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.about-info {
    margin: calc(var(--space-main) * 2) 0;
}
.newsletter input {
    border: none;
    background: none;
    padding: 0;
}
.newsletter .email {
    width: 100%;
}
.newsletter .subscribe {
    cursor: pointer;
}
.newsletter .subscribe:hover {
    text-decoration: underline;
}

/* SHOP */
.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.products a {
    text-decoration: none;
}
.products a:hover article {
    color: gray;
    cursor: pointer;
}
.products article {
    height: 100%;
    font: var(--main);
}
.products figure {
    display: flex;
    flex-direction: column;
    row-gap: 0.5rem;
}
.products *,
.product * {
    font: inherit;
}
.product figure + figure {
    margin-top: 2rem;
}
.product-info > div {
    position: sticky;
    top: 5.9rem;
    margin-bottom: var(--space-double);
}

.variants:last-child {
    margin-bottom: var(--space-main);
}
.variants > p {
    font: var(--secondary);
}
.variants > p,
.variant {
    display: inline;
}
.shopify-buy__option-select {
    opacity: 0.5;
    cursor: pointer;
    background: none;
    border: none;
}
.shopify-buy__option--selected {
    text-decoration: underline;
}
.shopify-buy__option--selected,
.shopify-buy__option-select:hover {
    opacity: 1;
}

.shopify-buy__btn {
    all: unset;
    cursor: pointer;
    text-decoration: underline;
    margin-bottom: var(--space-main);
}
.shopify-buy__btn:hover,
.shopify-buy__btn:disabled {
    text-decoration: none;
}
.shopify-buy__btn:disabled {
    opacity: 0.5;
    cursor: auto;
}

.cart {
    font: var(--secondary);
    cursor: pointer;
    width: max-content;
    padding: 0.5rem 0 0 !important;
    cursor: pointer;
    grid-row: 2;
}
.cart:hover {
    text-decoration: underline;
}
.shopify-buy__cart-toggle > * {
    font: var(--secondary);
    display: inline;
    font-weight: normal;
}

/* CALLOUT */
.honey {
    position: absolute;
    left: -9999px;
}

/* LAZY LOADING */
.exhibition figure {
    overflow: hidden;
}
.blur-up {
    -webkit-filter: blur(20px);
    filter: blur(20px);
}
.blur-up.lazyloaded {
    -webkit-filter: blur(0);
    filter: blur(0);
}

/* MOBILE */
@media (max-width: 900px) {
    .products {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 530px) {
    body {
        --main: 2rem/1.25 sans-serif;
        --secondary: 1.5rem/1.25 sans-serif;
        --grid: repeat(4, minmax(min-content, auto));
    }

    .half {
        grid-template-columns: 1fr;
    }

    footer div:not(:first-child) {
        text-align: right;
    }
    .nav-shop {
        grid-column: 4;
        text-align: left !important;
    }
    .nav-about {
        grid-column: 4;
        text-align: left !important;
    }
    .nav-programming {
        grid-column: 3;
        text-align: left !important;
    }
    .nav-callout {
        display: none;
    }
    footer div:last-child {
        grid-column: span 1;
    }
    footer div:first-child {
        grid-column: span 3;
    }

    .aoc {
        text-align: left;
    }

    .list-item {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: repeat(auto-fit, minmax(min-content, auto));
        row-gap: 0;
        padding: 1rem 2rem 1.5rem;
    }
    .list-item h1 {
        grid-row: 1/1;
        grid-column: 1/-1;
    }
    .list-item h2 + h1 {
        padding-bottom: 1rem;
    }
    .list-item h2 {
        grid-column: 1/-1;
    }
    .list-item h2:first-of-type {
        grid-row: 3;
    }
    .list-item h2:last-of-type {
        grid-row: 2;
    }
    .list-more h1 {
        grid-column: 1/-1 !important;
    }

    .exhibition-notes div,
    .exhibition-files div {
        grid-column: 1/-1;
    }
    .exhibition-info > div:first-child {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .exhibition-info > div:first-child,
    .exhibition-info .curators {
        margin-bottom: var(--space-main);
    }
    .exhibition-info div:first-child div {
        margin-top: 0;
    }

    .products {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }
    .product-info {
        grid-row: 1;
    }
}
