html {
  scroll-padding-top: 66px;
  scroll-behavior: smooth;
}
body {
    background-color: #FFFFFF;
    background-image: url("../images/bg.png");
    background-repeat: repeat;
     font-family: "Cormorant+Garmond";
    font-family: "Cormorant+Garmond";
    font-size: 16px;
    line-height: 22px;
}
nav {
    position: fixed;
    top: 0;
    left: 20%; /* Center the bar */
    transform: translateX(-20%); /* Offset for perfect centering */
    background-color: #ffffff;
    width: 90%; /* Fluid width instead of rem */
    max-width: 1100px; /* Prevents it from getting too huge on 4k screens */
    height: auto; /* Let it grow if content wraps */
    min-height: 2.5rem;
    display: flex; /* Flexbox for the whole bar */
    align-items: center;
    justify-content: space-between; /* Puts logo/text on left, links on right */
    padding: 0 1rem;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo {
    height: 32px;
    margin-right: 10px;
}

.masthead {
    font-family: "Bodoni MT", Didot, serif;
    font-weight: 550;
    font-size: 14px;
    margin: 0; /* Clean up margins */
}

ul.navBar {
    display: flex;
    list-style: none;
    gap: 1.5rem; 
    margin: 0;
    padding: 0;
}

ul.navBar li {
    font-family: "Bodoni MT", Didot, serif;
    font-size: 110%;
    font-weight: bold;
}

nav a {
    color: #507899;
    text-decoration: none;
    white-space: nowrap; /* Prevents links from snapping to two lines */
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .masthead {
        display: none; /* Hide long text on small phones to save space */
    }
    
    nav {
        width: 95%;
        padding: 0 0.5rem;
    }

    ul.navBar {
        gap: 0.8rem; /* Move links closer on small screens */
    }
}
            main {
                background-color: #FFFFFF;
                width: 60rem;
                margin-left: 4%;
                padding: 2rem 4rem;
                }
            h2 {
                margin-left: 2rem;
            }
            h3 {
                font-size: 18px;
            }
            p.authorHead {
                margin-left: 20px;
                font-weight: bold;
            }
            a {
                color: #507899;
                text-decoration: none;
            }
            a:hover {
                color: #396A91;
                text-decoration: underline;
            }
            a:visited {
                color: #635e8f;
                text-decoration: none;
            }
            ul.tocList li {
                font-size: 16px;
                margin: 0;
            }
            ul.author {
                list-style-type: none;
                display: flex;
                flex-direction: column;
                justify-content: flex-start;
            }
            
            ul.subContents {
                list-style-type: none;
                margin-left: 2rem;
                padding: 5px 10px;
                column-count: 2;
                column-gap: 2rem;
            }
            ul.subContents li {
                break-inside: avoid; 
                margin-bottom: 0.5rem;
                text-indent: 0;
            }
            .splashTOC {
                display: block;
                background-color: rgba(255, 255, 255, 0.65);
                width: 30rem;
                padding: 2rem 4rem;
             }
            .splashTitle {
                display: block;
                margin-left: auto;
                margin-right: auto;
                text-align: center;
                }
            .pic {
                display: block;
                background-image: url("../images/authors-slide3.png");
                background-repeat: no-repeat;
                background-attachment: fixed;
                background-position: 28rem 0;
                width: 40rem;
                margin-left: auto;
                margin-top: auto;
                }