html, body {
    font-family: "Cormorant Infant", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 18px;
    background: #111112;
}

code, pre {
    font-family: 'Iosevka Web', monospace;
}

.navbar.is-dark {
    background: #111112;
}

.navbar-item.is-active {
    background: #171718;
}

/* Bulma draws the burger, and its X when open, in the link blue. */
.navbar-burger {
    color: #dddddd;
}

.navbar-burger:hover,
.navbar-burger:active {
    background-color: #1a1a1a;
}

.navbar h1 {
    font-size: 25px;
}

.navbar-brand .brand-text {
    font-size: 1.11rem;
    font-weight: bold;
}

.hero-body {
    background-image: url('data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 250px;
}

.title {
    color: #dddddd;
}

.articles {
    margin: -200px 0 2rem;
}

.articles .content p {
    line-height: 1.9;
    margin: 15px 0;
}

.author-image {
    position: absolute;
    top: -30px;
    left: 50%;
    width: 60px;
    height: 60px;
    margin-left: -30px;
    border: 3px solid #ccc;
    border-radius: 50%;
}

.media-center {
    display: block;
    margin-bottom: 1rem;
}

.media-content {
    margin-top: 3rem;
}

.article, .promo-block {
    margin-top: 6rem;
}

div.column.is-8:first-child {
    padding-top: 0;
    margin-top: 0;
}

.article-title {
    font-size: 2rem;
    font-weight: lighter;
    line-height: 2;
    color: #dddddd;
}

.article-subtitle {
    color: #dddddd;
    margin-bottom: 3rem;
}

.article-body {
    line-height: 1.4;
    margin: 0 2rem;
    color: #bbbbbb;
}

@media (max-width: 768px) {
    .article-body {
        margin: 0;
    }
}

.article-body img,
.article-body video {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Opt in with {.fade}: the edges fade out, so light images don't end in a hard
   line against the dark page. Two gradients, one per axis, intersected. */
.article-body img.media-fade {
    --fade: 8%;
    mask-image:
        linear-gradient(to right, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent),
        linear-gradient(to bottom, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
    mask-composite: intersect;
}

.article-body audio {
    display: block;
    width: 100%;
}

.article-body .media-embed {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.article-body .media-pending,
.article-body .media-missing {
    display: block;
    padding: 2rem 1rem;
    border: 1px dashed #555555;
    color: #888888;
    text-align: center;
}

.promo-block .container {
    margin: 1rem 5rem;
}

.card-content {
    background: #1a1a1a;
}

.card {
    background-color: transparent;
}

.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
    color: #dddddd;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

.content h2:not(:first-child) {
    margin-top: 1.5em;
}

.content h1 {
    font-size: 3em;
    font-weight: 700;
}

.content h1:first-of-type {
    margin-top: 0 !important;
}

strong {
    color: #ffffff;
    font-weight: 700;
}

.content blockquote {
    background-color: #111112;
    border-left: 5px solid #282828;
    padding: 1.25em 1.5em;
}

.content table thead td, .content table thead th {
    border-width: 0 0 2px;
    color: #dddddd;
}

pre {
    background-color: #111112;
    color: #dddddd;
    padding: 1.25em 1.25em;
}

.code-block {
    position: relative;
}

.code-copy {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    padding: 0.2em 0.6em;
    border: 1px solid #333333;
    border-radius: 4px;
    background: #1a1a1a;
    color: #bbbbbb;
    font-family: 'Iosevka Web', monospace;
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
}

/* Bulma's bottom margin on pre would otherwise sit between it and the wrapper. */
.content .code-block:not(:last-child) {
    margin-bottom: 1em;
}

.content .code-block pre {
    display: flex;
    margin-bottom: 0;
}

/* The code scrolls sideways on its own, so the line numbers stay in view. */
.code-block pre code {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
}

/* Vertical padding matches highlight.js's padding on the code, so the
   numbers line up with their lines. */
.code-lines {
    flex: none;
    padding: 1em 0.75em 1em 0;
    border-right: 1px solid #2a2a2a;
    color: #888888;
    text-align: right;
    user-select: none;
}

.code-block:hover .code-copy,
.code-copy:focus-visible {
    opacity: 1;
}

/* Touch screens can't hover, so keep the button visible there. */
@media (hover: none) {
    .code-copy {
        opacity: 1;
    }
}

.code-copy:hover {
    color: #ffffff;
    border-color: #555555;
}

code {
    background-color: #111112;
    color: #dddddd;
}

.paginator {
    margin-bottom: 20px;
}

.pagination-link,
.pagination-ellipsis {
    background-color: #1a1a1a;
    border-color: #333333;
    color: #bbbbbb;
}

.pagination-ellipsis {
    background-color: transparent;
}

.pagination-link:hover,
.pagination-link:focus-visible {
    border-color: #555555;
    color: #ffffff;
}

/* A lighter border and text, rather than Bulma's blue, mark the current page. */
.pagination-link.is-current {
    background-color: #1a1a1a;
    border-color: #888888;
    color: #ffffff;
}

.footer {
    background-color: #111112;
}

.hljs {
    background-color: transparent;
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: #171718;
    }

    .navbar-link.is-active, .navbar-link:focus, .navbar-link:focus-within, .navbar-link:hover, a.navbar-item.is-active, a.navbar-item:focus, a.navbar-item:focus-within, a.navbar-item:hover {
        background-color: #1a1a1a;
    }
}
