.editorial-home {
    background: #f8f7f2;
    color: #211f28;
    padding-bottom: clamp(48px, 8vw, 96px);
}

.editorial-journal {
    max-width: 1160px;
}

.editorial-masthead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: clamp(28px, 6vw, 76px);
    margin-top: 24px;
    background: #e1dbff;
}

.editorial-masthead h1,
.editorial-section-head h2,
.editorial-pick h3,
.editorial-entry h3 {
    font-family: system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.03;
}

.editorial-masthead h1 {
    margin-top: 8px;
    font-size: clamp(44px, 9vw, 114px);
}

.editorial-kicker,
.editorial-entry time {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.editorial-deck {
    max-width: 48ch;
    margin-top: 16px;
    font-size: clamp(17px, 2.4vw, 23px);
}

.editorial-jump {
    display: inline-block;
    margin-top: 20px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.editorial-mark {
    color: #5332b4;
    font-size: clamp(50px, 17vw, 220px);
    line-height: 1;
}

.editorial-home .gh-topics {
    padding-inline: 0;
}

.editorial-selection,
.editorial-writing {
    margin-top: clamp(36px, 7vw, 84px);
}

.editorial-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 24px;
    margin-bottom: 22px;
}

.editorial-section-head h2 {
    font-size: clamp(36px, 6vw, 72px);
}

.editorial-picks {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 12px;
}

.editorial-pick {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: clamp(22px, 4vw, 46px);
}

.editorial-pick h3 {
    font-size: clamp(27px, 4.2vw, 54px);
}

.editorial-book {
    grid-row: span 2;
    background: #d9ee77;
}

.editorial-leadership {
    background: #f6d1e2;
}

.editorial-personal {
    background: #e1dbff;
}

.editorial-personal > p:last-child {
    max-width: 48ch;
}

.editorial-art {
    display: block;
    width: fit-content;
    max-width: 100%;
}

.editorial-art img,
.gh-container .gh-card-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
}

.editorial-leadership img {
    max-height: 230px;
}

.editorial-home a:hover {
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

.editorial-entries {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.editorial-entry {
    padding-block: 18px;
    border-top: 1px solid #bcb8c3;
}

.editorial-entry h3 {
    margin-top: 6px;
    font-size: clamp(21px, 3vw, 32px);
}

.gh-container .gh-card-image {
    aspect-ratio: auto;
}

.gh-container .gh-card-image img {
    position: static;
}

@media (max-width: 680px) {
    .editorial-masthead,
    .editorial-picks,
    .editorial-entries {
        grid-template-columns: 1fr;
    }

    .editorial-mark {
        display: none;
    }

    .editorial-book {
        grid-row: auto;
    }
}

.editorial-archive-heading {
    padding-top: clamp(36px, 7vw, 84px);
}

.editorial-archive-heading h1 {
    font-family: system-ui, sans-serif;
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.03;
}

.editorial-archive-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #d9ee77;
    color: #211f28;
    font-weight: 700;
}

.editorial-archive-footer,
.editorial-archive-pagination {
    margin-top: 22px;
}

.editorial-archive-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.editorial-post-header .gh-article-tag {
    justify-self: start;
    padding: 5px 10px;
    background: #e1dbff;
    color: #211f28;
    font-weight: 700;
}

.editorial-post-header .gh-article-title {
    font-family: system-ui, sans-serif;
    font-size: clamp(36px, 5.6vw, 66px);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.06;
}

.editorial-post-header .gh-article-image {
    grid-column: main;
    margin-top: clamp(20px, 4vw, 36px);
}

.editorial-post-header .gh-feature-image,
.post-template .gh-content .kg-image-card:not(.kg-width-wide):not(.kg-width-full) .kg-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(55vh, 420px);
    margin-inline: auto;
    object-fit: contain;
}

@media (min-width: 900px) {
    .editorial-post-split {
        width: calc(100% - var(--container-gap) * 2);
        max-width: 1080px;
        margin-inline: auto;
        padding: clamp(28px, 4vw, 52px);
        background: #e1dbff;
        color: #211f28;
        grid-template-columns: [main-start] minmax(0, 1fr) [main-end] clamp(260px, 30vw, 340px);
        column-gap: clamp(24px, 4vw, 56px);
        align-content: center;
    }

    .editorial-post-split .gh-article-image {
        grid-column: 2;
        grid-row: 1 / span 4;
        align-self: center;
        margin-top: 0;
    }

    .editorial-post-split .gh-article-tag {
        background: #f8f7f2;
    }

    .editorial-post-split .gh-article-meta-content {
        color: #51465d;
    }
}

@media (max-width: 899px) {
    .editorial-post-header {
        padding-block: 28px;
        background: #e1dbff;
        color: #211f28;
    }

    .editorial-post-header .gh-article-tag {
        background: #f8f7f2;
    }

    .editorial-post-header .gh-article-meta-content {
        color: #51465d;
    }

    .editorial-post-header .gh-feature-image {
        max-height: min(40vh, 300px);
    }
}

/* Imported posts can end with a run of empty paragraphs. */
.post-template .gh-content > p:empty:not(:has(~ :not(p:empty))) {
    display: none;
}

.post-template .gh-post-footer {
    margin-top: 24px;
}
