html,
body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

body {
    margin: 0;
    padding: 16px;
    font-size: clamp(16px, 0.4vw + 14px, 18px);
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

p,
li {
    line-height: 1.6;
}

.layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.sidebar {
    width: 220px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 6px;
}

.sidebar-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
}

.sidebar-social {
    margin: 12px 0 18px 0;
}

.sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
    align-items: flex-start;
}

.sidebar-buttons .button {
    min-width: 120px;
    width: 120px;
    display: flex;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 3px 10px;
    gap: 0;
    background-color: #181717;
    outline: 1px #181717 solid;
    outline-offset: -3px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: 400ms;
    width: auto;
    text-decoration: none;
    box-sizing: border-box;
}

.button .text {
    color: white;
    font-weight: 700;
    font-size: 0.75em;
    transition: 400ms;
    margin: 0;
}

.button svg path {
    transition: 400ms;
    fill: white;
}

.goodreads-button img {
    filter: invert(1);
}

.button:hover {
    background-color: transparent;
}

.button:hover .text {
    color: #181717;
}

.button:hover svg path {
    fill: #181717;
}

.goodreads-button:hover img {
    filter: none;
}

.quote-card {
    margin: 12px 0;
    padding: 12px 14px;
    border-left: 4px solid #181717;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px;
}

.quote-text {
    margin: 0;
}

.quote-footer {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.9;
}

.quote-author {
    font-style: normal;
    font-weight: 600;
}

.quote-list {
    list-style: none;
    padding-left: 0;
}

.quote-list>li {
    margin: 0;
    padding: 0;
}

.faq-list > li {
    margin: 0 0 18px 0;
}

.faq-list strong {
    display: inline-block;
    margin-bottom: 6px;
}

.faq-list p {
    margin: 0;
}

.faq-list ul,
.faq-list ol {
    margin: 10px 0 0 0;
}

.bio {
    margin: 18px 0 0 0;
}

.bio-card {
    max-width: 820px;
    margin: 0 auto;
    padding: 18px 18px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.bio-headshot {
    text-align: center;
    margin: 2px 0 14px 0;
}

.bio-headshot-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 9999px;
    display: block;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.bio-body {
    text-align: center;
}

.bio-text {
    margin: 0;
    max-width: 68ch;
    margin-left: auto;
    margin-right: auto;
    color: rgba(0, 0, 0, 0.86);
}

.bio a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.bio a:hover {
    text-decoration-thickness: 2px;
}

.main {
    flex: 1;
    min-width: 0;
}

.content-title {
    width: 100%;
    max-width: 740px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

body:has(.project) .content-nav {
    width: 100%;
    max-width: 740px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.content-nav-project {
    width: 100%;
    max-width: 740px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.project {
    width: 100%;
    max-width: 740px;
    margin-left: auto;
    margin-right: auto;
}

.project p,
.project h2,
.project h3,
.project ul,
.project ol,
.project div {
    max-width: 100%;
}

.project h2 {
    margin: 22px 0 10px 0;
}

.project h3 {
    margin: 18px 0 8px 0;
}

.project ul,
.project ol {
    margin: 10px 0 0 0;
    padding-left: 22px;
}

.project img {
    width: 100%;
    height: auto;
    display: block;
}

.home-photo {
    width: 220px;
    flex: 0 0 220px;
}

.home-photo-img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

@media (max-width: 700px) {
    body {
        padding: 18px;
    }

    .layout {
        flex-direction: column;
        gap: 18px;
    }

    .sidebar {
        width: 100%;
        padding-top: 0;
    }

    .sidebar-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .sidebar-buttons .button {
        width: auto;
        min-width: 0;
    }

    .button {
        padding: 8px 12px;
    }

    .button .text {
        font-size: 0.95em;
    }

    .home-photo {
        width: 100%;
        flex: 0 0 auto;
    }

    .home-photo-img {
        width: 100%;
        height: auto;
    }
}

.site-footer {
    margin-top: 24px;
    padding-top: 12px;
}

.site-footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
}

.site-footer-left p {
    margin: 0;
    max-width: 68ch;
    text-wrap: pretty;
}

.footer-social {
    margin: 0;
    justify-content: flex-end;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    body {
        padding: 14px;
    }

    .bio-card {
        padding: 16px 14px;
        border-radius: 10px;
    }

    .bio-body {
        text-align: left;
    }

    .layout {
        flex-direction: column;
        gap: 16px;
    }

    .sidebar {
        width: 100%;
        padding-top: 0;
    }

    .sidebar-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 12px;
        gap: 10px;
    }

    .sidebar-buttons .button {
        width: auto;
        min-width: 0;
    }

    .main {
        width: 100%;
    }

    .home-photo {
        width: 100%;
        flex: 0 0 auto;
        order: 2;
    }

    .home-photo-img {
        width: 100%;
        max-width: 340px;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .site-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-social {
        justify-content: flex-start;
    }
}