:root {
    font-size: 62.5%;
    color-scheme: light;
    --ink: #17202a;
    --muted: #5d6874;
    --accent: #0a66c2;
    --accent-dark: #084f96;
    --light: #848D94;
    --surface: #ffffff;
    --background: #eef3f7;
    --portrait-size: 15rem;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 2.4rem;
    background-color: var(--background);
    background-image:
        linear-gradient(rgba(238, 243, 247, 0.98), rgba(238, 243, 247, 0.95)),
        url("https://upload.wikimedia.org/wikipedia/commons/0/09/Wordpress-Logo.svg?utm_source=commons.wikimedia.org&utm_campaign=index&utm_content=original");
    background-position: 0 0, 120% 105%;
    background-repeat: no-repeat;
    background-size: 100% 100%, clamp(20rem, 50vw, 120rem) auto;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
}

a {
    color: var(--accent);
    text-decoration: underline;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
}

.language-switcher {
    position: fixed;
    top: 2.4rem;
    right: 2.4rem;
    z-index: 1;
    padding: 0.8rem 1rem;
    border: none;
    color: var(--light);
    font-family: Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: color 300ms ease, border-color 300ms ease;
}

.language-switcher:hover,
.language-switcher:focus-visible {
    border-color: var(--light);
    color: var(--ink);
}

.language-switcher:focus-visible {
    outline: 0.3rem solid rgba(23, 32, 42, 0.15);
    outline-offset: 0.3rem;
}

.card {
    width: min(100%, 44rem);
    padding: 4.8rem 4rem;
    background: var(--surface);
    border: 0.1rem solid #dbe3ea;
    border-radius: 0.8rem;
    box-shadow: 0 1.8rem 4.5rem rgba(23, 32, 42, 0.1);
    text-align: center;
}

.card-content {
    display: contents;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.loading .card-content {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portrait {
    width: var(--portrait-size);
    height: var(--portrait-size);
    margin: 0 auto 2.4rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0.8rem 2rem rgba(23, 32, 42, 0.3);
}

.portrait img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.portrait picture {
    display: block;
    width: 100%;
    height: 100%;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 7vw, 2.75rem);
    line-height: 1.1;
}

.role {
    margin: 1.2rem 0 2rem;
    color: var(--accent);
    font-family: Arial, sans-serif;
    font-size: 1.14rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.intro {
    margin: 0 auto 3.2rem;
    color: var(--muted);
    font-size: 1.26rem;
    line-height: 1.6;
}

.intro p {
    margin: 0 0 1.6rem;
}

.intro p:last-child {
    margin-bottom: 0;
}

.linkedin-link {
    display: inline-block;
    padding: 1.3rem 2.2rem;
    border-radius: 0.4rem;
    background: var(--accent);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 1.14rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 160ms ease, transform 160ms ease;
}

.linkedin-link:hover,
.linkedin-link:focus-visible {
    background: var(--accent-dark);
    transform: translateY(-0.2rem);
}

.linkedin-link:focus-visible {
    outline: 0.3rem solid rgba(10, 102, 194, 0.3);
    outline-offset: 0.3rem;
}

footer {
    color: var(--muted);
    font-size: 1.14rem;
    line-height: 1.6;
    opacity: 1;
    transition: opacity 0.3s ease;
    text-align: center;
}

footer p {
    margin: 0 0 0.6rem;
}

.loading footer {
    opacity: 0;
}

@media (max-width: 42rem) {
    .card {
        padding: 3.6rem 2.4rem;
    }
}

@media (min-width: 728px) {
    body {
        padding: 4rem;
    }

    .card {
        width: min(100%, 100rem);
        padding: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(30rem, 1fr);
        overflow: hidden;
        text-align: left;
    }

    .card-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 6rem 5.6rem;
    }

    .portrait {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        height: auto;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .portrait img {
        object-position: center;
    }

    .intro {
        margin-left: 0;
    }

    .linkedin-link {
        align-self: flex-start;
    }
}