@font-face {
    font-family: "Berkeley Mono";
    font-weight: 100 150;
    src: url("./BerkeleyMonoVariable-Regular.woff2") format("woff2-variations");
}

html {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 50px;
    font-family: "Berkeley Mono";
    font-weight: 100;
}

h2 {
    margin-top: 2em;
    margin-bottom: 0;
    font-size: 1.33em;
}

sup a {
    margin-left: 3px;
    margin-right: 2px;
    text-decoration: none;
}

blockquote {
    margin-top: 2em;
    margin-left: 0;
    padding-left: 1em;
    border-left: 2px solid #bdbdbd;
}

.visualization {
    height: 400px;
    margin: 1em 0;
}

iframe {
    width: 100%;
    height: calc(100% - 2em);
    border: none;
}

label {
    cursor: pointer;
    display: inline-block;
    margin-bottom: 1em;
    padding: 0 14px;
    border: 1px solid black;
    background-color: white;
}

input:checked + label {
    border-color: #17a391;
    background-color: #17a391;
    color: white;
}

input[data-type="static"]:not(:checked) ~ img,
input[data-type="interactive"]:not(:checked) ~ iframe {
    display: none;
}

input[data-type="static"]:checked ~ img,
input[data-type="interactive"]:checked ~ iframe {
    display: block;
}

img {
    width: 100%;
}

ol {
    counter-reset: item;
}

li {
    position: relative;
    list-style: none;
}

li::before {
    content: "["counter(item)"]";
    counter-increment: item;
    font-weight: 125;
    position: absolute;
    right: calc(100% + 14px);
}
