html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: ghostwhite;
    color: slategray;
    font-family: "Lucida Console", "Courier New", monospace;
    font-size: 18px;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

h1 {
    font-size: 30px;
    font-weight: bold;
}

h2 {
    font-size: 20px;
    font-weight: bold;
}

h3 {
    font-size: 18px;
    font-weight: normal;
}

p {
    font-size: 15px;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 24px;
    background: ghostwhite;
    border-bottom: 1px solid #ddd;
    z-index: 1000;
    background: rgba(248, 248, 255, 0.95);
    backdrop-filter: blur(6px);
}

.header h1 a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.header h1 a:hover {
    opacity: 0.5;
}

.navbar {
    display: flex;
    gap: 30px;
    margin-right: 50px;
}

.navbar a {
    color: slategray;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.2s ease;
}

.navbar a:hover {
    opacity: 0.5;
}

.art-page {
    display: flex;
    justify-content: center;
    padding-top: 15px;
}

.art-grid {
    width: 100%;
    max-width: 500px;
}

.top-piece {
    max-width: 600px;
    padding-top: 80px;
    padding-bottom: 40px;
}

.piece {
    margin-bottom: 60px;
}

.art-grid img {
    width: 100%;
    height: auto;
    display: block;
}

.art-grid p {
    font-size: 15px;
    line-height: 1.6;
    margin-top: 15px;
}

.about {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    border-top: 2px dotted #ddd;
}

.artist-statement {
    max-width: 800px;
    border-bottom: 2px dotted #ddd;
    text-align: left;
    margin: 0 auto 20px;
}

.headshot {
    width: 100%;
    max-width: 537px;
    height: auto;
    display: block;
    margin: 15px auto;
    object-fit: cover;
}

.headshot-icon {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.about p {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
}

.about-links {
    display: flex;
    justify-content: left;
    gap: 30px;
    margin-top: 15px;
    margin-bottom: 50px;
}

.about-links a {
    color: blue;
    text-decoration: none;
    font-size: 15px;
    transition: opacity 0.2s ease;
}

.about-links a:hover {
    opacity: 0.5;
}

#art,
#about,
#contact {
    scroll-margin-top: 100px;
}

.secret {
    color: lightskyblue;
    text-decoration: none;
    font-size: 15px;
}

/* ---------- Mobile ---------- */

@media (max-width: 768px) {

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 18px;
    }

    p {
        font-size: 14px;
    }

    .header {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 16px 20px;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    .header h1 {
        margin: 0;
        font-size: 28px;
        text-align: center;
    }

    .navbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 0;
        padding: 0;
        gap: 16px;
    }

    .navbar a {
        white-space: nowrap;
    }

    .art-page {
        padding-top: 15px;
    }

    .top-piece {
    width: 100%;
    max-width: 500px;
    padding-top: 100px;
    padding-bottom: 20px;
    }

    .piece {
        margin-bottom: 32px;
    }

    .art-grid {
    width: 100%;
    max-width: 100%;
    padding: 0 20px 0 20px;
    box-sizing: border-box;
    }

    .about,
    .about p,
    .artist-statement {
        width: 100%;
        padding: 0px 20px 0px 20px;
        box-sizing: border-box;
    }

    .about-links {
        flex-direction: column;
        gap: 14px;
        align-items: flex-start;
    }

    .headshot {
        width: 100%;
        height: auto;
    }
}