.post {
    border: 1px dashed color-mix(in oklab, var(--color-muted) 25%, transparent);
    border-top: none;
    margin-inline: auto;
    max-width: 100%;
    overflow: hidden;
    padding: 24px;
    width: 768px;
}

.navigation.post-detail-nav .text {
    align-items: stretch;
    max-width: none;
    width: 100%;
}

.post-detail-nav .text > p {
    align-items: baseline;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1rem;
    margin: 0;
    min-width: 0;
    width: 100%;
}

.post-detail-nav__trail {
    align-items: baseline;
    display: inline-flex;
    flex-shrink: 0;
    gap: 0.35rem;
    margin-left: auto;
    text-align: right;
    text-wrap: auto;
    white-space: nowrap;
}

.post-detail-nav__trail .post-detail-nav__crumb {
    opacity: 0.5;
}

.post-prose {
    color: color-mix(in oklab, var(--color-text) 64%, transparent);
    font-size: 0.88rem;
    font-weight: 350;
    letter-spacing: -0.02em;
    line-height: 1.2rem;
    text-align: left;
    text-transform: none;
    text-wrap: pretty;
}

.post-prose > * + * {
    margin-top: 1.75rem;
}

.post-prose > * + .post-figure,
.post-prose > .post-figure + *,
.post-prose > * + .post-code,
.post-prose > .post-code + * {
    margin-top: 24px;
}

.post-prose h1 {
    font-size: inherit;
    font-weight: 400;
    line-height: 1.75rem;
}

.post-figure {
    background: var(--color-accent);
    border: 1px dashed color-mix(in oklab, var(--color-muted) 25%, transparent);
    margin: 24px 0;
    padding: 0;
}

.post-prose > .post-figure:first-child,
.post-prose > .post-code:first-child {
    margin-top: 0;
}

.post-code {
    --post-code-bg: var(--color-accent);
    --post-code-fg: color-mix(in oklab, var(--color-text) 72%, transparent);
    --post-code-keyword: var(--color-primary);
    --post-code-global: #e879f9;
    --post-code-type: #7dd3fc;
    --post-code-literal: #f0abfc;

    background: var(--post-code-bg);
    border: 1px dashed color-mix(in oklab, var(--color-muted) 25%, transparent);
    margin: 24px 0;
    overflow-x: auto;
    padding: 24px;
}

.post-code__pre {
    color: var(--post-code-fg);
    font-family: "Geist Mono", monospace;
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.5;
    margin: 0;
    tab-size: 4;
    text-transform: none;
    white-space: pre;
}

.post-code__src {
    color: inherit;
    font: inherit;
}

.post-code .tok-kw {
    color: var(--post-code-keyword);
}

.post-code .tok-gl {
    color: var(--post-code-global);
}

.post-code .tok-ty {
    color: var(--post-code-type);
}

.post-code .tok-lt {
    color: var(--post-code-literal);
}

.post-figure__label {
    color: var(--color-muted);
    font-size: 0.88rem;
    line-height: 1.75rem;
    margin: 0 0 1.75rem;
}

.post-figure img {
    display: block;
    height: auto;
    width: 100%;
}

.post-figure iframe {
    aspect-ratio: 16 / 9;
    background: var(--color-background);
    border: 0;
    display: block;
    height: auto;
    width: 100%;
}

.post-figure figcaption {
    color: var(--color-muted);
    font-size: 0.88rem;
    line-height: 1.75rem;
    margin: 1.75rem 0 0;
}

.post-index-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    width: 100%;
}

.post-index-list a {
    background-color: transparent;
    border: none;
    color: inherit;
    line-height: inherit;
    padding: 0;
    text-decoration: none;
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
    vertical-align: baseline;
}

.post-index-list__row {
    align-items: baseline;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1rem;
    justify-content: space-between;
    min-width: 0;
    width: 100%;
}

.post-index-list__row .text-muted {
    flex-shrink: 0;
}

.post-index-list__row a {
    min-width: 0;
    text-align: left;
}

@media (max-width: 479px) {
    .post-detail-nav .text > p {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }

    .post-detail-nav__trail {
        margin-left: 0;
        text-align: left;
    }
}

@media (max-width: 639px) {
    .post-prose {
        font-size: 0.8rem;
        line-height: 1.1rem;
    }

    .post-prose h1 {
        line-height: 1.35rem;
    }

    .post-code__pre {
        font-size: 0.8rem;
    }

    .post-figure figcaption,
    .post-figure__label {
        font-size: 0.8rem;
        line-height: 1.35rem;
    }
}

@media (hover: hover) and (pointer: fine) {
    .post-index-list a:hover {
        background: transparent;
        background-color: transparent;
        color: inherit;
    }

    .post-index-list a:hover .link-label {
        background-color: color-mix(in oklab, var(--color-primary) 12%, transparent);
        color: var(--color-primary);
    }
}
