@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,400;0,500;0,600;1,500;1,600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Mono&display=swap');

:root {
    --sidebar-width: 300px;
    --gutter: 48px;
    --edge: 64px;
    --content-max: 600px;

    --text: #595959;
    --text-strong: #043361;
    --h1: #043361;
    --link: #39c;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: #fff;
    color: var(--text);
    font: 20px/1.6 "Crimson Pro", serif;
    overflow: auto;
}

/* Centered two-column layout */
.wrapper {
    max-width: calc(var(--sidebar-width) + var(--gutter) + var(--content-max));
    margin: 0 auto;
    padding: var(--edge) 0; /* vertical padding only */
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, var(--content-max));
    column-gap: var(--gutter);
    align-items: start;
}

.sidebar {
    position: sticky;
    top: var(--edge);
    text-align: center;
}

.image.avatar img {
    width: 168px;
    height: 168px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.name,
.wrapper > header h1 {
    margin: 12px 0 6px;
    font-size: 1.85rem;
    line-height: 1.15;
    font-weight: 700;
    color: var(--h1);
    font-family: "Crimson Pro", serif;
}

.role,
.brand {
    margin: 0 0 6px;
    font-size: 1.08rem;
    line-height: 1.3;
    color: var(--text);
    font-family: "Ubuntu Mono", monospace;
}

.email {
    margin: 0 0 6px;
}

.content {
    /* content column gets full grid track width, which is already limited via grid-template-columns */
    margin-top: 32px;
}

h2 {
    margin: 0 0 12px;
    font-size: 1.4rem;
    line-height: 1.2;
    color: var(--text-strong);
    font-family: "Crimson Pro", serif;
}

h3 {
    margin: 0 0 6px;
    font-size: 1.08rem;
    line-height: 1.3;
    color: var(--text);
    font-family: "Ubuntu Mono", monospace;
}

p {
    margin: 0 0 12px;
    font-family: "Crimson Pro", serif;
}

a {
    color: var(--link);
    text-decoration: none;
    text-underline-offset: 2px;
}

a:hover,
a:focus {
    text-decoration: underline;
}

a:visited {
    color: var(--link);
}

.entry {
    margin: 14px 0 16px;
}

.entry .date {
    color: #7a7a7a;
}

.misc {
    margin: 0 0 20px 1.2rem;
    padding: 0;
}

.misc li + li {
    margin-top: 6px;
}

.misc strong {
    color: var(--text-strong);
}

/* Mobile / narrow view */
@media (max-width: 880px) {
    .wrapper {
        display: block;
        padding: 16px;
        max-width: 100%;
    }

    .wrapper > header.sidebar,
    .sidebar {
        position: static;
        top: auto;
        display: block;
        width: 100%;
        max-width: none;
        margin: 0 0 32px;
        text-align: center;
    }

    .image.avatar img {
        display: block;
        margin: 0 auto;
    }

    .content {
        max-width: 60ch;
        margin: 0 auto;
        text-align: left;
    }
}