.blog-hero {
    padding-bottom: 65px;
}

.author-line {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: 14px;
}

.author-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    background:
        linear-gradient(145deg, rgba(109, 158, 255, .28), rgba(18, 39, 61, .9));
    color: var(--accent-light);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 15px;
    font-weight: 800;
}

.author-line strong {
    display: block;
    color: var(--text);
}

.author-line span {
    display: block;
    margin-top: 2px;
}

.terminal-card {
    position: relative;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: 24px;
    background: #07101a;
    box-shadow: var(--shadow);
}

.terminal-header {
    height: 48px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, .035);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .19);
}

.terminal-title {
    margin-left: 9px;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12px;
}

.terminal-body {
    min-height: 300px;
    padding: 28px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13px;
    line-height: 1.85;
}

.terminal-prompt {
    color: var(--success);
}

.terminal-command {
    color: var(--text);
}

.terminal-comment {
    color: #6f849a;
}

.terminal-value {
    color: var(--accent-light);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.article-card {
    grid-column: span 4;
    min-height: 340px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(23, 45, 68, .86), rgba(13, 29, 45, .82));
    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 174, 255, .4);
    background:
        linear-gradient(145deg, rgba(29, 55, 82, .96), rgba(16, 34, 52, .92));
}

.article-card-featured {
    grid-column: span 8;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--muted);
    font-size: 12px;
}

.article-tag {
    padding: 5px 9px;
    border: 1px solid rgba(123, 165, 255, .25);
    border-radius: 999px;
    background: rgba(109, 158, 255, .08);
    color: var(--accent-light);
    font-weight: 700;
    letter-spacing: .03em;
}

.article-card h2,
.article-card h3 {
    margin: 28px 0 14px;
    letter-spacing: -.035em;
}

.article-card h2 {
    max-width: 720px;
    font-size: clamp(29px, 4vw, 42px);
    line-height: 1.08;
}

.article-card h3 {
    font-size: 23px;
}

.article-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.article-link {
    margin-top: auto;
    padding-top: 28px;
    color: var(--text);
    font-size: 14px;
    font-weight: 750;
}

.article-link span {
    margin-left: 5px;
    color: var(--accent-light);
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.topic-card {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.topic-code {
    color: var(--accent-light);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12px;
}

.topic-card h2 {
    margin: 30px 0 12px;
    font-size: 25px;
    letter-spacing: -.035em;
}

.topic-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.topic-count {
    margin-top: 22px;
    color: var(--muted-light);
    font-size: 13px;
}

.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(220px, 300px);
    align-items: start;
    gap: 70px;
}

.post-header {
    padding: 92px 0 58px;
}

.post-header h1 {
    max-width: 960px;
    font-size: clamp(46px, 7vw, 72px);
}

.post-meta {
    margin-top: 27px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    color: var(--muted);
    font-size: 13px;
}

.post-content {
    color: var(--muted-light);
    font-size: 17px;
    line-height: 1.85;
}

.post-content h2 {
    margin: 58px 0 18px;
    color: var(--text);
    font-size: 32px;
    letter-spacing: -.035em;
}

.post-content h3 {
    margin: 38px 0 14px;
    color: var(--text);
    font-size: 23px;
}

.post-content p {
    margin: 0 0 25px;
}

.post-content ul {
    margin: 0 0 28px;
    padding-left: 22px;
}

.post-content li {
    margin: 10px 0;
}

.post-content code {
    padding: 3px 7px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(255, 255, 255, .045);
    color: var(--accent-light);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .88em;
}

.post-content pre {
    margin: 30px 0;
    padding: 23px;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #07101a;
    color: #d5e1ed;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 14px;
    line-height: 1.65;
}

.post-note {
    margin: 34px 0;
    padding: 24px;
    border-left: 3px solid var(--accent);
    border-radius: 0 13px 13px 0;
    background: rgba(109, 158, 255, .08);
}

.post-note strong {
    color: var(--text);
}

.post-sidebar {
    position: sticky;
    top: 105px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(13, 29, 45, .75);
}

.post-sidebar strong {
    display: block;
    margin-bottom: 15px;
    font-size: 14px;
}

.post-sidebar a {
    display: block;
    padding: 8px 0;
    color: var(--muted);
    font-size: 13px;
}

.post-sidebar a:hover {
    color: var(--text);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
    gap: 50px;
}

.about-profile {
    padding: 31px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(23, 45, 68, .86), rgba(13, 29, 45, .82));
}

.about-profile .author-avatar {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    font-size: 22px;
}

.about-profile h2 {
    margin: 25px 0 7px;
    font-size: 25px;
}

.about-profile p {
    margin: 0;
    color: var(--muted);
}

.about-list {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.about-list div {
    padding: 9px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 13px;
}

.about-list strong {
    color: var(--muted-light);
}

.about-copy h2 {
    margin: 0 0 18px;
    font-size: 36px;
    letter-spacing: -.04em;
}

.about-copy p {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

@media (max-width: 960px) {
    .article-card,
    .article-card-featured {
        grid-column: span 6;
    }

    .post-layout,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        position: static;
    }
}

@media (max-width: 720px) {
    .article-card,
    .article-card-featured {
        grid-column: 1 / -1;
    }

    .topic-grid {
        grid-template-columns: 1fr;
    }

    .post-content {
        font-size: 16px;
    }
}
