h2:first-of-type {
    margin-top: 30px;
}

.intro {
    margin: 0;
}

/* Stat row */
.stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 0 0 22px 0;
    padding: 0;
}

.stat {
    flex: 1 1 150px;
}

.stat strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.6em;
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat span {
    color: #6c757d;
    font-size: 0.9em;
}

/* Profile link button */
.profile-link {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 6px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.profile-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.note {
    margin: 14px 0 0 0;
    font-size: 0.9em;
    color: #6c757d;
}

/* Article list */
.posts {
    list-style: none;
    margin: 18px 0 0 0;
    padding: 0;
}

.posts li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.posts li:last-child {
    border-bottom: none;
}

.posts a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.posts a:hover {
    text-decoration: underline;
}

.posts .when {
    color: #6c757d;
    font-size: 0.9em;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .posts li {
        flex-direction: column;
        gap: 4px;
    }

    .stat strong {
        font-size: 1.35em;
    }

    .container {
        padding: 20px 10px;
    }

    .content {
        padding: 20px;
    }
}
