body {
    font-family: Georgia, serif;
    background: #ffffff;
    color: #222;
    line-height: 1.7;
    margin: 0;
}

span {
  display: block;
  text-align: right;
}

.container {
    max-width: 820px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

/* Name and affiliation */
.name {
    margin: 0;
    font-size: 1.1rem;
}

.affil {
    margin: 0.3rem 0 0.8rem 0;
}

/* Navigation */
nav {
    font-size: 1rem;  /* slightly larger */
    margin-bottom: 1rem;
}

nav a {
    text-decoration: none;
    color: #000;
    margin: 0 0.4rem;
}

nav a:hover {
    text-decoration: underline;
}

/* Horizontal lines */
hr {
    border: none;
    border-top: 1px solid #000;
    margin: 2rem 0;
}

/* About block */
.about-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Keeps text at the top */
    gap: 2rem;
}

.about-photo {
    align-self: center; /* Centers just the photo vertically */
}

.about-text {
    flex: 1;
}

.about-photo img {
    width: 320px;
    max-width: 100%;
    height: auto;
    padding: 3px;
}

/* Link style */
.secret-link {
    color: inherit;
    text-decoration: none;
}

/* Content blocks */
.block {
    margin-top: 1.5rem;
}

h3 {
    font-weight: normal;
    margin-bottom: 0.6rem;
}

ul {
    padding-left: 1.2rem;
}

/* Responsive layout for tablets/phones */
@media (max-width: 768px) {

    .container {
        padding: 1.5rem 1rem;
    }

    .about-block {
        flex-direction: column;
        gap: 1.5rem;
    }

    .about-photo {
        text-align: center;
    }

    nav {
        font-size: 0.95rem;
    }
}

