body.single-post,
.editor-styles-wrapper.post-type-post {
    background: #03051a;
    color: #f7f8f7;
    padding: 0;
}

.single-post .wp-site-blocks {
    padding: 0;
}

.bw-post {
    box-sizing: border-box;
    width: min(1080px, calc(100% - 48px));
    margin: 40px auto 120px;
    font:
        400 16px/1.5 'Satoshi',
        Arial,
        Helvetica,
        sans-serif;
}

.bw-post .wp-block-post-title,
.editor-styles-wrapper.post-type-post .editor-post-title,
.editor-styles-wrapper.post-type-post .wp-block-post-title {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.bw-post-updated {
    gap: 0.3em;
    font-size: 20px;
}

.bw-post-updated > * {
    margin: 0;
}

.bw-post > .wp-block-post-content > * {
    margin-block: 0 40px;
}

.bw-post .bw-post-separator {
    width: 100%;
    max-width: none;
    border: 0;
    border-top: 1px solid rgb(247 248 247 / 15%);
    opacity: 1;
}

.bw-post .wp-block-post-content {
    overflow-wrap: anywhere;
}

.bw-post .wp-block-post-content h2,
.editor-styles-wrapper.post-type-post .is-root-container h2 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
}

.bw-post img,
.bw-post video,
.editor-styles-wrapper.post-type-post .is-root-container :is(img, video) {
    display: block;
    max-width: 100%;
    height: auto;
}

.bw-post-hero figure {
    margin: 0;
}

.bw-post-hero img,
.bw-post-hero video {
    width: 100%;
}

@media (max-width: 767px) {
    .bw-post {
        width: calc(100% - 32px);
        margin-block: 32px 64px;
    }

    .bw-post-updated {
        font-size: 16px;
    }
}

/* The native Post editor has no frontend article wrapper. */
.editor-styles-wrapper.post-type-post {
    font:
        400 16px/1.5 'Satoshi',
        Arial,
        Helvetica,
        sans-serif;
}

.editor-styles-wrapper.post-type-post .is-root-container {
    overflow-wrap: anywhere;
}

/* Use the native in-content title instead of a duplicate Post title control. */
.editor-styles-wrapper.post-type-post:has(
        .is-root-container .wp-block-post-title
    )
    .editor-visual-editor__post-title-wrapper {
    display: none;
}

.bw-post > .wp-block-post-content {
    margin: 0;
}

.bw-post-body > :first-child {
    margin-block-start: revert;
}

.bw-post-body > :last-child {
    margin-block-end: revert;
}

.bw-post > .wp-block-post-content > :last-child {
    margin-block-end: 0;
}

.bw-post-body {
    display: flow-root;
}
