:root {
    color-scheme: light;
    --paper: #faf6ef;
    --ink: #111;
    --muted: var(--ink);
    --accent: #9e492f;
    --green: #388c54;
    --line: #dbd3c4;
    --serif: Georgia, "Times New Roman", serif;
    font-family: system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
}

:root::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background: url("img/dot-grid.webp") repeat;
    opacity: 0.3;
    pointer-events: none;
    content: "";
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

a {
    color: inherit;
    text-underline-offset: 0.22em;
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.shell {
    width: min(100% - 3rem, 65rem);
    margin-inline: auto;
}

h1 span {
    color: var(--green);
}

.intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
    padding-block: clamp(3rem, 7vw, 6rem);
}

h1 {
    margin: 0;
    font: 400 clamp(4rem, 9vw, 8rem) / 0.88 var(--serif);
    letter-spacing: -0.075em;
}

.role {
    margin: 36px 0 0;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 650;
    line-height: 1.55;
}

.bio {
    margin: 0.7rem 0 0;
    color: var(--muted);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.aside {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.5;
}

.portrait {
    justify-self: center;
    width: min(100% - 1rem, 20rem);
    margin: 0;
}

.portrait img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    background: #e6d9c6;
}

.elsewhere {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    padding-block: 1.5rem 2.75rem;
    border-top: 1px solid var(--line);
}

.elsewhere h2 {
    margin: 0;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.elsewhere ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.elsewhere a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.75rem;
    padding-inline: 0.8rem;
    border-block-end: 2px solid transparent;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.elsewhere a:hover,
.elsewhere a:focus-visible {
    border-block-end-color: #50c878;
    box-shadow: inset 0 -2px var(--green);
    color: #2c6f42;
}

@media (width > 42rem) {
    body {
        display: grid;
        align-items: center;
        min-height: 100vh;
    }

    .intro {
        padding-block-start: 2.75rem;
    }
}

@media (max-width: 42rem) {
    .intro {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .role {
        margin-top: 1.7rem;
    }

    .portrait {
        justify-self: start;
        width: min(100% - 1rem, 15rem);
        margin-inline-start: 0.75rem;
    }

    .desktop-break {
        display: none;
    }
}
