/* --- 1. Global Reset & Typography --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #ffffff;
    color: #1a1a1a;
    /* Primary TeX font name from the GitHub CDN */
    font-family: 'Latin Modern Roman', Georgia, serif;
    line-height: 1.7;
    padding: 80px 20px;
    -webkit-font-smoothing: antialiased;
}

/* --- 2. Header & Navigation --- */
header {
    text-align: center;
    margin-bottom: 140px;
}

h1 {
    font-weight: 400; /* This removes the bold look you disliked */
    font-size: 1.7rem;
    letter-spacing: -0.01em;
    text-transform: none; /* Keeps Sentence Case */
    margin-bottom: 12px;
}

nav a {
    text-decoration: none;
    color: #777;
    margin: 0 15px;
    font-size: 0.9rem;
    font-variant: small-caps; /* Sophisticated index feel */
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

nav a:hover { color: #000; }

/* --- 3. Gallery (Home Page) --- */
.gallery {
    max-width: 1000px;
    margin: 0 auto;
}

figure {
    width: 100%;
    margin-bottom: 200px; /* Large 'breathing' space for photos */
    display: flex;
    justify-content: center;
}

img {
    max-width: 100%;
    height: auto;
    max-height: 88vh;
    display: block;
}

.portrait img, .detail img {
    max-width: 72%;
}

/* --- 4. About Page Specifics --- */
.about-container {
    max-width: 650px; /* Narrower column for reading */
    margin: 0 auto;
}

/* Overrides the 200px gallery margin for the About page image */
.about-container figure {
    margin-bottom: 30px;
}

.about-text p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* --- 5. Mobile Adjustments --- */
@media (max-width: 768px) {
    body { padding: 40px 15px; }
    header { margin-bottom: 80px; }
    figure { margin-bottom: 120px; } /* Slightly tighter for thumb-scrolling */
    .portrait img, .detail img { max-width: 100%; }
}

footer {
    text-align: center;
    margin-top: 150px;
    font-size: 0.8rem;
    color: #bbb;
    font-variant: small-caps;
}
