* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
}

main {
    display: flex;
    flex-direction: column;
    row-gap: 16px;
    padding: 64px 16px 96px;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.heading-1 {
    font-size: clamp(48px, 5vw, 63px);
    text-decoration: underline;
    text-decoration-color: #3182bd;
    text-decoration-thickness: 8px;
    margin-bottom: 16px;
}

.heading-2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.heading-3 {
    font-size: 24px;
    margin-bottom: 6px;
}
    
.list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.list.flex-row {
    flex-direction: row;
    gap: 8px;
}

.list.flex-row .list-item {
    width: 100%;
}

.list-item {
    padding: 4px 12px;
    border: 1px solid rgba(192, 192, 192, 0.5);

}

.list-item:nth-child(even) {
    background-color: rgba(192, 192, 192, 0.3);
}

.degree-details {
    padding-top: 4px;
    border-top: 1px solid silver;
    margin-top: 4px;
    display: block;
    font-size: 14px;
    opacity: .7;
    max-width: fit-content;
}

.blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.block {
    text-align: center;
    background-color: rgba(192, 192, 192, 0.3);
    border: 1px solid rgba(192, 192, 192, 0.5);
    padding: 4px 0;
    height: 100%;
    width: 100%;
}

.block.span-2 {
    grid-column: span 2;
}

.block.span-3 {
    grid-column: span 3;
}

.block:last-child:nth-child(3n + 1) {
    grid-column: span 3;
}

.block:last-child:nth-child(3n + 2) {
    grid-column: span 2;
}

.knowledge {
    display: flex;
    flex-direction: column;
    row-gap: 16px;
}

.knowledge .heading-3 {
    font-size: 18px;
}

.experiences .list-item{
    display: flex;
    flex-direction: column;
    padding: 12px;
    row-gap: 4px;
}

.employer {
    font-weight: 600;
}

.period {
    color: rgba(0, 0, 0, 0.7);
}

.links {
    display: flex;
    column-gap: 10px;
}

.link {
    text-decoration: none;
    position: relative;
    color: #3182bd;
    z-index: 1;
}

.link::before {
    content: "";
    width: 0;
    height: 2px;
    background-color: #08519c;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -1;
    transform: translateY(3px);
    transition: width 200ms ease-out;
}

.link:hover::before {
    width: 100%;
}

@media(max-width: 640px) {
    main {
        padding: 64px 10px;
    }
    
    .heading-1 {
        font-size: clamp(40px, 2vw, 56px);
    }

    .heading-2 {
        font-size: 24px;
    }

    .heading-3 {
        font-size: 18px;
    }
}