:root {
    --black: #4B2636;
    --white: #EAAED3;
    --yellow: #f4d31a;
    --link-color: #a3185e;
    --gap: 8px;
    --header-gap: 16px;
    --row-padding: 4px;
    --article-width: 36em;
}

body {
    margin: 0;
    padding: 0 var(--gap) var(--gap);
    background-color: var(--white);
    color: var(--black);

    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    opacity: 0.5;
}

.site-header a[aria-current="page"] {
    color: var(--link-color);
}

.grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    column-gap: var(--gap);
}

.logo {
    font-family: "Georgia", "Times New Roman", Times, serif;
    font-weight: 500;
    letter-spacing: -0.08em;
}
.site-header .site-title {
    display: block;
    margin-bottom: 20px;
}

a[data-formkit-toggle] {
    justify-self: start;
    align-self: start;
}

.row {
    padding: var(--row-padding) 0px;
    border-bottom: 1px solid var(--black);
}
.table-head {
    border-bottom-width: 2px;
}

.row {
    position: relative;
}
.col-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.col-title a:hover {
    opacity: 1;
}
.col-title {
    grid-column: span 4;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--white);
    padding: var(--gap) 0 0;
}

.site-header .table-head {
    margin-top: 8px;
}

.highlight {
  background: var(--black);
    color: var(--white);
    padding: 0 0.2em;
}

.site-header:has(+ .article) {
    padding-bottom: var(--header-gap);
}

.banner-wrap {
    grid-column: 1 / -1;
    max-height: 0;
    overflow: hidden;
    transition: max-height 1.6s ease;
}
.row:hover .banner-wrap {
    max-height: 40vw;
}

.banner-frame {
    position: relative;
    width: 50%;
    aspect-ratio: 3 / 1;
    margin-top: 4px;
}
.banner-threshold,
.banner-color {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.banner-threshold {

    filter: grayscale(1) brightness(calc(0.5 / var(--threshold, 0.5))) contrast(50);
    mix-blend-mode: multiply;
}

.banner-color {
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.row.playing .banner-color {
    opacity: 1;

    transition: opacity 1.5s ease-in-out 3.5s;
}
@media (prefers-reduced-motion: reduce) {
    .row.playing .banner-color {
        transition: none;
    }
}

.article {
    font-size: 20px;
    background-color: rgb(254, 192, 229);
    line-height: 1.4;
    max-width: var(--article-width);
    margin-left: auto;
    margin-right: auto;

    padding: 0.5em 1em;
    letter-spacing: 0em;
}
.article h1 {
    font-size: inherit;
    margin: 0 0 1em 0;
}
.article p {
    margin: 0 0 1em 0;
    font-family: "Georgia", Times, serif;
    font-weight: 400;
    text-indent: 1em;
}

.article p.article-meta,
.article p.works-cited {
    text-indent: 0;
}
.article-meta {
    font-size: 15px;
    font-weight: 400;
}

.article a,
a[data-formkit-toggle] {
    color: var(--link-color);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

body.intro-on #intro-spacer {
    height: 100vh;
}

body.intro-on {
    min-height: 200vh;
    box-sizing: border-box;
}

body.intro-on:not(.intro-done) .site-header,
body.intro-on:not(.intro-done) main {
    pointer-events: none;
}

body.intro-on .site-header .site-title {
    visibility: hidden;
}

#intro {
    position: fixed;

    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 10;
    background: var(--white);
    pointer-events: none;
    will-change: opacity;
}
#ascii-far,
#ascii {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

 #mantis {
    position: absolute;
    height: 120vh;
    width: auto;
    left: -5vw;
    bottom: -10vh;
    filter: invert(1);
    mix-blend-mode: color-dodge;
    opacity: 0.4;
    pointer-events: none;
    user-select: none;
}

#mantis.baked {
    will-change: transform;
    filter: none;
    mix-blend-mode: normal;
    opacity: 1;
}
#intro-hint {
    position: absolute;
    bottom: var(--gap);
    left: 0;
    right: 0;
    text-align: center;
    font-weight: 400;
}

#float-title {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    transform-origin: 0 0;

    transform: translate(calc(50vw - 50%), calc(50vh - 50%));
    will-change: transform;
    white-space: nowrap;
    pointer-events: none;
}

@keyframes logo-travel {
    from { transform: translate(var(--logo-x0), var(--logo-y0)) scale(1); }
    to   { transform: translate(var(--logo-x1), var(--logo-y1)) scale(var(--logo-s1)); }
}
@keyframes intro-fade {
    from { opacity: 1; }
    to   { opacity: 0; }
}
@keyframes mantis-drift {
    from { transform: translateY(0); }
    to   { transform: translateY(-12vh); }
}
html.native-intro #float-title,
html.native-intro #intro,
html.native-intro #mantis {
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: scroll(root block);
    animation-range: 0px var(--intro-h);
}
html.native-intro #float-title { animation-name: logo-travel; animation-duration: 1ms; }
html.native-intro #intro { animation-name: intro-fade; animation-duration: 1ms; }
html.native-intro #mantis { animation-name: mantis-drift; animation-duration: 1ms; }

html.native-intro body.intro-done #float-title {
    animation: none;
    font-size: var(--logo-end-size) !important;
    transform: translate(var(--logo-x1), var(--logo-y1));
}

body:not(.intro-on) #intro,
body:not(.intro-on) #float-title,
body:not(.intro-on) #intro-spacer {
    display: none;
}

.article img {
    display: block;
    width: 100%;
    max-width: 640px;
    height: auto;
    margin: auto;
    padding: 0 0 1em 0;
}

.article blockquote {
    margin: 0 0 1em 2.5em;
    padding-left: 1em;
    border-left: 2px solid var(--black);
    font-size: 17px;
}
.article blockquote p {
    margin-bottom: 0;
    text-indent: 0;
}

.works-cited {
    font-size: 15px;
    font-weight: 400;
}

.article a {
    overflow-wrap: anywhere;
}

@media (max-width: 800px) {

    body {
        font-size: 17px;
    }

    .article {
        font-size: 18px;
    }

    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .site-header .site-title {
        grid-column: 1 / -1;
        margin-bottom: 8px;
    }
    .site-header {
        padding-bottom: 12px;
    }

    .site-header .table-head {
        display: none;
    }

    #archive .row {
        grid-template-columns: minmax(0, 1fr);
    }
    .col-title {
        grid-column: 1 / -1;
    }
    .col-words {
        display: none;
    }
    .col-number::before {
        content: "issue ";
    }

    #mantis {
        height: auto;
        width: 120vw;
        left: -10vw;
        bottom: -5vh;
    }

    .banner-frame {
        width: 100%;
    }
}

@media (hover: none) {
    html {
        scrollbar-width: none;
    }
    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        display: none;
    }
}

@media (hover: none) {
    .banner-wrap {
        max-height: none;
        transition: none;
    }
    .banner-frame {
        margin: 4px 0;
    }

    .row.playing .banner-color {
        opacity: 0;
    }
    .row.colored .banner-color {
        opacity: 1;
        transition: opacity 3s ease-in-out;
    }
}

.formkit-form[data-uid="328c15b38f"] {
    max-width: 900px !important;
}

@media (max-width: 800px) {
    .formkit-form[data-uid="328c15b38f"] .formkit-header {
        font-size: 17px !important;
        margin-bottom: 12px !important;
    }
    .formkit-form[data-uid="328c15b38f"] .formkit-header h2 {
        font-size: 24px !important;
        line-height: 1.15 !important;
        margin: 0 !important;
    }
    .formkit-form[data-uid="328c15b38f"] .formkit-column {
        padding: 20px !important;
    }

    .formkit-form[data-uid="328c15b38f"] .formkit-background {
        height: 260px !important;
        min-height: 260px !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
    }
}

.site-footer {
    display: none;
    position: fixed;
    right: var(--gap);
    bottom: 6px;
    font-size: 12px;
    font-weight: 400;
    z-index: 20;
    pointer-events: none;
}

@media (hover: none) {
    .site-footer {
        position: static;
        text-align: right;
        padding: 24px var(--gap) 12px;
    }
}
