:root {
    --bg-color: #fff;
    --text-color: #231c1b;
    --copper: #bd6439;
    --fed-blue: #3d5588;
    --font-size-body: 19px;
    --font-size-display: 8vw;
    --font-size-heading: 50px;
    --font-size-svg-text: 80%;
    /*--font-size-nav: 25px;*/
    --font-size-nav: 19px;
    --bottom-nav-height: clamp(5rem, 8vw, 7.5rem);
}

*,
::after,
::before {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-size: var(--font-size-root);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    border-top: 0px;
    color: var(--text-color);
    -webkit-text-stroke: 0.5px var(--text-color);
    text-rendering: optimizeLegibility;
    font-size: var(--font-size-body);
    letter-spacing: 0.05em;
    scrollbar-color: var(--text-color);
    background-image: url("../assets/texture.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: 1rem;
    z-index: 200000;
    padding: 0.75rem 1rem;
    border: 2px solid var(--text-color);
    background: var(--bg-color);
    color: var(--text-color);
    transform: translateY(-180%);
}

.skip-link:focus-visible {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid var(--text-color);
    outline-offset: 3px;
}

.black-zine-fair {
    font-family: var(--font-primary);
    text-transform: uppercase;
    text-align: center;
    font-style: normal;
    font-size: var(--font-size-display);
    line-height: 100%;
    word-break: keep-all;
    color: var(--text-color);
    -webkit-text-stroke: 1px var(white) !important;
    padding-bottom: 10%;
}

.main-art-section {
    position: relative;
    width: 100%;
    max-height: calc(100dvh + 200px);
    background: transparent;
    z-index: 0;
}

.main-art {
    width: 100%;
    height: auto;
    object-fit: cover;
    transform: translateX(-5%) translateY(-15%) scale(1.25);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    position: relative z-index: -1;
    display: block;
}

/*
.main-art-gradient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom,
            transparent 30%,
            var(--bg-color) 100%);
}
*/

path {
    fill: none;
    stroke: none;
}

text {
    z-index: 0;
    font-family: var(--font-primary);
    text-transform: uppercase;
    text-align: center;
    font-size: var(--font-size-svg-text);
    letter-spacing: -0.15rem;
    line-height: 100%;
    -webkit-text-stroke: 1px var(--text-color) !important;
    fill: var(--text-color);
    dominant-baseline: central;
}


.location {
    margin-left: 1%;
    transform: rotate(-2.52deg);
    line-height: 10%;
}

h2,
.heading2 {
    font-family: var(--font-primary);
    font-size: var(--font-size-heading);
    line-height: 110%;
    text-align: center;
    margin-top: 10rem;
    margin-bottom: 2rem;
}

h3 {
    font-family: var(--font-secondary);
    font-size: 30px;
    line-height: 100%;
    margin-bottom: 2rem;
}

h4 {
    font-style: italic;
    margin-bottom: 2rem;
}



.byline {
    font-family: var(--font-primary);
    font-size: var(--font-size-body);
    line-height: 95%;
    font-style: italic;
    -webkit-text-stroke: 0.5px var(--text-color) !important;
}

p {
    -webkit-text-stroke: 1px var(--text-color) !important;
    /*text-align: center;*/
    text-justify: inter-word;
    text-wrap: pretty;
    font-size: var(--font-size-body);
    font-weight: 400;
}

em {
    -webkit-text-stroke: 2px var(--text-color) !important;

}

hr {
    border-top: 0.5rem dashed var(--text-color);
    border-bottom: 0px;
    border-left: 0px;
    border-right: 0px;
    width: 20%;
    margin: auto;
}

.rsvp-button {
    font-family: var(--font-primary);
    font-size: var(--font-size-body);
    font-weight: bold;
    padding: 0.5%;
    color: var(--bg-color);
    -webkit-text-stroke: 0.75px var(--bg-color);
    background-color: var(--text-color);
    border: 0px;
    border-radius: calc(20px + 0.5vw);
    line-height: 50%;
}

li a {
    color: var(--text-color);
    -webkit-text-stroke-color: var(--text-color);
}

.big-link {
    color: var(--text-color) !important;
    -webkit-text-stroke: 0.75px var(--text-color);
}

p a:link,
a:visited,
a:active {
    padding: 0.5%;
    text-decoration: underline;
    line-height: 100%;
}

/* a:visited {
    color: var(--text-color);
    -webkit-text-stroke: 0.75px var(--text-color);
} */

a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none;
}

a:hover {
    transition: all 0.5s ease;
}

marquee {
    height: 100%;
}

ol {
    margin-left: 1em;
    margin-top: 0;
    list-style-type: disc;
    text-align: justify;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1200;
    width: var(--sidebar-width);
    height: 100dvh;
    pointer-events: none;
}

.sidebar-layer {
    position: absolute;
    height: 100dvh;
    inset: 0;
    max-width: none;
}

.sidebar-layer-white {
    z-index: 2;
}

.sidebar-layer-lined {
    z-index: 1;
}

.sidebar-layer-art {
    z-index: 3;
}

.sidebar-layer-bzf {
    z-index: 4;
}

.sidebar-layer-date-time {
    z-index: 1;
}

.sidebar-layer-free {
    left: 0.5vw;
    z-index: 6;
}

.sidebar-layer-location {
    z-index: 1;
}

.corner-actions {
    position: fixed;
    top: 2rem;
    right: 3rem;
    z-index: 1600;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.corner-action {
    font-family: var(--font-primary);
    border: 3px solid var(--text-color);
    border-radius: 100%;
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.corner-action.rsvp {
    --corner-rotate: 11.39deg;
    padding: 2rem 4rem;
    font-size: 40px;
    line-height: 1.2;
    background: white;
    transform: rotate(var(--corner-rotate));
    z-index: 2;
}

.corner-action.donate {
    --corner-rotate: -7.05deg;
    position: relative;
    top: -2rem;
    right: -1rem;
    padding: 2rem 3rem;
    font-size: 25px;
    line-height: 1.2;
    background: #EBD1C4;
    transform: rotate(var(--corner-rotate));
    margin-right: 1rem;
    z-index: -1;
}

.corner-action:hover,
.corner-action:focus-visible {
    transform: rotate(var(--corner-rotate)) translateY(-0.25rem);
    box-shadow: 0 0.4rem 0 rgba(0, 0, 0, 0.2);
}

.scroll-hint {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-primary);
    font-size: 16px;
    opacity: 1;
    transition: opacity 0.5s ease;
    z-index: 9999;
    display: none;
    /* hidden on desktop */
}

/*
.section-nav {
    position: fixed;
    right: 0;
    bottom: 1rem;
    width: calc(100% - var(--sidebar-width) - 1rem);
    z-index: 99999;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
    */

.section-nav {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.nav-toggle {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    cursor: pointer;
}

.nav-cta {
    font-family: var(--font-primary);
    -webkit-text-stroke: 0.5px var(--text-color);
    border: none;
    padding: 1.5rem 3rem;
    font-size: 18px;
    background: transparent;
    color: black;
}

/*
.section-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem 3rem;
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0.2rem;
}
    */



.section-nav-list {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    left: auto;
    flex-direction: column;

    background: var(--bg-color);
    color: var(--text-color);
    min-width: 220px;
}

.section-nav.open .section-nav-list {
    display: flex;
}

.section-nav-list li {
    flex: 0 1 auto;
}

.section-nav-list a {
    display: block;
    padding: 0.75rem 1rem;
    white-space: nowrap;
    font-family: var(--font-primary);
    font-size: var(--font-size-nav);
    color: (var(--text-color));
    line-height: 1.1;
    -webkit-text-stroke: 0;
    text-decoration: none;
}

.content {
    margin: 0 5% 0 0 !important;
    padding-top: 8rem;
    padding-left: calc(var(--sidebar-width) + var(--sidebar-gap));
    padding-bottom: calc(var(--bottom-nav-height) + 3rem);
}

main {
    padding-bottom: calc(var(--bottom-nav-height) + 2rem) !important;
    position: relative;
    z-index: 1;
    background: transparent;
}

.row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 100%;
}

.column {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 0;
    margin-right: 5%;
    justify-content: flex-start;
}

.column p {
    font-size: 1.75rem;
}

/* featured press */

.press-carousel {
    position: relative;
}

.press-carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding: 0.5rem 0.25rem 1rem;
    scrollbar-width: none;
}

.press-carousel-track::-webkit-scrollbar {
    display: none;
}

.press-card {
    scroll-snap-align: start;
    flex: 0 0 calc(60% - 0.75rem);
    background-color: #eff3ff;
    background-image:
        linear-gradient(to right, rgba(89, 80, 220, 0.22) 0, rgba(89, 80, 220, 0.22) 2px, transparent 2px),
        repeating-linear-gradient(to bottom,
            transparent 0,
            transparent 27px,
            rgba(90, 130, 220, 0.18) 27px,
            rgba(90, 130, 220, 0.18) 28px);
    background-size: 100% 100%, 100% 28px;
    background-position: 32px 0, 0 0;
    box-shadow: 4px 5px 0 #2E2322;
    border-radius: 3px;
    padding: 4rem;
    padding-left: 6rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 200px;
    height: 100%;
}

.press-quote {
    font-size: 1.5rem;
}

.press-link {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: .85;
    color: var(--fed-blue) !important;
    -webkit-text-stroke: 0 !important;
}

.press-link:hover {
    opacity: 1;
}

.press-link:link,
.press-link:visited,
.press-link:hover,
.press-link:active {
    color: var(--fed-blue);
}

#programs~.row {
    background-color: #eff3ff;
    background-image:
        linear-gradient(to right, rgba(89, 80, 220, 0.22) 0, rgba(89, 80, 220, 0.22) 2px, transparent 2px),
        repeating-linear-gradient(to bottom,
            transparent 0,
            transparent 27px,
            rgba(90, 130, 220, 0.18) 27px,
            rgba(90, 130, 220, 0.18) 28px);
    background-size: 100% 100%, 100% 28px;
    background-position: 32px 0, 0 0;
    box-shadow: 4px 5px 0 #2E2322;
    padding: 4rem;
    padding-left: 6rem;
    text-align: left;
}

#programs~.row {
    margin-bottom: 3rem;
}

#programs~.row h3 {
    text-align: center;
}

.paper-card {
    background-color: #eff3ff;
    background-image:
        linear-gradient(to right, rgba(89, 80, 220, 0.22) 0, rgba(89, 80, 220, 0.22) 2px, transparent 2px),
        repeating-linear-gradient(to bottom,
            transparent 0,
            transparent 27px,
            rgba(90, 130, 220, 0.18) 27px,
            rgba(90, 130, 220, 0.18) 28px);
    background-size: 100% 100%, 100% 28px;
    background-position: 32px 0, 0 0;
    box-shadow: 4px 5px 0 #2E2322;
    padding: 4rem;
    padding-left: 6rem;
    text-align: center;
    height: 100%;
}

.split-paper {
    background: none !important;
    box-shadow: none !important;

    display: flex;
    align-items: stretch;
    gap: 2rem;

    padding: 0 !important;
}

.split-paper {
    display: flex;
}

.split-paper .column {
    width: auto;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    margin-right: 0;
}

.split-paper .paper-card {
    flex: 1;
    height: auto;
    position: relative;
    overflow: visible;
    text-align: left;
    background-color: transparent;
    background-image: linear-gradient(to bottom, #eff3ff 98%, rgba(255, 255, 255, 0) 100%) !important;
    background-image: none;
    box-shadow: 4px 0px 0 #2E2322;
    padding-bottom: 3rem;
    margin-bottom: 4rem;
}

/* Jagged bottom strip to suggest a ripped-paper edge on split cards. */
.split-paper .paper-card::after {
    content: "";
    position: absolute;
    bottom: -4rem;
    left: 0;
    width: 100.4%;
    height: 5rem;
    background-image: url("../assets/ripped.svg");
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: bottom;
    transform-origin: center;
    filter: drop-shadow(3px 2px 0 #2E2322);
    z-index: 1;
    pointer-events: none;
}

.split-paper .paper-card h3 {
    text-align: left;
}

.punched-card {
    position: relative;
    margin-bottom: 3rem;
    padding: 3.25rem 4rem 7.5rem 6rem;
    background-color: #eff3ff;
    background-image:
        linear-gradient(to right, rgba(89, 80, 220, 0.22) 0, rgba(89, 80, 220, 0.22) 2px, transparent 2px),
        repeating-linear-gradient(to bottom,
            transparent 0,
            transparent 27px,
            rgba(90, 130, 220, 0.18) 27px,
            rgba(90, 130, 220, 0.18) 28px);
    background-size: 100% 100%, 100% 28px;
    background-position: 32px 0, 0 0;
    box-shadow: 4px 5px 0 #2E2322;
    text-align: left;
    overflow: visible;
}

.punched-card::before {
    content: "";
    position: absolute;
    left: .25rem;
    top: 1.4rem;
    bottom: 1.4rem;
    width: 2.6rem;
    background-image: radial-gradient(circle at center,
            #f7f0ec 0 0.9rem,
            transparent 0.94rem);
    background-size: 2.6rem 5rem;
    background-repeat: repeat-y;
    filter: drop-shadow(0px -1px 1px rgba(46, 35, 34, 0.3));
    pointer-events: none;
}

.punched-card .column {
    margin-right: 0;
}

.punched-card-header {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.punched-card-header h3 {
    margin: 0;
    text-align: left;
    font-size: clamp(22px, 2.1vw, 30px);
    line-height: 1.08;
    text-wrap: balance;
}

.punched-card-header .column {
    width: 100%;
}

.punched-card .featuring {
    display: block;
    margin-top: 0.6rem;
    font-family: var(--font-primary);
    font-style: normal;
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.08;
    -webkit-text-stroke: 1px var(--text-color) !important;
}

.punched-card .byline {
    width: 100%;
    text-align: left;
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.2;
}

.punched-card-content .row {
    gap: 2rem;
}

.punched-card-image {
    flex: 0 0 34%;
}

.punched-card-description {
    flex: 1 1 auto;
}

.punched-card-description p {
    font-size: clamp(16px, 1.3vw, 1.45rem);
    line-height: 1.6;
}

.punched-card .centered-img {
    border-radius: 0;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}

.punched-card-footer {
    position: absolute;
    right: 2rem;
    bottom: 1.5rem;
    transform: rotate(-8.66deg);
    z-index: 2;
}

.punched-card-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 200%;
    font-family: var(--font-primary);
    font-size: clamp(18px, 1.8vw, 20px);
    line-height: 1;
    color: rgba(239, 243, 255, 1) !important;
    -webkit-text-stroke: 0 !important;
    text-decoration: none !important;
    background: rgba(46, 35, 34, 1);
    box-shadow: 3px -3px 1px rgba(0, 0, 0, 0.3);
}

.punched-card-footer a:hover,
.punched-card-footer a:focus-visible {
    transform: translateY(-0.2rem);
}

#carousel-img {
    margin: 1rem 1rem 1rem 0;
    display: inline-block;
    background-size: cover;
}

.carousel {
    z-index: 100;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap;
}

.carousel:first-child {
    height: 50% !important;
    display: inline-block;
    overflow: hidden;
}

.carousel img {
    /* width: auto !important; */
    max-height: 30%;
    /*object-fit: scale-down;*/
    cursor: e-resize;
    object-fit: cover;
    object-position: center;
}

.centered-img {
    display: block;
    margin: auto;
    max-width: 100%;
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center;
    align-self: flex-start;
    filter: grayscale(var(--value, 100%));
    border-radius: calc(10px + 0.5vw);
}

/*
.centered-img {
        max-width: 100%;
        width: 100%;
        height: 200px;
        object-fit: cover;

*/

.floating-img {
    display: inline-flex;
    float: right;
    width: 30%;
    height: auto;
    border-radius: calc(10px + 0.5vw);
    margin-top: 2.5%;
    margin-left: 2.5%;
    filter: grayscale(var(--value, 100%));
}


.floating-img:hover,
.centered-img:hover {
    transition: all 0.5s ease;
    filter: grayscale(var(--value, 0%));
}

.footer {
    position: static;
    margin: 2rem 0 0;
    width: 100%;
    height: auto;
    background: transparent;
    text-align: center;
    padding-bottom: calc(var(--bottom-nav-height) + 1rem);
}

.footer-copy {
    border-top: 0px;
}

.mobile-subheading {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .section-nav:hover .section-nav-list {
        display: flex;
    }
}


@media only screen and (max-width: 780px) {

    :root {
        --font-size-body: 18px;
        --font-size-heading: 34px;
    }

    body {
        overflow-x: hidden;
        word-break: break-word;
        hyphens: manual;
        text-align: left;
        font-size: var(--font-size-body);
        padding-left: 0;
    }

    .row {
        flex-direction: column;
    }

    .centered-row {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        align-items: center;
    }

    .column {
        width: 100%;
        flex-basis: 100%;
    }

    .floating-img {
        float: none;
        width: 100%;
        margin: 0 0 1rem 0;
    }

    #programs~.row {
        padding: 2rem;
        padding-left: 4rem;
    }

    .split-paper {
        flex-direction: column;
        gap: 3rem;
    }

    .punched-card {
        padding: 2rem 1.5rem 6.5rem 3.5rem;
    }

    .punched-card::before {
        left: 0.5rem;
        width: 2rem;
        background-size: 2rem 4.8rem;
    }

    .punched-card-header {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .punched-card .byline {
        width: 100%;
        text-align: left;
    }

    .punched-card-content .row {
        gap: 1rem;
    }

    .punched-card-image,
    .punched-card-description {
        flex: 1 1 auto;
        width: 100%;
    }


    .punched-card-footer a {
        font-size: clamp(16px, 5vw, 24px);
        padding: 0.6rem 1.1rem;
    }

    .centered-img {
        max-width: 400px;
        width: 100%;
        height: 200px;
        object-fit: cover;
        object-position: center;
        margin: 10px 0;
        align-self: stretch;
        border-radius: calc(10px + 0.5vw);
    }

    .black-zine-fair {
        font-size: calc(var(--font-size-display) * 0.6);
        line-height: 75%;
    }

    .fair-button {
        display: none;
    }

    .exhibitor ul,
    ul {
        margin-top: 0;
        list-style-type: none;
    }

    .corner-actions {
        right: 0.75rem;
        gap: 0.5rem;
        top: 1rem;
        gap: 0.5rem;
    }

    .mobile-subheading {
        display: block;
    }

    .scroll-hint {
        display: block;
    }

    .section-nav {
        /*left: calc(var(--sidebar-width) + 0.75rem);
        width: calc(100% - var(--sidebar-width) - 0.75rem);
        padding: 0.6rem 0.75rem;
        justify-content: flex-start;*/

        display: none;
        /*no bottom nav on mobile */
    }

    .section-nav.open .section-nav-list {
        display: flex;
    }

    /*
    .section-nav-list {
        justify-content: flex-start;
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .section-nav-list li {
        flex: 0 1 auto;
    }
    */

    .content {
        margin: 0 auto !important;
        padding-top: 2rem;
        padding-left: 1rem;
        /*calc(var(--sidebar-width) - 4.5rem);*/
        padding-right: 1rem;
        padding-bottom: 2rem;
        max-width: 100%;
    }

    main {
        padding-bottom: 10rem !important;
    }

    /* cta buttons */
    .corner-action.rsvp {
        font-size: clamp(18px, 4vw, 28px);
        padding: 1rem 1.6rem;
    }

    .corner-action.donate {
        font-size: clamp(16px, 4vw, 24px);
        padding: 1rem 1.3rem;
        top: -1rem;
        right: 0;
        margin-right: 0;
    }

    /* press section */
    .press-card {
        flex: 0 0 calc(80% - 0.25rem);
    }

    /* sidebar collage */

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1200;
        width: var(--sidebar-width);
        height: 100svh;
        pointer-events: none;
    }

    .sidebar-layer {
        position: absolute;
        height: 100svh;
        inset: 0;
        max-width: none;
    }


    .sidebar-layer-white {
        transform: translate(-20%, 0);
        display: none;
    }

    .sidebar-layer-bzf {
        width: 100%;
        height: auto;
        margin-top: 0;
    }

    .sidebar-layer-lined {
        display: none;
    }

    .sidebar-layer-free {
        display: none;
    }

    .sidebar-layer-date-time {
        display: none;
    }

    .sidebar-layer-location {
        display: none;
    }

    /* Jagged bottom strip to suggest a ripped-paper edge on split cards. */

    .split-paper .paper-card {
        padding-bottom: 3rem;
        margin-bottom: 8rem;
    }

    .split-paper .paper-card::after {
        bottom: -9rem;
        width: 100.4%;
        height: 10rem;
    }

    .punched-card{
        padding-left: 5rem;
    }


    /*
    .sidebar-layer-lined {
        left: -40vw;
        top: 0;
        position: absolute;
        left: 0;
        bottom: 0;
        transform: translateX(-22%) translateY(-0%);
        margin-top: 0;
    }

    .sidebar-layer-free {
        width: 110%;
        top: 0;
        height: auto;
        left: 0;
        margin-top: 0;
    }

    .sidebar-layer-date-time {
        width: 110%;
        height: auto;
        left: 0;
        margin-top: auto;
    }

    .sidebar-layer-location {
        width: 110%;
        height: auto;
        left: 0vw;
        bottom: 0%;
        margin-top: auto;
    }
    */
}