.language-switcher {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    width: max-content;
    margin-left: auto;
    padding: 0.2rem;
    border-radius: 1.5rem;
    background: var(--background-color-dark);
}

.language-switcher button {
    min-width: 2.25rem;
    padding: 0.4rem 0.55rem;
    border: 0;
    border-radius: 1.25rem;
    background: transparent;
    color: var(--title-color-lighter);
    font: 700 0.7rem/1 var(--font-family);
    cursor: pointer;
    transition: scale 500ms cubic-bezier(0.2, 2.4, 0.2, 1), background 200ms ease, color 200ms ease;
}

.language-switcher button:hover {
    color: var(--title-color);
    scale: 1.05;
}

.language-switcher button:active {
    scale: 0.95;
}

.language-switcher button[aria-pressed="true"] {
    background: var(--secondary-color-dark);
    color: var(--title-color);
}

.mobile-name {
    display: none;
}

.portrait {
    width: min(215px, 76%);
    aspect-ratio: 1;
    margin-bottom: 1rem;
    transition: scale 500ms cubic-bezier(0.2, 2.4, 0.2, 1);
}

.portrait:hover {
    scale: 1.05;
}

.portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    corner-shape: round;
}

aside section {
    margin-top: 1.65rem;
}

aside section h2,
main-section>h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

aside section h2 {
    margin-bottom: 0.85rem;
    font-size: 0.86rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

aside section h2::after,
main-section>h2::after {
    content: "";
    flex: 1;
    border-bottom: 2px solid var(--color-border);
}

.contact address {
    display: grid;
    gap: 0.75rem;
    font-style: normal;
}

.contact address>* {
    display: grid;
    grid-template-columns: 1.15rem minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
    color: var(--text-color);
    font-size: 0.92rem;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact a {
    transition: scale 500ms cubic-bezier(0.2, 2.4, 0.2, 1);
    transform-origin: left;
}

.contact a:hover {
    scale: 1.04;
}

.contact i {
    color: var(--primary-color-light);
    text-align: center;
}

.tag-list,
.spoken-languages,
.links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag-list li {
    margin: 0;
    padding: 0.3rem 0.55rem;
    border-radius: 0.75rem;
    background: var(--background-color-light);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    font-size: 0.76rem;
    line-height: 1.2;
}

.spoken-languages li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0.35rem 0;
    color: var(--text-color);
    font-size: 0.84rem;
}

.spoken-languages li .line {
    align-self: center;
    flex: 1;
    margin: 0 0.5rem;
    height: 1px;
    border-bottom: 2px dashed var(--color-border);
    opacity: 0.5;
}

.spoken-languages small {
    color: var(--text-color-muted);
    text-transform: uppercase;
}

header{
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 215px;
}

main header h1,
.mobile-name h1 {
    font-size: 5rem;
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 0.9;
    text-transform: uppercase;
}

main header h1 strong,
.mobile-name h1 strong {
    display: block;
    font-weight: 700;
}

main header p,
.mobile-name p {
    margin-top: 1rem;
    color: var(--text-color-muted);
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

section>h2 {
    margin-bottom: 1.5rem;
    font-size: clamp(1.65rem, 3vw, 2.2rem);
}

section p {
    margin-bottom: 0.9rem;
    color: var(--text-color);
    line-height: 1.65;
}

.timeline {
    position: relative;
    margin-left: 0.3rem;
    padding-left: 2.25rem;
}

.timeline::before {
    content: "";
    position: absolute;
    inset: 0.65rem auto 0.65rem 0.2rem;
    width: 2px;
    background: var(--color-border);
}

.timeline article {
    position: relative;
    padding-bottom: 1.75rem;
}

.timeline article > :not(.timeline-dot) {
    transition: translate 500ms cubic-bezier(0.2, 2.4, 0.2, 1);
}

.timeline article:hover > :not(.timeline-dot) {
    translate: 0.35rem 0;
}

.timeline article:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    top: 0.45rem;
    left: -2.4rem;
    width: 0.75rem;
    height: 0.75rem;
    border: 3px solid var(--background-color);
    border-radius: 50%;
    corner-shape: round;
    background: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color-light);
    transition: scale 500ms cubic-bezier(0.2, 2.4, 0.2, 1), box-shadow 500ms ease;
}

.timeline article:hover .timeline-dot {
    scale: 1.35;
    box-shadow: 0 0 0 2px var(--primary-color-light), 0 0 16px rgba(247, 56, 120, 0.45);
}

.entry-heading {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
}

.timeline ul {
    margin: 0.7rem 0 0;
    padding-left: 1.25rem;
    font-size: 1rem;
}

.links li {
    display: flex;
    min-width: 0;
}

.links .button {
    flex: 1;
    font-size: 0.95rem;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary-color-light);
    outline-offset: 3px;
}

@media (max-width: 780px) {
    body {
        display: block;
    }

    aside{
        position: relative;
        height: auto;
        overflow: visible;
        padding: 1.5rem max(1.4rem, calc((100% - 640px) / 2)) 1.75rem;
    }

    .language-switcher {
        position: absolute;
        top: 1.25rem;
        right: max(1.4rem, calc((100% - 640px) / 2));
    }

    header {
        display: grid;
        grid-template-columns: 116px 1fr;
        gap: 1.4rem;
        align-items: center;
    }

    .portrait {
        width: 112px;
        margin: 0.5rem 0;
    }

    .mobile-name {
        display: block;
    }

    .mobile-name h1 {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .mobile-name p {
        font-size: 0.8rem;
    }

    aside section {
        max-width: 640px;
    }

    main {
        width: min(640px, calc(100% - 2.75rem));
        padding: 2rem 0 2.75rem;
    }

    main header {
        display: none;
    }

    .section-nav {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    header {
        grid-template-columns: 92px 1fr;
        gap: 1rem;
    }

    .portrait {
        width: 88px;
        margin-top: 1.4rem;
    }

    .mobile-name {
        margin-top: 1.25rem;
    }

    .mobile-name h1 {
        font-size: 2rem;
    }

    .mobile-name p {
        margin-top: 0.6rem;
        font-size: 0.7rem;
    }

    .section-nav {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
    }

    .section-nav .button {
        border-radius: 1rem !important;
    }

    main-section {
        margin-bottom: 2.5rem;
    }

    .entry-heading {
        display: block;
    }

    time {
        display: inline-block;
        margin-top: 0.4rem;
    }

    .links ul {
        display: grid !important;
    }
}