.post-content {
    max-width: 72ch;
    margin: 0 auto;
    padding: 64px 28px 48px;
    font-size: 18px;
}

.post-content .post-title,
.post-content article > h1 {
    margin: 0 0 20px;
    font: 400 clamp(30px, 4vw, 44px)/1.15 Georgia, 'Times New Roman', serif;
    letter-spacing: -.03em;
    text-wrap: balance;
    color: #292b35;
}

.post-content a {
    color: #716294;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.post-content a:hover { color: #514264; }
.post-content ::selection { background: #ebe5f0; color: #292b35; }

.post-meta {
    color: #646876;
    font-size: 12px;
    letter-spacing: .09em;
    margin: 0 0 40px;
    text-transform: uppercase;
}

.post-body {
    font-size: 1em;
    line-height: 1.75;
    color: #292b35;
    overflow-wrap: break-word;
}

.post-body p, .post-body ul, .post-body ol { margin: 0 0 1.4em; }
.post-body li + li { margin-top: .4em; }
.post-body :is(h1, h2, h3, h4, h5, h6) {
    margin: 1.8em 0 .6em;
    line-height: 1.25;
    color: #292b35;
    text-wrap: balance;
}
.post-body h1, .post-body h2 {
    font: 400 clamp(26px, 3vw, 32px)/1.25 Georgia, 'Times New Roman', serif;
    letter-spacing: -.02em;
}
.post-body h3 { font-size: 23px; font-weight: 500; }
.post-body h4 { font-size: 19px; }
.post-body h5, .post-body h6 { font-size: 18px; }

.post-onward {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 28px;
    margin-top: 64px;
    padding-top: 20px;
    border-top: 1px solid #e4e5eb;
    font-size: 16px;
}
.post-onward a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    box-sizing: border-box;
    padding: 12px 20px;
    border: 1px solid #d6cedf;
    border-radius: 24px;
    background: #fff;
    color: #514264;
    text-decoration: none;
    line-height: 1.4;
}
.post-onward a:hover { background: #eee9f1; color: #514264; }
.post-onward #another-article { background: #716294; border-color: #716294; color: #fff; }
.post-onward #another-article:hover { background: #514264; border-color: #514264; }

@media (max-width: 600px) {
    .post-content { padding: 40px 22px 32px; font-size: 17px; }
    .post-onward { margin-top: 48px; }
}

.post-body img {
    max-width: 100%;
}

.post-body blockquote {
    border-left: 1px solid #b9adc8;
    padding-left: 20px;
    margin: 20px 0;
    color: #646876;
    font-style: italic;
}

.post-body pre {
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 0.9em;
    line-height: 1.6;
    margin: 20px 0;
}

.post-content video {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.post-content .flex-row {
    display: flex;
    flex-wrap: wrap;
    padding-top: 2rem;
    overflow: hidden;
}

.post-content .flex-row img {
    flex: 1 0 auto;
    width: 25%;
    padding: 0;
    object-fit: cover;
}

.post-content .flex-row video {
    flex: 1 0 auto;
    width: 25%;
    padding: 0 5%;
    object-fit: cover;
}

.post-content .flex-row iframe {
    flex: 1 0 auto;
    box-sizing: border-box;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    padding: 0;
    object-fit: cover;
}

@media (max-width: 768px) {
    .post-content .flex-row img {
        width: 50%;
    }
}

@media (max-width: 480px) {
    .post-content .flex-row img {
        width: 100%;
    }
}

.post-content .caption {
    width: 100%;
    color: #646876;
    margin: 0 auto;
    text-align: center;
    font-size: 16px;
    padding: 1rem 0 3rem 0;
}

.video-grid {
    padding: 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 100%;
}

.video-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.left-column {
    grid-column: 1 / 2;
}

.right-column {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* 1:1 aspect ratio */
}

.video-container.tall {
    padding-top: calc(200% + 4rem);
    /* 2:1 aspect ratio plus gap */
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-caption {
    text-align: center;
    color: #646876;
    font-size: 0.9rem;
    margin: 0.5rem 0 1rem 0;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }

    .right-column {
        grid-column: 1 / 2;
        grid-row: auto;
    }

    .video-container.tall {padding-top: calc(200% + 4rem);
        /* 1:1 aspect ratio on mobile */
    }
}

.blockquote-link[data-href] {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}


.blockquote-link[data-href]:hover blockquote,
.blockquote-link[data-href]:hover blockquote p {
    color: #111;
}

/* Locked drafts (layout: protected) and local draft previews. */
.pp-gate {
    max-width: 420px;
    margin: 80px auto;
    text-align: center;
}

.pp-gate h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

.pp-note {
    color: #777;
    font-size: 1em;
    line-height: 1.5;
    margin: 0 0 24px 0;
}

.pp-row {
    display: flex;
    gap: 10px;
}

.pp-row input {
    flex: 1;
    padding: 12px 14px;
    font-size: 1em;
    font-family: inherit;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
}

.pp-row input:focus {
    outline: none;
    border-color: #999;
}

.pp-row button {
    padding: 12px 20px;
    font-size: 1em;
    font-family: inherit;
    color: #fff;
    background-color: #383838;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.pp-row button:hover {
    background-color: #555;
}

.pp-row button:disabled {
    background-color: #acacac;
    cursor: default;
}

.pp-error {
    color: #b00020;
    font-size: 0.95em;
    margin: 16px 0 0 0;
}

.draft-banner {
    max-width: 800px;
    margin: 0 auto 30px auto;
    padding: 10px 16px;
    text-align: center;
    font-size: 0.95em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #8a6d00;
    background-color: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 10px;
}
