/* Stockholm extension, https://github.com/annaesvensson/yellow-stockholm */

/* Colors and fonts */

:root {
    --bg: #fff;
    --code-bg: #f7f7f7;
    --important-bg: #f0f8fe;
    --heading: #333;
    --text: #444;
    --code: #666;
    --link: #444;
    --link-active: #222;
    --blockquote-accent: #444;
    --important-accent: #222;
    --separator: #ddd;
    --border: #bbb;
    --font: 'PT-Sans', Helvetica, sans-serif;
    --font-heading: 'Sorts Mill Goudy', Georgia, 'Times New Roman', serif;
    --font-monospace: Consolas, Menlo, Courier, monospace;
}

/* General */
html, body, div, form, pre, span, tr, th, td, img {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
}
body {
    margin: 1em;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1em;
    font-weight: 400;
    line-height: 1.75;
}
h1, h2, h3, h4, h5, h6 {
    margin: 0.5em 0 0.25em 0;
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 400;
}
h1 {
    margin: 1em 0 0 0;
    font-size: 1.85em;
}
.main > h1:has(~ .slider-wrapper) {
    display: none;
}
.slider-wrapper {
    margin: 5.5em 0;
}
.slide-caption {
    color: var(--text);
    font-family: var(--font);
}
hr {
    height: 1px;
    background: var(--separator);
    border: 0;
    width: 200px;
    margin-top: 1.5em;
}
strong {
    font-weight: bold;
}
code {
    font-size: 1.1em;
}
a {
    color: var(--link);
    text-decoration: underline;
    transition: 0.2s;
}
h1 a {
    color: var(--link);
    text-decoration: none;
}

/* Content */

.content {
    width: 100%;
    max-width: 45em;
    margin: 0 auto;
}
.content h1 {
    margin: 1em 0 0 0;
}
.content h1 a {
    color: var(--heading);
}
.content h1 a:hover {
    color: var(--heading);
    text-decoration: none;
}
.content img {
    max-width: 100%;
    height: auto;
}
.content form {
    margin: 1em 0;
}
.content table {
    border-spacing: 0;
    border-collapse: collapse;
}
.content th:not([align]) {
    text-align: left;
}
.content th,
.content td {
    padding: 0.3em;
    padding-left: 2em;
}
.content th:first-child,
.content td:first-child {
    padding: 0.3em;
}
.content th {
    border-bottom: 1px solid var(--separator);
}
.content code,
.content pre {
    font-family: var(--font-monospace);
    font-size: 90%;
}
.content code {
    padding: 0.15em 0.4em;
    margin: 0;
    background-color: var(--code-bg);
    color: var(--code);
    border-radius: 3px;
}
.content pre > code {
    padding: 0;
    margin: 0;
    white-space: pre;
    background: transparent;
    border: 0;
    font-size: inherit;
}
.content pre {
    padding: 1em;
    overflow: auto;
    line-height: 1.45;
    background-color: var(--code-bg);
    color: var(--code);
    border-radius: 3px;
}
.content blockquote {
    margin-left: 0;
    padding-left: 1em;
    font-weight: bold;
    border-left: 3px solid var(--blockquote-accent);
}
.content details summary {
    margin: inherit;
    cursor: pointer;
}
.content details > * {
    margin: 1em 0 1em 1em;
}
.content .important {
    margin: 1em 0;
    padding: 10px 1em;
    background-color: var(--important-bg);
    border-left: 10px solid var(--important-accent);
}
.content .flexible {
    position: relative;
    padding-top: 0;
    padding-bottom: 56.25%;
}
.content .flexible iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.content .task-list-item {
    list-style-type: none;
}
.content .task-list-item input {
    margin: 0 0.2em 0.25em -1.75em;
    vertical-align: middle;
}
.content .toc {
    margin: 0;
    padding: 0;
    list-style: none;
}
.content .wikipages ul,
.content .wikitags ul,
.content .wikilinks ul {
    padding: 0;
    list-style: none;
    column-width: 19em;
}
.content .previousnext .previous {
    margin-right: 1em;
}
.content .pagination .previous {
    margin-right: 1em;
}
.content .pagination {
    margin: 1em 0;
}
.content .left {
    float: left;
    margin: 0 1em 0 0;
}


/* Entry */
.entry-meta p {
    font-size: 0.9em;
    margin: 0 0 1.3em 0;
}
.entry-content p {
    font-weight: normal;
    font-size: 1em;
    margin: 0 0 1em 0;
}
.entry-title {
    margin: 2.25em 0 0 0;
}

/* Header */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    max-width: 55em;
    margin: auto;
    padding: 0.75em 0 0 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.header .sitename {
    display: block;
}
.header .sitename h1 {
    margin: 0;
    font-size: 1em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.header .sitename h1 a {
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 2em;
}
.header .sitename h1 a:hover {
    color: var(--link);
}
.header .sitename p {
    margin-top: 0;
    color: var(--text);
}
.header .sitename-banner,
.header .navigation-banner {
    display: none;
}
    

/* Navigation */

.navigation {
    display: block;
}
.navigation a {
    color: var(--text);
    text-decoration: none;
    padding: 0.25em 0;
    margin: 0 0.5em;
}
.navigation a:hover {
    color: var(--link);
    border-bottom: solid 2px var(--link-active);
}
.navigation ul {
    margin: 0 -0.5em;
    padding: 0;
    list-style: none;
}
.navigation li {
    display: inline;
}
.navigation li a.active {
    border-bottom: solid 2px var(--link-active);
}
/* Footer */

.footer {
    margin: 9em auto 3em auto;
    text-align: center;
    font-size: 0.9em;
}
.footer .siteinfo a {
    color: var(--link);
}
/* Forms and buttons */

.form-control {
    margin: 0;
    padding: 2px 4px;
    display: inline-block;
    min-width: 7em;
    background-color: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9em;
    font-family: inherit;
    font-weight: normal;
    line-height: normal;
}
.btn {
    margin: 0;
    padding: 4px 22px;
    display: inline-block;
    min-width: 7em;
    background-color: #eaeaea;
    color: #333333;
    background-image: linear-gradient(to bottom, #f8f8f8, #e1e1e1);
    border: 1px solid var(--border);
    border-color: #c1c1c1 #c1c1c1 #aaaaaa;
    border-radius: 4px;
    outline-offset: -2px;
    font-size: 0.9em;
    font-family: inherit;
    font-weight: normal;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}
.btn:hover,
.btn:focus,
.btn:active {
    color: #333333;
    background-image: none;
    text-decoration: none;
}
.btn:active {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Burger */

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
}
.burger::before,
.burger::after,
.burger span {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    position: absolute;
    left: 0;
    transition: transform 0.2s;
}
.burger::before { top: 0; }
.burger span { top: 50%; transform: translateY(-50%); }
.burger::after { bottom: 0; }

/* Responsive and print */

.page {
    margin: 0 auto;
    max-width: 1000px;
}

@media screen and (min-width: 52em) {
    body {
        margin: 1em auto;
    }
    .page {
        margin: 0;
        max-width: none;
    }
}
@media screen and (max-width: 51em) {
    .slider-wrapper {
        margin: 1.5em 0;
    }
    .burger {
        display: block;
    }
    .nav-wrapper {
        position: relative;
    }
    .navigation {
        display: none;
        position: absolute;
        top: calc(100% + 1em);
        right: 0;
        background: var(--bg);
        border: 1px solid var(--separator);
        border-radius: 4px;
        padding: 0.5em 1em;
        z-index: 200;
    }
    .navigation.open {
        display: block;
    }
    .navigation ul {
        margin: 0;
        padding: 0;
    }
    .navigation li {
        display: block;
    }
    .navigation a {
        display: block;
        padding: 0.4em 0;
        margin: 0;
        border-bottom: none;
    }
}
@media screen and (max-width: 32em) {
    body {
        font-size: 0.9em;
    }
    .content h1,
    .content h2 {
        font-size: 1.75em;
    }
}
@media print {
    .page {
        border: none !important;
    }
}

/* Custom */

/* Email obfuscation — CSS splitting (bots that only parse HTML) */
.email-at {
    display: none;
}
.yellow-pane {
    z-index: 200;
}