@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400&display=swap');

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}
header {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 1em 2em;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-home {
    margin-right: auto;
    margin-left: 0;
    text-decoration: none;
    color: #333;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 0;
}

nav {
    max-width: 900px;
    margin: auto;
    display: flex;
    justify-content: flex-end;
}
nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #636363;
    font-weight: 300;
}
nav a:hover {
  color: #70408c;
}
nav a.active {
  color: #a763ce;
}
main {
    max-width: 900px;
    margin: auto;
    padding: 2em;
    background-color: #fff;
}
footer {
    text-align: center;
    padding: 1em;
    font-size: 0.9em;
    color: #777;
    margin-top: 2em;
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-name h1 {
    font-size: 2.5rem;
    font-weight: 400;
    margin: 0;
}

.page-title h1 {
    font-size: 2.4rem;
    font-weight: 300;
    margin: 0;
}

.about-name h4 {
    color: #888;
    font-weight: 300;
    margin: 0.2rem 0 0 0;
}

.about-main-row {
    display: flex;
    gap: 2rem;
    align-items: flex-start; /* Align top of paragraph with top of image */
}

.about-body {
    flex: 1;
}

.about-body p {
    font-size: 0.95rem;
}

.about-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-right img {
    max-width: 220px;
    border-radius: 1%;
    margin-top: 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

a {
    color: #a763ce;
    text-decoration: none; /* removes underline */
}
a:hover {
    color: #70408c;
}

@media (max-width: 768px) {
    .about-main-row {
        flex-direction: column;
        align-items: center;
        text-align: left;
    }

    .about-body {
        max-width: 100%;
    }

    .about-right {
        margin-top: 1.5rem;
    }

    .about-right img {
        max-width: 180px;
    }
}

/* Teaching content styles */

#teaching-content h2 {
    font-size: 1.8rem;
    font-weight: 300;
    margin: 0 0 0.8rem 0;
}

#teaching-content h3 {
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0 0 0;
}

#teaching-content p {
    font-size: 0.95rem;
    margin-top: 0rem;
}

/* Blog post stuff */

figure {
    margin: 2rem 0;
    text-align: center;
}

figure img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    /* box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15); */
}

figure figcaption {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

.custom-img-small img {
    max-width: 300px;
}

.thin-main {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}