body {
    font-family: ui-monospace, monospace;
    background: #181818;
    color: #D8D8D8;
    margin: 0;
}

a {
    color: #84ADFF;
    text-decoration-thickness: 1px;
    text-decoration-color: #7A7A7A;
    text-underline-offset: 0.16em;
}

a:hover,
a:focus-visible {
    color: #84ADFF;
    text-decoration-color: #84ADFF;
}

.profile {
    --profile-column-width: 280px;
    --column-gap: 56px;
    --project-measure: 48ch;
    --page-x: 24px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(250px, var(--profile-column-width)) minmax(0, var(--project-measure));
    align-items: start;
    justify-content: center;
    gap: var(--column-gap);
    width: min(100%, calc(var(--profile-column-width) + var(--column-gap) + var(--project-measure) + var(--page-x) + var(--page-x)));
    min-height: 100vh;
    margin: 0 auto;
    padding: 52px var(--page-x) 80px;
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
}

.profile-column h1 {
    margin: 0 0 26px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #EFEFEF;
}

.profile-column {
    width: 100%;
}

.profile-photo {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 26px;
    border: 1px solid #343434;
}

.profile-details {
    max-width: none;
    text-align: left;
}

.contact-list {
    width: fit-content;
    max-width: 100%;
    margin: 20px 0 0;
    font-style: normal;
    text-align: left;
}

.contact-list p {
    margin: 0 0 10px;
    white-space: nowrap;
}

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

.contact-list a {
    overflow-wrap: normal;
}

.intro {
    max-width: 100%;
    margin: 0;
    line-height: 1.55;
    color: #CFCFCF;
}

.projects {
    width: 100%;
    margin-top: 0;
    text-align: left;
}

.projects h2 {
    margin: 0 0 24px;
    font-size: 1rem;
    color: #EFEFEF;
}

.project-list {
    display: flex;
    flex-direction: column;
}

.project h3 {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: #EFEFEF;
}

.project p {
    margin: 0;
    max-width: var(--project-measure);
    color: #CFCFCF;
    line-height: 1.5;
}

.project {
    max-width: var(--project-measure);
    padding: 0 0 24px;
    border-bottom: 1px solid #282828;
}

.project + .project {
    padding-top: 24px;
}

.project:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.post {
    box-sizing: border-box;
    width: min(100%, 720px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 32px 20px 72px;
}

.post-nav {
    margin: 0 0 48px;
}

.post-body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}

.post-body h1,
.post-body h2,
.post-body h3 {
    font-family: ui-monospace, monospace;
    line-height: 1.3;
}

.post-body h1 {
    width: auto;
    margin: 0 0 32px;
    font-size: 1.8rem;
    text-transform: none;
}

.post-body h2 {
    margin: 44px 0 16px;
    font-size: 1.15rem;
}

.post-body p,
.post-body ul,
.post-body ol {
    margin: 0 0 20px;
}

.post-body img {
    display: block;
    width: min(880px, calc(100vw - 40px));
    max-width: none;
    height: auto;
    margin-left: 50%;
    transform: translateX(-50%);
}

.post-body code,
.post-body pre {
    font-family: ui-monospace, monospace;
}

.post-body pre {
    overflow-x: auto;
    border: 1px solid currentColor;
    padding: 16px;
}

@media (max-width: 760px) {
    .profile {
        grid-template-columns: 1fr;
        gap: 44px;
        width: min(100%, 520px);
        padding: 32px 20px 64px;
    }

    .profile-photo {
        margin-right: auto;
        margin-left: auto;
        width: min(280px, 100%);
    }

    .profile-column {
        text-align: center;
    }

    .profile-details {
        margin: 0 auto;
        width: min(100%, 44ch);
        text-align: center;
    }

    .intro {
        margin: 0 auto;
    }

    .contact-list {
        margin-right: auto;
        margin-left: auto;
        text-align: left;
    }

    .contact-list p {
        white-space: normal;
    }

    .contact-list a {
        overflow-wrap: anywhere;
    }
}
