p,
li,
div {
    text-align: justify;
}

#header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2.5rem 1rem 1.75rem;
}

#header h1 {
    margin: 0;
    line-height: 1.05;
}



#header nav {
    margin: 0;
    padding: 0;
}

#header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

#header nav li {
    margin: 0;
    padding: 0;
}

#header nav a {
    margin: 0;
}

/* Home: social link icons */
.social-links {
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.social-links li {
    margin: 0;
    padding: 0;
}

.social-links a {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: var(--border-radius, 8px);
    color: inherit;
}

.social-links a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.social-links a img {
    width: 1.55rem;
    height: 1.55rem;
    display: block;
    object-fit: contain;
}

/* Home: Updates date styling */
#updates .update-date {
    font-style: italic;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    opacity: 0.9;
}

#updates .update-date::after {
    content: ":";
}

h2{
    margin: 0;
}

/* SimpleCSS adds a top divider to <section>; on pages like projects.html
   where a top-level <section> follows the header, it looks like an extra rule. */
#header+section {
    border-top: 0;
    margin-top: 30px;
    padding-top: 0;
}

/* Home uses <main><section>; apply the same spacing rule there too. */
#header+main:not(#contact)>section:first-of-type {
    border-top: 0;
    margin-top: 30px;
    padding-top: 0;
}
