:root {
    --color-bg:               light-dark( #f7f7f7, #131212);
    --color-body:             light-dark( #202024, #999999);
    --color-header:           light-dark( #000000, #bbbbbb);
    --color-secondary:        light-dark( #808080, #909090);
    --color-secondary-active: light-dark( #c0c0c0, #d0d0d0);
    --color-nav:              light-dark( #d0d0d0, #d0d0d0);
    --color-nav-bg:           light-dark( #000000, #303030);
    --color-nav-active:       light-dark( #ffffff, #ffffff);
    --duration-color-trans: 0.2s;
    --color-crumb:        var(--color-secondary);
    --color-crumb-active: var(--color-secondary-active);
}

/* ----- BASE ----- */

body {
    font-family: "Roboto", "Arial", sans-serif;
    font-optical-sizing: auto;
    margin: 0;
    font-size: 1.05em;
    background-color: var(--color-bg);
    color: var(--color-body);
    transition: all var(--duration-color-trans);
}

.b-section {
    padding: 0 20px;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

.b-section > div {
    max-width: var(--section-width);
    margin: 0 auto;
}

/* ----- HEADER ----- */

.h-section {
    --section-width: 1400px;
    --color-crumb: var(--color-nav);
    --color-crumb-active: var(--color-nav-active);
    position: fixed;
    width: 100%;
    top: 0;
    background-color: var(--color-nav-bg);
    min-height: 3em;
}

.h-section .h-nav {
    margin-top: 0.8em;
}

.h-section, .h-section a {
    color: var(--color-nav);
    transition: all var(--duration-color-trans);
    text-decoration: none;
}

.h-section > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

.h-section a:hover, .h-title-expand:hover {
    color: var(--color-nav-active);
}

.h-nav-social {
    line-height: 1;
    font-size: 1.2em;
    flex-shrink: 0;
}

.h-title-text {
    font-family: "Lora", serif;
    font-weight: 500;
    font-size: 1.5em;
    max-height: 0;
    margin-bottom: 0;
    overflow: hidden;
    transition: max-height 0.2s, margin-bottom 0.4s;
}

.h-title-text.h-title-text-show {
    max-height: 2.8em;
    margin-bottom: 0.5em;
}

.h-title-expand {
    font-size: 1.5em;
    line-height: 1;
    display: none;
    vertical-align: middle;
    cursor: pointer;
    margin-left: 20px;
}

.h-main-crumbs {
    display: none;
}

main {
    padding-block-start: 3em;
}

@media only screen and (max-width: 600px) {
    .h-section {
        white-space: nowrap;
        overflow: hidden;
    }

    .h-section .h-nav {
        display: none;
    }

    .h-nav-crumbs {
        display: none;
    }

    .h-title {
        min-height: 3.2em;
        align-items: center;
    }

    .h-title-text {
        font-size: 1em;
    }

    .h-title-text.h-title-text-show {
        margin-bottom: 0.1em;
    }

    .h-title-expand, .h-title-expand svg {
        display: block;
    }

    h1.w-hero-title {
        font-size: 2.8em;
        margin-block-start: 0;
    }

    .h-main-crumbs {
        display: block;
    }
}

/* ----- POST ----- */

.w-section-hero {
    --section-width: 900px;
}

.w-section-hero > div {
    margin-block-end: 3.5em;
    border-block-end: 2px solid var(--color-secondary);
}

.w-section-hero > div > div {
    margin-block-end: 1em;
}

.w-hero-crumbs {
    margin-block-start: 1.5em;
    margin-block-end: 0;
}

.w-hero-title {
    margin-block-end: 0;
}

.w-hero-subtitle {
    font-style: italic;
    font-size: 1.2em;
    color: var(--color-secondary);
}

.w-hero-img img {
    width: 100%;
    object-fit: cover;
}

.w-section-hero > div > div.w-hero-img {
    margin-block-end: 2em;
}

.w-hero-date {
    color: var(--color-secondary);
}

.w-section-content {
    --section-width: 700px;
}

.w-content.w-dropcap-init > p:first-child:first-letter,
.w-content.w-dropcap-section > hr + p:first-letter {
    font-family: "Lora", serif;
    font-weight: 500;
    font-size: 3.5em;
    float: left;
    margin: 0.1em 0.1em 0.1em 0;
    line-height: 0.65;
    color: var(--color-header);
}

/* push fragment links down so the heading is visible under the page header */
.w-content h2:before,
.w-content h3:before,
.w-content h4:before,
.w-content h5:before,
.w-content h6:before {
    display: block;
    content: "";
    margin-top: -3.5em;
    height: 3.5em;
    visibility: hidden;
}

/* ----- PAGE CONTENT ----- */

h1 {
    font-size: 3.2em;
}

h2 {
    font-size: 2em;
}

h1, h2 {
    font-family: "Lora", serif;
    font-weight: 500;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-header);
}

p, ol, ul {
    line-height: 1.6;
}

hr {
    border: none;
    border-bottom: 1px solid var(--color-secondary);
    margin: 2em 0;
}

@media print {
    main {
        padding-block-start: 0;
    }

    .h-section {
        position: static;
    }

    .h-nav-social {
        display: none;
    }

    .w-hero-title {
        margin-block-start: 0;
    }
}

/* ----- INCLUDES ----- */

/* social */
.so-icon {
    margin-inline-start: 8px;
    vertical-align: top;
}

/* breadcrumbs */
.cr-crumb {
    font-family: "Roboto Mono", "Consolas", monospace;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--color-crumb);
    transition: color var(--duration-color-trans);
    text-decoration: none;
}

a.cr-crumb:after {
    content: " » ";
    font-size: 1.35em;
    line-height: 0.65;
    color: var(--color-crumb);
}

a.cr-crumb:hover {
    color: var(--color-crumb-active);
}
