:root {
    color-scheme: light;
    --canvas: #e9eef5;
    --identity: #0b1f3a;
    --identity-muted: #b8c7db;
    --paper: #ffffff;
    --text: #142033;
    --muted: #526173;
    --line: #dbe2ea;
    --accent: #175cd3;
    --accent-dark: #0e439f;
    --page-gap: clamp(.75rem, 3vw, 2rem);
    --toggle-space: 3.5rem;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--canvas);
}

body {
    min-width: 320px;
    min-height: 100svh;
    margin: 0;
    background:
        radial-gradient(circle at 12% 8%, #f8fbff 0, transparent 34rem),
        var(--canvas);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

.skip-link {
    position: fixed;
    top: .75rem;
    left: .75rem;
    z-index: 2;
    translate: 0 -5rem;
    border-radius: .5rem;
    background: var(--paper);
    color: var(--text);
    padding: .65rem 1rem;
    font-weight: 700;
}

.skip-link:focus {
    translate: 0;
}

.page {
    display: grid;
    min-height: 100svh;
    place-items: center;
    padding: var(--toggle-space) var(--page-gap) var(--page-gap);
}

.card-frame {
    display: flex;
    min-height: calc(100svh - var(--toggle-space) - var(--page-gap));
    width: min(100%, 62rem);
}

.business-card {
    display: grid;
    flex: 1;
    grid-template-columns: minmax(17rem, .9fr) minmax(0, 1.55fr);
    width: 100%;
    overflow: hidden;
    border: 1px solid rgb(11 31 58 / 10%);
    border-radius: clamp(1.25rem, 3vw, 2rem);
    background: var(--paper);
    box-shadow: 0 1.5rem 4rem rgb(11 31 58 / 18%);
}

.identity,
.profile {
    padding: clamp(1.5rem, 4vw, 3rem);
}

.identity {
    display: flex;
    min-width: 0;
    flex-direction: column;
    background: var(--identity);
    color: var(--paper);
}

.language-switcher {
    position: fixed;
    top: .75rem;
    right: .75rem;
    z-index: 2;
    display: flex;
    gap: .2rem;
    padding: .2rem;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: var(--paper);
    box-shadow: 0 .35rem 1rem rgb(11 31 58 / 8%);
}

.language-switcher a {
    border-radius: 999px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 750;
    padding: .25rem .6rem;
    text-decoration: none;
}

.language-switcher a[aria-current="page"] {
    background: var(--identity);
    color: var(--paper);
}

.profile-photo {
    display: block;
    width: min(100%, 13rem);
    height: auto;
    aspect-ratio: 1;
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: 1.25rem;
    object-fit: cover;
    box-shadow: 0 1rem 2.5rem rgb(0 0 0 / 25%);
}

.name-block {
    margin-top: auto;
}

.role,
.location,
.kicker,
h1,
h2,
dl,
dd {
    margin: 0;
}

.role,
.kicker,
dt {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.role {
    margin-bottom: .55rem;
    color: #8db7f3;
}

h1 {
    max-width: 8ch;
    font-size: clamp(2.25rem, 5vw, 3.7rem);
    font-weight: 760;
    letter-spacing: -.055em;
    line-height: .96;
}

.location {
    margin-top: 1rem;
    color: var(--identity-muted);
    font-size: .84rem;
}

.profile {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: clamp(1.5rem, 4vw, 2.75rem);
}

.kicker {
    margin-bottom: .8rem;
    color: var(--accent);
}

h2 {
    max-width: 13ch;
    font-size: clamp(2rem, 4.5vw, 3.65rem);
    font-weight: 720;
    letter-spacing: -.055em;
    line-height: 1.02;
    text-wrap: balance;
}

.details {
    border-block: 1px solid var(--line);
}

.details div {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 1rem;
    align-items: baseline;
    padding-block: .85rem;
}

.details div + div {
    border-top: 1px solid var(--line);
}

dt {
    color: var(--muted);
}

dd {
    color: var(--text);
    font-size: .95rem;
    font-weight: 650;
}

.contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    border-radius: .9rem;
    background: var(--accent);
    color: var(--paper);
    padding: .9rem 1rem .9rem 1.1rem;
    text-decoration: none;
}

.contact strong {
    font-size: 1rem;
}

.linkedin-icon {
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
}

.contact:hover {
    background: var(--accent-dark);
}

a:focus-visible {
    outline: 3px solid #f7c948;
    outline-offset: 3px;
}

@media (orientation: portrait) {
    .page {
        --page-gap: .65rem;
        --toggle-space: 3.25rem;
    }

    .card-frame {
        width: min(100%, 42rem);
    }

    .business-card {
        grid-template-columns: 1fr;
        border-radius: 1.25rem;
    }

    .identity {
        display: grid;
        grid-template-columns: clamp(4.75rem, 20vw, 7rem) minmax(0, 1fr);
        gap: 1rem;
        align-items: center;
        padding: 1rem 1.15rem;
    }

    .language-switcher a {
        font-size: .62rem;
        padding: .2rem .45rem;
    }

    .profile-photo {
        width: 100%;
        margin: 0;
        border-radius: .9rem;
    }

    .name-block {
        margin: 0;
    }

    .role {
        margin-bottom: .4rem;
        font-size: .58rem;
        line-height: 1.35;
    }

    h1 {
        max-width: none;
        font-size: clamp(1.7rem, 8vw, 2.3rem);
    }

    .location {
        margin-top: .6rem;
        font-size: .7rem;
    }

    .profile {
        gap: 1rem;
        padding: 1.15rem .9rem;
    }

    .kicker {
        margin-bottom: .45rem;
        font-size: .6rem;
    }

    h2 {
        max-width: none;
        font-size: clamp(1.6rem, 7.2vw, 2.2rem);
    }

    .details div {
        grid-template-columns: 4.65rem minmax(0, 1fr);
        gap: .55rem;
        align-items: start;
        padding-block: .6rem;
    }

    dt {
        font-size: .58rem;
    }

    dd {
        font-size: .78rem;
        line-height: 1.4;
    }

    .contact {
        padding: .7rem .75rem;
    }

    .contact strong {
        font-size: .78rem;
        line-height: 1.3;
    }

    .linkedin-icon {
        width: 1rem;
        height: 1rem;
    }
}

@media (orientation: portrait) and (max-height: 620px) {
    .page {
        --page-gap: .4rem;
        --toggle-space: 2.65rem;
    }

    .identity {
        grid-template-columns: 3.5rem minmax(0, 1fr);
        gap: .75rem;
        padding: .6rem;
    }

    .business-card {
        grid-template-columns: 1fr;
    }

    .profile-photo {
        width: 3.5rem;
    }

    .role {
        margin-bottom: .15rem;
        font-size: .55rem;
    }

    h1 {
        font-size: 1.45rem;
    }

    .location {
        margin-top: .2rem;
        font-size: .68rem;
    }

    .profile {
        gap: .55rem;
        padding: .65rem;
    }

    .kicker {
        margin-bottom: .25rem;
        font-size: .58rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    .details div {
        grid-template-columns: 4.35rem minmax(0, 1fr);
        gap: .35rem;
        padding-block: .3rem;
    }

    dt {
        font-size: .55rem;
    }

    dd {
        font-size: .72rem;
        line-height: 1.35;
    }

    .contact {
        padding: .55rem .7rem;
    }

    .contact strong {
        font-size: .8rem;
    }

    .linkedin-icon {
        width: 1rem;
        height: 1rem;
    }
}

@media (orientation: landscape) and (max-height: 700px) {
    .page {
        --page-gap: .35rem;
        --toggle-space: 2.5rem;
    }

    .language-switcher {
        top: .5rem;
        right: .5rem;
        padding: .1rem;
    }

    .language-switcher a {
        font-size: .58rem;
        padding: .15rem .4rem;
    }

    .business-card {
        grid-template-columns: minmax(9rem, .6fr) minmax(0, 1.6fr);
    }

    .identity,
    .profile {
        padding: clamp(.75rem, 2.5vw, 1.5rem);
    }

    .profile {
        gap: clamp(.6rem, 2vh, 1rem);
    }

    .profile-photo {
        width: min(25vh, 7rem);
        margin-bottom: .75rem;
    }

    h1 {
        font-size: clamp(1.8rem, 7vh, 3rem);
    }

    h2 {
        max-width: none;
        font-size: clamp(1.45rem, 6vh, 2.5rem);
    }

    .details div {
        grid-template-columns: 5rem minmax(0, 1fr);
        gap: .5rem;
        padding-block: .35rem;
    }

    dt {
        font-size: .6rem;
    }

    dd {
        font-size: .8rem;
        line-height: 1.35;
    }

    .contact {
        padding-block: .65rem;
    }

    .contact strong {
        font-size: .85rem;
    }

    .linkedin-icon {
        width: 1rem;
        height: 1rem;
    }
}
