.nav-email {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

:root[data-theme="light"] {
    --white: #fff;
    --black: #000;
    --gray-100: #f2f2f2;
    --gray-200: #ccc;
    --gray-400: #8c8c8c;
    --gray-600: #404040;
    --blue: #3d54ff;
    --blue-hover: #3d54ff8c;
}

:root[data-theme="dark"] {
    --white: #0d0d0d;
    --black: #efefef;
    --gray-100: #1a1a1a;
    --gray-200: #343434;
    --gray-400: #989898;
    --gray-600: #c7c7c7;
    --blue: #7b8dff;
    --blue-hover: #7b8dff99;
}

body {
    background-color: var(--white);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    min-width: 1.1rem;
    opacity: 0.65;
    cursor: pointer;
}

.theme-toggle:hover {
    opacity: 1;
}

.nav-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.theme-icon {
    width: 1rem;
    height: 1rem;
    line-height: 1;
}

.theme-icon--sun,
:root[data-theme="dark"] .theme-icon--moon {
    display: none;
}

:root[data-theme="dark"] .theme-icon--sun,
:root[data-theme="light"] .theme-icon--moon {
    display: inline;
}

.site-header {
    padding-bottom: 2rem;
}

.split-left {
    min-height: calc(100vh - 7rem);
    padding: 2rem;
    padding-bottom: 0rem;
}

.split-left__content {
    flex: 1;
}

.split-left__footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

.post-link-row,
.post-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.45rem;
    align-items: baseline;
}

.external-links-meta {
    margin: 0 0 0.55rem;
    font-size: 0.76rem;
    letter-spacing: 0.03em;
    opacity: 0.55;
}

.external-link {
    align-items: center;
}

.external-link-indicator {
    font-size: 0.84rem;
    line-height: 1;
    opacity: 0.55;
    transform: translateY(-1px);
}

.post-tag {
    display: inline;
    border: 0;
    padding: 0;
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.25;
    opacity: 0.55;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.post-link-row .post-tag::before {
    content: "in ";
    opacity: 0.7;
}

.post-tag-list .post-tag:not(:last-child)::after {
    content: " \00b7";
    opacity: 0.7;
}

.title .post-tag-list {
    margin-top: 0.2rem;
}

.gh-content {
    overflow-wrap: anywhere;
}

.gh-content img {
    max-width: 100%;
    height: auto;
}

.gh-content .kg-card {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.kg-width-wide {
    max-width: 75rem;
    margin-left: auto;
    margin-right: auto;
}

.kg-width-full {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

@media screen and (max-width: 991px) {
    .site-header {
        padding-bottom: 0.25rem;
    }

    .split-left {
        min-height: calc(100dvh - 5.5rem);
        padding-bottom: 4rem; /* space for fixed contact bar */
    }

    .nav-actions {
        gap: 0.45rem;
    }

    .nav-email-wrap {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        padding: 1rem 1.25rem;
        background-color: var(--white);
        border-top: 1px solid var(--gray-200);
        z-index: 100;
    }

    .nav-email-wrap .nav-email {
        opacity: 1;
    }
}

@media screen and (max-width: 767px) {
    .nav-email-wrap {
        padding: 0.875rem 1rem;
    }
}
