/* Overrides the site's preserved Code Injection without changing its content. */
#gh-head .gh-head-actions > .gh-search {
    min-width: 44px;
    min-height: 44px;
}

#gh-head .gh-head-logo,
body:has(#gh-main .gh-feed) .gh-card-title,
:is(.page-about, .home-template) .gh-article-title,
.post-template .gh-article-title,
.post-template .gh-content h2,
.post-template .gh-content h3 {
    letter-spacing: 0;
}

:is(.page-about, .home-template) .gh-article-title {
    font-size: 36px;
}

:is(.page-about, .home-template) .gh-content > p:first-of-type {
    font-size: 20px;
    line-height: 1.6;
}

.gw-selected-essays {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #deded9;
}

.gw-selected-essays h2 {
    margin: 0 0 8px;
    color: #6b6b66;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
}

.gw-selected-essays ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gw-selected-essays li + li {
    border-top: 1px solid #e3e3de;
}

.gw-selected-essays a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 24px;
    padding: 18px 0;
    color: #262626;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.gw-selected-essays a:hover {
    opacity: 1;
}

.gw-selected-essays a:hover span {
    text-decoration: underline;
    text-decoration-color: #a5a59d;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.gw-selected-essays time {
    color: #6b6b66;
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.post-template .gh-article-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
}

.gh-foot .gh-foot-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
    max-width: 720px;
    padding-top: 16px;
    border-top: 1px solid #deded9;
}

.gh-member-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.gh-member-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #646460;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
}

.gh-member-nav a:hover {
    color: #262626;
}

@media (max-width: 767px) {
    #gh-head .gh-head-inner {
        grid-template-columns: minmax(0, 1fr) auto auto;
        grid-template-rows: auto;
        gap: 12px;
        padding: 12px 0;
    }

    #gh-head .gh-head-brand {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    #gh-head .gh-head-menu {
        grid-column: 2;
        grid-row: 1;
    }

    #gh-head .gh-head-actions {
        grid-column: 3;
        grid-row: 1;
    }

    #gh-head .gh-head-logo {
        font-size: 17px;
    }

    #gh-head .gh-head-actions > .gh-search {
        display: inline-flex;
    }

    :is(.page-about, .home-template) .gh-article-title {
        font-size: 28px;
    }

    :is(.page-about, .home-template) .gh-content > p:first-of-type {
        font-size: 18px;
    }

    .gw-selected-essays {
        margin-top: 36px;
    }

    .gw-selected-essays a {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        font-size: 17px;
    }
}
