/* Blog — the index list and the post page. */
.blog-list {
    padding: 48px 0 96px;
}

.post-entry {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
    align-items: start;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: opacity 0.3s ease;
}

.post-entry:hover {
    opacity: 0.7;
}

.post-entry-cover {
    grid-column: 1 / 5;
}

.post-entry-cover img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--border-color);
}

.post-entry-text {
    grid-column: 5 / 13;
}

.post-entry-meta,
.post-meta,
.post-back {
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 16px;
    color: var(--text-body);
    opacity: 0.6;
}

.post-entry-meta {
    margin-bottom: 8px;
}

.post-entry-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    line-height: 40px;
    letter-spacing: -0.02em;
    color: var(--text-tagline);
    margin-bottom: 8px;
}

.post-entry-desc {
    font-size: 0.9rem;
    line-height: 24px;
    opacity: 0.7;
    max-width: 560px;
}

/* POST */
.post {
    max-width: 792px;
    padding: 48px 0 96px;
}

.post-back {
    display: inline-block;
    margin-bottom: 24px;
}

.post-back:hover {
    opacity: 1;
}

.post-meta {
    margin-bottom: 16px;
}

.post-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 64px;
    letter-spacing: -0.025em;
    color: var(--text-tagline);
    margin-bottom: 16px;
}

.post-subtitle {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.25rem;
    line-height: 32px;
    opacity: 0.7;
    margin-bottom: 48px;
}

.post-body p {
    font-size: 1rem;
    line-height: 24px;
    margin-bottom: 24px;
}

.post-body h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    line-height: 40px;
    letter-spacing: -0.02em;
    color: var(--text-tagline);
    margin: 48px 0 16px;
}

.post-body h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 32px;
    color: var(--text-tagline);
    margin: 32px 0 8px;
}

.post-body pre {
    position: relative;
    border: 1px solid var(--border-color);
    padding: 16px;
    margin: 0 0 24px;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85rem;
    line-height: 24px;
}

.post-body pre::before {
    content: attr(data-lang);
    position: absolute;
    top: 8px;
    right: 16px;
    font-family: var(--font-body);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
}

.post-body figure {
    margin: 32px 0;
}

.post-body figure img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--border-color);
}

.post .post-back:last-child {
    margin: 48px 0 0;
}

@media (max-width: 768px) {
    .blog-list {
        padding: 24px 0 64px;
    }

    .post-entry {
        display: block;
    }

    .post-entry-cover {
        margin-bottom: 16px;
    }

    .post {
        padding: 24px 0 64px;
    }

    .post-title {
        font-size: 2rem;
        line-height: 40px;
    }
}
