html { font-size: 16px; }
body {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
    font-size: 16px; /* Explicit base size */
}
h1 {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 20px;
}
p {
    margin: 15px 0;
    font-size: 1em; /* Lock it to body’s base */
}
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 5px;
}
a {
    color: #2980b9;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
ul {
    list-style: none;
    padding: 0;
}
li {
    margin: 15px 0;
    font-size: 1em; /* Match body */
}
.date {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-left: 10px;
}
p.date {
    color: #7f8c8d;
    font-style: italic;
    margin-top: -10px;
    margin-bottom: 20px;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
    position: relative;
    height: 80px;
    padding-top: 10px;
}
.logo {
    width: 50px;
    height: auto;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    top: 50%;
}
.nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
nav a {
    font-size: 1.1em;
    padding: 5px 10px;
    display: block;
}
nav a:not(:last-child) {
    margin-bottom: 5px;
}

/* Mobile Adjustments */
@media (max-width: 500px) { /* Lowered to catch Pixel 8a */
    body {
        padding: 10px;
        font-size: 16px; /* Reinforce base */
    }
    nav {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
    }
    .logo {
        position: static;
        transform: none;
        margin: 10px auto;
    }
    .nav-links {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        margin-top: 10px;
    }
    nav a {
        font-size: 1.1em; /* Readable on Pixel */
        padding: 5px 10px;
        margin: 0 5px;
    }
    nav a:not(:last-child) {
        margin-bottom: 0;
    }
    h1 {
        font-size: 1.5em;
    }
    li {
        font-size: 1em;
    }
    .date {
        display: block;
        margin-left: 0;
        font-size: 0.85em;
    }
    p {
        font-size: 1em; /* Ensure consistency */
    }
}