:root {
    --color: #000;
    --background: #fff;
    color: var(--color);
    background: var(--background);
    font-family: "Newsreader", serif;
    font-size-adjust: from-font;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    margin: 0;
}

main {
    width: 100%;
}

section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
    position: relative;
    margin-bottom: 6rem;
}

section>* {
    max-width: 600px;
    margin: 0 0 0 auto;
}

.nowrap {
    white-space: nowrap;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.section--wide * {
    max-width: 100%;
}

.section--wide {
    padding: 3rem 0;
    max-width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    background: #f5f5f5;
}

.section--wide>div {
    margin: 0 auto;
}

.section--wide canvas {
    display: block;
    margin: 0 auto;
}

.section--wide.bg--full {
    padding: 0;
    background: var(--color);
}

.section--title {
    border-bottom: none;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section--title > * {
    margin: 0;
}

h1 {
    line-height: 86%;
    font-size: 9.5rem;
    font-optical-sizing: auto;
    font-weight: 500;
    margin: 11rem 0 0.1em 0;
}

h2 {
    font-size: 1.5rem;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    margin: 0;
}

.title h2 {
    font-size: 3rem;
    margin: 1em 0;
}

strong {
    font-weight: 600;
}

h1,
h2,
p,
.lil-logo {
    position: relative;
    z-index: 1000;
}

.lil-logo {
    display: block;
}

.lil-logo svg {
    margin-right: auto;
    display: block;
}

img, 
figure {
    display: block;
    max-width: 100%;
}

.caption { 
    position: relative;
}

.caption p {
    font-size: 1rem;
    font-optical-sizing: auto;
    font-weight: 400;
}

.caption p:first-child,
cite {
    margin-left: -15rem;
    width: 15rem;
    position: absolute;
    text-align: right;
}

.caption p:first-child {
    bottom: 0;
    margin-bottom: 0;
    margin-top: 0;
    padding: 1rem;
    line-height: 120%;
}

.photo-attribution {
    font-size: 0.75rem;
    font-style: italic;
    display: inline-block;
    line-height: 120%;
    height: 0;
    margin: 0;
}

.footnote-link {
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    color: black;
}

p a {
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    color: black;
}

.footnote-link:hover + cite, .footnote-link:focus + cite {
    opacity: 1;
    visibility: visible;
}

.footnote-link:hover sup {
    background: var(--color);
    color: var(--background);
}

cite {
    font-style: normal;
    left: 0;
    opacity: 0;
    visibility: hidden;
    display: block;
    transition: all 300ms;
    font-size: 1rem;
    padding: 0 1rem;
    margin-top: -1.4687rem;
    line-height: 120%;
}

figure {
    filter: grayscale(1);
    margin: 0;
}

figure img {
    max-height: 700px;
}

p {
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 150%;
    font-size: 1.25rem;
}

p em {
    font-size: inherit;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: italic;
}

a {
    cursor: pointer;
}

#defaultCanvas0 {
    display: none;  
}

#decay-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

#canvas-number-line-container {
    position: absolute;
    min-height: 100vh;
    max-width: 100vw;
    z-index: 1000;
}

#canvas-number-line-container canvas {
    width: 100% !important;
}

#the-building-by-the-plum-orchard {
    margin-top: -1rem;
}

.hero {
    height: 100vh;
    top: 0;
    padding: 8rem 5vw;
    width: 100%;
    max-width: 1800px;
    max-height: 100vh;
    margin: 0 auto 600px auto;
    display: flex;
    align-items: center;
}

.hero h2 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 3.5rem;
    height: 100%;
    width: 100%;
    max-height: 1000px;
    max-width: 100%;
    font-optical-sizing: auto;
    font-weight: 100;
    color: var(--background);
}

.hero > h2 span:first-child {
    margin: 0 auto 0 0;
}

.hero > h2 span:last-child {
    margin: 0 0 0 auto;
}

.title {
    margin-bottom: 12rem;
}

.title .lil-logo {
    display: block;
}

.title .lil-logo svg {
    width: 18rem;
    margin: 0 auto 0 0;
}

.chapter-nav {
    z-index: 1001;
    font-style: normal;
    position: sticky;
    top: 1rem;
    left: 1rem;
    width: min-content;
    height: 0;
    mix-blend-mode: exclusion;
}

nav {
    width: 180px;
    padding-top: 1rem;
}

nav ol {
    margin: 0;
    padding: 0 0 0 1rem;

}

nav li {
    margin: 0.25rem 0;
    line-height: 120%;
    transition: opacity 300ms;
    opacity: 0.3;
    color: var(--background);
}

nav li.active,
nav li:hover,
nav li:focus-within {
    opacity: 1 !important;
}

nav li a {
    text-decoration: none;
    color: var(--background);
    display: block;
}


nav li a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.mini-nav {
    background: var(--background);
    width: 160px;
    height: 20px;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    border-left: 1px solid var(--background);
}

.mini-nav>span {
    background: var(--color);
    border: 1px solid var(--background);
    border-left: none;
    height: 100%;
    text-decoration: none;
}

.mini-nav .on,
.mini-nav span:hover {
    background: var(--background);
}

.lil-logo svg {
    width: 100%; 
    max-width: 32rem;
    display: block;
}

#credits {
    min-height: 100vh;
}

#credits .lil-logo {
    margin-bottom: 14rem;
}

@media screen and (max-width: 1080px) {
    h1 {
        font-size: 7rem;
    }

    section {
        padding-top: 5rem;
        margin-bottom: 2rem;

    }

    section > * {
        margin: 0 auto;
    }

    .hero {
        align-items: center;
        display: flex;
    }

    .hero h2 {
        margin: 0 auto !important;
        text-align: center;
        display: block;
        background: var(--color);
        height: auto;
        max-width: 36rem;
        font-size: 3rem;
        padding: 1.5rem;
        line-height: 120%;
        font-weight: 300;
    }

    .hero h2 br {
        display: none;
    }

    .title h2 {
        font-size: 2rem;
    }

    .title {
        margin-bottom: 6rem;
    }
    .title .lil-logo svg {
        width: 13rem;
    }

    .chapter-nav {      
        mix-blend-mode: normal;  
        width: 100%;
        max-width: calc(600px + 2rem); 
        z-index: 1001;
        font-style: normal;
        position: relative;    
        height: auto;   
        margin: 0 auto 5rem auto;
        left: 0;
    }

    .mini-nav {
        display: none;
    }

    nav {
        width: auto;
        margin: 0 1rem;
    }

    nav ol {
        padding-left: 1.5rem;
    }

    nav li {
        opacity: 1;
        line-height: 150%;
        font-size: 1.3rem;
        color: var(--color);
    }
    nav li a {
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 2px;
        color: var(--color);
    }

    .caption p:first-child{
        margin-left: 0;
        margin-top: 1rem;
        position: relative;
        display: block;
        width: 100%;
        text-align: left;
        padding: 0;
    }

    .caption p:first-child br {
        display: none;
    }

    cite {
        display: none;
    }

    .photo-attribution {
        height: auto;
        margin: 0.5em 0;
    }

    .section--title {
        min-height: 0;
    }

    .section--wide {
        overflow: hidden;
        padding: 1.5rem 0;
    }

    .section--wide * {
        max-width: none;
    }

    #credits {
        min-height: 400px;
    }
}

@media screen and (max-width: 800px) {
    h1 {
        font-size: 5rem;
    }

    .hero h2 {
        font-size: 7.5vw;
    }
}

@media screen and (min-width: 1600px) {
    h1 {
        font-size: 10rem;
    }

    .hero h2 {
        font-size: 5rem;
    }
}
