.post-main {
    width: 100%;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    padding: clamp(1.5rem, 4vw, 2.75rem) var(--site-container-gap, 1rem);
    box-sizing: border-box;
    background: var(--site-bg, transparent);
    color: var(--site-text, #0f172a);
}

.post-article {
    width: 100%;
    max-width: 100%;
}

.post-header {
    margin-bottom: var(--site-section-gap, 1.5rem);
    padding-bottom: var(--site-content-gap, 1.25rem);
    border-bottom: 1px solid var(--site-border, rgba(15, 23, 42, 0.12));
}

.post-title {
    margin: 0 0 0.5rem;
    font-family: var(--site-font-family, inherit);
    font-size: var(--site-font-size-h1, clamp(1.75rem, 5vw, 2.5rem));
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--site-text, #0f172a);
}

.post-meta {
    font-family: var(--site-font-family, inherit);
    font-size: var(--site-font-size-caption, 0.8125rem);
    line-height: 1.5;
    color: var(--site-muted, var(--site-header-text, #64748b));
}

.post-body {
    font-family: var(--site-font-family, inherit);
    font-size: var(--site-font-size-body, 1rem);
    line-height: 1.8;
    color: var(--site-text, #0f172a);
    word-break: break-word;
}

.post-body > *:first-child {
    margin-top: 0;
}

.post-body > *:last-child {
    margin-bottom: 0;
}

.post-body p {
    margin: 0 0 1.1em;
}

.post-body h2 {
    margin: 1.75em 0 0.65em;
    font-size: var(--site-font-size-h2, 1.5rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--site-text, #0f172a);
}

.post-body h3 {
    margin: 1.5em 0 0.55em;
    font-size: var(--site-font-size-h3, 1.25rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--site-text, #0f172a);
}

.post-body h4 {
    margin: 1.35em 0 0.5em;
    font-size: var(--site-font-size-h4, 1.0625rem);
    font-weight: 600;
    line-height: 1.35;
    color: var(--site-text, #0f172a);
}

.post-body h2:first-child,
.post-body h3:first-child,
.post-body h4:first-child {
    margin-top: 0;
}

.post-body a {
    color: var(--site-primary, #1d4ed8);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.post-body a:hover {
    opacity: 0.88;
}

.post-body ul,
.post-body ol {
    margin: 0 0 1.1em;
    padding-left: 1.35em;
}

.post-body ul {
    list-style: disc;
}

.post-body ol {
    list-style: decimal;
}

.post-body li {
    margin: 0.35em 0;
}

.post-body li > ul,
.post-body li > ol {
    margin-bottom: 0.35em;
}

.post-body blockquote {
    margin: 1.25em 0;
    padding: 0.75em 1em 0.75em 1rem;
    border-left: 4px solid var(--site-primary, #1d4ed8);
    background: var(--site-secondary, rgba(29, 78, 216, 0.06));
    border-radius: 0 0.5rem 0.5rem 0;
    color: var(--site-text, #0f172a);
}

.post-body blockquote p:last-child {
    margin-bottom: 0;
}

.post-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.25em auto;
    border-radius: 0.5rem;
    box-sizing: border-box;
}

.post-body figure {
    margin: 1.25em 0;
}

.post-body figcaption {
    margin-top: 0.5em;
    font-size: var(--site-font-size-caption, 0.8125rem);
    color: var(--site-muted, var(--site-header-text, #64748b));
    text-align: center;
}

.post-body code {
    font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
    font-size: 0.9em;
    padding: 0.15em 0.4em;
    border-radius: 0.25rem;
    background: var(--site-secondary, rgba(15, 23, 42, 0.06));
    border: 1px solid var(--site-border, rgba(15, 23, 42, 0.1));
}

.post-body pre {
    margin: 1.25em 0;
    padding: 1rem 1.1rem;
    overflow-x: auto;
    font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
    font-size: 0.875em;
    line-height: 1.6;
    border-radius: 0.5rem;
    background: var(--site-card, #fff);
    border: 1px solid var(--site-border, rgba(15, 23, 42, 0.12));
    color: var(--site-text, #0f172a);
}

.post-body pre code {
    padding: 0;
    border: 0;
    background: none;
    font-size: inherit;
}

.post-body table {
    width: 100%;
    margin: 1.25em 0;
    border-collapse: collapse;
    font-size: 0.9375em;
}

.post-body th,
.post-body td {
    padding: 0.5em 0.65em;
    border: 1px solid var(--site-border, rgba(15, 23, 42, 0.12));
    text-align: left;
}

.post-body th {
    background: var(--site-secondary, rgba(15, 23, 42, 0.04));
    font-weight: 600;
}

.post-body hr {
    margin: 2em 0;
    border: 0;
    border-top: 1px solid var(--site-border, rgba(15, 23, 42, 0.12));
}

@media (max-width: 480px) {
    .post-main {
        padding-left: max(var(--site-container-gap, 1rem), 0.875rem);
        padding-right: max(var(--site-container-gap, 1rem), 0.875rem);
    }

    .post-title {
        font-size: clamp(1.5rem, 6.5vw, 2rem);
    }

    .post-body {
        font-size: max(var(--site-font-size-body, 1rem), 15px);
    }

    .post-body h2 {
        font-size: clamp(1.25rem, 5vw, 1.4rem);
    }

    .post-body h3 {
        font-size: clamp(1.1rem, 4vw, 1.2rem);
    }
}
