/* ── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    background: #f5f4f0;
    color: #2c2c2c;
    line-height: 1.7;
}

p {
    margin: 0.75rem 0;
}

ul {
    padding-left: 1.5rem;
}

#about ul {
    padding-left: 0;
}

a {
    color: #5a7fa8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ── Navigation Bar ───────────────────────────────────────── */
nav {
    background: #2c2c2c;
    color: #f5f4f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .nav-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
}

nav .nav-brand {
    font-size: 1.1rem;
    font-weight: bold;
    color: #f5f4f0;
    letter-spacing: 0.03em;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.75rem;
}

nav ul a {
    color: #ccc;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.9rem;
}

nav ul a:hover {
    color: #fff;
    text-decoration: none;
}

/* ── Page Layout ──────────────────────────────────────────── */
.page-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* ── Profile / Photo ──────────────────────────────────────── */
.profile {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0 2.5rem;
    border-bottom: 1px solid #ddd;
}

.profile-photo {
    width: 200px;
    height: 260px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #ddd; /* placeholder colour when no image is set */
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.profile-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #666;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.profile-info h1 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.profile-info p {
    color: #666;
    font-size: 0.95rem;
}

/* ── Sections ─────────────────────────────────────────────── */
.section {
    margin-top: 3rem;
}

.section-title {
    font-size: 1.3rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #888;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.4rem;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
}

/* ── Weekly Log Post ──────────────────────────────────────── */
.log-post {
    background: #fff;
    border-left: 4px solid #5a7fa8;
    border-radius: 0 6px 6px 0;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.log-post .log-meta {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    font-weight: bold;
}

.log-post .log-title {
    font-size: 1.05rem;
    font-weight: bold;
    margin-bottom: 0.4rem;
}

.log-post .log-body {
    font-size: 1rem;
    color: #444;
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 600px) {
    nav .nav-inner {
        padding: 0.75rem 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    nav ul a {
        font-size: 0.8rem;
    }

    .page-wrapper {
        padding: 1.25rem 1rem 3rem;
    }

    .profile {
        flex-direction: column;
        align-items: center;
    }

    .profile-info {
        text-align: left;
    }

    .profile-photo {
        width: 160px;
        height: 210px;
    }
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
    margin-top: 4rem;
    border-top: 1px solid #ddd;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.82rem;
    color: #aaa;
    font-family: "Helvetica Neue", Arial, sans-serif;
}
