
body {
    margin: 0;
    padding: 0;
    font-size: 20px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

.content {
    max-width: 640px;
    margin: 0 auto;
}

.header {
    padding: 3em 0;
}

a {
    color: #f05349;
}

.footer {
    background: #f4f4f4;
    text-align: center;
    font-size: 0.8em;
    margin-top: 4em;
    padding: 4em 0;
}

figure {
    margin: 0;
    padding-bottom: 1.2em;
}

figcaption {
    font-size: 0.8em;
    text-align: center;
    margin-top: 0.5em;
    color: #666;
}

h1 {
    font-family: 'Lora', Georgia, serif;
    font-weight: bold;
    font-size: 2.5em;
    line-height: 1.1;
}

h2 {
    font-family: 'Lora', Georgia, serif;
    font-weight: bold;
    font-size: 1.5em;
    line-height: 1.1;
}

.subhead {
    font-family: 'Lora', Georgia, serif;
    padding-bottom: 0;
}

iframe,
img,
video {
    max-width: 100%;
}

p {
    line-height: 1.6;
    margin: 0;
    padding-bottom: 1.2em;
}

ul {
    margin: 0;
    padding-bottom: 1em;
    line-height: 1.6;
}

iframe {
    padding-bottom: 1.2em;
}

code {
    font-family: 'Courier New', monospace;
    background: #fffbaf;
    font-size: 0.85em;
}

.full-width figure {
    text-align: center;
}

/* margin on mobile */
@media (max-width: 640px) {
    .content {
        padding: 0 1rem;
    }
    #scroll-content #svg-chart {
        height: 900px;
    }
}

/*scrollama related styles*/
#scroll-content {
    position: relative;
    padding: 1rem;
}

#scroll-content #text {
    position: relative;
    padding: 0;
    max-width: 20rem;
    margin: 0 auto;
}

#scroll-content #svg-chart {
    position: sticky;
    top: 0;
    width: 100%;
    max-width: 600px;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    z-index: 0;
}

#scroll-content #svg-chart svg {
    display: block;
    max-width: 100%;
    height: auto;
}

#scroll-content .step {
    all: unset;
    display: block;
    width: 100%;
    max-width: 600px;
    max-height: 100px;
    min-height: 100px;
    margin: 0 auto 1rem auto;
    margin-bottom: 30rem;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    color: black;
    text-align: center;
}
