@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500;600&family=Inter:wght@400;500;600;700;800;900&family=Literata:opsz,wght@7..72,400;7..72,500;7..72,700&display=swap");

:root {
    --sidebar-width: 320px;
    --paper: #fbfcfd;
    --sidebar-bg: #f3f7fa;
    --ink: #070b12;
    --text: #283747;
    --muted: #667486;
    --middle-gray: #8a94a3;
    --rule: #d7e0e8;
    --rule-strong: #111827;
    --blue: #2b8cef;
    --visited: #5b3fa4;
    --cyan: #00a3ff;
    --lime: #a7ff3f;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --serif: "Literata", Georgia, "Times New Roman", serif;
    --mono: "IBM Plex Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--paper);
    font-size: 18px;
}

body {
    min-height: 100%;
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--serif);
    line-height: 1.6;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
}

a:visited {
    color: var(--visited);
}

a:hover,
a:focus {
    color: var(--blue);
    text-decoration-line: underline;
}

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

img {
    height: auto;
}

button,
input {
    font: inherit;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: var(--sidebar-width);
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--sidebar-bg);
    border-right: 2px solid var(--rule-strong);
    font-family: var(--sans);
    color: var(--ink);
}

.sidebar-accent {
    display: grid;
    grid-template-columns: 2fr 1fr;
    width: 100%;
    height: 5px;
    background: var(--ink);
}

.accent-cyan {
    background: var(--cyan);
}

.accent-lime {
    background: var(--lime);
}

.sidebar-inner {
    padding: 26px 24px 36px;
}

.sidebar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 32px;
}

.site-identity {
    display: grid;
    gap: 10px;
    width: 100%;
    min-width: 0;
    justify-items: center;
    text-align: center;
}

.site-portrait-placeholder {
    width: min(180px, 72%);
    aspect-ratio: 1;
    margin: 0 auto 4px;
    border-radius: 50%;
    background: var(--blue);
    overflow: hidden;
    justify-self: center;
}

.site-portrait-placeholder img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-wordmark {
    display: inline-block;
    max-width: 230px;
    color: var(--blue);
    font-family: var(--sans);
    font-size: 31px;
    font-weight: 900;
    line-height: 0.94;
    letter-spacing: 0;
    text-decoration: none;
}

.site-wordmark:visited,
.site-wordmark:hover,
.site-wordmark:focus {
    color: var(--blue);
    text-decoration: none;
}

.site-tagline,
.site-author {
    max-width: 235px;
    margin: 0;
    color: var(--text);
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.35;
    letter-spacing: 0;
}

.site-author {
    color: var(--muted);
}

.site-author strong {
    color: var(--ink);
    font-weight: 800;
}

.site-domain {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
    word-break: break-word;
}

.site-domain:visited {
    color: var(--ink);
}

.sidebar-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.menu-toggle {
    display: none;
}

.mobile-cta {
    display: none;
}

.mobile-menu-summary {
    display: none;
}

.project-counter {
    padding: 0 0 25px;
    font-family: var(--sans);
    text-align: center;
}

.project-counter-label,
.project-counter-caption {
    margin: 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: uppercase;
}

.project-counter-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin: 4px 0 3px;
    color: var(--blue);
    font-family: var(--sans);
    line-height: 1;
}

.project-counter-value strong {
    color: var(--blue);
    font-size: 34px;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: 0;
}

.project-counter-value span {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 600;
}

.sidebar-section {
    padding: 0 0 25px;
}

.sidebar-section h2 {
    margin: 0 0 10px;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: uppercase;
}

.sidebar-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
}

.sidebar-section-toggle::after {
    content: "-";
    flex: 0 0 auto;
    color: var(--blue);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
}

.sidebar-section-toggle[aria-expanded="false"]::after {
    content: "+";
}

.sidebar-section-toggle:hover,
.sidebar-section-toggle:focus {
    color: var(--blue);
}

.sidebar-collapsible-list[hidden] {
    display: none;
}

.sidebar-section p {
    margin: 0 0 10px;
    color: var(--text);
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0;
}

.sidebar-section .sidebar-inline-links {
    margin: 0;
}

.sidebar-connect-section {
    text-align: center;
}

.sidebar-section ul {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-section li {
    margin: 0;
}

.sidebar-section a,
.text-link {
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.sidebar-section a:visited,
.text-link:visited {
    color: var(--ink);
}

.sidebar-section a:hover,
.sidebar-section a:focus,
.text-link:hover,
.text-link:focus {
    color: var(--blue);
    text-decoration-line: underline;
}

.ackcent-visit-section {
    border-top: 1px solid var(--rule);
    padding-top: 18px;
    text-align: center;
}

.ackcent-visit-section .ackcent-visit-link,
.ackcent-visit-section .ackcent-visit-link:visited {
    color: var(--blue);
    text-decoration: none;
}

.ackcent-visit-section .ackcent-visit-link:hover,
.ackcent-visit-section .ackcent-visit-link:focus {
    color: var(--blue);
    text-decoration: none;
}

.ackcent-visit-prefix,
.ackcent-visit-section .ackcent-visit-link:visited .ackcent-visit-prefix {
    color: var(--muted);
}

.ackcent-visit-name,
.ackcent-visit-section .ackcent-visit-link:visited .ackcent-visit-name {
    color: var(--blue);
}

.ackcent-visit-section .ackcent-visit-link:hover .ackcent-visit-name,
.ackcent-visit-section .ackcent-visit-link:focus .ackcent-visit-name {
    text-decoration-line: underline;
}

.sidebar-search,
.subscribe-form {
    display: grid;
    grid-template-columns: 1fr auto;
    width: 100%;
    border: 1px solid var(--rule-strong);
    background: var(--paper);
}

.sidebar-search {
    border-color: var(--middle-gray);
}

.sidebar-search input,
.subscribe-form input {
    min-width: 0;
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 14px;
    line-height: 38px;
    outline: none;
}

.sidebar-search input::placeholder,
.subscribe-form input::placeholder {
    color: var(--muted);
}

.sidebar-search input:focus,
.subscribe-form input:focus {
    box-shadow: inset 0 0 0 2px var(--cyan);
}

.sidebar-search button,
.subscribe-form button {
    min-width: 72px;
    height: 38px;
    padding: 0 11px;
    border: 0;
    border-left: 1px solid var(--rule-strong);
    background: var(--ink);
    color: #fff;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 800;
    line-height: 38px;
    letter-spacing: 0;
    cursor: pointer;
}

.sidebar-search button {
    border-left-color: var(--middle-gray);
    background: var(--middle-gray);
    color: #fff;
}

.subscribe-form button {
    background: var(--lime);
    color: var(--ink);
}

.sidebar-search button:hover,
.sidebar-search button:focus {
    background: var(--blue);
}

.subscribe-form button:hover,
.subscribe-form button:focus {
    background: var(--cyan);
}

.subscribe-form .form-message {
    grid-column: 1 / -1;
    display: none;
    padding: 7px 10px 8px;
    margin: 0;
    border-top: 1px solid var(--rule-strong);
    font-size: 13px;
}

.subscribe-form.success .success-message,
.subscribe-form.error .error-message {
    display: block;
}

.site-main {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    padding: 0 clamp(58px, 8vw, 120px);
    background: var(--paper);
    max-width: 100vw;
    overflow-wrap: anywhere;
}

.content-column {
    width: min(100%, 740px);
    margin: 0 auto;
}

.post-feed {
    padding: 0;
}

.feed-post,
.single-post {
    padding-top: 32px;
    padding-bottom: 38px;
}

.post-title {
    margin: 0 0 16px;
    color: var(--blue);
    font-family: var(--sans);
    font-size: 1.76em;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: 0;
    overflow-wrap: break-word;
}

.post-title a {
    color: var(--blue);
    text-decoration: none;
}

.post-title a:visited {
    color: var(--blue);
}

.post-title a:hover,
.post-title a:focus {
    color: var(--blue);
    text-decoration: none;
}

.post-content {
    color: var(--text);
    font-family: var(--serif);
    font-size: 1.08em;
    line-height: 1.66;
    letter-spacing: 0;
    overflow-wrap: break-word;
}

.post-content > *:first-child {
    margin-top: 0;
}

.post-content > *:last-child {
    margin-bottom: 0;
}

.post-content p,
.post-content ul,
.post-content ol,
.post-content blockquote,
.post-content pre,
.post-content table,
.post-content figure {
    margin: 0 0 1.08em;
}

.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin: 1.35em 0 0.48em;
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0;
}

.post-content h2 {
    font-size: 1.38em;
}

.post-content h3 {
    font-size: 1.18em;
}

.post-content ul,
.post-content ol {
    padding-left: 1.35em;
}

.post-content li + li {
    margin-top: 0.24em;
}

.post-content a {
    color: var(--blue);
    text-decoration-line: underline;
}

.post-content a:visited {
    color: var(--visited);
}

.post-content a:hover,
.post-content a:focus {
    color: var(--blue);
}

.post-content blockquote {
    padding-left: 18px;
    border-left: 3px solid var(--cyan);
    color: var(--ink);
    font-style: normal;
}

.post-content hr {
    height: 1px;
    margin: 1.5em 0;
    border: 0;
    background: var(--rule-strong);
}

.post-content pre {
    overflow-x: auto;
    padding: 15px;
    border: 1px solid var(--rule-strong);
    color: var(--ink);
    background: #fff;
    font-family: var(--mono);
    font-size: 0.83em;
    line-height: 1.5;
}

.post-content code {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 0.86em;
}

.post-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 0.9em;
}

.post-content .kg-card,
.post-content .kg-card img,
.post-content .kg-width-wide,
.post-content .kg-width-full {
    max-width: 100%;
}

.post-content th,
.post-content td {
    padding: 8px 10px;
    border: 1px solid var(--rule-strong);
    text-align: left;
    vertical-align: top;
}

.post-content figcaption {
    margin-top: 6px;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.78em;
    line-height: 1.35;
    letter-spacing: 0;
}

.post-footer {
    margin-top: 25px;
}

.post-meta-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-top: 9px;
    border-top: 1px solid var(--rule-strong);
}

.post-date {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: uppercase;
}

.share-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: uppercase;
}

.share-links a {
    color: var(--ink);
    text-decoration: none;
}

.share-links a:visited {
    color: var(--ink);
}

.share-links a:hover,
.share-links a:focus {
    color: var(--blue);
    text-decoration-line: underline;
}

.pagination-area {
    padding: 18px 0 54px;
    border-top: 1px solid var(--rule-strong);
    font-family: var(--sans);
}

.pagination-area .pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
}

.pagination-area a {
    color: var(--ink);
}

.pagination-area a:hover,
.pagination-area a:focus {
    color: var(--blue);
}

html.js .pagination-area.is-enhanced {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.load-older {
    padding: 4px 0 60px;
    text-align: center;
    font-family: var(--sans);
}

.load-older-button {
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid var(--rule-strong);
    background: transparent;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    line-height: 38px;
    letter-spacing: 0;
    text-transform: uppercase;
    cursor: pointer;
}

.load-older-button:hover,
.load-older-button:focus {
    background: var(--ink);
    color: #fff;
}

.load-older-status {
    min-height: 18px;
    margin: 10px 0 0;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 13px;
}

@media (max-width: 1024px) {
    .site-main {
        padding-right: 60px;
        padding-left: 60px;
    }
}

@media (max-width: 900px) {
    html {
        font-size: 17px;
    }

    .sidebar-accent {
        height: 4px;
    }

    .site-sidebar {
        inset: 0 0 auto 0;
        width: 100%;
        max-width: 100vw;
        height: 64px;
        overflow: visible;
        border-right: 0;
        border-bottom: 2px solid var(--rule-strong);
    }

    .sidebar-inner {
        padding: 0 16px;
    }

    .sidebar-header {
        align-items: center;
        gap: 10px;
        min-height: 58px;
        padding: 0;
    }

    .site-identity {
        flex: 1 1 auto;
        grid-template-columns: 28px minmax(0, 1fr);
        grid-template-rows: auto;
        width: auto;
        max-width: 100%;
        align-items: center;
        justify-items: stretch;
        column-gap: 10px;
        row-gap: 0;
        text-align: left;
    }

    .site-portrait-placeholder {
        grid-row: 1;
        width: 28px;
        margin: 0;
    }

    .site-wordmark {
        grid-column: 2;
        max-width: 100%;
        font-size: 20px;
        line-height: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .site-tagline {
        display: none;
    }

    .site-author,
    .site-domain {
        display: none;
    }

    .mobile-cta,
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 38px;
        padding: 0 10px;
        border: 1px solid var(--rule-strong);
        background: var(--paper);
        color: var(--ink);
        font-family: var(--mono);
        font-size: 11px;
        font-weight: 600;
        line-height: 1;
        letter-spacing: 0;
        text-transform: uppercase;
        cursor: pointer;
    }

    .mobile-cta {
        min-width: 68px;
        justify-content: center;
        background: var(--lime);
    }

    .mobile-cta:hover,
    .mobile-cta:focus {
        background: var(--cyan);
    }

    .menu-toggle {
        min-width: 78px;
    }

    .menu-toggle-bars {
        position: relative;
        display: inline-block;
        width: 16px;
        height: 2px;
        background: var(--ink);
    }

    .menu-toggle-bars::before,
    .menu-toggle-bars::after {
        content: "";
        position: absolute;
        left: 0;
        width: 16px;
        height: 2px;
        background: var(--ink);
    }

    .menu-toggle-bars::before {
        top: -5px;
    }

    .menu-toggle-bars::after {
        top: 5px;
    }

    .sidebar-menu {
        position: fixed;
        top: 64px;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 39;
        overflow-y: auto;
        padding: 18px 16px 36px;
        border-top: 1px solid var(--rule-strong);
        background: var(--sidebar-bg);
        transform: translateY(-105%);
        visibility: hidden;
        transition: transform 160ms ease, visibility 160ms ease;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    body.sidebar-open .sidebar-menu {
        transform: translateY(0);
        visibility: visible;
    }

    body.sidebar-open .menu-toggle {
        background: var(--ink);
        color: #fff;
    }

    body.sidebar-open .menu-toggle-bars,
    body.sidebar-open .menu-toggle-bars::before,
    body.sidebar-open .menu-toggle-bars::after {
        background: #fff;
    }

    .site-main {
        margin-top: 64px;
        margin-left: 0;
        padding-right: 40px;
        padding-left: 40px;
    }

    .mobile-menu-summary {
        display: grid;
        gap: 5px;
        padding: 0 0 20px;
        margin: 0 0 22px;
        border-bottom: 1px solid var(--rule-strong);
        color: var(--text);
        font-family: var(--sans);
        text-align: left;
    }

    .mobile-menu-summary p {
        margin: 0;
        color: var(--text);
        font-size: 14px;
        line-height: 1.35;
    }

    .mobile-menu-summary strong {
        color: var(--ink);
        font-weight: 800;
    }

    .mobile-menu-title {
        color: var(--blue);
        font-family: var(--sans);
        font-size: 20px;
        font-weight: 900;
        line-height: 1.05;
    }

    .mobile-menu-summary a {
        color: var(--ink);
        font-family: var(--mono);
        font-size: 11px;
        font-weight: 600;
        overflow-wrap: anywhere;
    }

    .feed-post,
    .single-post {
        padding-top: 28px;
        padding-bottom: 34px;
    }
}

@media (max-width: 520px) {
    html {
        font-size: 16px;
    }

    .sidebar-inner {
        padding: 0 12px;
    }

    .site-wordmark {
        font-size: 18px;
        max-width: 100%;
    }

    .sidebar-actions {
        flex: 0 0 auto;
        gap: 6px;
    }

    .site-identity {
        grid-template-columns: 24px minmax(0, 1fr);
        column-gap: 8px;
    }

    .site-portrait-placeholder {
        width: 24px;
    }

    .mobile-cta {
        min-width: 60px;
        padding-right: 8px;
        padding-left: 8px;
    }

    .menu-toggle {
        min-width: 42px;
        width: 42px;
        justify-content: center;
        padding-right: 0;
        padding-left: 0;
    }

    .menu-toggle-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .sidebar-menu {
        padding-right: 15px;
        padding-left: 15px;
    }

    .site-main {
        padding-right: 15px;
        padding-left: 15px;
    }

    .post-title {
        font-size: 1.5em;
    }

    .post-content {
        font-size: 1.04em;
    }

    .post-meta-row {
        display: grid;
        gap: 8px;
    }

    .share-links {
        justify-content: flex-start;
    }

    .sidebar-search,
    .subscribe-form {
        grid-template-columns: 1fr;
    }

    .sidebar-search button,
    .subscribe-form button {
        width: 100%;
        border-top: 1px solid var(--rule-strong);
        border-left: 0;
    }

    .sidebar-search button {
        border-top-color: var(--middle-gray);
    }
}

@media (max-width: 360px) {
    .site-wordmark {
        font-size: 16px;
    }

    .mobile-cta {
        min-width: 54px;
        padding-right: 6px;
        padding-left: 6px;
        font-size: 10px;
    }

    .sidebar-inner {
        padding-right: 10px;
        padding-left: 10px;
    }

    .site-identity {
        grid-template-columns: 22px minmax(0, 1fr);
        column-gap: 7px;
    }

    .site-portrait-placeholder {
        width: 22px;
    }

    .post-title {
        font-size: 1.42em;
    }
}
