.work-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 52px 42px 96px;
    display: flex;
    flex-direction: column;
    gap: 72px;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */

.work-header h1 {
    font-size: 46px;
    font-weight: 800;
    margin-bottom: 14px;
}

.work-header p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--black-300);
    max-width: 600px;
}

/* ── Section ─────────────────────────────────────────────────────────────────── */

.work-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.work-section__header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.work-section__header h2 {
    font-size: 26px;
    font-weight: 700;
}

.work-section__all {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-left: auto;
}

.work-section__all:hover {
    text-decoration: underline;
}

.work-section__blurb {
    font-size: 16px;
    line-height: 1.8;
    color: var(--black-300);
}

/* ── Projects grid ───────────────────────────────────────────────────────────── */

.work-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

/* ── Speaking ────────────────────────────────────────────────────────────────── */

.speaking-list {
    display: flex;
    flex-direction: column;
}

.speaking-item {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.speaking-item:first-child {
    border-top: 1px solid #f0f0f0;
}

.speaking-item__date {
    min-width: 90px;
    font-size: 13px;
    color: var(--gray-100);
    font-weight: 500;
    padding-top: 3px;
    white-space: nowrap;
}

.speaking-item__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.speaking-item__role {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
}

.speaking-item__event {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.speaking-item__subtitle {
    font-size: 14px;
    color: var(--black-300);
    font-style: italic;
}

.speaking-item__location {
    font-size: 13px;
    color: var(--gray-100);
}

.speaking-item__desc {
    font-size: 14px;
    color: var(--black-500);
    line-height: 1.6;
    margin-top: 6px;
}

.speaking-item__link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 4px;
    width: fit-content;
}

.speaking-item__link:hover {
    text-decoration: underline;
}

/* ── Teaching ────────────────────────────────────────────────────────────────── */

.teaching-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.teaching-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.teaching-item__icon {
    font-size: 22px;
    min-width: 36px;
    text-align: center;
    padding-top: 2px;
}

.teaching-item__body h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.teaching-item__body p {
    font-size: 14px;
    color: var(--black-500);
    line-height: 1.6;
}

/* ── Media queries ───────────────────────────────────────────────────────────── */

@media only screen and (max-width: 880px) {
    .work-page {
        padding: 32px 24px 64px;
        gap: 56px;
    }

    .work-projects-grid {
        grid-template-columns: 1fr;
    }

    .speaking-item {
        flex-direction: column;
        gap: 8px;
    }

    .speaking-item__date {
        min-width: 0;
    }
}
