/* Post index */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post-summary-link {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    text-decoration: none;
    padding: 1rem 0;
    border-bottom: 1px solid #d8dee4;
}

.post-summary-link:hover {
    text-decoration: none;
}

.post-summary-link .post-entry-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
}

.post-summary-link .post-entry-thumb img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #d8dee4;
}

.post-summary-link .post-entry-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 4px;
    background: #ddf4ff;
    border: 1px solid #d8dee4;
}

.post-summary-link .post-entry-text {
    flex: 1;
    min-width: 0;
}

.post-summary h2 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.post-summary time {
    color: #57606a;
    font-size: 0.85rem;
}

.post-summary p {
    margin-top: 0.5rem;
    color: #57606a;
}

/* Individual post */
.post-header h2 {
    font-size: 1.5rem;
    color: #24292f;
    margin-bottom: 0.25rem;
}

.post-header time {
    color: #57606a;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 2rem;
}

.post-body h3 {
    font-size: 1.2rem;
    color: #24292f;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.post-body p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.post-body ul,
.post-body ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.post-body li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

.post-body pre {
    background: #f6f8fa;
    border: 1px solid #d8dee4;
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

.post-body code {
    font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
}

.post-body p code,
.post-body li code {
    background: #f6f8fa;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.85em;
}

.post-body blockquote {
    border-left: 3px solid #0969da;
    padding-left: 1rem;
    margin-bottom: 1rem;
    color: #57606a;
    font-style: italic;
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.post-body th,
.post-body td {
    border: 1px solid #d8dee4;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.post-body th {
    background: #f6f8fa;
    color: #24292f;
    font-weight: 600;
}

.post-body strong {
    color: #24292f;
}

.post-body .toc {
    list-style: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: #f6f8fa;
    border: 1px solid #d8dee4;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.8;
}

.post-body .toc li {
    margin-bottom: 0;
}

.post-body figure {
    margin: 1.5rem 0;
}

.post-body figure img {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #d8dee4;
    background: #f6f8fa;
    display: block;
}

.post-body figure.compact img {
    width: 50%;
    margin: 0 auto;
}

.post-body figure video {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #d8dee4;
    display: block;
}

.post-body figure.compact video {
    width: 50%;
    margin: 0 auto;
}

.post-body figcaption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #57606a;
    line-height: 1.5;
}

.post-footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #d8dee4;
}
