/* Layout tokens. */
:root {
    --content-width: 820px;
    --timeline-date-w: 68px;
    --timeline-dot-w: 22px;
}

/* Page wrapper. */
.page-content {
    position: relative;
    z-index: 1;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 56px 28px 100px;
}

/* Profile. */
.profile {
    display: flex;
    gap: 20px;
    padding: 56px 0 52px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 52px;
    animation: fade-up 0.4s ease both;
}

.profile-stripe {
    width: 3px;
    min-height: 90px;
    flex-shrink: 0;
    border-radius: 3px;
    background: linear-gradient(
        180deg,
        var(--profile-color, var(--accent)) 0%,
        transparent 70%
    );
    align-self: stretch;
}

.profile-body {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.profile-name {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--white);
}

.profile-handle {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--profile-color, var(--accent));
}

/* Section header. */
.section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    animation: fade-up 0.4s ease both;
}

.section-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border));
}

.section-divider.right {
    background: linear-gradient(270deg, transparent, var(--border));
}

.section-badge {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 14px;
    border: 1px solid;
    border-radius: 99px;
}

/* Timeline. */
.timeline {
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 52px;
}

.timeline:last-child {
    margin-bottom: 0;
}

/* Vertical spine running through the dots. */
.timeline::before {
    content: "";
    position: absolute;
    left: calc(var(--timeline-date-w) + var(--timeline-dot-w) / 2);
    top: 0;
    bottom: 0;
    width: 1px;
    z-index: 0;
    transform: translateX(-0.5px);
    background: linear-gradient(
        to bottom,
        transparent 0px,
        var(--border) 32px,
        var(--border) calc(100% - 32px),
        transparent 100%
    );
}

/* Timeline row. */
.timeline-row {
    display: grid;
    grid-template-columns: var(--timeline-date-w) var(--timeline-dot-w) 1fr;
    position: relative;
    cursor: pointer;
    animation: fade-up 0.35s ease both;
}

.timeline-date {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 22px 10px 0 0;
}

.date-month {
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--row-color, var(--accent));
}

.date-day {
    font-family: var(--mono);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--white);
    margin: 1px 0 2px;
}

.date-year {
    font-family: var(--mono);
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.timeline-dot-col {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 30px;
    position: relative;
    z-index: 2;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border: 2px solid var(--text-subtle);
    border-radius: 50%;
    background: var(--bg);
    transition:
        border-color 0.22s,
        background 0.22s,
        box-shadow 0.22s;
}

.timeline-row:hover .timeline-dot {
    border-color: var(--row-color, var(--accent));
    background: var(--row-color, var(--accent));
    box-shadow: 0 0 12px var(--row-color-glow, rgba(123, 97, 255, 0.5));
}

/* Post card. */
.post-card {
    margin: 10px 0 28px 8px;
    padding: 18px 22px;
}

.timeline-row:hover .post-card {
    border-color: var(--row-color, var(--accent));
    background: var(--row-color-dim, rgba(123, 97, 255, 0.04));
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
}

.post-card-tags {
    margin-bottom: 11px;
}

.post-card-title {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--text);
    transition: color 0.22s;
}

.timeline-row:hover .post-card-title {
    color: var(--row-color, var(--white));
}

.post-card-excerpt {
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-muted);
}

/* Mobile. */
@media (max-width: 580px) {
    :root {
        --timeline-date-w: 48px;
        --timeline-dot-w: 18px;
    }

    .page-content {
        padding: 32px 14px 80px;
    }

    .profile {
        padding: 32px 0 28px;
        margin-bottom: 32px;
    }

    .profile-name {
        font-size: 26px;
    }

    .date-day {
        font-size: 17px;
    }

    .post-card {
        padding: 12px 14px;
        margin-left: 6px;
    }
}
