.post-wrap {
    max-width: 980px;
    margin: 0 auto;
}

#article {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}

.post-hero {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 28px;
    background: rgba(255, 255, 255, .04);
}

.post-header {
    width: 100%;
    margin-top: 22px;
    margin-bottom: 16px;
    padding: 0;
    display: grid;
    gap: 12px;
    align-items: stretch;
    justify-content: start;
    color: var(--primary-color);
    background: transparent;
}

.post-header h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.1;
}

.post-meta {
    display: grid;
    gap: 8px;
    font-size: .9rem;
    opacity: .86;
}

.post-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
}

.post-meta a,
.crumbs a {
    color: var(--secondary-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.badge {
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: .8rem;
    text-transform: uppercase;
}

.post-content {
    color: var(--primary-color);
    opacity: .98;
    line-height: 1.72;
    font-size: 1rem;
}

.post-lead {
    max-width: 720px;
    font-size: clamp(1.025rem, 1.6vw, 1.1rem);
    line-height: 1.55;
    opacity: .84;
}

.post-content h2 {
    margin-top: 2em;
}

.post-content h3 {
    margin-top: 1.5em;
}

.post-content ul,
.post-content ol {
    margin: 0 0 1.5em;
}

.post-content a,
.author-box a,
.editorial-note a {
    color: var(--secondary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.author-box,
.editorial-note {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid rgba(212, 238, 236, .32);
    border-radius: 24px;
    background: rgba(212, 238, 236, .09);
}

.author-box,
.editorial-note {
    display: grid;
    gap: 8px;
}

.post-conversion {
    margin: 28px 0 18px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin-bottom: .55em;
}

.post-content p {
    margin-bottom: 1.5em;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 28px;
}

.post-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.loader {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .25);
    border-top-color: var(--secondary-color);
    animation: spin .9s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.empty {
    opacity: .85;
    font-style: italic;
    text-align: center;
    padding: 20px;
    border: 1px dashed rgba(255, 255, 255, .25);
    border-radius: 28px;
}

.pn-nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 26px;
}

@media (max-width: 640px) {
    .pn-nav {
        flex-direction: column;
    }
}

.pn-nav a {
    text-decoration: none;
}

.pn-item {
    flex: 1 1 50%;
    border: 1px solid rgba(212, 238, 236, .25);
    border-radius: 28px;
    padding: 16px;
    display: grid;
    gap: 4px;
    color: var(--primary-color);
    background: rgba(255, 255, 255, .055);
    transition: border-color .18s ease, background-color .18s ease;
}

.pn-item:hover {
    border-color: rgba(212, 238, 236, .5);
    background: rgba(212, 238, 236, .1);
}

.pn-item--next {
    text-align: right;
}

.pn-label {
    font-size: .8rem;
    opacity: .8;
    text-transform: uppercase;
}

pre {
    overflow: auto;
    background: rgba(255, 255, 255, .04);
    padding: 12px;
    border-radius: 12px;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* breadcrumb tiny */
.crumbs {
    font-size: .9rem;
    opacity: .9;
    display: flex;
    gap: 6px;
    align-items: center;
    margin: 10px 0 2px 0;
}

.crumbs a {
    color: var(--secondary-color);
}
